/* ============================================
   Shanghai Tours - Main Stylesheet
   Inspired by jenny shanghai tours style
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Font display optimization */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap);
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap);
}

:root {
    --primary: #c43a2b;
    --primary-dark: #a02d20;
    --primary-light: #e85d4e;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --success: #27ae60;
    --text-dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f8f5f1;
    --bg-white: #fff;
    --border: #e8e0d8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 35px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1400px;
    --header-height: 0px;   /* header is in normal flow (split header) */
    --nav-height: 80px;
    --top-bar-height: 36px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(196, 58, 43, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 58, 43, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: #1a252f;
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}
.btn-success:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Header --- */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    width: 100%;
}
.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.top-bar-info i {
    color: #c43a2b;
    font-size: 0.85rem;
}
.top-bar-info a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}
.top-bar-info a:hover { color: #c43a2b; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}
.logo:hover { color: var(--text-dark); }

.logo-icon { font-size: 1.8rem; }
.logo-text { color: var(--text-dark); }
.logo-highlight { color: var(--primary); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid var(--border);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.dropdown-menu li a:hover {
    background: var(--bg-light, #f8f9fa);
    color: var(--primary);
    padding-left: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
    margin-top: var(--header-height);
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider { position: relative; height: 100%; }
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 720px;
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 24px;
    width: fit-content;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero navigation */
.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.hero-dot.active { background: #fff; width: 32px; border-radius: 6px; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow-left { left: 24px; }
.hero-arrow-right { right: 24px; }

/* --- Features Section --- */
.features { background: var(--bg-light); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon { font-size: 2.8rem; margin-bottom: 20px; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Popular Tours Section --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tour-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tour-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tour-card:hover .tour-card-image img { transform: scale(1.08); }

.tour-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-card-duration {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-card-body { padding: 24px; }

.tour-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.tour-card-rating i { color: var(--accent); font-size: 0.85rem; }

.tour-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.tour-card-body > p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.6;
}

.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tour-card-price { font-size: 0.9rem; color: var(--text-light); }
.tour-card-price strong { font-size: 1.3rem; color: var(--primary); }

/* --- Testimonials Section --- */
.testimonials { background: var(--bg-light); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.testimonial-stars { margin-bottom: 16px; }
.testimonial-stars i { color: var(--accent); font-size: 0.9rem; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo { color: #fff; margin-bottom: 20px; display: inline-flex; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; }

.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.footer-links ul li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.footer-contact ul li i { width: 16px; color: var(--primary); }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: #fff; }

/* Footer QR Codes */
.footer-qr-codes {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.footer-qr {
    text-align: center;
}
.footer-qr img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
    display: block;
    margin: 0 auto 4px;
}
.footer-qr span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196,58,43,0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   PAGE BANNER (Inner Pages)
   ============================================ */
.page-banner {
    margin-top: var(--header-height);
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner-content h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.page-banner-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
}

/* ============================================
   TOURS PAGE
   ============================================ */
.tour-filter {
    padding: 30px 0 0;
    background: var(--bg-white);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.tours-list { padding-top: 50px; }

.tour-detail-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
    transition: var(--transition);
}
.tour-detail-card:hover { box-shadow: var(--shadow-hover); }

.tour-detail-image { height: 100%; min-height: 300px; }
.tour-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-detail-body { padding: 36px; }

.tour-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tour-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tour-badge-orange { background: #e67e22; }
.tour-badge-green { background: #27ae60; }
.tour-badge-purple { background: #8e44ad; }
.tour-badge-blue { background: #2980b9; }

.tour-detail-duration {
    font-size: 0.85rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-detail-body h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tour-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.tour-detail-rating i { color: var(--accent); }

.tour-detail-body > p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.tour-detail-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.tour-detail-highlights li {
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tour-detail-highlights i { color: var(--success); font-size: 0.85rem; }

.tour-detail-includes {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 24px;
}
.tour-detail-includes h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.tour-detail-includes h4 i { color: var(--success); margin-right: 6px; }
.tour-detail-includes p { font-size: 0.85rem; color: var(--text-light); }

.tour-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tour-detail-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.price-label { font-size: 0.85rem; color: var(--text-lighter); }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--primary); }
.price-unit { font-size: 0.85rem; color: var(--text-lighter); }

/* Custom tour card */
.tour-custom-card {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #fdfcfb 0%, #f8f5f1 100%);
}
.tour-custom-card .tour-detail-body { max-width: 600px; margin: 0 auto; }
.tour-custom-icon { font-size: 3.5rem; margin-bottom: 16px; }
.tour-custom-card h2 { font-size: 2rem; }
.tour-custom-card > p { margin-bottom: 24px; }

.tour-custom-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}
.tour-custom-features span {
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tour-custom-features i { color: var(--success); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
}

.about-text .section-tag { margin-bottom: 16px; }

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.35;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label { font-size: 0.85rem; color: var(--text-lighter); }

/* Values */
.about-values { background: var(--bg-light); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); }

.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.value-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 3px solid var(--bg-light);
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic;
}

.team-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.team-languages span {
    font-size: 0.75rem;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 3px 12px;
    border-radius: 50px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.contact-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(196, 58, 43, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.contact-link {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-form-section { background: var(--bg-light); }

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-form-content .section-tag { margin-bottom: 16px; }

.contact-form-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.35;
}

.contact-form-content > p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-benefits { display: flex; flex-direction: column; gap: 12px; }

.contact-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text);
}
.contact-benefit i { color: var(--success); }

.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196,58,43,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--primary); }

.form-note {
    font-size: 0.8rem;
    color: var(--text-lighter);
    text-align: center;
    margin-top: 14px;
}

/* Map */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.faq-category {
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.faq-category:hover { border-color: var(--primary); color: var(--primary); }
.faq-category.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.faq-category-content { display: none; }
.faq-category-content.active { display: block; }

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover { background: rgba(196,58,43,0.03); }

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 16px;
}

.faq-toggle {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 800px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.8;
}

.faq-answer ul { padding-left: 20px; }
.faq-answer ul li {
    list-style: disc;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}

.faq-answer a { color: var(--primary); font-weight: 500; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tours-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 100px; --nav-height: 70px; --top-bar-height: 30px; }

    .top-bar { font-size: 0.65rem; }
    .top-bar-info { gap: 10px; justify-content: center; }
    .top-bar-info span:nth-child(1) { display: none; }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .section-desc { font-size: 1rem; }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-list { flex-direction: column; gap: 16px; }
    .hamburger { display: flex; }
    .header-actions .btn { display: none; }

    .hero { height: 70vh; min-height: 500px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-arrow { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .tours-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .about-text h2 { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }

    .page-banner { height: 250px; }
    .page-banner-content h1 { font-size: 2.2rem; }

    .tour-detail-card { grid-template-columns: 1fr; }
    .tour-detail-image { min-height: 220px; }
    .tour-detail-body { padding: 24px; }
    .tour-detail-body h2 { font-size: 1.3rem; }
    .tour-detail-highlights { grid-template-columns: 1fr; }

    .cta-title { font-size: 2rem; }

    .tour-filter { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .cta-actions { flex-direction: column; align-items: center; }
    .tour-detail-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   TOUR DETAIL PAGES
   ============================================ */
.tour-detail-hero {
    margin-top: var(--header-height);
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.tour-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.8) 100%);
}
.tour-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 50px;
    max-width: 800px;
}
.tour-detail-hero-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}
.tour-detail-hero-breadcrumb a { color: rgba(255,255,255,0.7); }
.tour-detail-hero-breadcrumb a:hover { color: #fff; }
.tour-detail-hero-breadcrumb span { color: rgba(255,255,255,0.9); }
.tour-detail-hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.tour-detail-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.tour-detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.tour-detail-hero-meta i { margin-right: 6px; }
.tour-detail-hero-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}
.tour-detail-hero-price .price-from {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}
.tour-detail-hero-price .price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}
.tour-detail-hero-price .price-per {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* Tour Layout */
.tour-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    align-items: start;
}
.tour-main { min-width: 0; }
.tour-section { margin-bottom: 50px; }
.tour-section h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.tour-section p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.highlight-item {
    display: flex;
    gap: 16px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.highlight-item:hover { box-shadow: var(--shadow); }
.highlight-icon { font-size: 2rem; flex-shrink: 0; }
.highlight-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.highlight-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 30px;
}
.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.itinerary-item {
    position: relative;
    padding-bottom: 32px;
    padding-left: 30px;
}
.itinerary-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary);
}
.itinerary-item:last-child { padding-bottom: 0; }
.itinerary-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.itinerary-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.itinerary-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Included/Excluded */
.included-excluded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.included, .excluded {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 24px;
}
.included h4 { color: var(--success); margin-bottom: 14px; font-size: 1rem; }
.excluded h4 { color: var(--text-lighter); margin-bottom: 14px; font-size: 1rem; }
.included h4 i, .excluded h4 i { margin-right: 8px; }
.included ul li, .excluded ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.included i { color: var(--success); }
.excluded i { color: var(--text-lighter); }

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.info-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
}
.info-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.info-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.info-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; line-height: 1.5; }

/* Sidebar */
.tour-sidebar { position: sticky; top: calc(var(--header-height) + 30px); }
.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    justify-content: center;
}
.sidebar-price .price-label { font-size: 0.9rem; color: var(--text-lighter); }
.sidebar-price .price-amount { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.sidebar-price .price-unit { font-size: 0.9rem; color: var(--text-lighter); }
.sidebar-features { margin-bottom: 24px; }
.sidebar-features li {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-features i { color: var(--success); }
.sidebar-card .btn-block { margin-bottom: 10px; }
.sidebar-benefits li {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-benefits i { color: var(--primary); width: 20px; }
.contact-sidebar-link {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 0;
}
.contact-sidebar-link i { color: var(--primary); width: 24px; }

/* Sidebar QR Codes */
.sidebar-qr-codes {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}
.sidebar-qr {
    text-align: center;
}
.sidebar-qr img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
    display: block;
    margin: 0 auto 4px;
}
.sidebar-qr span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Contact Page QR Codes */
.contact-qr-codes {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
}
.contact-qr {
    text-align: center;
}
.contact-qr img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
    display: block;
    margin: 0 auto 6px;
}
.contact-qr span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .tour-layout { grid-template-columns: 1fr; }
    .tour-sidebar { position: static; max-width: 400px; margin: 0 auto; }
    .highlights-grid { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .tour-detail-hero { height: 400px; }
    .tour-detail-hero-content h1 { font-size: 2rem; }
    .tour-detail-hero-price .price-amount { font-size: 2.2rem; }
    .tour-detail-hero-meta { gap: 12px; font-size: 0.85rem; }
    .tour-section h2 { font-size: 1.4rem; }
    .included-excluded { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE OPTIMIZATION ENHANCEMENTS
   ============================================ */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .tour-detail-hero-content h1 { font-size: 2.2rem; }
    .tour-detail-hero-content { max-width: 600px; }
    .tour-detail-hero-price .price-amount { font-size: 2.5rem; }
    .container { padding: 0 20px; }
    .section { padding: 70px 0; }
    .section-header { margin-bottom: 45px; }
    .footer-brand p { font-size: 0.9rem; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Header */
    .header-inner { padding: 0 16px; }
    .logo-text { font-size: 1.1rem; }
    .logo-icon { font-size: 1.3rem; }
    
    /* Hero */
    .hero-title { font-size: 2rem; line-height: 1.3; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-actions .btn-outline { border-color: rgba(255,255,255,0.5); }
    
    /* Sections */
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .section-desc { font-size: 0.95rem; }
    
    /* Tour cards */
    .tour-detail-card { 
        grid-template-columns: 1fr; 
        border-radius: 12px;
        overflow: hidden;
    }
    .tour-detail-image { min-height: 200px; }
    .tour-detail-body { padding: 20px 16px; }
    .tour-detail-body h2 { font-size: 1.25rem; }
    .tour-detail-highlights { grid-template-columns: 1fr; gap: 6px; }
    .tour-detail-highlights li { font-size: 0.88rem; }
    .tour-detail-footer { 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
    }
    .price-amount { font-size: 1.8rem; }
    
    /* Tour detail pages */
    .tour-detail-hero { height: 350px; }
    .tour-detail-hero-content { padding: 40px 0 30px; }
    .tour-detail-hero-content h1 { font-size: 1.8rem; }
    .tour-detail-hero-price .price-amount { font-size: 2rem; }
    .tour-detail-hero-meta { 
        flex-wrap: wrap; 
        gap: 10px; 
        font-size: 0.8rem; 
    }
    .tour-section { padding: 40px 0; }
    .tour-section h2 { font-size: 1.3rem; }
    .tour-section p, .tour-section li { font-size: 0.92rem; }
    
    /* Sidebar */
    .tour-sidebar { 
        position: static !important; 
        max-width: 100%; 
        margin: 0;
    }
    .sidebar-card { padding: 16px; }
    .sidebar-card h3 { font-size: 1.05rem; }
    .contact-sidebar-link { font-size: 0.85rem; padding: 6px 0; }
    
    /* Itinerary timeline */
    .timeline-item { padding-left: 40px; }
    .timeline-item::before { left: 12px; }
    .timeline-item::after { left: 7px; top: 0; }
    
    /* Pricing table */
    .pricing-table { font-size: 0.85rem; }
    .pricing-table th, .pricing-table td { padding: 10px 8px; }
    
    /* Included/Excluded */
    .included-excluded { grid-template-columns: 1fr; gap: 20px; }
    
    /* Info cards */
    .info-cards { grid-template-columns: 1fr; }
    
    /* Highlights grid */
    .highlights-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .highlight-item { padding: 16px; }
    
    /* Footer */
    .footer { padding: 50px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand p { font-size: 0.88rem; }
    .footer-col h4 { font-size: 1rem; margin-bottom: 12px; }
    .footer-col ul li { margin-bottom: 8px; }
    .footer-col ul li a { font-size: 0.88rem; }
    .footer-contact p { font-size: 0.85rem; }
    .footer-bottom p { font-size: 0.8rem; }
    .footer-social { gap: 10px; }
    .footer-social a { width: 34px; height: 34px; font-size: 0.9rem; }
    
    /* CTA */
    .cta-title { font-size: 1.6rem; }
    .cta-text { font-size: 0.95rem; }
    .cta-actions { flex-direction: column; gap: 12px; }
    .cta-actions .btn { width: 100%; }
    
    /* Page banner */
    .page-banner { height: 200px; }
    .page-banner-content h1 { font-size: 1.8rem; }
    .page-banner-content p { font-size: 0.9rem; }
    
    /* Contact form */
    .contact-form-grid { grid-template-columns: 1fr; }
    .form-group { margin-bottom: 16px; }
    .form-group input, .form-group textarea, .form-group select { 
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px 14px;
    }
    
    /* About page */
    .about-grid { grid-template-columns: 1fr; }
    .about-text h2 { font-size: 1.4rem; }
    .about-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.8rem; }
    
    /* Testimonials */
    .testimonial-card { padding: 24px 20px; }
    .testimonial-text { font-size: 0.92rem; }
    
    /* Search overlay */
    .search-overlay-input { font-size: 16px; }
    
    /* Back to top */
    .back-to-top { 
        bottom: 70px; 
        right: 16px; 
        width: 40px; 
        height: 40px; 
        font-size: 0.9rem;
    }
    
    /* Filter tabs - horizontal scroll */
    .tour-filter .container { padding: 0 16px; }
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }
    .filter-tab {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .section-title { font-size: 1.4rem; }
    .tour-detail-body h2 { font-size: 1.1rem; }
    .tour-detail-hero-content h1 { font-size: 1.5rem; }
    .tour-detail-hero-price .price-amount { font-size: 1.7rem; }
    .price-amount { font-size: 1.5rem; }
    .highlights-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-number { font-size: 1.8rem; }
    .footer-social a { width: 30px; height: 30px; font-size: 0.8rem; }
    .cta-title { font-size: 1.4rem; }
    .page-banner-content h1 { font-size: 1.5rem; }
    .tour-detail-highlights li { font-size: 0.82rem; }
    .tour-detail-includes p { font-size: 0.82rem; }
    .pricing-table { font-size: 0.78rem; }
    .pricing-table th, .pricing-table td { padding: 8px 6px; }
    .btn { padding: 10px 20px; font-size: 0.88rem; }
    .btn-lg { padding: 12px 24px; font-size: 0.92rem; }
    .back-to-top { bottom: 60px; right: 12px; }
    
    /* Make tour card footer stack on very small screens */
    .tour-detail-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .tour-detail-footer .btn { width: 100%; text-align: center; }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
    .logo-text { font-size: 1rem; }
    .container { padding: 0 12px; }
    .section { padding: 40px 0; }
    .tour-detail-body { padding: 16px 12px; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .tour-detail-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    .feature-card:hover {
        transform: none;
    }
    .btn:hover {
        transform: none;
    }
    a:hover {
        text-decoration: underline;
    }
}

/* Landscape mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .hero { height: 100vh; min-height: 400px; }
    .hero-content { padding-top: 30px; }
}

/* Print optimization for PDF itinerary */
@media print {
    .header, .footer, .tour-sidebar, .back-to-top, 
    .similar-tours, .cta-section, .hamburger, .nav-search,
    .nav, .header-actions, .tour-detail-hero-overlay {
        display: none !important;
    }
    .tour-detail-hero {
        height: auto;
        min-height: auto;
        background: none !important;
    }
    .tour-detail-hero-content {
        padding: 20px 0;
        color: #000;
    }
    .tour-detail-hero-breadcrumb,
    .tour-detail-hero-breadcrumb a,
    .tour-detail-hero-content h1,
    .tour-detail-hero-meta,
    .tour-detail-hero-price {
        color: #000 !important;
    }
    .tour-detail-hero-price .price-amount { color: #c43a2b !important; }
    .tour-layout {
        grid-template-columns: 1fr !important;
    }
    .tour-section { padding: 20px 0; }
    body { font-size: 12pt; line-height: 1.5; }
    .container { max-width: 100%; padding: 0 15px; }
    .timeline-item { page-break-inside: avoid; }
    .highlight-item { page-break-inside: avoid; }
    a { color: #000; text-decoration: none; }
    a[href]:after {
        content: "";
    }
}

/* ============================================
   Blog & Travel Guide Styles
   ============================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #b03020) 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}
.blog-hero h1 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2.6rem;
    margin-bottom: 12px;
}
.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0 60px;
}
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.blog-card-image { height: 200px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta {
    display: flex; gap: 14px; font-size: 0.82rem;
    color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-card-category { color: var(--primary-color); font-weight: 600; }
.blog-card-body h3 {
    font-size: 1.25rem; line-height: 1.4; margin: 0;
}
.blog-card-body h3 a { color: var(--text); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--primary-color); }
.blog-card-body p {
    font-size: 0.95rem; color: var(--text-light); line-height: 1.7; flex: 1;
}
.blog-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px;
}
.blog-card-link {
    color: var(--primary-color); font-weight: 600; font-size: 0.9rem;
    text-decoration: none;
}
.blog-card-link:hover { text-decoration: underline; }

/* Blog article page */
.blog-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 20px 70px;
}
.blog-article-head { text-align: center; margin-bottom: 40px; }
.blog-article-head .blog-card-meta { justify-content: center; margin-bottom: 12px; }
.blog-article-head h1 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2.2rem; line-height: 1.3; margin-bottom: 16px;
}
.blog-article-head .blog-hero-img {
    width: 100%; border-radius: 12px; margin: 20px 0 0;
    max-height: 420px; object-fit: cover;
}
.blog-article-body { line-height: 1.9; font-size: 1.05rem; color: #333; }
.blog-article-body h2 {
    font-size: 1.55rem; margin: 36px 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary-color);
}
.blog-article-body h3 { font-size: 1.25rem; margin: 26px 0 10px; color: var(--primary-color); }
.blog-article-body p { margin-bottom: 16px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 16px 22px; }
.blog-article-body li { margin-bottom: 8px; }
.blog-article-body strong { color: var(--text); }

/* Blog Two-Column Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}
.blog-main { min-width: 0; }
.blog-sidebar { position: sticky; top: calc(var(--header-height) + 30px); }
.blog-sidebar .sidebar-card {
    background: var(--bg-light, #f8f9fa);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color, #e9ecef);
}
.blog-sidebar .sidebar-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.blog-sidebar .sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar .sidebar-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    font-size: 14px;
}
.blog-sidebar .sidebar-card li:last-child { border-bottom: none; }
.blog-sidebar .sidebar-card a {
    color: var(--primary-color);
    text-decoration: none;
}
.blog-sidebar .sidebar-card a:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; max-width: 400px; margin: 0 auto; }
}
.blog-article-body .info-box {
    background: var(--bg-light); border-left: 4px solid var(--primary-color);
    padding: 16px 20px; border-radius: 8px; margin: 20px 0;
}
.blog-article-body .info-box h4 { margin-bottom: 8px; color: var(--primary-color); }
.blog-cta {
    background: var(--bg-light); border-radius: 12px; padding: 28px;
    margin: 40px 0 0; text-align: center;
}
.blog-cta h3 { margin-bottom: 8px; color: var(--primary-color); }
.blog-cta p { margin-bottom: 18px; color: var(--text-light); }
.tour-faq { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.tour-faq-item { border: 1px solid var(--border-color, rgba(0,0,0,.08)); border-radius: 10px; background: var(--bg-light); padding: 14px 16px; }
.tour-faq-item h3 { margin: 0 0 6px; font-size: 1rem; color: var(--primary-color); }
.tour-faq-item p { margin: 0; }
.languages-section { padding: 60px 0; }
.languages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.language-card { border: 1px solid var(--border-color, rgba(0,0,0,.08)); border-radius: 12px; background: var(--bg-light); padding: 18px; text-align: center; }
.language-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #fff; background: var(--primary-color, #185FA5); border-radius: 6px; padding: 3px 10px; margin-bottom: 10px; }
.language-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text-color); }
.language-card p { margin: 0; font-size: 0.84rem; color: var(--text-light); line-height: 1.5; }
.feature-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.feature-langs span { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--primary-color, #185FA5); border: 1px solid var(--primary-color, #185FA5); border-radius: 5px; padding: 2px 8px; }
.tours-intro { text-align: center; padding: 40px 0 8px; }
.tours-intro h2 { font-size: 1.6rem; margin: 0 0 10px; font-family: var(--font-serif, Georgia, serif); }
.tours-intro p { max-width: 800px; margin: 0 auto; color: var(--text-light, #666); font-size: 0.95rem; line-height: 1.6; }
.tours-catnav { padding: 20px 0; }
.tours-catnav .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.catnav-chip { display: inline-block; padding: 8px 16px; border-radius: 30px; background: var(--bg-light, #f5f5f5); border: 1px solid var(--border-color, rgba(0,0,0,.1)); color: var(--text-color, #222); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.catnav-chip:hover { background: var(--primary, #185FA5); color: #fff; }
.featured-tours { padding-top: 20px; }
.wa-btn { margin-left: 4px; }
.cat-anchor { display: block; scroll-margin-top: 80px; }

/* ===== Split header (Asia Odyssey Travel style) ===== */
.header-split {
    position: relative;               /* flow with page, like reference site */
    height: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.header-split .header-row-top {
    background: #DE2910;                 /* China red */
    color: #fff;
}
.header-split .hrt-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.header-split .hrt-logo { color: #fff; font-size: 1.4rem; }
.header-split .hrt-logo .logo-text { color: #fff; }
.header-split .hrt-logo .logo-highlight { color: #ffd700; }
.header-split .hrt-contact { display: flex; align-items: center; gap: 22px; }
.header-split .hc-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.82rem; font-weight: 500; white-space: nowrap;
}
.header-split .hc-item i { color: #ffd700; font-size: 0.95rem; }
.header-split .header-row-nav { background: #fff; border-top: 1px solid rgba(0,0,0,0.05); }
.header-split .hrn-inner {
    display: flex; align-items: center; justify-content: center;
    height: 54px; gap: 16px;
}
.header-split .hrn-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 768px) {
    .header-split .hrt-contact { display: none; }
    .header-split .hrt-inner { justify-content: center; }
    .header-split .hrn-inner { height: auto; padding: 8px 0; flex-wrap: wrap; }
}
@media (max-width: 580px) {
    .header-split .hrt-logo { font-size: 1.1rem; }
}

/* ===== Nav inline search box ===== */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light, #f5f5f5);
    border: 1px solid var(--border, #e2e2e2);
    border-radius: 30px;
    padding: 6px 14px;
    cursor: text;
    min-width: 180px;
    transition: border-color .2s;
}
.nav-search:hover { border-color: var(--primary, #DE2910); }
.nav-search i { color: #999; font-size: 0.9rem; }
.nav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.82rem;
    color: var(--text, #222);
    width: 100%;
}
@media (max-width: 992px) {
    .nav-search { display: none; }
}

/* ============================================
   MOBILE ENHANCEMENTS - SEO/GEO Optimized
   ============================================ */

/* Safe area for iPhone notch / dynamic island */
@supports (padding: max(0px)) {
    .header-split {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .back-to-top {
        bottom: max(70px, calc(env(safe-area-inset-bottom) + 70px));
    }
}

/* Touch-friendly minimum target sizes (WCAG 2.5.5) */
@media (max-width: 768px) {
    .btn, .nav-list a, .footer-col ul li a,
    .filter-tab, .catnav-chip, .tour-detail-footer .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-list a {
        padding: 12px 16px;
    }
    
    .footer-col ul li a {
        padding: 8px 0;
        display: block;
    }
}

/* Smooth scrolling with offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

/* Better text rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Better tap highlight removal */
a, button, .btn, .filter-tab, .catnav-chip {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Active state feedback for touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    .tour-detail-card:active {
        transform: scale(0.99);
    }
    .nav-list a:active {
        background: rgba(222, 41, 16, 0.1);
        border-radius: 6px;
    }
}

/* Mobile bottom safe area for fixed elements */
@media (max-width: 768px) {
    .hero-actions {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 2px;
    }
    .tour-detail-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print optimization for mobile */
@media print and (max-width: 768px) {
    .header, .footer, .tour-sidebar, .back-to-top {
        display: none !important;
    }
    body {
        font-size: 12pt;
    }
}

/* ============================================
   Floating Contact Buttons (WeChat & WhatsApp)
   ============================================ */

.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.float-btn:active {
    transform: translateY(0) scale(0.98);
}

.float-btn-wechat {
    background: linear-gradient(135deg, #07c160, #06ad56);
}

.float-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-btn .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* WeChat QR Modal */
.wechat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wechat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wechat-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wechat-modal-overlay.active .wechat-modal {
    transform: scale(1) translateY(0);
}

.wechat-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.wechat-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.wechat-modal h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.wechat-modal p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.wechat-modal .qr-code {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.wechat-modal .qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wechat-modal .wechat-id {
    background: #f8f8f8;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-top: 8px;
}

.wechat-modal .wechat-id span {
    color: #07c160;
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .float-btn .tooltip {
        display: none;
    }

    .wechat-modal {
        padding: 24px 20px;
        margin: 16px;
    }

    .wechat-modal .qr-code {
        width: 180px;
        height: 180px;
    }

    .wechat-modal h3 {
        font-size: 18px;
    }
}

/* Safe area support for notch devices */
@supports (padding: max(0px)) {
    .floating-contact {
        bottom: max(24px, env(safe-area-inset-bottom));
        right: max(24px, env(safe-area-inset-right));
    }
}

@media (max-width: 768px) {
    @supports (padding: max(0px)) {
        .floating-contact {
            bottom: max(16px, env(safe-area-inset-bottom));
            right: max(16px, env(safe-area-inset-right));
        }
    }
}

/* ============================================
   Photo Gallery Section
   ============================================ */

.photo-gallery {
    margin-top: 40px;
}

.photo-gallery h2 {
    font-size: 28px;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 24px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px 16px 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .photo-gallery h2 {
        font-size: 24px;
    }

    .gallery-item .gallery-caption {
        opacity: 1;
        transform: translateY(0);
        font-size: 12px;
        padding: 12px 10px 8px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

