/* Spot detail page — brandkit-aligned */
* { box-sizing: border-box; }

.spot-page {
  min-height: 100vh;
  background: var(--ov-cloud);
  padding: 28px 32px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Breadcrumb */
.crumb {
  font-size: 13px;
  color: var(--ov-slate);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ov-font-sans);
}
.crumb a { color: var(--ov-slate); text-decoration: none; }
.crumb a:hover { color: var(--ov-blue); }
.crumb-current { color: var(--ov-navy); font-weight: 600; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 380px;
  margin-bottom: 28px;
  border-radius: var(--ov-radius-lg);
  overflow: hidden;
}

.gallery > div {
  border-radius: var(--ov-radius-md);
  overflow: hidden;
  position: relative;
}

.g1 { grid-row: 1 / 3; background: var(--ov-line); }
.g2 { background: var(--ov-line); }
.g3 { background: var(--ov-line); }
.g4 { background: var(--ov-line); }
.g5 { background: var(--ov-line); }

/* Gallery layouts by image count */
.gallery--0 { display: none; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--1 .g1 { grid-row: auto; }
.gallery--2 { grid-template-columns: 2fr 1fr; }
.gallery--2 .g1 { grid-row: 1 / 3; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--3 .g1 { grid-row: 1 / 3; }
.gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--4 .g1 { grid-row: 1 / 3; }

.gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.5);
  color: #fff;
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* Two-column layout */
.cols {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* Title row */
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}
.title-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.btn-edit-spot {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-edit-spot:hover { background: #e2e8f0; border-color: #94a3b8; }

.title-row h1 {
  font-family: var(--ov-font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: var(--ov-track-snug);
  margin: 0;
  color: var(--ov-navy);
}

.loc {
  font-size: 15px;
  color: var(--ov-slate);
  margin: 6px 0 0;
  font-family: var(--ov-font-sans);
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--ov-font-sans);
}
.zone-chip--free   { color: var(--ov-free-fg);   background: var(--ov-free-bg); }
.zone-chip--cond   { color: var(--ov-cond-fg);   background: var(--ov-cond-bg); }
.zone-chip--banned { color: var(--ov-banned-fg); background: var(--ov-banned-bg); }

.zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
  font-family: var(--ov-font-sans);
}
.stars { color: #F5A623; font-size: 18px; letter-spacing: 2px; }
.rating-row b { font-family: var(--ov-font-display); font-size: 18px; color: var(--ov-navy); }
.rating-row span { color: var(--ov-slate); font-size: 13px; }

/* Lead text */
.lead {
  font-size: 16px;
  line-height: var(--ov-lh-normal);
  color: var(--ov-steel);
  max-width: 640px;
  margin: 0 0 24px;
  font-family: var(--ov-font-sans);
  white-space: pre-line;
}

/* Facts grid */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.fact {
  background: var(--ov-white);
  border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius-md);
  padding: 16px 18px;
}

.fact-key {
  font-family: var(--ov-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ov-slate);
}

.fact-val {
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 18px;
  margin-top: 6px;
  color: var(--ov-navy);
}
.fact-val.mono { font-family: var(--ov-font-mono); font-size: 14px; color: var(--ov-blue); }

/* Section */
.section { margin-top: 30px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header h2 {
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  color: var(--ov-navy);
}

.muted { color: var(--ov-slate); font-weight: 400; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--ov-radius-sm);
  border: 1.5px solid var(--ov-blue);
  color: var(--ov-blue);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s ease;
}
.btn-ghost:hover { background: var(--ov-blue-50); }

.no-reviews {
  font-family: var(--ov-font-sans);
  font-size: 15px;
  color: var(--ov-slate);
  margin-top: 12px;
}

/* Reviews */
.review-row {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--ov-line);
}

.av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 15px;
}

.rev-body { flex: 1; }

.rev-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rev-name {
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ov-navy);
}

.rev-when { font-size: 12px; color: var(--ov-slate); font-family: var(--ov-font-sans); }

.rev-stars { color: #F5A623; font-size: 13px; margin-bottom: 6px; }

.rev-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ov-steel);
  font-family: var(--ov-font-sans);
}

/* Sidebar cards */
.card {
  background: var(--ov-white);
  border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius-lg);
  padding: 22px;
  box-shadow: var(--ov-shadow-sm);
}
.card + .card { margin-top: 18px; }

.card-title {
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--ov-navy);
}

/* Mini map */
.mini-map {
  height: 150px;
  border-radius: var(--ov-radius-md);
  background: #DDE6EC;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.mini-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini-pin {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -100%);
}

.mini-pin-dot {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--ov-free);
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Card actions */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--ov-radius-sm);
  background: var(--ov-blue);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.14s ease;
}
.btn-primary:hover { background: var(--ov-blue-700); }

.btn-ghost-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  font-family: var(--ov-font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--ov-radius-sm);
  background: transparent;
  color: var(--ov-blue);
  border: 1.5px solid var(--ov-blue);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s ease;
}
.btn-ghost-full:hover { background: var(--ov-blue-50); }

