:root {
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --accent: #f2c94c;
    --accent-ink: #241d05;
    --success: #16b981;
    --danger: #e75b52;
    --shadow: 0 18px 50px rgba(13, 25, 40, .10);
}

body.theme-light {
    --page: #f4f7f5;
    --surface: #ffffff;
    --surface-soft: #edf3ef;
    --surface-strong: #dce8e1;
    --text: #14221f;
    --muted: #65736f;
    --faint: #89948f;
    --line: #d8e1dc;
    --primary: #0a755f;
    --primary-hover: #075e4c;
    --primary-soft: #dff4ed;
    --header: rgba(255, 255, 255, .92);
    --header-line: rgba(21, 42, 36, .10);
    --card-shadow: 0 8px 25px rgba(18, 46, 37, .055);
}

body.theme-dark {
    --page: #08111e;
    --surface: #111c2b;
    --surface-soft: #162436;
    --surface-strong: #203149;
    --text: #f3f6fa;
    --muted: #a1afc0;
    --faint: #7e8ca0;
    --line: #26374d;
    --primary: #55d5ac;
    --primary-hover: #74e6c0;
    --primary-soft: #143c36;
    --header: rgba(8, 17, 30, .92);
    --header-line: rgba(255, 255, 255, .09);
    --card-shadow: 0 12px 35px rgba(0, 0, 0, .18);
    --shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: color .25s ease, background-color .25s ease;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 850; }
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    color: var(--text);
    background: var(--header);
    border-bottom: 1px solid var(--header-line);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none; }
