/* ============================================
   KENYA SAFARI TOURS - PHASE 3 VISUAL IDENTITY
   Designed for Accessibility & High Conversion
   ============================================
   COLOR PALETTE: 80-20-5 RULE
   80% Primary Background: White (#FFFFFF) & Off-White (#F9F9F9)
   20% Secondary Brand: Deep Forest Green (#2C5E2E)
   5% Accent/CTA: Maasai Red (#D9381E)
   ============================================ */

/* ============================================
   CUSTOM HEADING FONT: Verdigris MVB TF
   Used for guest-facing headings only (.guest-site h1-h6)
   ============================================ */
@font-face {
    font-family: 'Verdigris MVB Pro';
    src: url('/fonts/Verdigris%20MVB%20TF%20Regular/Verdigris%20MVB%20TF%20Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   ROOT VARIABLES
   ============================================ */

:root {
    /* ===========================================
       PRIMARY BACKGROUND (80% - Cleanliness)
       =========================================== */
    --bg-primary: #FFFFFF;           /* White - Main content areas */
    --bg-secondary: #F9F9F9;         /* Off-white - Distinct sections */
    --bg-warm: #F4F1EA;              /* Sand/Beige - Cards, blockquotes */
    --bg-warm-green: #E8F0E8;        /* Warm sage green - Hero sections */
    
    /* ===========================================
       SECONDARY BRAND COLOR (20% - Nature/Trust)
       =========================================== */
    --brand-green: #2C5E2E;          /* Deep Forest Green - Primary brand */
    --brand-green-dark: #234825;     /* Darker green for hover states */
    --brand-green-light: #3D7A3F;    /* Lighter green for accents */
    
    /* ===========================================
       ACCENT/CTA COLOR (5% - Urgency/Action)
       =========================================== */
    --accent-red: #D9381E;           /* Maasai Red/Sunset Red */
    --accent-red-dark: #C3321B;      /* 10% darker for hover */
    --accent-red-light: #E84D34;     /* Lighter for subtle accents */
    
    /* ===========================================
       NEUTRAL/TEXT COLORS
       =========================================== */
    --text-primary: #1A1A1A;         /* Nearly black - Primary text */
    --text-secondary: #4A4A4A;       /* Dark gray - Secondary text */
    --text-muted: #6B6B6B;           /* Medium gray - Muted text */
    --text-light: #8A8A8A;           /* Light gray - Hints, captions */
    --text-white: #FFFFFF;           /* White text on dark backgrounds */
    
    /* ===========================================
       BORDER/LINE COLORS
       =========================================== */
    --border-light: #E5E5E5;
    --border-medium: #D0D0D0;
    --border-dark: #C0C0C0;
    
    /* ===========================================
       TYPOGRAPHY - FONT FAMILIES
       =========================================== */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Verdigris MVB Pro', 'Montserrat', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* ===========================================
       SHADOWS
       =========================================== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.12);
    
    /* ===========================================
       TRANSITIONS
       =========================================== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   1. TYPOGRAPHY - BASE SETTINGS
   ============================================ */

/* Set root font size to 100% (browser default, usually 16px) */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

/* Body text at 18px (1.125rem) for maximum readability */
body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADING HIERARCHY (Using rem units)
   ============================================ */

h1, .h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;           /* 40px */
    font-weight: 700;
    line-height: 1.2;            /* Tight line height for headings */
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-family: var(--font-heading);
    font-size: 2rem;             /* 32px */
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.875rem;
    color: var(--brand-green);   /* Section headers in brand green */
}

h3, .h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;           /* 24px */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h4, .h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;          /* 20px */
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

h5, .h5 {
    font-family: var(--font-heading);
    font-size: 1.125rem;         /* 18px */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

h6, .h6 {
    font-family: var(--font-heading);
    font-size: 1rem;             /* 16px */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   GUEST-ONLY HEADING TYPOGRAPHY
   Verdigris MVB Pro display font with proportional scale
   Anchored to H2 = 44px / 56px (line-height 1.273)
   ============================================ */
.guest-site h1,
.guest-site .h1,
.guest-site h2,
.guest-site .h2,
.guest-site h3,
.guest-site .h3,
.guest-site h4,
.guest-site .h4,
.guest-site h5,
.guest-site .h5,
.guest-site h6,
.guest-site .h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    font-style: normal;
}

.guest-site h1,
.guest-site .h1 {
    font-size: 3.25rem;          /* ~52px */
    line-height: 1.32;           /* more breathing room */
}

.guest-site h2,
.guest-site .h2 {
    font-size: 2.75rem;          /* 44px */
    line-height: 1.36;           /* ~60px — looser */
}

.guest-site h3,
.guest-site .h3 {
    font-size: 2rem;             /* 32px */
    line-height: 1.4;
}

.guest-site h4,
.guest-site .h4 {
    font-size: 1.625rem;         /* 26px */
    line-height: 1.4;
}

.guest-site h5,
.guest-site .h5 {
    font-size: 1.25rem;          /* 20px */
    line-height: 1.5;
}

.guest-site h6,
.guest-site .h6 {
    font-size: 1rem;             /* 16px */
    line-height: 1.55;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

/* Display utility headings on guest pages */
.guest-site .display-1,
.guest-site .display-2,
.guest-site .display-3,
.guest-site .display-4,
.guest-site .display-5,
.guest-site .display-6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
}

/* Mobile: scale headings down for small screens */
@media (max-width: 767.98px) {
    .guest-site h1,
    .guest-site .h1 {
        font-size: 2.25rem;      /* ~36px */
        line-height: 1.32;
    }

    .guest-site h2,
    .guest-site .h2 {
        font-size: 1.9rem;       /* ~30px */
        line-height: 1.35;
    }

    .guest-site h3,
    .guest-site .h3 {
        font-size: 1.5rem;       /* 24px */
        line-height: 1.4;
    }

    .guest-site h4,
    .guest-site .h4 {
        font-size: 1.25rem;      /* 20px */
        line-height: 1.4;
    }
}

/* ============================================
   GUEST BUTTONS — UNIFIED STYLE FOR ALL GUEST PAGES
   Consistent font, size and padding for every CTA and
   secondary button across the entire guest site
   ============================================ */
.guest-site .btn:not(.tour-card__btn),
.guest-site .btn-lg:not(.tour-card__btn),
.guest-site .btn-sm:not(.tour-card__btn),
.guest-site a.btn:not(.tour-card__btn),
.guest-site button.btn:not(.tour-card__btn),
.guest-site input[type="submit"].btn:not(.tour-card__btn),
.guest-site .nav-link.btn,
.guest-site .navbar .btn,
.guest-site .navbar .btn-primary {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.125rem;        /* ~18px — matches the navbar reference */
    line-height: 1.35;
    letter-spacing: 0.01em;
    padding: 0.65rem 1.5rem;
    border-radius: 0;
    border-width: 1px;
    text-transform: none;
    white-space: normal;
    text-decoration: none;
}

.guest-site .btn.btn-sm:not(.tour-card__btn),
.guest-site a.btn.btn-sm:not(.tour-card__btn),
.guest-site button.btn.btn-sm:not(.tour-card__btn) {
    font-size: 1rem;
    padding: 0.45rem 1.1rem;
}

/* Icon spacing inside guest buttons */
.guest-site .btn i.fas,
.guest-site .btn i.fab,
.guest-site .btn i.far {
    font-size: 0.95em;
    vertical-align: -0.05em;
}

/* ============================================
   TOUR PACKAGE CARDS — one layout everywhere on guest site
   ============================================ */
.guest-site .tour-card {
    --tour-card-image-h: 275px; /* 220px + 25% */
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.guest-site .tour-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.guest-site .tour-card--featured {
    border: 4px solid var(--bg-warm-green, #c5d4bc) !important;
}

/* Fixed image area — never grows with image intrinsic size */
.guest-site .tour-card__media {
    position: relative;
    flex: 0 0 var(--tour-card-image-h);
    height: var(--tour-card-image-h);
    max-height: var(--tour-card-image-h);
    overflow: hidden;
    background: #eee;
    line-height: 0;
}

.guest-site .tour-card__image-link {
    display: block;
    width: 100%;
    height: var(--tour-card-image-h);
}

.guest-site .tour-card__image {
    width: 100% !important;
    height: var(--tour-card-image-h) !important;
    max-height: var(--tour-card-image-h) !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    border-radius: 0;
}

.guest-site .tour-card__duration {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.guest-site .tour-card__body {
    flex: 1 1 auto;
    padding: 1rem 1.125rem 0.75rem;
}

/* Card title: semantic h3, compact card size (not page h3 scale) */
.guest-site .tour-card h3.tour-card__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0 0 0.5rem !important;
    color: var(--text-primary, #2D2A26) !important;
}

.guest-site .tour-card__title a {
    color: inherit;
    text-decoration: none;
}

.guest-site .tour-card__title a:hover {
    color: var(--brand-green, #4A6741) !important;
}

.guest-site .tour-card__difficulty {
    font-size: 0.75rem;
    font-weight: 500;
}

.guest-site .tour-card__footer {
    flex-shrink: 0;
    padding: 0.75rem 1.125rem;
}

.guest-site .tour-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
}

.guest-site .tour-card__price-wrap {
    min-width: 0;
    line-height: 1.2;
}

.guest-site .tour-card__price-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.1rem;
}

.guest-site .tour-card__price {
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--brand-green, #4A6741);
    letter-spacing: -0.01em;
}

.guest-site .tour-card__price-suffix {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 0.15rem;
}

.guest-site .tour-card__btn {
    flex-shrink: 0;
    white-space: nowrap !important;
    font-family: var(--font-body, 'Nunito Sans', sans-serif) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .guest-site .tour-card {
        --tour-card-image-h: 250px; /* 200px + 25% */
    }

    .guest-site .tour-card__media {
        flex-basis: var(--tour-card-image-h);
    }

    .guest-site .tour-card h3.tour-card__title {
        font-size: 0.9375rem !important;
    }

    .guest-site .tour-card__price {
        font-size: 1.25rem;
    }
}

/* ============================================
   HOME HERO HEADLINE & EYEBROW — Verdigris spacing
   ============================================ */
.guest-site .hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.guest-site .hero-headline {
    font-family: var(--font-display);
    font-size: 2.75rem;
    line-height: 1.45;          /* generous spacing for two-line headline */
    letter-spacing: 0;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .guest-site .hero-headline {
        font-size: 2rem;
        line-height: 1.4;
    }

    .guest-site .hero-eyebrow {
        font-size: 0.85rem;
    }
}

/* Display headings - larger hero text */
.display-1 { font-size: 4rem; font-weight: 700; line-height: 1.1; }
.display-2 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; }
.display-3 { font-size: 3rem; font-weight: 700; line-height: 1.15; }
.display-4 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; }
.display-5 { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.display-6 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; }

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* Body text styles */
p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.375rem;         /* 22px */
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   2. COLOR CLASSES
   ============================================ */

/* Background colors */
.bg-primary { background-color: var(--brand-green) !important; }
.bg-light { background-color: var(--bg-secondary) !important; }
.bg-white { background-color: var(--bg-primary) !important; }
.bg-warm, .bg-sand { background-color: var(--bg-warm) !important; }
.bg-accent { background-color: var(--accent-red) !important; }

/* Text colors */
.text-primary { color: var(--brand-green) !important; }
.text-accent { color: var(--accent-red) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dark { color: var(--text-primary) !important; }
.text-success { color: var(--brand-green) !important; }
.text-danger { color: var(--accent-red) !important; }

/* ============================================
   4. UI ELEMENTS - BUTTONS (Pill Shape)
   ============================================ */

.btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: 50px;         /* Pill shape for modern, friendly feel */
    border-width: 2px;
    border-style: solid;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* PRIMARY CTA BUTTON - Maasai Red (5% Accent) */
/* Use ONLY for 'Book Now', 'Get Quote', 'Check Availability' */
.btn-primary,
.btn-cta {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(217, 56, 30, 0.25);
    border-radius: 0 !important; /* No border radius for CTA buttons */
}

.btn-primary:hover,
.btn-primary:focus,
.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--accent-red-dark);
    border-color: var(--accent-red-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 56, 30, 0.35);
}

.btn-primary:active,
.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(217, 56, 30, 0.25);
}

