:root {
    --aegean: #2b8cbe;
    --aegean-dark: #1a6a94;
    --aegean-light: #e8f4fa;
    --cream: #faf7f2;
    --cream-dark: #f0ebe3;
    --navy: #1a2744;
    --navy-light: #2d3f5f;
    --text: #2c3345;
    --text-muted: #5c6478;
    --white: #ffffff;
    --border: #e2ddd4;
    --shadow: 0 4px 24px rgba(26, 39, 68, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --header-h: 64px;
    --touch-min: 44px;
    --container-pad: 1rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
    max-width: 100%;
    overscroll-behavior-x: none;
}

body.nav-open,
body.filters-open {
    overflow: hidden;
}

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

a { color: var(--aegean-dark); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
    outline: 2px solid var(--aegean);
    outline-offset: 2px;
}

.container {
    width: min(1200px, 100% - 2 * var(--container-pad));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px; left: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-top {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(250, 247, 242, 0.96);
    border-bottom: 1px solid var(--border);
}

main {
    max-width: 100%;
    overflow-x: clip;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    gap: 0.15rem;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--aegean-light);
    color: var(--aegean-dark);
}

.nav-backdrop {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.65rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    border-radius: var(--radius-sm);
    z-index: 1;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--aegean-dark) 100%);
    color: var(--white);
    padding: 4rem 0 5rem;
}

.hero-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    max-width: 18ch;
    margin: 0 0 2rem;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 560px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1.125rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.hero-search button,
.btn-primary {
    padding: 0.875rem 1.5rem;
    min-height: var(--touch-min);
    background: var(--aegean);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    touch-action: manipulation;
}

.hero-search button:hover,
.btn-primary:hover {
    background: var(--aegean-dark);
    color: var(--white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 0.75rem 1.25rem;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
    transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover { border-color: var(--aegean); color: var(--aegean-dark); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream-dark); }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h2,
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--navy);
    margin: 0;
}

.link-arrow {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}
.link-arrow::after { content: ' →'; }

.page-header {
    padding: 3rem 0 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.page-header p { color: var(--text-muted); margin: 0.75rem 0 0; max-width: 60ch; font-size: 1.1rem; }

.page-header-dark { background: var(--navy); color: var(--white); }
.page-header-dark h1 { color: var(--white); }
.page-header-dark p { color: rgba(255,255,255,0.75); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--aegean-dark);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: var(--touch-min);
    padding: 0.25rem 0.5rem;
    touch-action: manipulation;
}

.card-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card-grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card-grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.place-card,
.route-card,
.food-card,
.lost-card,
.people-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}

@media (hover: hover) {
    .place-card:hover,
    .route-card:hover,
    .card-link:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        border-color: var(--border);
    }
}

.card-link:active {
    transform: scale(0.99);
}

.place-card h3,
.route-card h2,
.route-card h3,
.food-card h2,
.food-card h3,
.lost-card h2,
.people-card h2 {
    font-size: 1.25rem;
    margin: 0.5rem 0 0.35rem;
    color: var(--navy);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.card-link:hover { color: inherit; }

.card-link h2,
.card-link h3 { color: var(--navy); }

.meta { font-size: 1rem; color: var(--text-muted); margin: 0.35rem 0; }

.place-card.compact { padding: 1rem 1.25rem; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--aegean-light);
    color: var(--aegean-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-light { background: var(--cream-dark); color: var(--text-muted); }
.badge-dark { background: var(--navy-light); color: var(--white); }

.route-stops { font-size: 1rem; color: var(--text-muted); margin-top: 0.5rem; }

.list-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.list-toolbar input,
.list-toolbar select,
.filter-group input,
.filter-group select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
}

/* Explore */
.explore-section {
    position: relative;
}

.explore-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.filters-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 39, 68, 0.45);
    z-index: 400;
    opacity: 0;
    transition: opacity 0.25s;
}

.filters-backdrop.visible {
    display: block;
    opacity: 1;
}

.filters-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.filters-close,
.filters-apply {
    display: none;
}

.filters-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filters-panel-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--navy);
}

.filters-top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.filter-dropdown {
    position: relative;
    margin-bottom: 0.75rem;
}

.filter-dropdown-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    min-height: var(--touch-min);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
}

.filter-dropdown-meta {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.75rem;
}

.filter-dropdown-search {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.filter-dropdown-options {
    max-height: 220px;
    overflow-y: auto;
}

.filter-dropdown-options .checkbox {
    font-size: 0.95rem;
    padding: 0.15rem 0;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label,
.filter-group legend {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.filter-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.filter-group select,
.filter-group input[type="search"] {
    width: 100%;
    font-size: 1rem;
    padding: 0.625rem 0.75rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    min-height: var(--touch-min);
    padding: 0.15rem 0;
}

.checkbox input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    accent-color: var(--aegean);
}

.filters-toggle { display: none; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.detail-sidebar .info-card {
    position: static;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
    position: static;
}

#results-count {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 1.05rem;
}

/* Detail */
.detail-hero {
    background: var(--white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 0.35rem; }

.detail-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--navy);
    margin: 0.5rem 0;
}

.detail-meta {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0.75rem;
}

.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 65ch; }

.detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.detail-content { max-width: 72ch; }

.detail-block { margin-bottom: 2rem; }
.detail-block h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
}

.prose { color: var(--text); line-height: 1.75; font-size: 1.05rem; }

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.info-card-wide { max-width: 100%; }

.info-card h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--navy);
    font-family: var(--font-display);
}

.info-list div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

@media (min-width: 640px) {
    .info-list div {
        grid-template-columns: 1fr 1.5fr;
        gap: 0.75rem;
    }
}

