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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-family);
  color: var(--color-text);
  background: #e8eef3;
  overflow-x: clip;
  max-width: 100vw;
  line-height: 1.5;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center top;
  opacity: 0.28;
  filter: saturate(0.85);
}

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 42, 58, 0.22) 0, #e8eef3 220px);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: 16px;
  padding-right: 16px;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #0b3a4d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: cover;
  background: #0284c7;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.72;
  letter-spacing: 0.01em;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.45rem;
  margin-left: auto;
  flex: 0 0 auto;
  position: relative;
  z-index: 60;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.header-nav-link:hover,
.header-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-nav-icon {
  display: block;
  flex-shrink: 0;
}

.header-search {
  position: relative;
  flex: 0 0 auto;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 36, 52, 0.18);
  z-index: 70;
}

.header-search-panel[hidden] {
  display: none;
}

.header-search-panel input[type="search"] {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
  outline: none;
}

.header-search-panel input[type="search"]::placeholder {
  color: #7b8b97;
}

.header-search-panel input[type="search"]:focus {
  border-color: var(--color-primary);
}

.header-search-panel .search-results {
  position: static;
  margin-top: 0.45rem;
  box-shadow: none;
}

.header-search-panel .search-results[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .header-inner {
    gap: 0.45rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 14.5rem);
  }

  .brand-tagline {
    display: none;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
  }

  .header-tools {
    position: static;
    gap: 0.12rem;
  }

  .header-nav-link {
    padding: 0.32rem 0.48rem;
    font-size: 0.82rem;
  }

  .header-search {
    position: static;
  }

  .header-search-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  .header-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 0.75rem 16px 1rem;
    border-radius: 0 0 12px 12px;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 16px 28px rgba(15, 36, 52, 0.2);
  }
}

.main-content {
  padding: 1.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
}

.card {
  background: #fff;
  background: var(--color-card);
  border: 1px solid #d9e2ea;
  border-radius: 6px;
  padding: 1.2rem 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 36, 52, 0.04);
}

.hero {
  position: relative;
  z-index: 40;
  overflow: visible;
  border-top: 0;
}

.hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--color-muted);
  max-width: 40rem;
  line-height: 1.6;
}

.hero--with-near {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.home-near {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.22rem;
  padding: 0;
  width: max-content;
  max-width: 100%;
  justify-self: end;
}

.home-near-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.2rem 1.15rem;
  align-items: stretch;
}

.home-near-left,
.home-near-right {
  display: flex;
  flex-direction: column;
  min-width: max-content;
}

.home-near-left {
  align-items: flex-start;
  gap: 0.18rem;
}

.home-near-right {
  align-items: flex-end;
  gap: 0.22rem;
  text-align: right;
}

.home-near-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.home-near-place {
  display: block;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  color: #0b3a4d;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.home-near-place:hover {
  text-decoration: underline;
}

.hero .home-near p {
  max-width: none;
}

.home-near-now {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 0.38rem;
  min-width: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.55rem);
}


.home-near-icon {
  display: flex;
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
}

.home-near-icon .wx-anim {
  width: 1em;
  height: 1em;
}