/* SECONDARY BUTTON - Outline Green */
.btn-outline-primary,
.btn-secondary {
    background-color: transparent;
    border-color: var(--brand-green);
    color: var(--brand-green);
    box-shadow: none;
    border-radius: 0 !important; /* No border radius for CTA buttons */
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 94, 46, 0.25);
}

/* Light outline button (for dark backgrounds) */
.btn-outline-light {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--text-white);
    border-color: var(--text-white);
    color: var(--brand-green);
}

/* Success button - Green solid */
.btn-success {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--text-white);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: var(--text-white);
}

/* Button Sizes */
.btn-lg {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

/* ============================================
   4. UI ELEMENTS - CARDS
   ============================================ */

.card {
    border: none;
    border-radius: 12px;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);      /* Subtle shadow */
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);   /* Increased shadow on hover */
    transform: translateY(-4px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
}

.card-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.navbar {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--brand-green) !important;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-green) !important;
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .navbar-nav.mx-auto {
        flex-grow: 1;
        justify-content: center;
        max-width: 70%;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid var(--border-light);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
    }
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-warm) 100%);
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-green);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.273;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   3. STYLING DYNAMIC CONTENT
   (Blog posts, package descriptions, articles)
   ============================================ */

.blog-content,
.package-description,
.article-content,
.dynamic-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-x: auto;            /* Horizontal scroll for wide tables */
}

