/* Site chrome (21.11.2026): one header and one page head for every public page.
 * Loaded last (site-tail.min.css on SSR + homepage, injected by scripts/sync-public-shell.mjs on static pages),
 * so it settles the older per-page header rules (layout.css, pages.css, home-discovery.css). */

/* ===== Site header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    padding: 0;
    background: rgb(255 255 255 / .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e3eaf5;
    box-shadow: none;
    z-index: var(--z-sticky, 1000);
}
.header.scrolled { box-shadow: 0 4px 18px rgb(16 33 60 / .08); }
[data-theme="dark"] .header { background: rgb(15 23 42 / .96); border-bottom-color: #26354d; }
.header .container { display: block; max-width: var(--container-max); padding-inline: var(--container-padding); }
.header .nav { height: var(--header-height); width: auto; padding: 0; gap: 1.25rem; }
.header .logo { flex-shrink: 0; }
.header .logo .logo-img { height: 36px; width: auto; max-width: 160px; }
.header .nav-links { gap: 1.35rem; }
.header .nav-links > a,
.header .nav-links .dropdown-toggle { padding: .5rem 0; font-size: .875rem; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.header .nav-links > a.active,
.header .nav-links .dropdown-toggle.active { color: var(--primary); font-weight: 600; }
.header .nav-links > a.active::after { width: 100%; }
.header .nav-links a.nav-map-link { padding: .35rem .75rem; }
.header .nav-links a.nav-map-link.active { color: #fff; }
.header .nav-dropdown .dropdown-menu .dropdown-label { display: block; padding: .55rem 1.25rem .25rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); }
.header .nav-dropdown .dropdown-menu .dropdown-divider { height: 1px; margin: .35rem 0; background: var(--gray-100); }
.header .nav-dropdown .dropdown-menu a[aria-current="page"] { color: var(--primary); background: var(--primary-bg); }
.header .nav-actions { gap: .6rem; }
.header .search-box { position: relative; padding: 0 .85rem; height: 38px; border: 1px solid transparent; }
.header .search-box input { width: 170px; height: 36px; padding: 0; font-size: .8125rem; color: var(--dark); }
.header .theme-toggle { width: 36px; height: 36px; }
[data-theme="dark"] .header .search-box { background: #1b2940; border-color: #2c3d57; }
[data-theme="dark"] .header .search-box input { color: #e3edff; }
@media (max-width: 1180px) {
    .header .nav-links { gap: 1rem; }
    .header .search-box input { width: 120px; }
}
@media (max-width: 1024px) {
    .header .nav-actions .search-box { display: none; }
}
@media (max-width: 768px) {
    .header .nav { gap: .5rem; }
    .header .logo .logo-img { height: 30px; max-width: 140px; }
    .header .nav-actions { margin-left: auto; gap: .4rem; }
    .header .nav-map-icon { width: 36px; height: 36px; }
    .header .theme-toggle { width: 36px; height: 36px; }
    .header .mobile-menu-btn { width: 40px; height: 40px; }
}

/* Mobile menu: section label for the "Keşfet" group (same look as "Diğer Sayfalar"). */
.mobile-nav .mobile-nav-label + a { margin-top: 0; }

/* Destination suggestions of the header and mobile menu search (js/home-route-search.js). */
.home-route-options { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 100%; min-width: 230px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--public-line); border-radius: 12px; background: var(--public-surface); box-shadow: 0 12px 30px #10213c26; }
.home-route-options[hidden] { display: none; }
.home-route-options [role=option] { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; min-height: 52px; border-radius: 8px; cursor: pointer; color: var(--public-text); }
.home-route-options [role=option]:hover,
.home-route-options [aria-selected=true] { background: var(--public-soft); outline: 1px solid var(--public-line); }
.home-route-options strong { display: block; font-size: 14px; }
.home-route-options span { display: block; font-size: 11px; color: var(--public-muted); margin-top: 2px; }
.home-route-options .route-option-country strong::before { content: '◎ '; color: var(--public-accent); font-weight: 700; }
.route-option-message { padding: 12px; color: var(--public-muted); font-size: 12px; }
.route-options-header { top: calc(100% + 8px); left: auto; right: 0; width: 300px; text-align: left; }
.mobile-search-input { position: relative; }
.route-options-mobile { top: calc(100% + 6px); }

