@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   KASTAMONU ŞEHİR REHBERİ — Modern City Guide
   Palette: Grayscale + Glass Effects
   ============================================================ */

:root {
    --white: #ffffff;
    --bg: #F5F5F7;
    --bg2: #EBEBED;
    --dark: #1C1C1E;
    --darker: #111113;
    --text: #1A1A1C;
    --muted: #8E8E93;
    --muted2: #AEAEB2;
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(255, 255, 255, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-dark: rgba(0, 0, 0, 0.45);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.22);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --font-serif: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.8;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   FLOATING GLASS HEADER — Transparan, havada duran
   ============================================================ */
.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1320px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initial state: dark glass with white text */
.site-header .logo {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 4px;
    transition: all 0.3s;
}

.site-header .nav-links a {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
    background: var(--white);
    color: var(--dark);
    opacity: 1;
}

.site-header .btn-cta {
    background: var(--white);
    color: var(--dark);
}

.site-header .btn-search-icon {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.site-header .btn-search-icon:hover {
    background: var(--white);
    color: var(--dark);
}

/* Scrolled state: solid white with dark text */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .logo {
    color: var(--dark);
}

.site-header.scrolled .nav-links {
    background: var(--bg);
    border-color: transparent;
}

.site-header.scrolled .nav-links a {
    color: var(--muted);
}

.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active {
    background: var(--dark);
    color: var(--white);
}

.site-header.scrolled .btn-cta {
    background: var(--dark);
    color: var(--white);
}

.site-header.scrolled .btn-search-icon {
    color: var(--dark);
    background: var(--bg);
}


.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-search-icon:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-cta {
    background: var(--dark);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-cta:hover {
    background: #333;
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    color: inherit;
    padding: 8px;
    margin-left: 8px;
    transition: color 0.3s;
}

.site-header.scrolled .mobile-menu-btn {
    color: var(--dark);
}

@media (max-width: 768px) {
    .site-header .btn-cta {
        display: none;
        /* Hide CTA on mobile to save space */
    }

    .mobile-menu-btn {
        display: block;
    }

    .site-header .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        margin-top: 12px;
        border-radius: var(--radius);
        opacity: 0;
        visibility: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    .site-header.scrolled .nav-links {
        background: var(--white);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .site-header .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-header .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
    }

    .site-header.scrolled .nav-links a {
        color: var(--dark);
    }
}

/* ============================================================
   HERO NAV — Dark glass overlay for homepage
   ============================================================ */
.hero-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1320px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-nav .logo {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--white);
}

.hero-nav .nav-pill {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 4px;
}

.hero-nav .nav-pill a {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition);
}

.hero-nav .nav-pill a:hover,
.hero-nav .nav-pill a.active {
    background: var(--white);
    color: var(--dark);
    opacity: 1;
}

.hero-nav .btn-book-nav {
    background: var(--white);
    color: var(--dark);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   HERO SECTION — Modern Slider
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--darker);
}

.hero-section .swiper,
.hero-section .swiper-wrapper,
.hero-section .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.0) 40%,
            rgba(0, 0, 0, 0.5) 75%,
            rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 60px 80px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.7;
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.hero-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Hero search bar — glass */
.hero-search {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    padding: 12px 16px;
    /* Scaled down */
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 440px;
    /* Scaled down */
    width: 100%;
}

.hero-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-body);
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search .search-btn {
    background: var(--white);
    color: var(--dark);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-search .search-btn:hover {
    background: #eee;
}

/* Hero progress/counter */
.hero-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}

.hero-count {
    font-size: 24px;
    font-weight: 700;
}

.hero-count sub {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.5;
}

.prog-bar-wrap {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.prog-bar-fill {
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-bg {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-title .dim {
    color: var(--muted);
    font-weight: 400;
}

.section-subtitle {
    font-size: 15px;
    color: var(--muted);
    max-width: 540px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* ============================================================
   CATEGORY CARDS — Icon Grid
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
    opacity: 1;
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--dark);
    transition: all var(--transition);
    overflow: hidden;
}

.cat-card:hover .cat-icon {
    background: var(--dark);
    color: var(--white);
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.cat-card p {
    font-size: 12px;
    color: var(--muted);
}

/* ============================================================
   PLACE CARDS — Modern glassmorphism
   ============================================================ */
.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.place-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.place-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    opacity: 1;
}

.place-card .card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.place-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.place-card:hover .card-img img {
    transform: scale(1.06);
}

.place-card .card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

.place-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.place-card .card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
}

.place-card .card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.place-card .card-location svg {
    flex-shrink: 0;
}

.place-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.btn-detail {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.btn-detail:hover {
    gap: 10px;
    opacity: 1;
}

/* ============================================================
   TOUR / POPULAR SWIPER — Horizontal
   ============================================================ */
.popular-section {
    overflow: hidden;
}

.popular-swiper {
    overflow: visible !important;
    padding: 0 48px;
}

.popular-swiper .swiper-slide {
    width: 340px !important;
}

.swiper-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.swiper-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition);
}

.swiper-nav-btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* ============================================================
   DISTRICTS SECTION
   ============================================================ */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.district-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.district-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.district-card:hover img {
    transform: scale(1.08);
}

.district-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}