/* Paragraphs */
.blog-content p,
.package-description p,
.article-content p,
.dynamic-content p {
    margin-bottom: 1.5rem;
}

/* Headings in dynamic content */
.blog-content h2,
.package-description h2,
.article-content h2,
.dynamic-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h3,
.package-description h3,
.article-content h3,
.dynamic-content h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.875rem;
}

/* Images - Responsive with soft corners */
.blog-content img,
.package-description img,
.article-content img,
.dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    display: block;
}

/* Tables - Bootstrap-like styling for mobile-first */
.blog-content table,
.package-description table,
.article-content table,
.dynamic-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    font-size: 1rem;
}

.blog-content table th,
.package-description table th,
.article-content table th,
.dynamic-content table th {
    background-color: var(--brand-green);
    color: var(--text-white);
    padding: 1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
}

.blog-content table td,
.package-description table td,
.article-content table td,
.dynamic-content table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.blog-content table tr:nth-child(even),
.package-description table tr:nth-child(even),
.article-content table tr:nth-child(even),
.dynamic-content table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Lists - Enhanced styling */
.blog-content ul,
.package-description ul,
.article-content ul,
.dynamic-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li,
.package-description ul li,
.article-content ul li,
.dynamic-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Custom green bullet/checkmark for ul */
.blog-content ul li::before,
.package-description ul li::before,
.article-content ul li::before,
.dynamic-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: 700;
    font-size: 1rem;
}