/* ===== Page head (functions/_shared/page-head.mjs) =====
 * Breadcrumb + H1 + one lead line + one small fact line. Colour band or photo, never taller than it needs. */
.ph { position: relative; overflow: hidden; margin: 0; padding: 0; min-height: 0; text-align: left; color: #fff; background: linear-gradient(118deg, #06245e 0%, #0b56cc 58%, #1d8ff0 100%); }
.ph--violet { background: linear-gradient(118deg, #1a1150 0%, #3d33c9 58%, #2f8cf5 100%); }
.ph--teal { background: linear-gradient(118deg, #052a3f 0%, #086ea8 58%, #18b3c7 100%); }
.ph--photo { background: #0a2a5c; }
[data-theme="dark"] .ph { filter: saturate(.9) brightness(.88); }
/* Static pages: the header is fixed, nothing above the band pushes it down. */
.ph--offset { margin-top: var(--header-height); }
.ph__image, .ph__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph__image { object-fit: cover; object-position: center 45%; }
.ph__shade { background: linear-gradient(90deg, rgb(2 17 43 / .92), rgb(5 40 96 / .72) 55%, rgb(5 40 96 / .35)); }
.ph__inner { position: relative; z-index: 1; padding-top: 1.1rem; padding-bottom: 1.35rem; }
.ph__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0 0 .5rem; font-size: .78rem; color: rgb(255 255 255 / .72); }
.ph__crumbs a { color: rgb(255 255 255 / .86); text-decoration: none; }
.ph__crumbs a:hover { color: #fff; text-decoration: underline; }
.ph__crumbs i { font-size: .55rem; opacity: .7; }
.ph__crumbs [aria-current] { color: #fff; font-weight: 600; }
.ph__title { margin: 0; max-width: 920px; color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.05rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ph__title span { color: #a9e0ff; }
.ph__lead { max-width: 760px; margin: .45rem 0 0; color: rgb(255 255 255 / .86); font-size: .97rem; line-height: 1.5; }
.ph__lead a { color: #fff; text-decoration: underline; }
.ph__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .7rem 0 0; padding: 0; list-style: none; font-size: .82rem; color: rgb(255 255 255 / .9); }
.ph__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.ph__meta i { color: #a9e0ff; font-size: .78rem; }
.ph__meta strong { color: #fff; font-weight: 800; }
.ph__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.ph__cta { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .45rem .95rem; border-radius: 999px; background: #fff; color: #0a3a8a; font-size: .85rem; font-weight: 700; text-decoration: none; }
.ph__cta:hover { background: #e8f2ff; color: #062a66; }
.ph__cta--ghost { background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .35); color: #fff; }
.ph__cta--ghost:hover { background: rgb(255 255 255 / .2); color: #fff; }
.ph a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ph--center .ph__inner { text-align: center; }
.ph--center .ph__crumbs, .ph--center .ph__meta, .ph--center .ph__actions { justify-content: center; }
.ph--center .ph__title, .ph--center .ph__lead { margin-inline: auto; }

@media (max-width: 768px) {
    .ph--offset { margin-top: var(--header-height-mobile); }
    .ph__inner { padding-top: .75rem; padding-bottom: .95rem; }
    .ph__crumbs { flex-wrap: nowrap; overflow: hidden; margin-bottom: .35rem; font-size: .72rem; white-space: nowrap; }
    .ph__crumbs > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .ph__title { font-size: 1.25rem; line-height: 1.2; }
    .ph__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: .3rem; font-size: .86rem; line-height: 1.4; }
    /* Phones: the two most important facts only, so the first content is reached quickly. */
    .ph__meta { gap: .2rem .75rem; margin-top: .45rem; font-size: .76rem; }
    .ph__meta li:nth-child(n+3) { display: none; }
    .ph__actions { margin-top: .6rem; }
    /* Secondary links (RSS, CSV, "Tüm tarihler"...) stay on desktop; phones keep only a primary action. */
    .ph__cta--ghost { display: none; }
    .ph__actions:not(:has(.ph__cta:not(.ph__cta--ghost))) { display: none; }
    .ph__cta { min-height: 36px; padding: .4rem .85rem; font-size: .8rem; }
}
