/* gorodovik.com — one stylesheet, no framework. Mobile first; the map or forecast is the first
   thing under the heading on every page. */
:root {
    --ink: #1c2530;
    --muted: #64707d;
    --line: #dfe4ea;
    --paper: #ffffff;
    --wash: #f4f6f8;
    --brand: #0b5cad;
    --brand-dark: #08457f;
    --accent: #1f8a4c;
    --warn: #b45309;
    --radius: 8px;
    --map-height: 62vh;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--wash);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 14px; font-weight: 650; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 28px 0 10px; font-weight: 650; }
p { margin: 0 0 10px; }
img { max-width: 100%; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 14px; }
.page { padding-top: 16px; padding-bottom: 28px; background: var(--paper); min-height: 70vh; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .875rem; margin: 6px 0 0; }

/* Header */
.site-header { background: #14212e; color: #fff; position: sticky; top: 0; z-index: 1200; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 52px; }
.site-header__brand { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.site-header__brand:hover { text-decoration: none; }
.site-header__toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: 1px solid #3b4a5a; border-radius: 6px; padding: 9px 8px; cursor: pointer; }
.site-header__toggle span { display: block; width: 20px; height: 2px; background: #fff; }
.site-nav { display: none; flex-basis: 100%; flex-direction: column; padding: 4px 0 12px; }
.site-nav.is-open { display: flex; }
.site-nav a { color: #d5dde6; padding: 9px 0; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav__languages { display: flex; gap: 12px; padding: 9px 0; color: #fff; }
.site-nav__languages a { padding: 0; }

/* Breadcrumbs */
.breadcrumbs { list-style: none; margin: 0 0 12px; padding: 0; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin: 0 7px; color: #b6bec7; }

/* Search box and form fields */
.search-box { position: relative; margin-bottom: 12px; }
.field, .search-box__input {
    width: 100%; font: inherit; color: inherit; background: #fff;
    border: 1px solid #c3cbd4; border-radius: var(--radius); padding: 11px 13px;
}
.field:focus, .search-box__input:focus { outline: 2px solid #9cc4ec; outline-offset: 0; border-color: var(--brand); }
.field-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.field-row .field { flex: 1 1 150px; }
.tool { margin-bottom: 12px; position: relative; }
.tool > .field + .field { margin-top: 8px; }
.share { margin: 12px 0; }
.share label { display: block; font-size: .875rem; color: var(--muted); margin-bottom: 4px; }

.button {
    display: inline-block; font: inherit; cursor: pointer; background: #fff; color: var(--brand);
    border: 1px solid var(--brand); border-radius: var(--radius); padding: 10px 16px;
}
.button:hover { background: var(--brand); color: #fff; text-decoration: none; }
.button--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.button--accent:hover { background: #17703d; border-color: #17703d; }

/* Suggestions under a search field */
.suggest { position: absolute; left: 0; right: 0; z-index: 1100; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #c3cbd4; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(20, 33, 46, .16); max-height: 320px; overflow-y: auto; }
.suggest li { padding: 9px 13px; cursor: pointer; }
.suggest li.is-active, .suggest li:hover { background: #e8f1fb; }
.suggest-wrap { position: relative; }

/* Maps */
.map-frame { margin: 0 -14px 12px; background: #e3e7ec; }
.map-frame iframe, #map { display: block; width: 100%; height: var(--map-height); min-height: 300px; max-height: 620px; border: 0; }
#map { z-index: 0; }
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 8px; }
.photo-grid figure { margin: 0; }
.photo-grid .map-frame { margin-bottom: 6px; }
.photo-grid .map-frame iframe { height: 340px; min-height: 0; }
.photo-grid figcaption { color: var(--muted); font-size: .9rem; }

/* Leaflet sizes its text in rem off the root; pin what visitors read. */
#map.leaflet-container { font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#map .leaflet-popup-content { font-size: 14px; line-height: 1.4; margin: 12px 14px; }
#map .leaflet-popup-content p { margin: 6px 0; }
.weather-marker { display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .92); border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); white-space: nowrap; font-weight: 600; font-size: 13px; padding-right: 6px; }
.weather-marker img { width: 34px; height: 34px; }

/* Tabs */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.tabs-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); color: var(--ink); font-size: .95rem; }
.tabs-nav a:hover { border-color: var(--brand); text-decoration: none; }
.tabs-nav a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs__buttons { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs__buttons button { font: inherit; background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 12px; color: var(--muted); cursor: pointer; }
.tabs__buttons button.is-active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* Lists */
.link-list { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 10px 2px; }
.card-list { list-style: none; margin: 0; padding: 0; }
.card-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; overflow-wrap: anywhere; }
.columns { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
.well { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.well p:last-child { margin-bottom: 0; }
.well--warning { color: var(--warn); font-weight: 600; }

/* Weather */
.weather-row { display: grid; grid-template-columns: 1fr; gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weather-row__main { display: flex; align-items: center; gap: 10px; }
.weather-row__time { font-weight: 650; font-size: 1.1rem; min-width: 52px; }
.weather-row__main strong { font-size: 1.15rem; }
.weather-row__details p { margin: 0; font-size: .9rem; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pagination a, .pagination strong, .pagination span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; }
.pagination strong { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination span { border-color: transparent; }

/* Ads: never touching a map, labelled, collapsed when unfilled. */
.ad-slot { margin: 18px 0; }
.ad-slot--after-map { margin-top: 24px; }
.ad-slot__label { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 2px; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

.site-footer { color: var(--muted); font-size: .875rem; padding: 18px 0 70px; }

@media (min-width: 720px) {
    h1 { font-size: 1.8rem; }
    .container { padding: 0 24px; }
    .page { padding-top: 22px; border-radius: 0 0 var(--radius) var(--radius); }
    .site-header__toggle { display: none; }
    .site-nav { display: flex; flex-basis: auto; flex-direction: row; gap: 22px; padding: 0; align-items: center; }
    .site-nav a { padding: 0; }
    .site-nav__languages { padding: 0; margin-left: 8px; }
    .map-frame { margin-left: 0; margin-right: 0; border-radius: var(--radius); overflow: hidden; }
    .map-frame iframe, #map { height: 520px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .link-list--columns { columns: 2; column-gap: 28px; border-top: 0; }
    .link-list--columns li { break-inside: avoid; }
    .columns { grid-template-columns: 1fr 1fr; }
    .weather-row { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1000px) {
    .link-list--columns { columns: 3; }
}