.info-list dt { color: var(--text-muted); font-weight: 600; }
.info-list dd { margin: 0; color: var(--text); }

.detail-source { margin-top: 1rem; }

.disclaimer-box {
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}

.disclaimer-box p { margin: 0 0 0.75rem; }
.disclaimer-box p:last-child { margin-bottom: 0; }

.route-stops-list {
    padding-left: 1.25rem;
    line-height: 1.8;
}

.route-stops-list li { margin-bottom: 0.25rem; }

.route-stops-list a {
    font-weight: 600;
    color: var(--aegean-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.stat-card span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0;
}

.food-card.card-link {
    color: inherit;
    text-decoration: none;
}

/* Tags */
.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: var(--aegean-light);
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--aegean-dark);
}

.tag-link {
    text-decoration: none;
    font-weight: 600;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

.tag-link:hover {
    background: var(--aegean);
    color: var(--white);
}

/* Zeynep */
.zeynep-page {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.zeynep-box {
    max-width: 400px;
    margin-inline: auto;
    text-align: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.zeynep-box h1 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0 0 1.5rem;
}

.zeynep-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zeynep-form input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
}

.zeynep-message {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
}

.footer-brand p {
    margin: 0.5rem auto 0;
    max-width: 42ch;
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.05rem;
}

.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.85rem; margin: 0; opacity: 0.6; }

/* Misc */
.empty-state,
.empty-page {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-page h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--navy);
    margin: 0;
}

.prose-page { max-width: 68ch; margin-inline: auto; }
.prose-page-center { text-align: center; }
.prose-page-center ul { list-style-position: inside; padding-left: 0; }

.page-header-center { text-align: center; }
.page-header-center p { margin-inline: auto; }

.prose-page h2 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 2rem 0 0.75rem;
    font-size: 1.5rem;
}
.prose-page p,
.prose-page li { font-size: 1.05rem; }
.prose-page ul { padding-left: 1.25rem; }
.prose-page li { margin-bottom: 0.35rem; }

/* Responsive — Tablet & Mobile */
@media (max-width: 900px) {
    :root {
        --container-pad: 1rem;
        --header-h: 60px;
    }

    body { font-size: 16px; }

    .section { padding: 2.5rem 0; }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .page-header { padding: 2rem 0 1.5rem; }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-search {
        flex-direction: column;
        max-width: none;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
        font-size: 16px;
    }

    .list-toolbar {
        flex-direction: column;
    }

    .list-toolbar input,
    .list-toolbar select {
        width: 100%;
        font-size: 16px;
        min-height: var(--touch-min);
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }

    .site-top {
        position: static;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--cream);
        overflow-x: clip;
    }

    .header-inner {
        overflow-x: clip;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(26, 39, 68, 0.45);
        z-index: 250;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }

    .nav-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav:not(.open) {
        display: none !important;
    }

    .site-nav.open {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(320px, 88vw);
        max-width: 88vw;
        height: 100dvh;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: calc(var(--header-h) + 1rem) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transform: none;
        z-index: 280;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 0.15rem;
        visibility: visible;
        pointer-events: auto;
        clip-path: none;
    }

    .site-nav a {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
    }

    .filters-backdrop.visible { display: block; }

    .filters-panel:not(.open) {
        display: none !important;
    }

    .filters-panel.open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(360px, 92vw);
        max-width: 92vw;
        height: 100dvh;
        z-index: 450;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transform: none;
        padding-bottom: 6rem;
        -webkit-overflow-scrolling: touch;
        visibility: visible;
        pointer-events: auto;
        clip-path: none;
    }

    .explore-section,
    .explore-layout,
    .explore-results {
        overflow-x: clip;
        max-width: 100%;
    }

    .filters-panel-header {
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
    }

    .filters-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: var(--touch-min);
        padding: 0 1rem;
        background: none;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--navy);
        cursor: pointer;
    }

    .filters-apply {
        display: none;
    }

    .filters-apply:not([hidden]) {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: min(360px, 92vw);
        z-index: 460;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        font-size: 1.05rem;
    }

    .filters-toggle { display: inline-flex; }

    .filter-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.25rem 0 0.5rem 0.25rem;
        margin-bottom: 0.25rem;
    }

    .filter-dropdown-options {
        max-height: 200px;
    }

    .filter-group select,
    .filter-group input[type="search"],
    .filter-dropdown-search {
        font-size: 16px;
        min-height: var(--touch-min);
    }

    .detail-hero { padding: 1.75rem 0; }

    .detail-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        word-break: break-word;
    }

    .detail-grid .detail-sidebar {
        order: -1;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn-primary,
    .detail-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .breadcrumb {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .zeynep-box {
        margin-inline: var(--container-pad);
        padding: 2rem 1.5rem;
    }

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

    .card-grid-3 {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Desktop polish */
@media (min-width: 901px) {
    body { font-size: 18px; }

    :root { --container-pad: 1.5rem; }

    .site-top {
        position: sticky;
        top: 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex !important;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        margin-left: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        clip-path: none !important;
        overflow: visible;
    }

    .explore-layout {
        grid-template-columns: 300px 1fr;
        gap: 2.5rem;
    }

    .filters-panel {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
        align-self: start;
        max-height: none;
    }

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

    .hero {
        padding: 5rem 0 5.5rem;
    }

    .hero h1 {
        max-width: 20ch;
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .section { padding: 4rem 0; }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .card-grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .place-card,
    .route-card,
    .food-card,
    .lost-card,
    .people-card,
    .card-link {
        padding: 1.5rem;
    }

    .site-nav a {
        font-size: 0.95rem;
    }

    .logo { font-size: 1.65rem; }
}

@media (min-width: 1200px) {
    .explore-layout {
        grid-template-columns: 320px 1fr;
    }
}
