/* GasOnTheWater — marina detail page styles */

:root {
  --navy:    #0a2540; --deep: #102a43; --ink: #1a3a5c;
  --surface: #243b53; --card: #334e68; --border: #627d98;
  --ocean: #1a6b8a; --ocean-dim: #155a74; --wake: #2488ad; --foam: #4fa8c7;
  --noeth: #10b981; --noeth-dim: #059669; --diesel: #f59e0b; --diesel-dim: #d97706;
  --text: #f1f5f9; --muted: #94a3b8; --dim: #64748b;
  --verified: #34d399; --claim: #ff6b6b; --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(26,107,138,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #0a2540 0%, #102a43 100%);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,37,64,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}
.header-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}
.logo-icon { font-size: 1.4rem; }
.logo-text { color: var(--foam); }
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-back:hover { color: var(--foam); background: rgba(255,255,255,0.05); }

.container { max-width: 840px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.station-header { margin-bottom: 1.25rem; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--wake); text-decoration: none; }
.breadcrumb a:hover { color: var(--foam); }

.station-title-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.station-title-icon { font-size: 2.2rem; margin-top: 0.1rem; }
.station-title-text { flex: 1; }
h1.station-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.station-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.35rem; }
.station-location { color: var(--muted); font-size: 0.9rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge.verified { background: rgba(52,211,153,0.15); color: var(--verified); }
.badge.claimed  { background: rgba(36,136,173,0.2); color: var(--wake); }
.badge.amenity  { background: rgba(255,255,255,0.07); color: var(--muted); }

.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 640px) { .content-grid { grid-template-columns: 1fr; } }

/* Info card */
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.info-card-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.info-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(98,125,152,0.2); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon { font-size: 1rem; margin-top: 0.05rem; }
.info-label { font-size: 0.75rem; color: var(--dim); margin-bottom: 0.1rem; }
.info-value { font-size: 0.9rem; color: var(--text); }
.info-value a { color: var(--wake); text-decoration: none; }
.info-value a:hover { color: var(--foam); text-decoration: underline; }

/* Map card */
.map-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.map-card-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.75rem 1.1rem; border-bottom: 1px solid rgba(98,125,152,0.2); }
#station-map { width: 100%; height: 220px; }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { margin: 0.75rem 1rem; font-family: 'Inter', system-ui, sans-serif; }
.map-popup-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.map-popup-addr { font-size: 0.78rem; color: #627d98; margin-top: 0.2rem; }

/* Layer toggle control — dark theme */
.leaflet-control-layers { background: rgba(10,37,64,0.92); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: #e2e8f0; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; padding: 6px 10px; }
.leaflet-control-layers label { color: #e2e8f0; cursor: pointer; }
.leaflet-control-layers-separator { border-top-color: rgba(255,255,255,0.12); }

/* Prices card */
.prices-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.prices-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.price-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(98,125,152,0.2); }
.price-row:last-child { border-bottom: none; padding-bottom: 0; }
.price-type-icon { font-size: 1.2rem; }
.price-type-info { flex: 1; }
.price-type-name { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem; }
.price-value { font-size: 1.3rem; font-weight: 700; }
.price-value.noeth  { color: var(--noeth); }
.price-value.diesel { color: var(--diesel); }
.price-age { font-size: 0.7rem; color: var(--dim); margin-top: 0.1rem; }
.price-na  { color: var(--dim); font-size: 0.9rem; }

/* Amenities card */
.amenities-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.amenities-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.amenities-grid  { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Claim CTA */
.claim-cta-card {
  background: linear-gradient(135deg, rgba(36,136,173,0.25), rgba(16,90,116,0.25));
  border: 1px solid rgba(36,136,173,0.4);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  margin-top: 1rem;
}
.claim-cta-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.claim-cta-sub   { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem; }
.claim-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.claim-cta-btn:hover { background: var(--ocean-dim); }

/* Page footer */
.page-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(98,125,152,0.2); text-align: center; font-size: 0.75rem; color: var(--dim); }
.page-footer a { color: var(--wake); text-decoration: none; }

/* Not found */
.not-found-wrap { max-width: 560px; margin: 0 auto; padding: 3rem 1.25rem; text-align: center; }
.not-found-icon  { font-size: 3rem; margin-bottom: 1rem; }
.not-found-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.not-found-sub   { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.not-found-link  { color: var(--wake); }

/* ── Report Price Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 1.25rem 2rem;
  width: 100%;
  max-width: 480px;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.modal-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
  font-size: 0.72rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.price-input-wrap .currency {
  position: absolute;
  left: 0.75rem;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  pointer-events: none;
}
.price-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.price-input:focus { border-color: var(--ocean); }
.modal-submit {
  width: 100%;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.75rem;
}
.modal-submit:hover { background: var(--ocean-dim); }
.modal-cancel {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}
.modal-cancel:hover { color: var(--text); }

/* ── Toast ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--noeth);
  color: var(--noeth);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

.info-value-muted { color: var(--muted); }
.claim-cta-row { margin-top: 0.85rem; }

/* ── Claim Modal (detail page) ────────────────────────────────────── */
.claim-form-group { margin-bottom: 0.75rem; }
.price-input-pad { padding-left: 0.75rem; }
.price-input-pad.opacity-70 { opacity: 0.7; cursor: default; }
.cursor-ptr { cursor: pointer; }
.form-label-required { color: #ef4444; }
.g-recaptcha-wrap { margin-bottom: 0.75rem; transform-origin: left; transform: scale(0.95); }
.modal-hint { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 0.75rem; }
.claim-modal-scroll { max-height: 90vh; overflow-y: auto; }

/* Mobile: 440px */
@media (max-width: 440px) {
  h1.station-name { font-size: 1.3rem; }
  .price-value { font-size: 1.1rem; }
}