@import url('styles.css');

/* ===================================================================
   Delivery page — map feature
   Prefix: .seba-map-, .seba-delivery-
   =================================================================== */

/* ---------- Hero strip (slim, light background) ---------- */
.seba-delivery-hero {
  background: var(--paper);
  padding: 8rem 0 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.seba-delivery-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.seba-delivery-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--orange-hot);
  margin-bottom: 1rem;
}
.seba-delivery-hero .eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--orange-hot);
}
.seba-delivery-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.seba-delivery-hero h1 em { font-style: italic; color: var(--orange-hot); font-weight: 300; }
.seba-delivery-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(10, 26, 63, 0.8);
  max-width: 640px;
}

/* ---------- Map container ---------- */
.seba-map-wrap {
  background: var(--paper-warm);
  padding: 2.5rem 0 3rem;
}
.seba-map-region {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.seba-map-frame {
  position: relative;
  border-radius: 8px;
  border-top: 2px solid var(--orange);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(10, 26, 63, 0.35);
  background: #DCE3E8;
}
#delivery-map {
  width: 100%;
  height: 560px;
}
@media (max-width: 1024px) { #delivery-map { height: 420px; } }
@media (max-width: 640px)  { #delivery-map { height: 360px; } }

.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-attrib a { color: var(--navy); }

/* ---------- Quarry pin (primary) ---------- */
.seba-map-quarry {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 14px rgba(10, 26, 63, 0.28);
  animation: seba-quarry-breath 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.seba-map-quarry:hover,
.seba-map-quarry:focus-visible { transform: scale(1.05); }
.seba-map-quarry:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.seba-map-quarry-core {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
@keyframes seba-quarry-breath {
  0%, 100% { box-shadow: 0 6px 14px rgba(10, 26, 63, 0.22), 0 0 0 0 rgba(247, 168, 0, 0.45); }
  50%      { box-shadow: 0 10px 22px rgba(10, 26, 63, 0.12), 0 0 0 10px rgba(247, 168, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .seba-map-quarry { animation: none; }
}

/* ---------- Wharf marker (subtle secondary landmark) ---------- */
.seba-map-wharf {
  display: inline-flex; align-items: center; gap: 6px;
  pointer-events: none;
}
.seba-map-wharf::before {
  content: '';
  width: 10px; height: 10px;
  background: #F6F3EC;
  border: 2px solid var(--navy);
  border-radius: 2px;
  display: inline-block;
}
.seba-map-wharf-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(246, 243, 236, 0.92);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- Destination pins ---------- */
.seba-map-dest {
  position: relative;
  width: 22px;
  height: 32px;
}
.seba-map-dest-pin {
  position: absolute;
  inset: 0;
  width: 22px; height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 3px 4px rgba(10, 26, 63, 0.25));
  transition: transform 0.15s ease;
}
.seba-map-dest-pin svg { width: 100%; height: 100%; display: block; }
.seba-map-dest-pin:hover,
.seba-map-dest-pin:focus-visible { transform: translateY(-2px); }
.seba-map-dest-pin:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.seba-map-dest-label {
  position: absolute;
  left: 100%;
  top: 2px;
  transform: translateX(6px);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 63, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(10, 26, 63, 0.1);
  pointer-events: none;
}

/* ---------- Info card (slides in from right) ---------- */
.seba-map-card {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 5;
  width: 300px;
  max-width: calc(100% - 40px);
  background: var(--paper);
  border-radius: 6px;
  border-top: 3px solid var(--orange);
  box-shadow: 0 18px 44px rgba(10, 26, 63, 0.25);
  padding: 1.4rem 1.5rem 1.5rem;
  transform: translateX(16px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.seba-map-card.is-open { transform: translateX(0); opacity: 1; }
.seba-map-card[hidden] { display: none; }
.seba-map-card-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.seba-map-card-close:hover,
.seba-map-card-close:focus-visible { background: rgba(10, 26, 63, 0.08); color: var(--navy); outline: none; }
.seba-map-card-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 1.6rem 0.6rem 0;
}
.seba-map-card-meta,
.seba-map-card-time {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.seba-map-card-time { font-size: 13px; opacity: 0.85; margin-bottom: 1rem; }
.seba-map-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.seba-map-card-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 640px) {
  .seba-map-card {
    top: auto;
    bottom: 16px;
    right: 16px; left: 16px;
    width: auto;
    max-width: none;
  }
}

/* ---------- Map legend ---------- */
.seba-map-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(246, 243, 236, 0.92);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(10, 26, 63, 0.12);
}
.seba-map-legend-row { display: inline-flex; align-items: center; gap: 8px; }
.seba-map-legend-swatch { width: 22px; height: 3px; border-radius: 2px; display: inline-block; }
.seba-map-legend-swatch--road { background: var(--navy); }
.seba-map-legend-swatch--river {
  background: repeating-linear-gradient(90deg, var(--orange) 0 5px, transparent 5px 9px);
  height: 4px;
}

/* ---------- Destinations strip ---------- */
.seba-destinations {
  background: var(--paper);
  padding: 5rem 0;
}
.seba-destinations-inner { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.seba-destinations-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.seba-destinations-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.seba-destinations-head h2 em { font-style: italic; color: var(--orange-hot); }
.seba-destinations-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}
.seba-destinations-strip {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 2rem;
  margin: 0 -0.25rem;
  list-style: none;
}
.seba-destinations-strip::-webkit-scrollbar { height: 6px; }
.seba-destinations-strip::-webkit-scrollbar-track { background: var(--line-light); border-radius: 3px; }
.seba-destinations-strip::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
.seba-dest-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 4px 10px -6px rgba(10, 26, 63, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}
.seba-dest-card:hover,
.seba-dest-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(10, 26, 63, 0.25);
  border-color: var(--orange);
  outline: none;
}
.seba-dest-card-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--orange-hot);
  letter-spacing: 0.02em;
}
.seba-dest-card-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.seba-dest-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.seba-dest-card-time {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.7;
  margin: 0;
}
.seba-dest-card-link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  text-decoration: none;
  border-top: 1px solid var(--line-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
}
.seba-dest-card:hover .seba-dest-card-link,
.seba-dest-card:focus-visible .seba-dest-card-link { color: var(--orange-hot); }

@media (max-width: 900px) {
  .seba-destinations-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .seba-dest-card { flex-basis: 260px; }
}

/* ---------- Logistics explainer ---------- */
.seba-logistics {
  background: var(--paper-warm);
  padding: 5rem 0 6rem;
}
.seba-logistics-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.seba-logistics-head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.seba-logistics-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.seba-logistics-head h2 em { font-style: italic; color: var(--orange-hot); }
.seba-logistics-head p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.seba-logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.seba-logistics-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.75rem 2rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.seba-logistics-card:hover { transform: translateY(-2px); border-color: var(--orange); }
.seba-logistics-step {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--orange-hot);
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}
.seba-logistics-icon {
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  color: var(--navy);
}
.seba-logistics-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.seba-logistics-card p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .seba-logistics-grid { grid-template-columns: 1fr; }
}

/* ---------- Bottom CTA band ---------- */
.seba-cta-band {
  background: var(--navy);
  color: var(--paper);
  padding: 3.5rem 0;
}
.seba-cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.seba-cta-band h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}
.seba-cta-band h2 em { font-style: italic; color: var(--orange); }