/* Ordered lists */
.blog-content ol,
.package-description ol,
.article-content ol,
.dynamic-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
    counter-reset: list-counter;
    list-style: none;
}

.blog-content ol li,
.package-description ol li,
.article-content ol li,
.dynamic-content ol li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
    counter-increment: list-counter;
}

.blog-content ol li::before,
.package-description ol li::before,
.article-content ol li::before,
.dynamic-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: -1.75rem;
    color: var(--brand-green);
    font-weight: 700;
}

/* Blockquotes */
.blog-content blockquote,
.package-description blockquote,
.article-content blockquote,
.dynamic-content blockquote {
    border-left: 4px solid var(--brand-green);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: var(--bg-warm);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 8px 8px 0;
}

/* Links in content */
.blog-content a,
.package-description a,
.article-content a,
.dynamic-content a {
    color: var(--brand-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.blog-content a:hover,
.package-description a:hover,
.article-content a:hover,
.dynamic-content a:hover {
    color: var(--brand-green-dark);
}

/* ============================================
   INCLUSIONS & EXCLUSIONS LISTS
   ============================================ */

.inclusions-list ul li::before,
.inclusions-list li::before {
    content: "✓";
    color: var(--brand-green);
}

.exclusions-list ul li::before,
.exclusions-list li::before {
    content: "✗";
    color: var(--accent-red);
}

/* ============================================
   DESTINATION GRID & CARDS
   ============================================ */

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
    gap: 2rem;
    margin: 2rem 0;
    justify-content: start;
}

/* ============================================
   DESTINATIONS HORIZONTAL RAIL (Home page)
   ============================================ */
.destinations-rail-section .section-header {
    margin-left: auto;
    margin-right: auto;
}

.destinations-rail-wrapper {
    padding: 0 3.5rem;
}

.destinations-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.destinations-rail::-webkit-scrollbar {
    height: 6px;
}

.destinations-rail::-webkit-scrollbar-thumb {
    background-color: rgba(74, 103, 65, 0.25);
    border-radius: 999px;
}

.destinations-rail .destinations-rail-card {
    flex: 0 0 calc((100% - (3 * 1.5rem)) / 4);
    max-width: none;
    scroll-snap-align: start;
    height: 380px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

/* Smaller, cleaner overlay — name only */
.destinations-rail .destination-card-overlay {
    padding: 1.25rem 1.25rem 1.4rem;
}

.destinations-rail .destination-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;          /* ~half of the global h3 (32px) */
    line-height: 1.3;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

.destinations-rail .destinations-rail-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.destinations-rail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #4A6741;
    border: 1px solid #d6dde2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    z-index: 5;
}

.destinations-rail-arrow:hover,
.destinations-rail-arrow:focus {
    background-color: #4A6741;
    color: #ffffff;
    border-color: #4A6741;
}

.destinations-rail-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.destinations-rail-arrow--prev { left: 0; }
.destinations-rail-arrow--next { right: 0; }

@media (max-width: 1199.98px) {
    .destinations-rail .destinations-rail-card {
        flex: 0 0 calc((100% - (2 * 1.5rem)) / 3);
    }
}

@media (max-width: 991.98px) {
    .destinations-rail-wrapper {
        padding: 0 3rem;
    }
    .destinations-rail .destinations-rail-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 360px;
    }
}