/* Zone restriction disclaimer banner */
.zone-disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--ov-radius-lg);
  border: 1.5px solid;
  margin-bottom: 22px;
  font-family: var(--ov-font-sans);
}
.zone-disclaimer--conditional {
  background: #fffbeb;
  border-color: #fcd34d;
}
.zone-disclaimer--forbidden {
  background: #fff1f2;
  border-color: #fca5a5;
}
.zone-disclaimer-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.zone-disclaimer-body { flex: 1; min-width: 0; }
.zone-disclaimer-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ov-navy);
}
.zone-disclaimer--forbidden .zone-disclaimer-body strong { color: #991b1b; }
.zone-disclaimer--conditional .zone-disclaimer-body strong { color: #92400e; }
.zone-disclaimer-body p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ov-slate);
}
.zone-disclaimer-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ov-blue);
}
.zone-disclaimer-link:hover { text-decoration: underline; }

/* ANAC card */
.card-anac { border-color: var(--ov-line); }
.card-title-anac { color: var(--ov-navy); }

/* SpotAnacAlert */
.anac-alert { display: flex; flex-direction: column; gap: 8px; }

.anac-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--ov-radius-md);
  border-left: 3px solid var(--ov-line);
  background: var(--ov-cloud);
  font-family: var(--ov-font-sans);
  font-size: 13px;
}
.anac-row--free { border-left-color: #16a34a; background: #f0fdf4; }

.anac-icon { font-size: 15px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.anac-zone-name { font-weight: 400; color: var(--ov-slate); }
.anac-limit { font-size: 12px; color: var(--ov-slate); }
.anac-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ov-slate);
  line-height: 1.45;
}
.anac-sub a { color: var(--ov-blue); text-decoration: none; }
.anac-sub a:hover { text-decoration: underline; }

.anac-notam-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--ov-radius-md);
  background: var(--ov-cloud);
  font-family: var(--ov-font-sans);
  font-size: 12px;
  color: var(--ov-slate);
  border: 1px solid var(--ov-line);
}
.anac-notam-strip--active { background: #fff7ed; border-color: #fed7aa; color: #92400e; }
.anac-notam-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ov-slate); flex-shrink: 0; }
.anac-notam-strip--active .anac-notam-dot { background: #f97316; }
.anac-notam-strip a { color: var(--ov-blue); text-decoration: none; }
.anac-notam-strip a:hover { text-decoration: underline; }

.anac-altitude-note { font-size: 11px; color: var(--ov-slate); margin: 0; font-family: var(--ov-font-sans); }

/* Forecast chart */
.forecast-wrap { display: flex; flex-direction: column; gap: 10px; }

.forecast-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.forecast-tab {
  padding: 5px 14px;
  border-radius: var(--ov-radius-pill);
  border: 1.5px solid var(--ov-line);
  background: var(--ov-white);
  font-family: var(--ov-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ov-slate);
  cursor: pointer;
  transition: all 0.14s ease;
}
.forecast-tab.active,
.forecast-tab:hover {
  background: var(--ov-navy);
  border-color: var(--ov-navy);
  color: var(--ov-white);
}

.forecast-chart-box { width: 100%; }
.forecast-hint {
  font-family: var(--ov-font-sans);
  font-size: 11px;
  color: var(--ov-slate);
  margin: 0 0 8px;
  line-height: 1.4;
}
.forecast-source {
  font-family: var(--ov-font-sans);
  font-size: 10px;
  color: var(--ov-slate);
  margin: 0;
  opacity: 0.7;
}
.forecast-loading,
.forecast-error {
  font-family: var(--ov-font-sans);
  font-size: 13px;
  color: var(--ov-slate);
  padding: 24px 0;
  text-align: center;
}

/* Chart SVG + legend */
.fc-chart-wrap { position: relative; width: 100%; }
.fc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fc-legend {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--ov-font-sans);
  font-size: 11px;
  color: var(--ov-slate);
  align-items: center;
}
.fc-legend-item {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.fc-dot {
  display: inline-block !important;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fc-ref-line {
  display: inline-flex !important;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1.5px dashed;
  font-size: 10px;
  font-weight: 600;
}

/* Tooltip */
.fc-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ov-navy);
  color: #fff;
  font-family: var(--ov-font-sans);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  line-height: 1.6;
}
.fc-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ov-navy);
}

/* Weather */
.meteo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--ov-line);
  font-size: 14px;
  font-family: var(--ov-font-sans);
}
.meteo-row:last-of-type { border-bottom: none; }

.meteo-lbl { color: var(--ov-slate); }
.meteo-val { font-family: var(--ov-font-mono); font-weight: 500; color: var(--ov-navy); }

.meteo-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ov-free-bg);
  border-radius: var(--ov-radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ov-free-fg);
  font-family: var(--ov-font-sans);
}

/* Responsive */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .title-row h1 { font-size: 28px; }
}

@media (max-width: 600px) {
  .spot-page { padding: 16px 16px 48px; }
  .gallery { height: 220px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
  .g3, .g4, .g5 { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
}