.home-near-cond {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero .home-near p.home-near-temp {
  margin: 0;
  font-size: 1em;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  height: 1em;
  color: #0b3a4d;
}

.hero .home-near p.home-near-feel,
.hero .home-near p.home-near-status {
  margin: auto 0 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: var(--color-muted);
  white-space: nowrap;
}

.hero .home-near p.home-near-aq,
.hero .home-near p.home-near-wind {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}

.hero .home-near p.home-near-feel {
  text-align: left;
  align-self: flex-start;
}

.hero .home-near p.home-near-status {
  text-align: right;
}

.home-near-btn {
  flex: 0 0 auto;
  margin-left: 0;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.15;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 0;
  background: #0b3a4d;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.home-near-btn:hover,
.home-near-btn:focus-visible {
  background: #082c3a;
}

.home-near-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 720px) {
  .hero--with-near {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .home-near {
    width: 100%;
    max-width: 100%;
    padding-top: 0.35rem;
    border-top: 1px solid #e4edf2;
    overflow: hidden;
  }

  .home-near-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .home-near-left,
  .home-near-right {
    min-width: 0;
  }

  .home-near-place,
  .home-near-cond {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-near-btn {
    flex: 1 0 auto;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.42rem 0.82rem;
  }

  .home-near-now {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .hero .home-near p.home-near-status {
    margin-top: 0;
  }
}

.turkey-map-card {
  padding: 1rem 0.35rem 0.75rem;
}

.turkey-map-head h2 {
  margin: 0 0 0.25rem;
}

.turkey-map-head {
  padding: 0 0.5rem;
}

.turkey-map-head p {
  margin: 0 0 0.85rem;
}

.turkey-map-stage {
  position: relative;
  width: 100%;
  overflow: visible;
  border-radius: 0;
}

.turkey-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.turkey-map-province-link {
  cursor: pointer;
  outline: none;
}

.turkey-map-province {
  stroke: #2f5d6e;
  stroke-width: 0.85;
  stroke-linejoin: round;
  transition: fill 0.15s ease, stroke-width 0.15s ease;
}

.turkey-map-t-none { fill: #e7f3ea; background-color: #e7f3ea; }
.turkey-map-t-0 { fill: #6ba3c9; background-color: #6ba3c9; }
.turkey-map-t-1 { fill: #8fc4c0; background-color: #8fc4c0; }
.turkey-map-t-2 { fill: #b4d48a; background-color: #b4d48a; }
.turkey-map-t-3 { fill: #e2d56a; background-color: #e2d56a; }
.turkey-map-t-4 { fill: #e9a85c; background-color: #e9a85c; }
.turkey-map-t-5 { fill: #d96b4a; background-color: #d96b4a; }

.turkey-map-province-link:hover .turkey-map-province,
.turkey-map-province-link:focus-visible .turkey-map-province {
  fill: #fff4c4;
  stroke: #0b3a4d;
  stroke-width: 1.8;
}

.turkey-map-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  color: #4a6570;
}

.turkey-map-legend-scale {
  display: flex;
  width: 8.4rem;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(11, 58, 77, 0.18);
  background: linear-gradient(
    to right,
    #6ba3c9 0%,
    #8fc4c0 20%,
    #b4d48a 40%,
    #e2d56a 60%,
    #e9a85c 80%,
    #d96b4a 100%
  );
}

.turkey-map-legend-scale i {
  flex: 1;
  height: 100%;
  display: block;
}

.rain-map-r-none { fill: #eef2f5; background-color: #eef2f5; }
.rain-map-r-light { fill: #a8daf0; background-color: #a8daf0; }
.rain-map-r-moderate { fill: #5eb4e0; background-color: #5eb4e0; }
.rain-map-r-heavy { fill: #2b86c4; background-color: #2b86c4; }
.rain-map-r-very-heavy { fill: #145a92; background-color: #145a92; }

.rain-map-p-low { fill: #d5e4ee; background-color: #d5e4ee; }
.rain-map-p-mid { fill: #b7d0e0; background-color: #b7d0e0; }
.rain-map-p-high { fill: #8fb6ce; background-color: #8fb6ce; }
.rain-map-p-very-high { fill: #6a98b8; background-color: #6a98b8; }

.rain-map-note {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
}

.rain-map-card .turkey-map-province {
  cursor: default;
}

.rain-map-pin {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: default;
}

.rain-map-pin-tone {
  position: absolute;
  inset: 0.15rem;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(0.5px);
}

.rain-map-pin .wx-anim {
  position: relative;
  z-index: 1;
  width: 2.35rem;
  height: 2.35rem;
}

.rain-map-legend {
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 0.45rem;
}

.rain-map-legend-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rain-map-prob-scale {
  background: linear-gradient(
    to right,
    #d5e4ee 0%,
    #b7d0e0 35%,
    #8fb6ce 70%,
    #6a98b8 100%
  );
}

.rain-map-legend-scale {
  background: linear-gradient(
    to right,
    #a8daf0 0%,
    #5eb4e0 35%,
    #2b86c4 70%,
    #145a92 100%
  );
}

.rain-map-pin-pct {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b3a4d;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #fff,
     0   -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  0   0 #fff,
     1px  0   0 #fff,
    -1px  1px 0 #fff,
     0    1px 0 #fff,
     1px  1px 0 #fff;
}

.rain-map-card .turkey-map-province-link:hover .turkey-map-province,
.rain-map-card .turkey-map-province-link:focus-visible .turkey-map-province {
  fill: inherit;
  stroke: #0b3a4d;
  stroke-width: 1.8;
}

.rain-map-card .turkey-map-province-link:hover .rain-map-r-none,
.rain-map-card .turkey-map-province-link:focus-visible .rain-map-r-none { fill: #dce3e8; }
.rain-map-card .turkey-map-province-link:hover .rain-map-r-light,
.rain-map-card .turkey-map-province-link:focus-visible .rain-map-r-light { fill: #8ecde9; }
.rain-map-card .turkey-map-province-link:hover .rain-map-r-moderate,
.rain-map-card .turkey-map-province-link:focus-visible .rain-map-r-moderate { fill: #4aa3d4; }
.rain-map-card .turkey-map-province-link:hover .rain-map-r-heavy,
.rain-map-card .turkey-map-province-link:focus-visible .rain-map-r-heavy { fill: #2477b0; }
.rain-map-card .turkey-map-province-link:hover .rain-map-r-very-heavy,
.rain-map-card .turkey-map-province-link:focus-visible .rain-map-r-very-heavy { fill: #0f4c7c; }

.rain-mm--light { color: #0284c7; }
.rain-mm--moderate { color: #0369a1; }
.rain-mm--heavy,
.rain-mm--very-heavy { color: #0c4a6e; }

@media (max-width: 520px) {
  .header-nav-link span {
    display: none;
  }

  .header-nav-link {
    padding: 0.32rem;
  }

  .brand {
    max-width: calc(100% - 8.4rem);
  }
}

.turkey-map-pin {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  min-width: 3.4rem;
  transform: translate(-50%, -50%);
  background: transparent;
  color: #2a333c;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  line-height: 1;
}

.turkey-map-pin:hover,
.turkey-map-pin:focus-visible {
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: none;
}

.turkey-map-pin-temp {
  position: relative;
  z-index: 1;
  margin-top: -0.68rem;
  line-height: 1;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2a333c;
  text-shadow:
    -1px -1px 0 #fff,
     0   -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  0   0 #fff,
     1px  0   0 #fff,
    -1px  1px 0 #fff,
     0    1px 0 #fff,
     1px  1px 0 #fff;
}

.wx-anim {
  display: block;
  width: 2.85rem;
  height: 2.85rem;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(20, 40, 55, 0.28));
}

.wx-anim .wx-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: wx-spin 9s linear infinite;
}

.wx-anim--sun-cloud .wx-spin {
  animation: none;
}

.wx-anim .wx-drift {
  transform-box: fill-box;
  transform-origin: center;
  animation: wx-cloud-pace 3.4s ease-in-out infinite;
}

.wx-anim .wx-drop {
  transform-box: fill-box;
  transform-origin: center;
  animation: wx-drop 1.05s linear infinite;
}

.wx-anim .wx-drop:nth-of-type(2) { animation-delay: 0.22s; }
.wx-anim .wx-drop:nth-of-type(3) { animation-delay: 0.44s; }

.wx-anim--drizzle .wx-drop {
  opacity: 0.72;
  animation-duration: 1.25s;
}

.wx-anim .wx-flash {
  transform-box: fill-box;
  transform-origin: center;
  animation: wx-flash 1.15s steps(2, end) infinite;
}

.wx-anim .wx-fog-line {
  transform-box: fill-box;
  transform-origin: center;
  animation: wx-fog 2.6s ease-in-out infinite;
}

.wx-anim .wx-fog-line:nth-of-type(2) { animation-delay: 0.2s; }
.wx-anim .wx-fog-line:nth-of-type(3) { animation-delay: 0.4s; }

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

@keyframes wx-cloud-pace {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

@keyframes wx-drop {
  0% { transform: translateY(-6px); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes wx-fog {
  0%, 100% { transform: translateX(-5px); opacity: 0.7; }
  50% { transform: translateX(5px); opacity: 1; }
}

@keyframes wx-flash {
  50% { opacity: 0.2; }
}

@media (max-width: 720px) {
  .turkey-map-pin {
    min-width: 2.4rem;
  }

  .wx-anim {
    width: 2rem;
    height: 2rem;
  }

  .turkey-map-pin-temp {
    margin-top: -0.48rem;
    font-size: 0.84rem;
  }

  .rain-map-pin {
    width: 1.9rem;
    height: 1.9rem;
  }

  .rain-map-pin .wx-anim {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wx-anim .wx-spin,
  .wx-anim .wx-drift,
  .wx-anim .wx-drop,
  .wx-anim .wx-flash,
  .wx-anim .wx-fog-line {
    animation: none !important;
  }
}

.map-city-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.map-city-toolbar button {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  cursor: pointer;
}

.map-city-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.35rem;
  max-height: 22rem;
  overflow: auto;
  padding: 0.15rem;
}

.admin-form .map-city-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.38rem 0.5rem;
  border: 1px solid #d9e2ea;
  border-radius: 6px;
  background: #f8fafc;
  font-weight: 500;
}

.admin-form .map-city-option span {
  display: inline;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-form .map-city-option input {
  width: auto;
  margin: 0;
}

.search-wrap {
  position: relative;
  margin-top: 1.25rem;
  z-index: 50;
}

.search-wrap input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 36, 52, 0.14);
  border: 1px solid #d9e2ea;
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  max-height: 18rem;
  overflow: auto;
  z-index: 100;
}

.search-results a {
  display: block;
  padding: 0.6rem 0.95rem;
  color: inherit;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus {
  background: #f3f7fa;
}

.search-results small {
  display: block;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.grid-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

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

@media (min-width: 900px) {
  .grid-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.grid-links a {
  display: block;
  padding: 0.58rem 0.7rem;
  border-radius: 6px;
  background: #eef4f8;
  border: 1px solid #c5d4de;
  text-decoration: none;
  color: #0b3a4d;
  font-size: 0.9rem;
  font-weight: 650;
}

.grid-links a:hover {
  background: #fff;
  border-color: #b9cdd8;
  color: var(--color-primary);
}

.home-popular-layout {
  display: grid;
  gap: 1rem;
}

.home-popular-layout--with-ad {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.home-popular-card,
.home-popular-ad-card {
  height: 100%;
}

.home-popular-card h2 {
  margin: 0 0 1rem;
}

.grid-links-popular {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-popular-ad-card {
  margin: 0;
  padding: 0.35rem;
  display: flex;
  align-items: stretch;
}

.home-popular-ad-card .ad-slot {
  margin: 0;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.home-popular-ad-card .ad-slot-live,
.home-popular-ad-card .ad-demo {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.home-popular-ad-card .ad-demo {
  aspect-ratio: auto;
  max-height: none;
  min-height: 220px;
}

@media (max-width: 900px) {
  .grid-links-popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .home-popular-layout--with-ad {
    grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 21.5rem);
    align-items: stretch;
  }
}

.weather-insights-ad-grid {
  display: block;
}

.weather-insights-ad--with-ad .weather-insights-ad-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) min(336px, 100%);
  align-items: start;
}

.weather-insights-ad-content {
  min-width: 0;
}

.weather-insights-ad-slot {
  width: 100%;
  max-width: 336px;
  justify-self: end;
}

.weather-insights-ad-slot .ad-slot {
  margin: 0;
  width: 100%;
}

.weather-insights-ad-slot .ad-slot-live,
.weather-insights-ad-slot .ad-demo {
  width: 100%;
  max-width: 336px;
  margin-inline: auto;
}

.weather-insights-ad-slot .ad-demo {
  aspect-ratio: 336 / 280;
  max-height: none;
}

@media (max-width: 900px) {
  .weather-insights-ad--with-ad .weather-insights-ad-grid {
    grid-template-columns: 1fr;
  }

  .weather-insights-ad--with-ad .weather-insights-ad-slot {
    max-width: none;
    width: 100%;
  }

  .weather-insights-ad--with-ad .weather-insights-ad-slot .ad-slot,
  .weather-insights-ad--with-ad .weather-insights-ad-slot .ad-slot-live,
  .weather-insights-ad--with-ad .weather-insights-ad-slot .ad-demo {
    max-width: 100%;
    width: 100%;
  }
}

.weather-details-layout {
  display: grid;
  gap: 1rem;
}

.weather-details-layout--with-ad {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.weather-details-card,
.weather-details-ad-card {
  height: 100%;
}

.weather-details-card h2 {
  margin: 0 0 1rem;
}

.weather-details-ad-card {
  margin: 0;
  padding: 0.35rem;
  display: flex;
  align-items: stretch;
}

.weather-details-ad-card .ad-slot {
  margin: 0;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.weather-details-ad-card .ad-slot-live,
.weather-details-ad-card .ad-demo {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.weather-details-ad-card .ad-demo {
  aspect-ratio: auto;
  max-height: none;
  min-height: 220px;
}

@media (min-width: 901px) {
  .weather-details-layout--with-ad {
    grid-template-columns: minmax(17.5rem, 21.5rem) minmax(0, 1fr);
    align-items: stretch;
  }

  .weather-details-card {
    order: 2;
  }

  .weather-details-ad-card {
    order: 1;
  }
}

.climate-card h2 {
  margin: 0 0 0.2rem;
}

.climate-head {
  margin-bottom: 0.85rem;
}

.climate-head .muted {
  margin: 0;
}

.climate-compare-grid,
.climate-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .climate-record-grid {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }
}

.climate-stat,
.climate-record {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #f4f7fa;
  border: 1px solid #e3ebf1;
}

.climate-stat strong,
.climate-record strong {
  display: block;
  margin: 0.2rem 0 0.15rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.climate-compare-text {
  margin: 0.85rem 0 0;
  line-height: 1.55;
}

.climate-records {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.climate-records h3 {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.location-note p {
  margin: 0 0 0.85rem;
  line-height: 1.7;
}

.location-note p:last-child {
  margin-bottom: 0;
}

.location-note-links {
  margin-top: 0.35rem;
}

.location-note-links a {
  color: var(--color-primary);
}

.nearby-districts-head {
  margin-bottom: 0.85rem;
}

.nearby-districts-head h2 {
  margin: 0 0 0.2rem;
}

.nearby-districts-head .muted {
  margin: 0;
}

.nearby-district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (min-width: 768px) {
  .nearby-district-grid {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }
}

.nearby-district-card {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #f4f7fa;
  border: 1px solid #e3ebf1;
  text-decoration: none;
  color: inherit;
}

.nearby-district-card:hover {
  background: #fff;
  border-color: #c5d4de;
}

.nearby-district-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

.nearby-district-temps {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.home-info-layout {
  display: grid;
  gap: 1rem;
}

.home-info-layout--with-ad {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.home-info-card,
.home-info-ad-card {
  height: 100%;
}

.home-info-card h2 {
  margin: 0 0 1rem;
}

.home-info-card p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}

.home-info-ad-card {
  margin: 0;
  padding: 0.35rem;
  display: flex;
  align-items: stretch;
}

.home-info-ad-card .ad-slot {
  margin: 0;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.home-info-ad-card .ad-slot-live,
.home-info-ad-card .ad-demo {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.home-info-ad-card .ad-demo {
  aspect-ratio: auto;
  max-height: none;
  min-height: 220px;
}

@media (min-width: 901px) {
  .home-info-layout--with-ad {
    grid-template-columns: minmax(17.5rem, 21.5rem) minmax(0, 1fr);
    align-items: stretch;
  }

  .home-info-card {
    order: 2;
  }

  .home-info-ad-card {
    order: 1;
  }
}

.muted { color: var(--color-muted); }

.breadcrumb {
  color: #5b6775;
  font-size: 0.84rem;
  margin: 0 0 0.15rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.current-weather h1 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.current-temp .temp {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.today-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}

.today-range strong {
  font-variant-numeric: tabular-nums;
}

.metric {
  background: #f4f7fa;
  border: 1px solid #e3ebf1;
  border-radius: 6px;
  padding: 0.7rem 0.6rem;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .metric {
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .metric:hover {
    background: #fff;
    border-color: #c5d4de;
  }

  .hourly-table tbody tr {
    transition: background-color 0.15s ease;
  }

  .hourly-table tbody tr:hover {
    background: #e8f0f5;
  }

  .hourly-table tbody tr.is-now:hover,
  .hourly-table tbody tr.is-today:hover {
    background: #dceef4;
  }
}

.current-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .current-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.current-temp {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.current-temp .icon { font-size: 3rem; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  max-width: 100%;
}

.forecast-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.9rem 0 0;
}

.forecast-card .forecast-section-head,
.forecast-card > h2,
.forecast-card .hourly-day-block h2,
.forecast-card > .muted,
.forecast-card .outlook-note {
  padding-left: 1rem;
  padding-right: 1rem;
}

.tab-panel {
  display: none;
  grid-column: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tab-panel.active {
  display: block;
}

.hourly-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

/* Saatlik alan: ekran genişliğinde sabit viewport, kartlar içeride kayar */
.hourly-viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid #c5d4de;
  border-radius: 6px;
  background: #eef4f8;
  padding: 0.55rem 0.35rem 0.25rem;
  box-sizing: border-box;
}

.hourly-viewport::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0;
  bottom: 0.7rem;
  width: 2.75rem;
  pointer-events: none;
  background: linear-gradient(to right, transparent, #eef4f8);
  z-index: 1;
}

.hourly-scroll {
  grid-column: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.4);
  padding: 0.15rem 0.25rem 0.45rem;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font: inherit;
}

.tab-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.hourly-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.hourly-scroll::-webkit-scrollbar {
  height: 7px;
}

.hourly-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 999px;
}

.hour-item {
  flex: 0 0 5.15rem;
  width: 5.15rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.22rem;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  padding: 0.65rem 0.3rem;
  border: 1px solid #d5e0e8;
  box-shadow: 0 1px 2px rgba(11, 58, 77, 0.05);
}

.hour-item-time {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 600;
}

.hour-item-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.hour-item strong {
  font-size: 0.98rem;
}

.hour-item small {
  font-size: 0.68rem;
  color: var(--color-primary);
}

.hour-item.is-now {
  background: #0b3a4d;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(11, 58, 77, 0.28);
}

.hour-item.is-now .hour-item-time,
.hour-item.is-now small {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 480px) {
  .hour-item {
    flex-basis: 4rem;
    width: 4rem;
  }
}

/* iOS / mobil: backdrop-filter kaydırmayı bozabiliyor */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .forecast-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  background: #fff;
}

  .hourly-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

/* Masaüstü: blur taşmayı tetikleyebiliyor */
@media (min-width: 769px) {
  .forecast-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
}

.hour-time {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.hour-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hour-item strong {
  font-size: 1rem;
}

.hour-item small {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.day-row,
.single-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  background: #f4f7fa;
  margin-bottom: 0.45rem;
}

.single-day .icon { font-size: 2rem; }

.outlook-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text, #2c3a47);
  margin-top: 0.35rem;
  max-width: 52rem;
}

.site-footer {
  padding: 1.5rem 0 2.25rem;
  color: #3d4b58;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  border-top: 1px solid #d9e2ea;
  background: #f4f7fa;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-inner p {
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin-top: 0.9rem;
}

.footer-nav a {
  color: #0b3a4d;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-note {
  opacity: 0.75;
  font-size: 0.82rem;
}

.footer-admin {
  display: inline-block;
  margin-top: 0.5rem;
  color: #6b7785;
  font-size: 0.78rem;
}

.site-badge {
  display: none;
}

.data-update {
  font-size: 0.85rem;
}

.center { text-align: center; }

.btn,
.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-page h1 { color: #0f172a; }

.admin-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

.admin-form label {
  display: block;
  margin-bottom: 0.85rem;
}

.admin-form span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.color-row {
  display: flex;
  gap: 0.5rem;
}

.color-row input[type="color"] {
  width: 3rem;
  padding: 0.15rem;
}

.preview-box {
  height: 9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
}

.admin-divider {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 1.25rem 0 1rem;
}

.admin-subheading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.favicon-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.favicon-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  object-fit: contain;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 1rem;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.forecast-section-head {
  margin-bottom: 1rem;
}

.forecast-section-head h2 {
  margin: 0 0 0.35rem;
}

.forecast-subdate {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-muted);
}

.daily-temp-high strong {
  display: inline-block;
  min-width: 2.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #fff4e8;
  color: #c2410c;
  font-size: 1.05rem;
}

.daily-temp-low {
  font-weight: 700;
  color: #0b3a4d;
}

.daily-temp-low::before {
  content: none;
}

.daily-table .hourly-time strong {
  display: block;
}

.precip-badge {
  display: inline-block;
  margin-right: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.precip-low {
  background: #eef2f6;
  color: #475569;
}

.precip-mid {
  background: #fef3c7;
  color: #b45309;
}

.precip-high {
  background: #fee2e2;
  color: #b91c1c;
}

.hour-item .precip-badge {
  margin: 0;
  padding: 0.08rem 0.4rem;
  font-size: 0.68rem;
}

.hour-item small.precip-low {
  background: #eef2f6;
  color: #475569;
}

.hour-item small.precip-mid {
  background: #fef3c7;
  color: #b45309;
}

.hour-item small.precip-high {
  background: #fee2e2;
  color: #b91c1c;
}

.hour-item.is-now small.precip-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.precip-mm {
  font-size: 0.8rem;
}

.now-chip {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #0b3a4d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.rehber-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

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

.rehber-card {
  display: block;
  padding: 1rem 1rem 0.95rem;
  border-radius: 10px;
  background: #f4f7fa;
  border: 1px solid #e3ebf1;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.rehber-card:hover {
  background: #fff;
  border-color: #c5d4de;
}

.rehber-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.rehber-excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rehber-more {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.rehber-card:hover .rehber-more {
  text-decoration: underline;
}

.legal-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-text);
}

.legal-body h2 {
  margin: 1.6rem 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.25rem;
}

.legal-body li {
  margin: 0 0 0.35rem;
}

.legal-body a {
  color: var(--color-primary);
}

.summary-section .summary-head {
  margin-bottom: 1rem;
}

.summary-section .summary-head h2 {
  margin: 0 0 0.35rem;
}

.summary-box {
  padding: 1rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.summary-box:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.summary-box p {
  margin: 0;
  line-height: 1.7;
  color: var(--color-text);
}

.forecast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.wicon-current {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 2.5rem;
}

.wicon-sunny { background: linear-gradient(135deg, #fef08a, #fde047); }
.wicon-cloudy { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.wicon-rain { background: linear-gradient(135deg, #bae6fd, #7dd3fc); }
.wicon-snow { background: linear-gradient(135deg, #e0f2fe, #f8fafc); }
.wicon-storm { background: linear-gradient(135deg, #c4b5fd, #a78bfa); }
.wicon-fog { background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.wicon-mixed { background: linear-gradient(135deg, #ddd6fe, #fbcfe8); }

.forecast-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.forecast-nav-section .ad-slot {
  margin: 0;
}

.forecast-nav-section + .forecast-card,
.forecast-nav-section + .rain-map-card {
  margin-top: -0.9rem;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.forecast-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.3rem;
  margin: 0;
  overflow: hidden;
  padding: 0.3rem;
  background: #0b3a4d;
  border-radius: 6px 6px 0 0;
}

.forecast-nav-pin {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 8px 0 10px -6px rgba(0, 0, 0, 0.35);
}

.forecast-nav-track {
  display: flex;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.55) rgba(255, 255, 255, 0.12);
}

.forecast-nav-marquee,
.forecast-nav-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.3rem;
}

.forecast-nav-set {
  flex-shrink: 0;
  padding-right: 0.3rem;
}

.forecast-nav-set--clone {
  display: none;
}

.forecast-nav-track.is-paused .forecast-nav-marquee {
  animation-play-state: paused;
}

.forecast-nav-track::-webkit-scrollbar {
  height: 6px;
}

.forecast-nav-track::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.forecast-nav-track::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 999px;
}

.forecast-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  border: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .forecast-nav {
    padding: 0.28rem;
  }

  .forecast-nav-track {
    overflow: hidden;
    scrollbar-width: none;
    touch-action: none;
    cursor: grab;
    user-select: none;
  }

  .forecast-nav-track::-webkit-scrollbar {
    display: none;
  }

  .forecast-nav-set--clone {
    display: flex;
  }

  .forecast-nav-marquee {
    width: max-content;
    animation: forecast-nav-slide 28s linear infinite;
  }

  .forecast-nav-link {
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    touch-action: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.28);
  }
}

@keyframes forecast-nav-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 901px) {
  .forecast-nav-link {
    padding: 0.55rem 0.8rem;
    font-size: 0.86rem;
  }
}

.forecast-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.forecast-nav-link.active {
  background: #fff;
  color: #0b3a4d;
}

.forecast-nav.rain-period-nav {
  margin: 0;
  border-radius: 6px 6px 0 0;
}

.rain-period-nav .forecast-nav-link {
  flex: 1 1 0;
}

.current-weather.compact .temp {
  font-size: var(--now-temp-size);
  line-height: var(--now-temp-lh);
  margin: var(--now-temp-gap) 0;
}

.current-weather.compact .forecast-now {
  --now-kicker-size: 0.78rem;
  --now-kicker-lh: 1.2;
  --now-temp-size: 1.85rem;
  --now-temp-lh: 1.05;
  --now-cond-size: 0.9rem;
  --now-cond-lh: 1.25;
  --now-temp-gap: 0.08rem;
  --now-stack: calc(
    (var(--now-kicker-size) * var(--now-kicker-lh))
    + var(--now-temp-gap)
    + (var(--now-temp-size) * var(--now-temp-lh))
    + var(--now-temp-gap)
    + (var(--now-cond-size) * var(--now-cond-lh))
  );
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.current-weather.compact .forecast-now-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.current-weather.compact .forecast-now-kicker {
  margin: 0;
  font-size: var(--now-kicker-size);
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--color-muted);
  line-height: var(--now-kicker-lh);
}

.current-weather.compact .forecast-now-cond {
  margin: 0;
  font-size: var(--now-cond-size);
  color: var(--color-muted);
  line-height: var(--now-cond-lh);
}

.current-weather.compact .forecast-now-icon {
  display: block;
  flex: 0 0 var(--now-stack);
  width: var(--now-stack);
  height: var(--now-stack);
  line-height: 0;
}

.current-weather.compact .forecast-now-icon .wx-anim {
  display: block;
  width: 100%;
  height: 100%;
}

.today-hero {
  border-left: 5px solid #0b3a4d;
  background: linear-gradient(135deg, #e7f3f8 0%, #fff 46%);
}

.today-hero .today-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.today-hero .today-range span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e2ea;
}

.today-hero .today-range strong {
  color: #0b3a4d;
}

.forecast-card .hourly-viewport {
  margin: 0 0.75rem 0.9rem;
  width: auto;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
}

.forecast-card .hourly-table-wrap {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.forecast-card .hourly-scroll {
  margin: 0;
  background: transparent;
  border-radius: 0;
}

.hourly-table tbody tr.is-now,
.hourly-table tbody tr.is-today {
  background: #e8f4f8;
  box-shadow: inset 4px 0 0 #0b3a4d;
}

.hourly-table tbody tr.is-now .hourly-time,
.hourly-table tbody tr.is-today .hourly-time {
  color: #0b3a4d;
}

.hourly-day-block + .hourly-day-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.hourly-day-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.hourly-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: 1px solid #c5d4de;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 58, 77, 0.06);
}

.hourly-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: auto;
}

.hourly-table th,
.hourly-table td {
  padding: 0.72rem 0.8rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e3ebf1;
}

.hourly-table thead th {
  background: #0b3a4d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hourly-table tbody tr:nth-child(even) {
  background: #e8eef3;
}

.hourly-table tbody tr:last-child td {
  border-bottom: 0;
}

.hourly-weather-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.hourly-weather-label {
  min-width: 0;
  line-height: 1.25;
}

.hourly-wind {
  white-space: nowrap;
}

.hourly-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.hourly-time {
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}

.hourly-time .now-chip {
  display: block;
  width: fit-content;
  margin: 0 0 0.2rem;
}

.hourly-time-val {
  display: block;
}

.hourly-temp strong {
  font-size: 1rem;
}

.forecast-summary-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.forecast-summary-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.forecast-summary-block p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }

  .card {
    padding: 0.95rem 0.8rem;
  }

  .forecast-card {
    padding: 0.85rem 0 0;
  }

  .hourly-table-wrap {
    overflow-x: hidden;
  }

  .hourly-table,
  .hourly-table.daily-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 0.78rem;
  }

  .hourly-table th,
  .hourly-table td {
    padding: 0.45rem 0.28rem;
    font-size: 0.78rem;
    overflow-wrap: break-word;
  }

  .hourly-table th:nth-child(1),
  .hourly-table td:nth-child(1) { width: 15%; }
  .hourly-table th:nth-child(2),
  .hourly-table td:nth-child(2) { width: 27%; }
  .hourly-table th:nth-child(3),
  .hourly-table td:nth-child(3) { width: 11%; }
  .hourly-table th:nth-child(4),
  .hourly-table td:nth-child(4) { width: 12%; }
  .hourly-table th:nth-child(5),
  .hourly-table td:nth-child(5) { width: 14%; }
  .hourly-table th:nth-child(6),
  .hourly-table td:nth-child(6) { width: 21%; }

  .hourly-table.daily-table th:nth-child(1),
  .hourly-table.daily-table td:nth-child(1) { width: 24%; }
  .hourly-table.daily-table th:nth-child(2),
  .hourly-table.daily-table td:nth-child(2) { width: 30%; }
  .hourly-table.daily-table th:nth-child(3),
  .hourly-table.daily-table td:nth-child(3),
  .hourly-table.daily-table th:nth-child(4),
  .hourly-table.daily-table td:nth-child(4) { width: 14%; }
  .hourly-table.daily-table th:nth-child(5),
  .hourly-table.daily-table td:nth-child(5) { width: 18%; }

  .hourly-table thead {
    display: table-header-group;
  }

  .hourly-table tbody {
    display: table-row-group;
  }

  .hourly-table tr {
    display: table-row;
  }

  .hourly-table td {
    display: table-cell;
    border-bottom: 1px solid #e3ebf1;
  }

  .hourly-time,
  .hourly-weather {
    grid-column: auto;
  }

  .hourly-time {
    white-space: normal;
  }

  .hourly-weather-inner {
    align-items: flex-start;
    gap: 0.28rem;
  }

  .hourly-icon {
    flex: 0 0 auto;
    font-size: 1.05rem;
    margin-top: 0.08rem;
  }

  .hourly-weather-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    line-height: 1.2;
  }

  .hourly-wind {
    white-space: normal;
    line-height: 1.2;
  }

  .hourly-wind .wind-speed {
    display: block;
    font-size: 0.7rem;
    color: #475569;
  }

  .precip-badge {
    margin-right: 0;
    padding: 0.12rem 0.35rem;
    font-size: 0.72rem;
  }

  .daily-table .precip-mm {
    display: block;
    margin-top: 0.12rem;
  }

  .forecast-subdate {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
  }

  .hourly-table td[data-label]::before {
    content: none;
  }
}

/* Hava durumu grafiği */
.chart-section {
  overflow: hidden;
}

.chart-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.chart-head p {
  margin: 0 0 1rem;
}

.weather-chart {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.5rem;
  min-height: 220px;
}

.chart-y-axis-temp {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--color-muted);
  padding: 0.25rem 0 2.5rem;
}

.chart-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.chart-bars-temp,
.chart-bars-rain {
  display: grid;
  gap: 0.35rem;
  align-items: end;
  min-height: 140px;
}

.chart-bars-rain {
  min-height: 56px;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.chart-bar-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  height: 120px;
}

.chart-bar {
  position: relative;
  width: 42%;
  min-height: 4px;
  border-radius: 0.35rem 0.35rem 0 0;
  transition: opacity 0.15s ease;
}

.chart-bar-high {
  background: linear-gradient(180deg, #fb923c, #ea580c);
}

.chart-bar-low {
  background: linear-gradient(180deg, #7dd3fc, #0284c7);
}

.chart-bar-rain {
  width: 55%;
  background: linear-gradient(180deg, #93c5fd, #2563eb);
  border-radius: 0.25rem 0.25rem 0 0;
}

.chart-bar-value {
  position: absolute;
  top: -1.15rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
}

.chart-bar-value-low {
  color: var(--color-primary);
}

.chart-rain-value {
  position: absolute;
  top: -0.95rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 600;
  color: #2563eb;
  white-space: nowrap;
}

.chart-label {
  font-size: 0.68rem;
  color: var(--color-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.chart-section--dense .chart-label {
  font-size: 0.58rem;
}

.chart-section--dense .chart-bar-value,
.chart-section--dense .chart-rain-value {
  font-size: 0.55rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.legend-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-high { background: #ea580c; }
.legend-low { background: #0284c7; }
.legend-rain { background: #2563eb; }

/* Öneri kartları */
.insights-grid {
  display: grid;
  gap: 0.85rem;
}

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

.insight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.insight-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.insight-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.insight-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.9rem;
}

.insight-card--combo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.25rem;
  border-radius: 6px;
  background: var(--color-card);
  border: 1px solid #d9e2ea;
  box-shadow: 0 1px 2px rgba(15, 36, 52, 0.04);
}

@media (min-width: 900px) {
  .insight-card--combo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0;
    align-items: stretch;
    overflow: hidden;
  }
}

.insight-combo-pane {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  min-width: 0;
}

@media (min-width: 900px) {
  .insight-combo-pane + .insight-combo-pane {
    padding-left: 1.15rem;
    margin-left: 1.15rem;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
  }
}

.insight-combo-pane.insight-alert {
  background: rgba(255, 237, 213, 0.45);
}

.insight-combo-pane.insight-warning {
  padding: 0.85rem 0.9rem;
  border-radius: 6px;
}

@media (max-width: 899px) {
  .insight-card--combo .insight-combo-pane.insight-warning {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.85rem 1.25rem;
    border-radius: 0;
  }

  .insight-card--combo .insight-combo-pane.insight-warning:last-child {
    margin-bottom: -1.2rem;
    padding-bottom: 1.2rem;
    border-radius: 0 0 6px 6px;
  }
}

.insight-combo-pane.insight-warning h3,
.insight-combo-pane.insight-warning p {
  color: inherit;
}

.insight-combo-pane.insight-warning--yellow {
  background: #fef3c7;
  color: #854d0e;
}

.insight-combo-pane.insight-warning--orange {
  background: #fdba74;
  color: #9a3412;
}

.insight-combo-pane.insight-warning--red {
  background: #dc2626;
  color: #fff7f7;
}

.insight-combo-pane.insight-warning--dark-red {
  background: #7f1d1d;
  color: #fff7ed;
}

@media (min-width: 900px) {
  .insight-card--combo .insight-combo-pane.insight-warning {
    margin-top: -1.2rem;
    margin-bottom: -1.2rem;
    margin-right: -1.25rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    padding-right: 1.25rem;
    border-radius: 0;
  }

  .insight-combo-pane + .insight-combo-pane.insight-warning--red,
  .insight-combo-pane + .insight-combo-pane.insight-warning--dark-red {
    border-left-color: rgba(255, 255, 255, 0.35);
  }
}

.aqi-line {
  margin-bottom: 0.35rem !important;
}

.air-quality-card h2 {
  margin: 0 0 0.3rem;
}

.air-quality-card:not(.snow-card) .aq-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.2rem;
  margin-bottom: 0.55rem;
}

.air-quality-card:not(.snow-card) h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 0.2rem;
}

.air-quality-card:not(.snow-card) .aq-badge {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.air-quality-card:not(.snow-card) .aq-advice {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .air-quality-card:not(.snow-card) .aq-head {
    display: block;
  }

  .air-quality-card:not(.snow-card) h2 {
    display: block;
    margin: 0 0 0.25rem;
  }

  .air-quality-card:not(.snow-card) .aq-badge {
    float: right;
    margin: 0 0 0.4rem 0.7rem;
  }

  .air-quality-card:not(.snow-card) .aq-advice {
    margin: 0;
  }

  .air-quality-card:not(.snow-card) .aq-head::after {
    content: "";
    display: table;
    clear: both;
  }
}

.aq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
}

.aq-head .muted {
  margin: 0;
  max-width: 38rem;
}

.aq-badge {
  min-width: 7.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.aq-badge span,
.aq-badge em {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 650;
}

.aq-badge strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0.1rem 0;
}

.aq-badge--fair { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.aq-badge--moderate { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.aq-badge--poor { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.aq-badge--very-poor,
.aq-badge--extreme { background: #450a0a; color: #fecaca; border-color: #7f1d1d; }

.aq-advice {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.aq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .aq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .air-quality-card:not(.snow-card) .aq-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .air-quality-card:not(.snow-card) .aq-item {
    padding: 0.5rem 0.45rem;
  }

  .air-quality-card:not(.snow-card) .aq-item-label {
    font-size: 0.72rem;
  }

  .air-quality-card:not(.snow-card) .aq-item strong {
    font-size: 0.98rem;
  }

  .air-quality-card:not(.snow-card) .aq-item-meta {
    font-size: 0.68rem;
    line-height: 1.3;
  }
}

.aq-item {
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left-width: 3px;
  border-left-color: #22c55e;
}

.aq-item--fair { border-left-color: #ca8a04; }
.aq-item--moderate { border-left-color: #ea580c; }
.aq-item--poor { border-left-color: #dc2626; }
.aq-item--very-poor,
.aq-item--extreme { border-left-color: #7f1d1d; }
.aq-item--unknown { border-left-color: #94a3b8; }

.aq-item-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.aq-item strong {
  display: block;
  margin: 0.15rem 0 0.1rem;
  font-size: 1.05rem;
}

.aq-item small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.aq-item-meta {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.aq-source {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
}

.insight-card.insight-alert {
  border-color: rgba(234, 88, 12, 0.35);
  background: rgba(255, 237, 213, 0.55);
}

.insight-card.insight-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(254, 243, 199, 0.45);
}

.compact-summary .summary-box {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 520px) {
  .chart-bar-value,
  .chart-bar-value-low,
  .chart-rain-value {
    display: none;
  }

  .chart-bar-group {
    height: 100px;
  }

  .chart-bars-temp {
    min-height: 110px;
  }
}

/* Google AdSense alanları */
.ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 0.85rem 0;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.main-content + .ad-slot {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.ad-slot-live {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  overflow: hidden;
}

.ad-slot-live ins,
.ad-slot-live iframe {
  max-width: 100%;
}

.ad-demo {
  width: min(100%, calc(var(--ad-w) * 1px));
  aspect-ratio: var(--ad-w) / var(--ad-h);
  max-height: calc(var(--ad-h) * 1px);
  min-height: 50px;
  margin-inline: auto;
  border: 2px dashed rgba(100, 116, 139, 0.55);
  border-radius: calc(var(--radius) - 6px);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(241, 245, 249, 0.95),
      rgba(241, 245, 249, 0.95) 10px,
      rgba(226, 232, 240, 0.95) 10px,
      rgba(226, 232, 240, 0.95) 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.ad-demo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem;
  text-align: center;
  color: var(--color-muted);
}

.ad-demo-inner strong {
  color: var(--color-text);
  font-size: 0.95rem;
}

.ad-demo-inner small {
  font-size: 0.75rem;
}

.ad-demo-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-toggle-main,
.ad-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
}

.ad-toggle-main input,
.ad-toggle input {
  width: auto;
  margin-top: 0.2rem;
}

.ad-admin-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.ad-admin-item {
  padding: 1rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.ad-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ad-admin-desc {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.85rem;
}

.ad-demo-admin {
  width: min(160px, 100%);
  flex-shrink: 0;
}

.ad-admin-item textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.ad-admin-item--recommended {
  border-color: rgba(14, 165, 233, 0.35);
}

.ad-admin-extra {
  margin-top: 1.25rem;
}

.ad-admin-extra summary {
  cursor: pointer;
  font-weight: 600;
}

body.admin-shell {
  background: #e8eef3;
  color: #1e293b;
}

body.admin-shell .site-bg,
body.admin-shell .site-overlay {
  display: none;
}

body.admin-shell .header-inner .muted {
  color: #475569;
}

body.admin-shell .card {
  background: #fff;
  color: #0f172a;
  border-color: #d9e2ea;
}

body.admin-shell .muted {
  color: #64748b;
}

body.admin-shell .admin-form span {
  color: #0f172a;
}

body.admin-shell .btn,
body.admin-shell .btn-primary {
  background: #0b3a4d;
  color: #fff;
}

body.admin-shell .btn:hover,
body.admin-shell .btn-primary:hover {
  background: #0e4a63;
}

body.admin-shell .btn-logout {
  background: #475569;
  color: #fff;
}

body.admin-shell .btn-logout:hover {
  background: #334155;
}

body.admin-shell a:not(.btn):not(.btn-primary):not(.btn-logout):not(.admin-nav a) {
  color: #0b3a4d;
}

body.admin-shell h1,
body.admin-shell h2,
body.admin-shell h3 {
  color: #0f172a;
}

body.admin-shell .seo-page-item,
body.admin-shell .ad-admin-item {
  background: #f8fafc;
  border-color: #d9e2ea;
}

body.admin-shell .seo-help code {
  background: #e2e8f0;
  color: #0f172a;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  border: 1px solid #94a3b8;
}

.admin-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.admin-nav a.active {
  background: #0b3a4d;
  color: #fff;
  border-color: #0b3a4d;
}

.seo-help code {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  margin: 0.1rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.seo-page-grid {
  display: grid;
  gap: 1rem;
}

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

.seo-page-item {
  padding: 1rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.seo-page-item h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.admin-locations-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .admin-locations-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
  }
}

.admin-search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-search-form input {
  flex: 1;
}

.location-tree {
  max-height: 70vh;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
}

.location-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.location-tree-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: calc(var(--radius) - 6px);
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
}

.location-tree-link:hover,
.location-tree-link.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-primary);
}

.location-tree-districts {
  margin: 0.25rem 0 0.5rem 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(148, 163, 184, 0.25);
  display: grid;
  gap: 0.15rem;
}

.location-tree-row-district .location-tree-link {
  font-size: 0.85rem;
}

.location-preview-link {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}

.content-badge {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  font-size: 0.65rem;
  font-weight: 700;
}

.seo-override-box {
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.seo-override-box summary {
  cursor: pointer;
  font-weight: 600;
}

.location-info-section h2 {
  margin-top: 0;
}

.location-info-content {
  line-height: 1.75;
  color: var(--color-text);
}

.footer-widget-wrap {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.footer-widget-lists {
  display: grid;
  gap: 1rem 1.25rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .footer-widget-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 1020px) {
  .footer-widget-lists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-widget-col {
  min-width: 0;
}

.footer-widget-col h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.footer-widget-col h2 a {
  color: inherit;
  text-decoration: none;
}

.footer-widget-col h2 a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-widget-today {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.extreme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.extreme-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.25rem 0.5rem;
  align-items: center;
  padding: 0.18rem 0.4rem;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.25;
}

.extreme-rank {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.extreme-list a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.extreme-list a:hover {
  color: var(--color-primary);
}

.extreme-list strong {
  color: #ea580c;
  white-space: nowrap;
}

.footer-widget-col--low .extreme-list strong {
  color: var(--color-primary);
}

.footer-widget-col--sea .extreme-list strong {
  color: #0e7490;
}

.footer-widget-seo-text {
  line-height: 1.75;
  color: var(--color-text);
}

.footer-widget-updated {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}

.marine-card h2,
.sea-temps-hero h1 {
  margin: 0 0 0.3rem;
}

.marine-card h2 .muted {
  font-weight: 550;
  font-size: 0.85em;
}

.marine-badge--cold { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.marine-badge--cool { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.marine-badge--mild { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.marine-badge--warm { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.marine-badge--hot { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.marine-item--cold { border-left-color: #0284c7; }
.marine-item--cool { border-left-color: #06b6d4; }
.marine-item--mild { border-left-color: #22c55e; }
.marine-item--warm { border-left-color: #ea580c; }
.marine-item--hot { border-left-color: #dc2626; }
.marine-item--calm { border-left-color: #22c55e; }
.marine-item--slight { border-left-color: #ca8a04; }
.marine-item--moderate { border-left-color: #ea580c; }
.marine-item--rough { border-left-color: #dc2626; }

.aq-grid.marine-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "sst dir"
    "wave period";
}

.marine-grid > .aq-item:nth-child(1) { grid-area: sst; }
.marine-grid > .aq-item:nth-child(2) { grid-area: wave; }
.marine-grid > .aq-item:nth-child(3) { grid-area: dir; }
.marine-grid > .aq-item:nth-child(4) { grid-area: period; }

@media (min-width: 720px) {
  .aq-grid.marine-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "sst wave dir period";
  }
}

.marine-grid .aq-item {
  padding: 0.45rem 0.55rem;
}

.marine-grid .aq-item-label {
  font-size: 0.72rem;
}

.marine-grid .aq-item strong {
  font-size: 0.98rem;
  margin: 0.1rem 0 0.05rem;
}

.marine-grid .aq-item-meta {
  font-size: 0.7rem;
  line-height: 1.25;
}

.sea-temps-teaser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.sea-temps-teaser-head h2,
.sea-temps-teaser-head p {
  margin: 0;
}

.sea-temps-teaser-link {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.sea-temps-teaser-link:hover {
  text-decoration: underline;
}

.sea-temps-teaser-list a {
  color: inherit;
  text-decoration: none;
}

.sea-temps-teaser-list a:hover {
  text-decoration: underline;
}

.sea-temps-teaser-list small {
  font-weight: 500;
  color: var(--color-muted);
}

.sea-temps-hero p {
  margin: 0.45rem 0 0;
  line-height: 1.65;
  max-width: 46rem;
}

.sea-temps-lead {
  margin-top: 0.75rem !important;
  max-width: 52rem;
}

.sea-temps-lead a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.sea-temps-lead a:hover,
.sea-temps-seo a:hover {
  color: var(--color-primary);
}

.sea-temps-seo a {
  color: inherit;
  font-weight: 650;
}

.sea-temps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.sea-temps-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e2ea;
  color: #0b3a4d;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
}

.sea-temps-filter:hover,
.sea-temps-filter.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.sea-temps-table-wrap {
  overflow-x: auto;
}

.sea-temps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sea-temps-table th,
.sea-temps-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.sea-temps-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.sea-temps-table a {
  color: #0b3a4d;
  font-weight: 700;
  text-decoration: none;
}

.sea-temps-table a:hover {
  text-decoration: underline;
}

.sea-temps-rank {
  width: 3rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.sea-temps-province {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
}

.sea-temps-sst {
  font-variant-numeric: tabular-nums;
}

.sea-temps-sst--cold { color: #0369a1; }
.sea-temps-sst--cool { color: #0e7490; }
.sea-temps-sst--mild { color: #15803d; }
.sea-temps-sst--warm { color: #c2410c; }
.sea-temps-sst--hot { color: #b91c1c; }

.sea-temps-wave {
  white-space: nowrap;
  color: #475569;
}

.sea-temps-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
}

.snow-depth {
  font-variant-numeric: tabular-nums;
}

.snow-depth--none { color: #64748b; }
.snow-depth--light { color: #0369a1; }
.snow-depth--moderate { color: #1d4ed8; }
.snow-depth--deep { color: #3730a3; }
.snow-depth--very-deep { color: #4c1d95; }

.snow-badge {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.snow-badge--none { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.snow-badge--light { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.snow-badge--moderate { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.snow-badge--deep,
.snow-badge--very-deep { background: #312e81; color: #e0e7ff; border-color: #4338ca; }

.snow-item--light { border-left-color: #3b82f6; }
.snow-item--moderate { border-left-color: #2563eb; }
.snow-item--deep,
.snow-item--very-deep { border-left-color: #4338ca; }

.embed-page h1,
.embed-how h2 {
  margin: 0 0 0.7rem;
  letter-spacing: -0.03em;
}

.embed-lead {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  color: var(--color-muted);
}

.embed-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 800px) {
  .embed-layout {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
  }

  .embed-layout.is-days {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  }
}

.embed-sizes {
  min-width: 0;
  min-inline-size: 0;
}

.embed-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.embed-sizes .embed-size {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.38rem 0.7rem;
  border: 1px solid #d5e0e6;
  border-radius: 999px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.embed-sizes .embed-size.is-on {
  border-color: #0b3a4d;
  background: #eef5f8;
  color: #0b3a4d;
}

.embed-sizes .embed-size input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.embed-field {
  display: block;
  margin: 0 0 0.85rem;
}

.embed-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
}

.embed-city,
.embed-code {
  width: 100%;
  max-width: 100%;
  font: inherit;
  border: 1px solid #d5e0e6;
  border-radius: 10px;
  background: #fff;
}

.embed-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.embed-dim,
.embed-dim-h,
.embed-range {
  width: 100%;
  max-width: 100%;
  font: inherit;
  border: 1px solid #d5e0e6;
  border-radius: 10px;
  background: #fff;
}

.embed-dim,
.embed-dim-h {
  padding: 0.5rem 0.65rem;
}

.embed-dims small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.embed-range {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #0b3a4d;
}

.embed-city {
  padding: 0.55rem 0.7rem;
}

.embed-code {
  display: block;
  min-height: 4.2rem;
  padding: 0.7rem 0.75rem;
  resize: vertical;
  line-height: 1.45;
  font-size: 0.78rem;
  color: #0f172a;
}

.embed-hint,
.embed-preview-note,
.embed-copy-status {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.embed-copy {
  margin-top: 0;
}

.embed-preview-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #0b3a4d;
}

.embed-preview-frame {
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem;
  border: 1px dashed #c5d4dc;
  border-radius: 12px;
  background: #f4f8fb;
}

.embed-preview-frame.is-dark {
  background: #1a2830;
  border-color: #3a5160;
}

.embed-preview-host {
  min-height: 0;
}

.embed-preview-host .ghd-wx {
  max-width: 100%;
}

.embed-how ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.embed-how li {
  margin: 0 0 0.4rem;
}