@media (max-width: 767.98px) {
    .destinations-rail-wrapper {
        padding: 0 2.5rem;
    }
    .destinations-rail .destinations-rail-card {
        flex: 0 0 78%;
        height: 340px;
    }
    .destinations-rail-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .destinations-rail-wrapper {
        padding: 0 2rem;
    }
    .destinations-rail .destinations-rail-card {
        flex: 0 0 86%;
    }
}

.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 400px;
}

.destination-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.destination-card img {
    transition: transform var(--transition-slow);
}

.destination-card:hover img {
    transform: scale(1.05);
}

.destination-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem;
    color: var(--text-white);
}

.destination-card-type {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-warm);
    margin-bottom: 0.5rem;
    display: block;
}

.destination-card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "›";
}

.breadcrumb-item a {
    color: var(--brand-green);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--brand-green-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Light breadcrumb for dark backgrounds */
.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: var(--text-white);
}

.breadcrumb-light .breadcrumb-item.active,
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control,
.form-select {
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all var(--transition-fast);
    background-color: var(--bg-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(44, 94, 46, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
}

.badge-budget {
    background-color: rgba(44, 94, 46, 0.15);
    color: var(--brand-green);
}

.badge-midrange {
    background-color: rgba(255, 193, 7, 0.15);
    color: #B8860B;
}

.badge-luxury {
    background-color: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}

.bg-success-subtle {
    background-color: rgba(44, 94, 46, 0.1) !important;
}

.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Type badges */
.type-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    background-color: rgba(44, 94, 46, 0.1);
    color: var(--brand-green);
}

/* ============================================
   PRICE DISPLAY
   ============================================ */

.price-display {
    font-family: var(--font-heading);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-green);
}

