/*
Theme Name: Dia Diem Quang Ngai
Theme URI: https://checkinquangngai.vn
Author: CheckinQN
Author URI: https://checkinquangngai.vn
Description: Theme WordPress cho website Checkin Quảng Ngãi - Khám phá vẻ đẹp xứ Quảng
Version: 1.0.0
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diadiemquangngai
*/

:root {
    --primary-color: #ff4d4d;
    --sidebar-width: 260px;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    border-right: 1px solid #eee;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: var(--transition);
}



.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar .nav-link {
    color: #666;
    padding: 12px 20px;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #fff0f0;
    color: var(--primary-color);
}

.sidebar .nav-link i {
    width: 25px;
}

/* Header */
main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    overflow-x: hidden;
}



.max-w-500 {
    max-width: 500px;
}

.header {
    height: 70px;
}

.header-left {
    flex: 1;
}

/* Hero Section */
.hero-section {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Cards */
.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 16px;
    height: auto !important;
}

.explore-grid>div {
    height: 100%;
}

.explore-grid .item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.explore-grid .item-top-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.explore-grid .item-top-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.explore-grid .item-bottom {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}



.feature-card {
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .card-img {
    height: 100%;
    object-fit: cover;
}

.explore-section {
    margin-bottom: 80px !important;
}

.latest-section {
    margin-bottom: 80px !important;
}

.location-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-8px);
}

.location-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.location-card .card-body {
    padding: 20px;
}

.badge-float {
    position: absolute;
    top: 15px;
    left: 15px;
}

.rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Utility */
.smaller {
    font-size: 0.75rem;
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background-color: #e63e3e;
    border-color: #e63e3e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Leaflet Popup Customization */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 200px !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: white;
}

.leaflet-container {
    z-index: 10;
}

.btn-xs {
    padding: 2px 6px;
    font-size: 0.7rem;
    line-height: 1;
}

/* Blog Page Styles */
.blog-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 24px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
}

.blog-title:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Blog Detail Styles */
.article-header {
    margin-bottom: 40px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content h2,
.article-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content img {
    border-radius: 20px;
    margin: 30px 0;
    max-width: 100%;
    box-shadow: var(--card-shadow);
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.social-share-btn:hover {
    opacity: 0.9;
    transform: scale(1.1);
    color: #fff;
}

.share-fb {
    background-color: #3b5998;
}

.share-tw {
    background-color: #1da1f2;
}

.share-pin {
    background-color: #bd081c;
}

.pagination .page-link {
    border: none;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 10px;
    color: #666;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}

/* About Page Styles */
.about-hero {
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Contact Page Styles */
.contact-info-card {
    height: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-form-card {
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after {
    background-color: transparent !important;
}

/* Detail Page Styles */
.detail-banner {
    height: 450px;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-bottom: 30px;
}

.gallery-item {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    background: #fff;
}

.review-card {
    border: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.btn-booking {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
}

.btn-booking:hover {
    background-color: #e63e3e;
    color: #fff;
}

/* Search Form */
.search-form .search-field {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 0;
}

.search-form .search-field:focus {
    box-shadow: none;
}

/* Sidebar Logo */
.sidebar-logo {
    max-width: 180px;
    height: auto;
}

.sidebar .custom-logo {
    max-width: 180px;
    height: auto;
}

.mobile-logo {
    max-width: 120px;
    height: auto;
}

/* Category Filters */
.category-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filters .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
        display: flex !important;
    }

    .sidebar.show {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    main {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
    }

    .header {
        height: auto;
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .header-left {
        flex: 1;
        min-width: 0;
        gap: 8px !important;
    }

    .header-actions {
        flex-shrink: 0;
        gap: 4px !important;
    }

    .max-w-500 {
        max-width: 100%;
    }

    .search-bar {
        min-width: 0;
    }

    .hero-section {
        border-radius: 15px !important;
        min-height: 300px;
    }

    .hero-section h1 {
        font-size: 1.8rem !important;
    }

    .hero-section p {
        font-size: 0.9rem !important;
    }

    .hero-section .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }

    .explore-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .explore-grid > div {
        height: 200px !important;
    }

    .content-wrapper {
        padding: 15px !important;
    }

    .location-card .card-img-top {
        height: 160px;
    }

    .blog-card .card-img-top {
        height: 180px;
    }

    .detail-banner {
        height: 250px;
        border-radius: 15px;
    }

    .about-hero {
        height: 200px;
        border-radius: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-item {
        padding: 15px;
    }

    .contact-form-card {
        padding: 20px;
    }

    .gallery-item {
        height: 150px;
    }

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .category-filters .btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .filters {
        gap: 0 !important;
        flex-wrap: nowrap !important;
        overflow: hidden;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .content-wrapper {
        padding: 10px !important;
    }

    .location-card .card-body,
    .blog-card .card-body {
        padding: 15px;
    }

    .blog-title {
        font-size: 1rem;
    }

    .explore-grid > div {
        height: 180px !important;
    }

    .category-filters .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .category-filters .btn i {
        font-size: 0.75rem;
        margin-right: 4px !important;
    }
}
