/*
Theme Name: DinhDa Karsterly Rock Theme
Theme URI: https://dinhda-karsterlyrock.com
Author: baotran
Description: High-performance minimalist custom theme integrated with VikBooking and tracking pipeline. Tailored for Dinh Đá H'Mông - Karsterly Rock Lodge.
Version: 1.0
Text Domain: dinhda
*/

/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    /* Brand Colors - Karsterly Rock Lodge */
    --dd-primary: #ba6d43;         /* Terracotta from logo */
    --dd-primary-hover: #9c5935;
    --dd-bg-base: #fdfcfb;         /* Soft off-white */
    --dd-surface: #ffffff;         /* Pure white */
    
    /* Text Colors */
    --dd-text-main: #2b2624;       /* Deep earthy charcoal */
    --dd-text-muted: #736b66;
    
    /* Search Form (Expedia-style) Variables */
    --exp-primary: var(--dd-primary);
    --exp-primary-hover: var(--dd-primary-hover);
    --exp-text-main: var(--dd-text-main);
    --exp-text-muted: var(--dd-text-muted);
    --exp-border: #e5e0dc;
    --exp-bg: var(--dd-surface);
    --exp-radius: 12px;

    /* Typography */
    --font-heading: 'Playfair Display', 'Lora', serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Structure & Effects */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;

    /* VikBooking Override Variable */
    --vbo-light-grey-bg-color: var(--dd-surface);
}

*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    color: var(--dd-text-main);
    background-color: var(--dd-bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dd-text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base structural container */
.plugin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   2. HEADER & NAVIGATION STYLING
   ========================================== */
.site-header {
    background-color: var(--dd-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-branding .site-logo {
    max-height: 70px;
    width: auto;
    display: block;
    transition: transform var(--transition-speed);
}

.site-branding a:hover .site-logo {
    transform: scale(1.02);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: var(--dd-text-main);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: block;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current_page_item > a {
    color: var(--dd-primary);
}

.main-navigation .page_item_has_children > a::after {
    content: ' ▾';
    font-size: 12px;
    opacity: 0.6;
}

.main-navigation ul .children,
.main-navigation li.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dd-surface);
    min-width: 240px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 99;
}

.main-navigation li:hover > .children,
.main-navigation li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul .children li,
.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation ul .children a,
.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.main-navigation ul .children li:last-child a,
.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation ul .children a:hover,
.main-navigation .sub-menu a:hover {
    background-color: var(--dd-bg-base);
    color: var(--dd-primary);
    padding-left: 24px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dd-text-main);
    position: relative;
    transition: 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--dd-text-main);
    left: 0;
    transition: 0.3s;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.header-language-switcher {
    margin-right: 15px;
}

/* ==========================================
   3. FRONT PAGE: HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://dinhda-karsterlyrock.com/wp-content/uploads/2026/07/dinhda-hero-stone-bg.jpg') center 60% / cover no-repeat;
    color: #fff;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-container-wide {
    max-width: 1200px !important; 
    width: 95% !important;
}

.hero-seo-title {
    font-family: var(--font-ui);
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-main-heading {
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5vw, 4rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.hero-subheading {
    color: #F4F1EA !important;
    font-family: var(--font-ui);
    font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 850px;
    margin: 0 auto 35px auto !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-seo-title-wrapper {
    margin-top: 25px;
    text-align: center;
}

/* ==========================================
   4. SEARCH FORM CONTAINER & EXPEDIA UI STYLING
   ========================================== */
.vikbooking-search-wrapper,
.vikbooking-search-expanded {
    background: transparent;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px; /* Reduced max-width for cleaner desktop look */
    box-shadow: none;
    border: none;
    float: none;
    display: block;
    text-align: left;
}

.vikbooking-search-wrapper form,
.vikbooking-search-expanded form {
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

.exp-widget-container {
    background: transparent !important;
    border-radius: 16px;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--font-ui);
    color: var(--exp-text-main);
    position: relative;
}

.exp-grid {
    display: grid;
    grid-template-columns: 3.5fr 3.5fr 3fr 1.5fr;
    gap: 12px;
    align-items: center;
}

.exp-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--exp-border);
    border-radius: var(--exp-radius);
    padding: 8px 16px;
    height: 56px;
    position: relative;
    background: var(--exp-bg);
    transition: all 0.2s ease;
}

.exp-input-group:focus-within {
    border-color: var(--exp-primary);
    box-shadow: 0 0 0 3px rgba(186, 109, 67, 0.15); /* Terracotta focus glow */
}

.exp-icon {
    width: 20px;
    height: 20px;
    color: var(--exp-text-muted);
    margin-right: 12px;
    flex-shrink: 0;
}

.exp-field-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    position: relative;
}

.exp-field-inner label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--exp-text-muted);
    margin-bottom: 2px;
    line-height: 1;
}

.exp-field-inner input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--exp-text-main) !important;
    font-weight: 600 !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
    font-family: var(--font-ui);
}

.exp-field-inner input::placeholder {
    color: #A1887F !important;
    font-weight: 400;
}