.price-from {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--brand-green);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    color: var(--text-white);
}

footer h5 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

footer p,
footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* ============================================
   LINKS (Global)
   ============================================ */

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-green-dark);
}

/* ============================================
   TRUST SIGNALS
   ============================================ */

.trust-signals {
    background-color: var(--bg-warm);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 4px solid var(--brand-green);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--brand-green);
}

/* ============================================
   STICKY SIDEBAR
   ============================================ */

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* ============================================
   PRICING CALCULATOR (Tour Page)
   ============================================ */

.pricing-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tier-option {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tier-option:hover {
    border-color: var(--brand-green);
    background-color: rgba(44, 94, 46, 0.02);
}

.tier-option:has(.form-check-input:checked) {
    border-color: var(--brand-green);
    background-color: rgba(44, 94, 46, 0.05);
}

/* ============================================
   ITINERARY TIMELINE
   ============================================ */

.itinerary-day {
    position: relative;
}

.day-marker {
    flex-shrink: 0;
}

.day-number {
    width: 50px;
    height: 50px;
    background-color: var(--brand-green);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
}

.accommodation-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--brand-green);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Hero Image Responsive Styles */
.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image-wrapper img {
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    .hero-image-wrapper img {
        max-height: 400px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;          /* Slightly smaller on mobile */
    }
    
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.625rem; }
    h3, .h3 { font-size: 1.25rem; }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .destination-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .sticky-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-fast);
    min-width: 44px;
    text-align: center;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: var(--bg-warm-green);
    border-color: var(--brand-green);
    color: var(--brand-green);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--text-white);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background-color: var(--bg-secondary);
    border-color: #e0e0e0;
    color: var(--text-muted);
}

/* Hide the "Showing X to Y of Z results" text if it appears */
.pagination .pagination-info {
    display: none;
}

/* Ensure pagination wrapper is clean */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        font-size: 0.875rem;
    }
}

/* ============================================
   PAGE HERO SECTION (Non-Home Pages)
   ============================================ */

.page-hero {
    background-color: var(--bg-warm-green);
}

.page-hero .display-5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.page-hero .lead {
    color: var(--text-secondary);
}