.district-card .overlay h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.district-card .overlay span {
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================================
   FILTERS SIDEBAR (places/index)
   ============================================================ */
.filter-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h5 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    padding: 6px 0;
    cursor: pointer;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--dark);
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-filter:hover {
    background: #333;
}

/* ============================================================
   DETAIL PAGE — Place Detail
   ============================================================ */
.detail-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: var(--white);
}

.detail-hero .overlay h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.detail-hero .overlay .meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.75;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
    padding: 48px 0;
}

.detail-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.detail-content p,
.detail-content div {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Info sidebar card — glass */
.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-card);
}

.info-card h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dark);
}

.info-item .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
}

.info-item .value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.info-item a {
    color: var(--dark);
    font-weight: 600;
}

.btn-map {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: var(--bg);
    color: var(--dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-top: 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.btn-map:hover {
    background: var(--dark);
    color: var(--white);
    opacity: 1;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.gallery-grid .gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 280px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================================
   SUBPAGE HERO — Categories & Places listing
   ============================================================ */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    overflow: hidden;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .hero-text {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 40px;
}

.page-hero .hero-text h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-hero .hero-text p {
    font-size: 16px;
    opacity: 0.7;
    max-width: 480px;
    margin: 0 auto;
}

/* ============================================================
   FOOTER — Clean modern
   ============================================================ */
.site-footer {
    background: var(--darker);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 48px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .f-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--white);
    display: block;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter button {
    padding: 10px 20px;
    background: var(--white);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--white);
    color: var(--dark);
    opacity: 1;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    border: none;
    background: transparent;
    transition: all var(--transition);
}

.pagination li a:hover {
    background: var(--bg);
    color: var(--text);
    opacity: 1;
}

.pagination li.active span {
    background: var(--dark);
    color: var(--white);
}

.pagination li:first-child a,
.pagination li:last-child a {
    font-size: 0;
    padding: 0 8px;
}

.pagination li.disabled span {
    opacity: 0.3;
    cursor: default;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: #333;
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 32px 60px;
    }

    .places-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .capture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        top: 8px;
        width: calc(100% - 24px);
        padding: 0 16px;
        height: 56px;
    }

    .site-header .nav-links {
        display: none;
    }

    .hero-nav {
        height: 56px;
        padding: 0 16px;
        top: 8px;
        width: calc(100% - 24px);
    }

    .hero-nav .nav-pill {
        display: none;
    }

    .hero-h1 {
        font-size: 32px;
    }

    .hero-content {
        padding: 0 20px 48px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search input {
        width: 100%;
    }

    .section {
        padding: 48px 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .places-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive overrides for new Bento/Mosaic */
    .modern-bento-grid,
    .modern-cat-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .modern-bento-large,
    .modern-cat-large,
    .modern-cat-wide {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        height: 240px !important;
    }

    .modern-bento-item,
    .modern-cat-item {
        height: 200px !important;
    }

    .hero-h1 {
        font-size: 32px;
    }

    .hero-content {
        padding: 0 16px 32px;
    }

    .section-title {
        font-size: 28px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .modern-bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
    }

    .modern-bento-large {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        height: 280px !important;
    }

    .modern-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .modern-cat-wide {
        grid-column: 1 / -1 !important;
    }
}

/* ============================================================
   MODERN GRIDS (Base Desktop)
   ============================================================ */
.modern-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 16px;
}

.modern-bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #222;
    display: block;
}

.modern-bento-large {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.modern-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.modern-cat-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: block;
    background: #222;
}

.modern-cat-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.modern-cat-wide {
    grid-column: 2 / 4;
}

@media (max-width: 768px) {
    .districts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 24px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        padding: 16px 24px;
    }

    .popular-swiper {
        padding: 0 20px;
    }

    .popular-swiper .swiper-slide {
        width: 280px !important;
    }

    .page-hero {
        height: 35vh;
        min-height: 260px;
    }

    .detail-hero {
        height: 40vh;
    }

    .detail-hero .overlay {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 600px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .districts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   UTILITY / MISC
   ============================================================ */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* Swiper fixes */
.swiper-slide {
    flex-shrink: 0;
}

/* Smooth reveal animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* OLD COMPAT — hide legacy classes */
.hero-slider-wrap,
.tour-grid,
.tour-card,
.tour-img,
.tour-badge,
.tour-content,
.tour-meta,
.tour-title,
.tour-footer,
.btn-outline,
.hero-search-overlay,
.hero-search-btn,
.search-field {
    /* kept for backward compatibility with any remaining views */
}

/* Subpage hero compat */
.hero-slider-wrap {
    position: relative;
    overflow: hidden;
    background: var(--darker);
}

.hero-slider-wrap .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-wrap .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.slide-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 12px;
}

.slide-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Tour grid compat */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tour-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    opacity: 1;
}

.tour-img {
    height: 220px;
    overflow: hidden;
}

.tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-badge {
    display: inline-block;
    margin: -14px 0 0 16px;
    position: relative;
    z-index: 2;
    background: var(--dark);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.tour-content {
    padding: 16px 20px 20px;
}

.tour-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tour-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-outline {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

/* Sub-page search */
.hero-search-overlay {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
}

.hero-search-overlay form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text);
    outline: none;
}

.hero-search-btn {
    padding: 10px 24px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}