.exp-field-inner input.form-control.input {
    position: absolute !important;
    left: 0;
    top: 14px;
    width: 100% !important;
    background: transparent !important;
}

.exp-action-group {
    height: 56px;
}

.exp-btn-submit {
    background: var(--exp-primary);
    color: #fff;
    border: none;
    border-radius: var(--exp-radius);
    height: 100%;
    width: 100%;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.exp-btn-submit:hover {
    background: var(--exp-primary-hover);
}

.exp-btn-submit:active {
    transform: scale(0.98);
}

.exp-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: var(--exp-bg);
    border-radius: var(--exp-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--exp-border);
    z-index: 100;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popover-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.popover-text strong {
    display: block;
    font-size: 15px;
    color: var(--exp-text-main);
}

.popover-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--exp-border);
    background: transparent;
    color: var(--exp-text-main);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-circle:hover:not(:disabled) {
    border-color: var(--exp-primary);
    color: var(--exp-primary);
    background: #fdf5f0; /* Soft terracotta tint */
}

.btn-circle:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-val {
    font-size: 16px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    color: var(--exp-text-main);
}

.btn-done {
    width: 100%;
    padding: 10px;
    background: var(--exp-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.btn-done:hover {
    background: var(--exp-primary-hover);
}

/* Custom Flatpickr Overrides */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover {
    background: var(--exp-primary) !important;
    border-color: var(--exp-primary) !important;
    color: #fff !important;
}

.flatpickr-day.inRange {
    background: #fdf5f0 !important;
    border-color: #fdf5f0 !important;
    color: var(--exp-text-main) !important;
}

/* ==========================================
   5. UNIQUE SELLING PROPOSITION (USP) BLOCKS
   ========================================== */
.usp-section-1 {
    padding: 80px 20px;
    background-color: var(--dd-surface);
}

.usp-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.usp-reverse {
    flex-direction: row-reverse;
}

.usp-text {
    flex: 1;
    min-width: 300px;
}

.usp-heading {
    font-size: 2rem;
    color: var(--dd-text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.usp-description {
    line-height: 1.8;
    color: var(--dd-text-muted);
    font-size: 1.05rem;
}

.usp-media {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* ==========================================
   6. PRODUCT / ROOMS SECTION
   ========================================== */
.rooms-section {
    padding: 90px 20px;
    background-color: var(--dd-bg-base);
}

.rooms-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rooms-header {
    text-align: center;
    margin-bottom: 50px;
}

.rooms-header .section-title {
    color: var(--dd-text-main);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--dd-text-muted);
    font-size: 1.05rem;
    font-family: var(--font-ui);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--dd-surface);
    border: 1px solid var(--exp-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.room-image {
    height: 250px;
    background: #f4f4f2;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.room-card:hover .room-image img {
    transform: scale(1.03);
}

.room-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--dd-text-main);
    font-weight: 600;
}

.room-desc {
    color: var(--dd-text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-room, .btn-primary {
    display: inline-block;
    background: var(--dd-primary);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: background var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-room:hover, .btn-primary:hover {
    background: var(--dd-primary-hover);
}

/* ==========================================
   7. FOOTER STYLING
   ========================================== */
.site-footer {
    background-color: var(--dd-text-main);
    color: #e5e0dc;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-ui);
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--dd-primary);
}

.footer-contact {
    margin-bottom: 20px;
}

.ga4-phone-click {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================
   8. FLOATING PHONE BUTTON
   ========================================== */
#custom-floating-phone {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    background-color: var(--dd-primary);
    color: #ffffff;
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: var(--font-ui);
}

#custom-floating-phone:hover {
    background-color: var(--dd-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.phone-icon-wrapper {
    background-color: #ffffff;
    color: var(--dd-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    position: relative;
    animation: phone-pulse 2s infinite;
}

.phone-text {
    font-weight: 500;
    margin-right: 6px;
    font-size: 14px;
}

.phone-number {
    font-weight: 700;
    font-size: 15px;
}

@keyframes phone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ==========================================
   9. VIKBOOKING OVERRIDES
   ========================================== */
.vbo-results-wrapper {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}

.vbo-room-result-wrap {
    margin-bottom: 25px !important;
}

.vbo-room-result-inner {
    padding: 20px !important;
}

.goback, .vbsearchmainsbmt {
    margin-top: 25px !important;
    margin-bottom: 30px !important;
}

/* ==========================================
   10. RESPONSIVE MOBILE STACK
   ========================================== */
@media screen and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dd-surface);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        padding: 20px;
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .main-navigation ul .children,
    .main-navigation li.menu-item-has-children .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 15px;
        background: transparent;
    }

    .main-navigation .page_item_has_children.is-open > .children,
    .main-navigation .menu-item-has-children.is-open > .sub-menu {
        display: flex;
    }
}

@media screen and (max-width: 868px) {
    .hero-main-heading {
        font-size: 2.1rem !important;
    }
    
    .hero-seo-title {
        font-size: 0.8rem !important;
        letter-spacing: 1px;
    }

    .vikbooking-search-wrapper,
    .vikbooking-search-expanded {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .exp-widget-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important; 
        padding: 16px !important;
    }

    .exp-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .exp-input-group, 
    .exp-action-group, 
    .exp-btn-submit {
        width: 100% !important;
    }

    .exp-popover {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .usp-container, .usp-container.usp-reverse {
        flex-direction: column;
    }
    
    .phone-text {
        display: none; 
    }
}

/* ==========================================
   11. SINGLE BLOG POST (HÀ GIANG INSIDER)
   ========================================== */
.single-post-article {
    padding: 60px 0;
}

.post-header-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px;
}

.post-category {
    margin-bottom: 15px;
}

.post-category a {
    background-color: var(--dd-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background var(--transition-speed);
}

.post-category a:hover {
    background-color: var(--dd-primary-hover);
}

.post-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dd-text-main);
}

.post-meta {
    font-size: 0.95rem;
    color: var(--dd-text-muted);
    font-family: var(--font-ui);
}

.post-thumbnail .featured-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
}

.post-content-wrapper {
    background-color: var(--dd-surface);
    padding: 60px 20px;
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a423e; /* Slightly softer than pure charcoal for long reading */
}

/* Typography inside the post */
.post-content h2, .post-content h3, .post-content h4 {
    color: var(--dd-text-main);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content a {
    color: var(--dd-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-speed);
}

.post-content a:hover {
    color: var(--dd-primary-hover);
}

.post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--dd-primary);
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dd-text-main);
    background: #fdf5f0;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Post Navigation (Next / Prev) */
.post-navigation-wrapper {
    max-width: 900px;
    margin: 40px auto 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--exp-border);
    padding-top: 30px;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dd-text-muted);
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dd-text-main);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover .nav-title {
    color: var(--dd-primary);
}