/* Light Breadcrumb */
.breadcrumb-light {
    background: transparent;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-light .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CTA SECTION STYLES
   ============================================ */

.cta-section {
    background-color: var(--bg-warm);
    border-top: 3px solid var(--brand-green);
    border-bottom: 3px solid var(--brand-green);
}

.cta-section h2 {
    color: var(--brand-green);
}

/* CTA Buttons - No border radius */
.btn-cta-solid {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0 !important; /* No border radius */
    border: 2px solid var(--accent-red);
    background-color: var(--accent-red);
    color: var(--text-white);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-solid:hover,
.btn-cta-solid:focus {
    background-color: var(--accent-red-dark);
    border-color: var(--accent-red-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 56, 30, 0.3);
}

.btn-cta-outline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0 !important; /* No border radius */
    border: 2px solid var(--brand-green);
    background-color: transparent;
    color: var(--brand-green);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-outline:hover,
.btn-cta-outline:focus {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ============================================
   ADDITIONAL UTILITY CLASSES
   ============================================ */

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.social-icons a:hover {
    color: var(--text-white);
}

/* Featured badge accent */
.bg-accent {
    background-color: var(--accent-red) !important;
}

/* ============================================
   UK TRUST HEADER
   ============================================ */

.trust-header {
    background-color: var(--brand-green);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-header a {
    transition: opacity 0.2s;
}

.trust-header a:hover {
    opacity: 0.8;
}

.trust-header .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   DIFFICULTY METER (For Hiking/Adventure Tours)
   ============================================ */

.difficulty-meter-container {
    margin-top: 1rem;
}

.difficulty-meter {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.difficulty-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease, background-color 0.3s;
    position: relative;
}

.difficulty-bar[data-level="easy"] {
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
    width: 25% !important;
}

.difficulty-bar[data-level="moderate"] {
    background: linear-gradient(90deg, #FFA726 0%, #FFB74D 100%);
    width: 50% !important;
}

.difficulty-bar[data-level="challenging"] {
    background: linear-gradient(90deg, #FF7043 0%, #FF8A65 100%);
    width: 75% !important;
}

.difficulty-bar[data-level="technical"] {
    background: linear-gradient(90deg, #D32F2F 0%, #E53935 100%);
    width: 100% !important;
}

.difficulty-labels {
    font-size: 0.75rem;
}

.difficulty-labels small {
    opacity: 0.7;
}

/* Difficulty meter for light backgrounds */
.difficulty-meter-light {
    background-color: var(--border-light);
}

.difficulty-meter-light .difficulty-bar[data-level="easy"] {
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
}

.difficulty-meter-light .difficulty-bar[data-level="moderate"] {
    background: linear-gradient(90deg, #FFA726 0%, #FFB74D 100%);
}

.difficulty-meter-light .difficulty-bar[data-level="challenging"] {
    background: linear-gradient(90deg, #FF7043 0%, #FF8A65 100%);
}

.difficulty-meter-light .difficulty-bar[data-level="technical"] {
    background: linear-gradient(90deg, #D32F2F 0%, #E53935 100%);
}

/* ============================================
   HOME SEO FOOTER SECTION
   ============================================ */

.home-seo-footer {
    background-color: #F9F9F9; /* Alt Background */
    font-family: 'Nunito Sans', sans-serif;
}

.home-seo-footer article {
    color: #333; /* Dark grey */
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
}

.home-seo-footer article p {
    color: #333;
    font-size: 1.125rem; /* 18px */
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.home-seo-footer article h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.home-seo-footer .text-secondary {
    color: #333 !important;
}

/* ============================================
   HOLIDAY-TYPE / ICP HUB PAGES
   (Uses site variables; overrides .article-content where needed)
   ============================================ */

.hub-section-title {
    font-family: var(--font-heading);
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-green);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

/* Full-width custom planner promo card */
.hub-planner-card {
    width: 100%;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-primary);
    overflow: hidden;
    border-radius: 0;
}

.hub-planner-card-media {
    min-height: 220px;
    background-color: var(--bg-secondary);
}

.hub-planner-card-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.hub-planner-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-warm);
}

.hub-planner-card-inner {
    padding: 1.75rem 2rem;
}

.hub-planner-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.hub-planner-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-green);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.hub-planner-card-lead {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.hub-planner-form-fields .form-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* SEO supplementary content — gray band edge-to-edge; copy stays in .container > .col-12 */
.hub-seo-band {
    display: block;
    width: 100%;
    margin: 0;
    padding: 2rem 0;
    background-color: #a9aaac;
    border-top: 1px solid var(--border-light);
    box-sizing: border-box;
}

.hub-seo-band .hub-seo-panel {
    padding: 0;
}

.hub-seo-band .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Override global .article-content (1.125rem) — hub uses smaller muted type */
.hub-seo-band .article-content,
.hub-seo-band .article-content.dynamic-content {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.hub-seo-band .article-content p,
.hub-seo-band .article-content li,
.hub-seo-band .article-content.dynamic-content p,
.hub-seo-band .article-content.dynamic-content li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hub-seo-band .article-content h2,
.hub-seo-band .article-content.dynamic-content h2 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.hub-seo-band .article-content h3,
.hub-seo-band .article-content.dynamic-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.hub-seo-band .article-content h4,
.hub-seo-band .article-content.dynamic-content h4 {
    font-size: 0.9375rem;
}

.hub-seo-band .article-content table,
.hub-seo-band .article-content.dynamic-content table {
    font-size: 0.8125rem;
}

.hub-seo-band .article-content a,
.hub-seo-band .article-content.dynamic-content a {
    font-size: inherit;
}

/* Travel styles list on hub (matches home category links) */
.hub-category-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hub-category-link:hover {
    color: var(--brand-green);
}

.hub-category-link .category-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Curated blocks on hub */
.hub-curated-block {
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

/* Weather matrix on hub and /weather pages */
.hub-weather-card {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.weather-matrix-table {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.weather-matrix-table th,
.weather-matrix-table td {
    vertical-align: middle;
    padding: 0.35rem 0.25rem;
}

.weather-metric-label {
    white-space: nowrap;
    font-size: 0.8125rem;
}

.weather-matrix-cell {
    min-width: 2.5rem;
}

.weather-cell-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.weather-bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-green) var(--bar-pct, 0%), rgba(74, 103, 65, 0.15) var(--bar-pct, 0%));
    max-width: 100%;
}

.weather-bar--rainfall {
    background: linear-gradient(90deg, #4a90c4 var(--bar-pct, 0%), rgba(74, 144, 196, 0.15) var(--bar-pct, 0%));
}

.weather-bar--temperature {
    background: linear-gradient(90deg, #d4a03c var(--bar-pct, 0%), rgba(212, 160, 60, 0.15) var(--bar-pct, 0%));
}

.weather-bar--humidity {
    background: linear-gradient(90deg, #6c757d var(--bar-pct, 0%), rgba(108, 117, 125, 0.15) var(--bar-pct, 0%));
}

.weather-matrix-wrap--compact .weather-matrix-table {
    font-size: 0.75rem;
}

.weather-matrix-wrap--compact .weather-cell-value {
    font-size: 0.6875rem;
}

/* Unified subsection heading: matches packages/travel-styles heading size */
.hub-subsection-title {
    margin-bottom: 0 !important;
}

.hub-curated-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hub-curated-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-green);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.hub-curated-link:hover {
    color: var(--brand-green-dark);
    text-decoration: underline;
}

/* Rail container that becomes a horizontal scroll on small screens */
.hub-card-rail {
    position: relative;
}

.hub-card-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Cards */
.hub-place-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hub-place-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-green);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.hub-place-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.hub-place-card-link:hover,
.hub-place-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.hub-place-card-media {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.hub-place-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-place-card:hover .hub-place-card-img {
    transform: scale(1.05);
}

.hub-place-card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background-color: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hub-place-card-body {
    padding: 0.9rem 1rem 1.05rem;
    flex: 1 1 auto;
}

.hub-place-card-title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.hub-place-card-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hub-place-card-meta i {
    color: var(--brand-green);
}

/* Mobile: convert grid to horizontal swipe rail with a pulsing arrow hint */
@media (max-width: 767.98px) {
    .hub-card-track {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.85rem;
        padding-bottom: 0.6rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .hub-card-track::-webkit-scrollbar {
        height: 4px;
    }

    .hub-card-track::-webkit-scrollbar-thumb {
        background-color: rgba(74, 103, 65, 0.35);
        border-radius: 2px;
    }

    .hub-card-track > .hub-place-card {
        flex: 0 0 78%;
        max-width: 78%;
        scroll-snap-align: start;
    }

    .hub-card-rail[data-has-more]::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0.6rem;
        width: 36px;
        pointer-events: none;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    }

    .hub-card-rail-hint {
        display: flex;
        position: absolute;
        right: 0.4rem;
        top: 38%;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #fff;
        color: var(--brand-green);
        border: 1px solid var(--border-light);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
        font-size: 0.875rem;
        pointer-events: none;
        animation: hubRailHint 1.6s ease-in-out infinite;
    }
}

.hub-card-rail-hint {
    display: none;
}

@keyframes hubRailHint {
    0%, 100% { transform: translateX(0); opacity: 0.85; }
    50% { transform: translateX(5px); opacity: 1; }
}

@media (min-width: 992px) {
    .hub-planner-card-media {
        min-height: 100%;
    }

    .hub-planner-card-img {
        min-height: 300px;
    }

    .hub-planner-card-inner {
        padding: 2rem 2.5rem;
    }

    .hub-planner-card-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    .hub-planner-card-media {
        max-height: 260px;
        overflow: hidden;
    }

    .hub-planner-card-img {
        min-height: 260px;
        max-height: 260px;
    }

    .hub-planner-card-inner {
        padding: 1.5rem 1.25rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    footer,
    .btn,
    .sticky-sidebar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