.brand-logo { display: block; width: clamp(178px, 19vw, 220px); height: auto; }
.brand-logo-light { display: none; }
.theme-light .brand-logo-dark { display: none; }
.theme-light .brand-logo-light { display: block; }
.brand-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.source-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; }
.source-link:hover { color: var(--text); border-color: var(--primary); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 15%, transparent); }
.theme-switcher { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); }
.theme-switcher button { min-width: 39px; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.theme-switcher button span { font-size: 13px; font-weight: 900; }
.theme-switcher button em { display: none; font-style: normal; font-size: 10px; font-weight: 800; }
.theme-switcher button:hover { color: var(--text); }
.theme-switcher button.is-active { color: var(--text); background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.settings-trigger {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}
.settings-trigger:hover { color: var(--primary); border-color: var(--primary); }
.settings-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.site-ad-section { padding: 14px 0 0; }
.ad-carousel {
    position: relative;
    height: clamp(192px, 16.5vw, 234px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
}
.ad-carousel-track { position: absolute; inset: 0; }
.ad-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 25px 72px;
    color: #111;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.ad-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transform: translateX(0); }
.ad-slide:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.ad-slide.is-yellow { color: #15150f; background: linear-gradient(120deg, #ffe413, #ffec5c); }
.ad-slide.is-navy { color: #fff; background: linear-gradient(120deg, #0c1728, #1a3152); }
.ad-slide.is-green { color: #fff; background: linear-gradient(120deg, #075e4c, #0b8a70); }
.ad-media { position: absolute; z-index: 0; inset: 0; display: block; }
.ad-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ad-slide.has-image::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 13, 21, .88) 0%, rgba(5, 13, 21, .56) 52%, rgba(5, 13, 21, .2) 100%); }
.ad-slide.has-image { color: #fff; }
.ad-slide-content { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px 12px; }
.site-ad-label {
    width: max-content;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    opacity: .74;
}
.ad-brand { font-size: clamp(20px, 2.5vw, 29px); line-height: 1; font-weight: 950; letter-spacing: -.8px; }
.ad-headline { min-width: 0; overflow: hidden; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.15; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.ad-slide-content small { grid-column: 1 / -1; font-size: 12px; line-height: 1.45; font-weight: 650; opacity: .78; }
.site-ad-cta {
    position: relative;
    z-index: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border-radius: 12px;
    color: #fff;
    background: #111;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.ad-slide.is-navy .site-ad-cta { color: #111; background: #ffe413; }
.ad-slide.is-green .site-ad-cta { color: #075e4c; background: #fff; }
.ad-slide.has-image .site-ad-cta { color: #111; background: #fff; }
.ad-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 17, 30, .42);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}
.ad-control:hover { background: rgba(8, 17, 30, .68); }
.ad-control:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ad-control.is-previous { left: 15px; }
.ad-control.is-next { right: 15px; }
.ad-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 10px;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}
.ad-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 0 0 1px rgba(8, 17, 30, .22);
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}
.ad-dots button.is-active { width: 22px; background: #fff; }

.weather-section { padding: 10px 0 0; }
.weather-strip {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(230px, auto) minmax(280px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 92%, var(--primary-soft));
    box-shadow: var(--card-shadow);
}
.weather-clock,
.weather-current { min-width: 0; display: flex; align-items: center; gap: 10px; }
.weather-clock > div,
.weather-current > div { min-width: 0; display: grid; gap: 2px; }
.weather-clock strong,
.weather-current strong { overflow: hidden; color: var(--text); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.weather-clock span:not(.weather-clock-icon),
.weather-current span:not(.weather-condition-icon) { overflow: hidden; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.weather-clock-icon,
.weather-condition-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-soft);
}
.weather-clock-icon svg,
.weather-condition-icon svg,
.location-icon-svg,
.nav-icon-svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.weather-source { justify-self: end; color: var(--muted); font-size: 9px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.weather-source:hover { color: var(--primary); }
.weather-current.is-loading .weather-condition-icon { animation: nearby-spin 1s linear infinite; }
.weather-current.is-ready .weather-condition-icon { color: var(--accent-ink); background: var(--accent); }
.weather-current.is-error .weather-condition-icon { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.has-site-ad .summary-section { padding-top: 32px; }

.summary-section { padding: 58px 0 35px; }
.summary-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); align-items: end; gap: 60px; }
.eyebrow { margin: 0 0 11px; color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: 1.6px; }
.summary-section h1 { margin: 0; font-size: clamp(41px, 5vw, 66px); line-height: 1.02; letter-spacing: -3px; }
.summary-copy { max-width: 570px; margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.day-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--card-shadow); }
.day-card-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.day-card-top span { max-width: 190px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.day-card-top strong { padding: 7px 10px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 12px; white-space: nowrap; }
.day-card-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.day-card-nav a, .day-card-nav span { font-size: 12px; font-weight: 850; text-decoration: none; }
.day-card-nav a { color: var(--text); }
.day-card-nav a:hover { color: var(--primary); }
.day-card-nav span { color: var(--faint); opacity: .55; }
.daylight-note { margin: 17px 0 0; color: var(--faint); font-size: 10px; line-height: 1.45; }
.daylight-note span { color: var(--accent); }

.nearby-section { padding: 32px 0 42px; }
.nearby-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface));
    box-shadow: var(--shadow);
}
.nearby-intro { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nearby-icon {
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: var(--page);
    background: var(--primary);
}
.theme-dark .nearby-icon { color: #071711; }
.nearby-icon .location-icon-svg { width: 25px; height: 25px; stroke-width: 2; }
.nearby-intro .eyebrow { margin-bottom: 6px; }
.nearby-intro h1,
.nearby-intro h2 { margin: 0; font-size: clamp(25px, 3vw, 33px); line-height: 1.1; letter-spacing: -1px; }
.nearby-intro p:last-child { max-width: 660px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.nearby-action { min-width: 245px; text-align: right; }
.location-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--page);
    background: var(--primary);
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 23%, transparent);
}
.theme-dark .location-button { color: #071711; }
.location-button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.location-button:disabled { cursor: wait; opacity: .72; transform: none; }
.location-button .location-icon-svg { width: 19px; height: 19px; }
.location-button.is-loading .location-icon-svg { animation: nearby-spin 1s linear infinite; }
.nearby-action p { max-width: 285px; margin: 9px 0 0; color: var(--faint); font-size: 9px; line-height: 1.45; text-align: left; }
.nearby-action p span { color: var(--success); }
.nearby-status {
    margin-top: 13px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
    line-height: 1.5;
}
.nearby-status.is-info { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.nearby-status.is-success { color: var(--primary); border-color: color-mix(in srgb, var(--success) 50%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.nearby-status.is-warning { color: var(--text); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.nearby-status.is-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.nearby-results { padding-top: 40px; }
.nearby-heading { margin-bottom: 18px; }
.nearby-footnote { margin: 16px 0 0; color: var(--faint); font-size: 10px; line-height: 1.55; }
.nearby-card { min-height: 292px; border-top: 3px solid var(--primary); }
.nearby-card-top { display: grid; justify-items: start; gap: 6px; }
.distance-label { color: var(--primary); font-size: 17px; font-weight: 900; }
.service-badge { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.service-badge.is-normal { color: var(--primary); background: var(--primary-soft); }
.service-badge.is-duty { color: var(--accent-ink); background: var(--accent); }
.service-badge.is-on-call { color: #fff; background: var(--danger); }
.nearby-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: -4px 0 10px; color: var(--faint); font-size: 10px; font-weight: 750; }
.nearby-empty { grid-column: 1 / -1; min-height: 0; padding: 34px 24px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--muted); background: var(--surface); text-align: center; }
.nearby-empty strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 16px; }
.list-intro { margin-bottom: 16px; }
.list-intro .eyebrow { margin-bottom: 5px; }
.list-intro h2 { margin: 0; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.8px; }
.list-intro-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.list-intro-row .list-intro { margin-bottom: 0; }
.list-day-nav {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 13px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: 10px;
}
.list-day-nav a { color: var(--text); font-weight: 850; text-decoration: none; white-space: nowrap; }
.list-day-nav a:hover { color: var(--primary); }
.list-day-nav span { color: var(--faint); opacity: .55; white-space: nowrap; }
.list-day-nav strong { color: var(--primary); font-size: 10px; white-space: nowrap; }

.filter-section { padding: 0 0 44px; }
.filter-card { display: grid; grid-template-columns: 165px 185px minmax(260px, 1fr) auto; gap: 11px; align-items: end; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.filter-card > * { min-width: 0; max-width: 100%; }
.filter-card label { display: grid; gap: 7px; min-width: 0; max-width: 100%; overflow: hidden; }
.filter-card label > span:not(.date-control) { color: var(--muted); font-size: 11px; font-weight: 850; }
.filter-card input, .filter-card select { display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; color: var(--text); background: var(--surface-soft); }
.filter-card select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6b68' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 14px;
}
.filter-card input[type="date"] {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.date-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 48px;
    padding: 0 13px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--surface-soft);
}
.date-display {
    display: block;
    min-width: 0;
    overflow: hidden;
    font: inherit;
    line-height: 1;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.date-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.filter-card input::placeholder { color: var(--faint); }
.filter-card input:focus, .filter-card select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.filter-card input[type="date"]:focus { box-shadow: none; }
.submit-button { height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-sm); color: var(--page); background: var(--primary); cursor: pointer; font-weight: 900; }
.theme-dark .submit-button { color: #071711; }
.submit-button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.clear-link { grid-column: 1 / -1; justify-self: end; color: var(--primary); font-size: 12px; font-weight: 850; }
.region-chips { display: flex; gap: 8px; margin-top: 13px; padding: 2px 1px 7px; overflow-x: auto; scrollbar-width: thin; }
.region-chips a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 800; text-decoration: none; }
.region-chips a:hover { color: var(--text); border-color: var(--primary); }
.region-chips a.is-active { color: var(--page); border-color: var(--primary); background: var(--primary); }
.theme-dark .region-chips a.is-active { color: #071711; }

.results-section { padding: 0 0 75px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.5vw, 39px); letter-spacing: -1.5px; }
.result-count { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; line-height: 1.25; font-weight: 800; text-align: center; }
.region-block + .region-block { margin-top: 35px; }
.region-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.region-heading h3 { margin: 0; font-size: 20px; }
.region-heading span { padding: 5px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-strong); font-size: 10px; font-weight: 850; }
.pharmacy-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pharmacy-card { position: relative; min-height: 310px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--card-shadow); transition: border-color .18s ease, transform .18s ease, background-color .25s ease; }
.pharmacy-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.card-main { flex: 1; display: flex; flex-direction: column; padding-top: 20px; }
.card-main h4 { margin: 0; font-size: 17px; line-height: 1.28; }
.address { min-height: 57px; margin: 11px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.pharmacy-phone { margin-top: auto; color: var(--text); font-size: 15px; font-weight: 900; text-decoration: none; }
.pharmacy-phone:hover { color: var(--primary); }
.hours { text-align: right; }
.hours span, .hours strong { display: block; }
.hours span { color: var(--faint); font-size: 9px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.hours strong { margin-top: 3px; font-size: 15px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.card-actions a { min-height: 42px; display: grid; place-items: center; padding: 0 11px; border-radius: 10px; font-size: 11px; font-weight: 900; text-decoration: none; }
.call-button { color: var(--text); border: 1px solid var(--line); background: var(--surface-soft); }
.call-button:hover { border-color: var(--primary); }
.map-button { color: var(--page); background: var(--primary); }
.theme-dark .map-button { color: #071711; }
.map-button:hover { background: var(--primary-hover); }
.verified { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; }
.verified span { color: var(--success); font-weight: 900; }
.notice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 42px; padding: 18px; border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--line)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.notice-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font: 900 18px/1 Georgia, serif; }
.notice strong { display: block; margin-bottom: 3px; font-size: 13px; }
.notice p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notice a { color: var(--text); font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.empty-state { padding: 55px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.empty-state > span { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font: 900 20px/1 Georgia, serif; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { max-width: 600px; margin: 0 auto 17px; color: var(--muted); line-height: 1.6; }
.empty-state a { color: var(--primary); font-weight: 900; }

.site-footer { color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { min-height: 136px; display: grid; grid-template-columns: 1fr auto minmax(300px, 1.5fr); align-items: center; gap: 30px; }
.footer-brand { display: grid; gap: 5px; }
.footer-brand strong { color: var(--text); font-size: 15px; }
.footer-brand span,
.footer-inner p { font-size: 10px; line-height: 1.55; }
.footer-inner p { margin: 0; }
.footer-rights { color: var(--text); font-weight: 800; }
.footer-disclaimer { max-width: 530px; justify-self: end; }
.mobile-app-nav { display: none; }

.settings-dialog[hidden] { display: none; }
.settings-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.settings-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(3, 10, 17, .64); backdrop-filter: blur(5px); cursor: default; }
.settings-sheet {
    position: relative;
    width: min(760px, 100%);
    max-height: min(90dvh, 920px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--text);
    background: var(--page);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}
.settings-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.settings-header .eyebrow { margin-bottom: 3px; }
.settings-header h2 { margin: 0; font-size: 28px; letter-spacing: -1px; }
.settings-close { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: 27px; line-height: 1; }
.settings-close:hover { color: var(--text); border-color: var(--primary); }
.settings-content { min-height: 0; overflow-y: auto; display: grid; gap: 14px; padding: 18px; overscroll-behavior: contain; }
.settings-group { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.settings-group-heading { margin-bottom: 14px; }
.settings-group-heading h3 { margin: 0; font-size: 17px; }
.settings-group-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.settings-row > span { min-width: 0; display: grid; gap: 3px; }
.settings-row strong { font-size: 13px; }
.settings-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.settings-row select,
.settings-secondary-button,
.settings-theme button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-soft);
    font-size: 11px;
    font-weight: 800;
}
.settings-row select { min-width: 150px; padding: 0 34px 0 11px; }
.settings-secondary-button { padding: 0 13px; cursor: pointer; }
.settings-theme { display: inline-flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.settings-theme button { min-height: 31px; padding: 0 10px; border: 0; cursor: pointer; }
.settings-theme button.is-active { color: var(--page); background: var(--primary); }
.theme-dark .settings-theme button.is-active { color: #071711; }
.settings-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.settings-facts div { min-width: 0; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); }
.settings-facts div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.settings-facts dt { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .55px; }
.settings-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 750; }
.settings-link-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.settings-link-row a,
.settings-link-row button { min-height: 39px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-soft); font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.settings-link-row a:hover,
.settings-link-row button:hover { border-color: var(--primary); }
.settings-privacy { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { min-width: 0; display: grid; gap: 6px; }
.contact-form label > span { color: var(--muted); font-size: 10px; font-weight: 850; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: var(--surface-soft); font-size: 13px; }
.contact-form input,
.contact-form select { height: 43px; padding: 0 11px; }
.contact-form textarea { resize: vertical; min-height: 105px; padding: 11px; line-height: 1.5; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-submit { min-height: 44px; border: 0; border-radius: 10px; color: var(--page); background: var(--primary); cursor: pointer; font-weight: 900; }
.theme-dark .contact-submit { color: #071711; }
.contact-submit:disabled { cursor: wait; opacity: .65; }
.contact-status { min-height: 0; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.contact-status.is-success { color: var(--success); }
.contact-status.is-error { color: var(--danger); }
.contact-email { margin: 0; color: var(--muted); font-size: 10px; }
.contact-email a { color: var(--primary); font-weight: 850; }
.contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.has-settings-open { overflow: hidden; }

@media (min-width: 1080px) {
    .theme-switcher button.is-active em { display: inline; }
}

@media (max-width: 980px) {
    .summary-grid { grid-template-columns: 1fr 330px; gap: 30px; }
    .nearby-panel { grid-template-columns: 1fr; gap: 18px; }
    .nearby-action { min-width: 0; }
    .nearby-action p { max-width: none; }
    .filter-card { grid-template-columns: 1fr 1fr; }
    .search-field, .submit-button { grid-column: 1 / -1; }
    .pharmacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weather-strip { grid-template-columns: 1fr 1fr; }
    .weather-source { grid-column: 1 / -1; justify-self: start; }
    .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 28px; }
    .footer-disclaimer { grid-column: 1 / -1; justify-self: start; }
    .list-intro-row { align-items: start; }
}

@media (max-width: 720px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .shell { width: min(100% - 26px, 1160px); }
    .header-inner { min-height: 72px; gap: 10px; }
    .brand-logo { display: none !important; }
    .brand-mobile { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
    .brand-mobile-icon { width: 45px; height: 45px; display: block; flex: 0 0 auto; }
    .brand-mobile-copy { min-width: 0; display: grid; gap: 3px; }
    .brand-mobile-copy strong { display: flex; align-items: baseline; color: var(--text); font-size: 20px; line-height: .95; font-weight: 900; letter-spacing: -.65px; white-space: nowrap; }
    .brand-mobile-copy strong span:last-child { color: var(--primary); }
    .brand-mobile-copy small { display: block; max-width: 146px; color: var(--muted); font-size: 7.5px; line-height: 1.15; font-weight: 650; letter-spacing: -.08px; white-space: nowrap; }
    .source-link span:last-child { display: none; }
    .source-link { width: 35px; height: 35px; justify-content: center; padding: 0; }
    .header-tools { gap: 8px; }
    .settings-trigger { display: none; }
    .theme-switcher { padding: 3px; }
    .theme-switcher button { min-width: 32px; height: 29px; padding: 0 7px; }
    .site-ad-section { padding-top: 10px; }
    .ad-carousel { height: 177px; border-radius: 16px; }
    .ad-slide { gap: 10px; padding: 18px 46px 21px; }
    .ad-slide-content { grid-template-columns: 1fr; gap: 3px; }
    .site-ad-label { padding: 3px 6px; font-size: 7px; letter-spacing: .8px; }
    .ad-brand { font-size: 19px; letter-spacing: -.5px; }
    .ad-headline { grid-column: auto; font-size: 13px; }
    .ad-slide-content small { display: none; }
    .ad-slide.has-image::after { background: linear-gradient(90deg, rgba(5, 13, 21, .9), rgba(5, 13, 21, .55)); }
    .site-ad-cta { min-height: 36px; padding-inline: 10px; border-radius: 10px; font-size: 9px; }
    .ad-control { width: 30px; height: 30px; font-size: 20px; }
    .ad-control.is-previous { left: 8px; }
    .ad-control.is-next { right: 8px; }
    .ad-dots { bottom: 7px; }
    .ad-dots button { width: 6px; height: 6px; }
    .ad-dots button.is-active { width: 18px; }
    .weather-section { padding-top: 8px; }
    .weather-strip { min-height: 0; grid-template-columns: 1fr; gap: 9px; padding: 11px; border-radius: 14px; }
    .weather-clock,
    .weather-current { gap: 8px; }
    .weather-clock-icon,
    .weather-condition-icon { width: 33px; height: 33px; border-radius: 10px; }
    .weather-clock strong,
    .weather-current strong { font-size: 11px; }
    .weather-clock span:not(.weather-clock-icon),
    .weather-current span:not(.weather-condition-icon) { font-size: 9px; }
    .weather-source { grid-column: auto; justify-self: start; padding-left: 41px; font-size: 8px; }
    .nearby-section { padding: 24px 0 35px; }
    .nearby-panel { padding: 18px; }
    .nearby-intro { align-items: flex-start; }
    .nearby-icon { width: 44px; height: 44px; border-radius: 13px; }
    .nearby-intro h1,
    .nearby-intro h2 { font-size: 23px; }
    .list-intro-row { display: grid; gap: 12px; }
    .list-day-nav { width: 100%; grid-template-columns: 1fr auto 1fr; border-radius: 14px; }
    .list-day-nav a:last-child,
    .list-day-nav span:last-child { justify-self: end; }
    .filter-card { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 14px; }
    .filter-card label, .filter-card input, .filter-card select, .filter-card .submit-button { width: 100%; min-width: 0; max-width: 100%; }
    .filter-card input, .filter-card select { font-size: 16px; }
    .filter-card .date-field,
    .filter-card .date-control { width: 100%; min-width: 0; max-width: 100%; }
    .search-field, .submit-button { grid-column: auto; }
    .filter-section { padding-bottom: 35px; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 27px; }
    .pharmacy-list { grid-template-columns: 1fr; }
    .pharmacy-card { min-height: 0; padding: 17px; }
    .notice { grid-template-columns: auto 1fr; align-items: start; }
    .notice a { grid-column: 2; }
    .footer-inner { grid-template-columns: 1fr; gap: 17px; padding-block: 27px; }
    .footer-disclaimer { grid-column: auto; }
    .mobile-app-nav {
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: calc(64px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        color: var(--muted);
        background: color-mix(in srgb, var(--header) 96%, transparent);
        box-shadow: 0 -8px 30px rgba(8, 17, 30, .09);
        backdrop-filter: blur(18px);
    }
    .mobile-app-nav a,
    .mobile-app-nav button {
        min-width: 0;
        min-height: 49px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        padding: 4px 2px;
        border: 0;
        border-radius: 12px;
        color: inherit;
        background: transparent;
        text-decoration: none;
        cursor: pointer;
        transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }
    .mobile-app-nav a.is-active,
    .mobile-app-nav button.is-active:not(.is-primary) {
        color: var(--primary-strong);
        background: color-mix(in srgb, var(--primary) 12%, transparent);
    }
    .mobile-app-nav a:focus-visible,
    .mobile-app-nav button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
    .mobile-app-nav span { display: grid; place-items: center; line-height: 1; }
    .mobile-app-nav .nav-icon-svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .mobile-app-nav small { overflow: hidden; max-width: 100%; font-size: 9px; line-height: 1; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-app-nav .is-primary {
        position: relative;
        min-height: 56px;
        margin-top: -13px;
        color: #071711;
        background: var(--primary);
        border-radius: 18px;
        box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 30%, transparent);
    }
    .mobile-app-nav .is-primary .nav-icon-svg { width: 23px; height: 23px; }
    .mobile-app-nav .is-primary.is-active { transform: translateY(-2px); }
    .settings-dialog { align-items: end; padding: 0; }
    .settings-sheet { width: 100%; max-height: calc(100dvh - 18px); border-radius: 22px 22px 0 0; }
    .settings-header { padding: 17px 18px; }
    .settings-content { padding: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .settings-group { padding: 15px; }
    .settings-row { align-items: flex-start; flex-direction: column; gap: 9px; }
    .settings-row select,
    .settings-secondary-button,
    .settings-theme { width: 100%; }
    .settings-theme { display: grid; grid-template-columns: repeat(3, 1fr); }
    .settings-facts { grid-template-columns: 1fr; }
    .settings-facts div:nth-child(even) { padding-left: 0; border-left: 0; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .nearby-intro { display: grid; gap: 12px; }
    .nearby-panel { padding: 16px; }
    .nearby-action p { font-size: 8.5px; }
    .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
    .section-heading > div { min-width: 0; }
    .section-heading h2 { overflow-wrap: anywhere; }
    .result-count { max-width: none; justify-self: end; white-space: nowrap; }
    .card-actions { width: 100%; }
}

@media (max-width: 380px) {
    .source-link { display: none; }
    .header-inner { gap: 8px; }
    .brand-mobile { gap: 7px; }
    .brand-mobile-icon { width: 40px; height: 40px; }
    .brand-mobile-copy strong { font-size: 18px; letter-spacing: -.55px; }
    .brand-mobile-copy small { max-width: 130px; font-size: 7px; line-height: 1.05; white-space: nowrap; }
    .theme-switcher button { min-width: 30px; padding-inline: 6px; }
    .ad-slide { padding-inline: 40px; }
    .ad-brand { font-size: 17px; }
    .ad-headline { font-size: 12px; }
    .site-ad-cta { max-width: 78px; padding-inline: 8px; white-space: normal; text-align: center; }
    .mobile-app-nav small { font-size: 8px; }
}

@media (max-width: 340px) {
    .section-heading { grid-template-columns: 1fr; }
    .result-count { justify-self: start; }
    .list-day-nav { grid-template-columns: 1fr 1fr; }
    .list-day-nav strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@keyframes nearby-spin {
    to { transform: rotate(360deg); }
}

/* Kalıcı bölge SEO sayfaları */
.region-seo-page { min-height: 100dvh; }
.seo-site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--surface); }
.seo-site-header .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }
.seo-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.seo-brand img { width: 54px; height: 54px; flex: 0 0 54px; }
.seo-brand > span { display: grid; gap: 1px; }
.seo-brand strong { font-size: 24px; line-height: 1; letter-spacing: -.8px; }
.seo-brand strong span { color: var(--primary); }
.seo-brand small { color: var(--muted); font-size: 9px; font-weight: 700; }
.seo-header-link,
.seo-primary-link,
.seo-secondary-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 16px;
    color: var(--text);
    background: var(--surface);
    font-weight: 900;
    text-decoration: none;
}
.seo-primary-link { border-color: var(--primary); color: #071711; background: var(--primary); }
.region-hero { padding: 42px 0 28px; }
.seo-breadcrumbs { margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.seo-breadcrumbs a { color: var(--primary); text-decoration: none; }
.seo-breadcrumbs span { padding: 0 7px; }
.region-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); align-items: end; gap: 46px; }
.region-hero h1 { max-width: 760px; margin: 8px 0 14px; font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: -2.6px; }
.region-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.region-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.region-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.region-summary > div { min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface); box-shadow: var(--card-shadow); }
.region-summary dt { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.region-summary dd { margin: 0; font-size: 22px; line-height: 1.1; font-weight: 950; }
.region-directory { padding: 18px 0 58px; }
.region-list-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.region-list-header h2 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -1.2px; }
.region-list-header p:last-child { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.region-list-header .list-day-nav { flex: 0 0 auto; }
.region-directory .pharmacy-list { margin-top: 0; }
.region-directory .card-main h3 { margin: 12px 0 9px; font-size: 19px; line-height: 1.2; }
.region-directory .card-address { min-height: 44px; }
.region-notice { margin-top: 28px; }
.region-help { padding: 0 0 58px; }
.region-help-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 20px; }
.region-faq,
.region-links { border: 1px solid var(--line); border-radius: 24px; padding: 26px; background: var(--surface); box-shadow: var(--card-shadow); }
.region-faq h2,
.region-links h2 { margin: 6px 0 18px; font-size: 26px; }
.region-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.region-faq summary { cursor: pointer; font-weight: 900; }
.region-faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.region-link-list { display: flex; flex-wrap: wrap; gap: 9px; }
.region-link-list a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--text); background: var(--surface-soft); font-size: 12px; font-weight: 900; text-decoration: none; }
.region-link-list a[aria-current="page"] { border-color: var(--primary); color: #071711; background: var(--primary); }
.seo-not-found { display: grid; min-height: 100dvh; place-items: center; padding: 24px; background: var(--page); }
.seo-not-found > div { width: min(520px, 100%); border: 1px solid var(--line); border-radius: 24px; padding: 32px; text-align: center; background: var(--surface); }
.seo-not-found h1 { margin-top: 0; }
.seo-not-found p { color: var(--muted); }

@media (max-width: 860px) {
    .region-hero-grid,
    .region-help-grid { grid-template-columns: 1fr; }
    .region-summary { max-width: 520px; }
}

@media (max-width: 620px) {
    .seo-site-header .header-inner { min-height: 72px; }
    .seo-brand { gap: 9px; }
    .seo-brand img { width: 44px; height: 44px; flex-basis: 44px; }
    .seo-brand strong { font-size: 20px; }
    .seo-brand small { font-size: 7px; }
    .seo-header-link { min-height: 40px; padding-inline: 11px; font-size: 12px; }
    .region-hero { padding-top: 26px; }
    .seo-breadcrumbs { margin-bottom: 16px; font-size: 11px; }
    .region-hero h1 { font-size: clamp(36px, 12vw, 52px); letter-spacing: -1.8px; }
    .region-lead { font-size: 15px; }
    .region-hero-actions { display: grid; grid-template-columns: 1fr; }
    .region-summary { grid-template-columns: 1fr; }
    .region-list-header { display: grid; align-items: start; }
    .region-list-header .list-day-nav { width: 100%; }
    .region-faq,
    .region-links { border-radius: 19px; padding: 20px; }
}