@media screen and (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 30px;
    }
    .nav-next {
        text-align: left;
    }
}

/* ==========================================
   12. SINGLE PAGE LAYOUT (LUXURY OVERLAP)
   ========================================== */
.page-hero-banner {
    height: 45vh;
    min-height: 350px;
    max-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-bottom: 40px; /* Leaves room for the overlap */
}

.page-hero-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.page-content-overlap {
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Pulls the content up over the banner */
}

.page-content-inner {
    background: var(--dd-surface);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--exp-border);
}

/* Page Typography Refinements */
.page-content-inner h2, 
.page-content-inner h3 {
    color: var(--dd-text-main);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.page-content-inner h2 {
    font-size: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.page-content-inner p, 
.page-content-inner li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a423e;
    margin-bottom: 1.2em;
}

.page-content-inner img {
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: var(--shadow-soft);
}

/* Mobile Adjustments for Single Page */
@media screen and (max-width: 768px) {
    .page-hero-banner {
        height: 35vh;
        min-height: 280px;
    }
    
    .page-content-overlap {
        margin-top: -50px;
    }

    .page-content-inner {
        padding: 30px 20px;
        border-radius: 12px;
    }
}

/* ==========================================
   13. BLOG FEED GRID (HOME.PHP)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--dd-surface);
    border-radius: 12px;
    border: 1px solid var(--exp-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
    background: #f4f4f2;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--dd-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: var(--font-ui);
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--dd-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

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

.blog-card-excerpt {
    color: var(--dd-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    font-family: var(--font-ui);
}

.blog-read-more {
    color: var(--dd-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: color 0.2s;
    font-family: var(--font-ui);
}

.blog-read-more:hover {
    color: var(--dd-primary-hover);
}

/* Pagination Styling */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 10px;
    border: none;
    padding: 0;
}

.blog-pagination a, 
.blog-pagination span.current {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--dd-surface);
    color: var(--dd-text-main);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--exp-border);
    font-family: var(--font-ui);
    transition: all 0.2s;
}

.blog-pagination span.current {
    background: var(--dd-primary);
    color: #fff;
    border-color: var(--dd-primary);
}

.blog-pagination a:hover {
    border-color: var(--dd-primary);
    color: var(--dd-primary);
}

/* ==========================================
   WIDER RESPONSIVE SINGLE PAGE CONTAINER
   ========================================== */

/* Expands the main overlap container used on single pages & booking views */
.page-content-inner {
    background: var(--dd-surface);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: 95% !important;
    max-width: 1200px !important; /* Increased width to accommodate booking tables */
    margin: 0 auto;
    border: 1px solid var(--exp-border);
    box-sizing: border-box;
}

/* Ensure the inner text/content inside blog posts or standard pages also scales comfortably */
.page-content {
    max-width: 100% !important;
}

/* VikBooking specific tables/wrappers fix inside the wider container */
.vbo-results-wrapper, 
.vbo-room-result-wrap, 
.vikbooking-main-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Tablet & Mobile Responsiveness */
@media screen and (max-width: 1024px) {
    .page-content-inner {
        padding: 40px 30px;
        width: 92% !important;
    }
}

@media screen and (max-width: 768px) {
    .page-hero-banner {
        height: 35vh;
        min-height: 250px;
    }
    
    .page-content-overlap {
        margin-top: -40px;
    }

    .page-content-inner {
        padding: 24px 16px;
        width: 100% !important;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
}