/* ══════════════════════════════════════════════════════════════════════
   Severín Map Plugin — Frontend (dark design with side panel)
   ══════════════════════════════════════════════════════════════════════ */

.sme-map-section {
  --sme-gold: #c8a868;
  --sme-gold-deep: #a88947;
  --sme-gold-tint: rgba(200, 168, 104, 0.06);
  --sme-ink: #1a1a1a;
  --sme-ink-soft: #4a4a4a;
  --sme-ink-mute: #8a8a8a;
  --sme-cream: #faf7f1;
  --sme-line: rgba(26, 26, 26, 0.09);
  --sme-ease: cubic-bezier(.22, 1, .36, 1);
  --sme-ff-d: 'Cormorant Garamond', Georgia, serif;
  --sme-ff-b: 'Outfit', system-ui, -apple-system, sans-serif;

  position: relative;
  padding: 16px 16px;           /* desktop/laptop — 50% of previous */
  background: transparent;
  color: inherit;
  font-family: var(--sme-ff-b);
  -webkit-font-smoothing: antialiased;
}

.sme-map-section *,
.sme-map-section *::before,
.sme-map-section *::after { box-sizing: border-box; }

.sme-map-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.sme-map-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* ── Map frame ───────────────────────────────────────────────────── */
.sme-map-frame {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #fff 0%, #f8f4ec 100%);
  border: 1px solid rgba(200,168,104,0.35);
  padding: 28px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.5);
}
.sme-map-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200,168,104,0.2);
  pointer-events: none;
  z-index: 1;
}

/* Corner ornaments */
.sme-map-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}
.sme-map-corner::before,
.sme-map-corner::after {
  content: '';
  position: absolute;
  background: var(--sme-gold);
}
.sme-map-corner--tl { top: 20px; left: 20px; }
.sme-map-corner--tl::before { top: 0; left: 0; width: 14px; height: 1px; }
.sme-map-corner--tl::after  { top: 0; left: 0; width: 1px; height: 14px; }
.sme-map-corner--tr { top: 20px; right: 20px; }
.sme-map-corner--tr::before { top: 0; right: 0; width: 14px; height: 1px; }
.sme-map-corner--tr::after  { top: 0; right: 0; width: 1px; height: 14px; }
.sme-map-corner--bl { bottom: 20px; left: 20px; }
.sme-map-corner--bl::before { bottom: 0; left: 0; width: 14px; height: 1px; }
.sme-map-corner--bl::after  { bottom: 0; left: 0; width: 1px; height: 14px; }
.sme-map-corner--br { bottom: 20px; right: 20px; }
.sme-map-corner--br::before { bottom: 0; right: 0; width: 14px; height: 1px; }
.sme-map-corner--br::after  { bottom: 0; right: 0; width: 1px; height: 14px; }

/* Tag */
.sme-map-tag {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sme-ink);
  color: var(--sme-gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 10px 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sme-map-tag::before,
.sme-map-tag::after {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--sme-gold);
  opacity: 0.5;
}

/* Scale bar */
.sme-map-scale {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sme-ink-mute);
  z-index: 3;
}
.sme-map-scale-bar {
  display: flex;
  height: 6px;
  width: 120px;
  border: 1px solid var(--sme-ink);
}
.sme-map-scale-bar span { flex: 1; }
.sme-map-scale-bar span:nth-child(odd) { background: var(--sme-ink); }

/* Compass */
.sme-map-compass {
  position: absolute;
  bottom: 36px;
  right: 36px;
  width: 76px;
  height: 76px;
  z-index: 3;
  overflow: visible;
  transform: rotate(35deg);
  transform-origin: center center;
}
.sme-map-compass circle {
  fill: #fff;
  stroke: var(--sme-ink);
  stroke-width: 0.6;
}
.sme-compass-cardinal {
  fill: var(--sme-ink);
  font-family: var(--sme-ff-d);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
}
.sme-compass-n { fill: var(--sme-gold); }
.sme-compass-s { fill: var(--sme-ink-mute); }

/* Plan holder with subtle perspective */
.sme-map-plan {
  margin-top: 64px;
  margin-bottom: 32px;
  flex: 1;
  position: relative;
  aspect-ratio: 850 / 745;
  perspective: 2400px;
  perspective-origin: 50% 30%;
}
.sme-map-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,26,26,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}
#smeFloorSvg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
  overflow: visible;
  transform: rotateX(10deg) rotateZ(0.4deg);
  transform-origin: 50% 55%;
  transition: transform .6s var(--sme-ease);
  filter: drop-shadow(0 24px 30px rgba(26,26,26,0.18));
}
.sme-map-plan:hover #smeFloorSvg { transform: rotateX(6deg); }

/* Zones — status-based palette (readable with overlay text) */
.sme-zone {
  stroke: rgba(255,255,255,0.9);
  stroke-width: 1;
  stroke-linejoin: round;
  cursor: pointer;
  transition:
    fill .35s var(--sme-ease),
    opacity .35s var(--sme-ease),
    filter .35s var(--sme-ease),
    transform .35s var(--sme-ease);
  transform-box: fill-box;
  transform-origin: center;
}
.sme-zone--taken,
.sme-zone--reserved,
.sme-zone--available,
.sme-zone--info {
  filter:
    drop-shadow(0 1.5px 0 rgba(26,26,26,0.12))
    drop-shadow(0 4px 6px rgba(26,26,26,0.08));
}
.sme-zone--taken    { fill: #efe7d7; }
.sme-zone--available,
.sme-zone--reserved { fill: var(--sme-gold); opacity: 0.88; }
.sme-zone--info     { fill: #e0dacf; }
.sme-zone--ground {
  fill: #f3ecde;
  stroke: rgba(26,26,26,0.06);
}
.sme-zone:hover:not(.sme-zone--ground) {
  fill: var(--sme-gold);
  filter: brightness(1.08);
}
.sme-zone.is-active:not(.sme-zone--ground) {
  fill: var(--sme-gold-deep);
  filter:
    drop-shadow(0 0 8px rgba(200,168,104,0.55))
    drop-shadow(0 4px 12px rgba(168,137,71,0.4));
  animation: smeZonePulse 2.4s var(--sme-ease) infinite;
}
@keyframes smeZonePulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(200,168,104,0.55)) drop-shadow(0 4px 12px rgba(168,137,71,0.4)); }
  50%      { filter: drop-shadow(0 0 14px rgba(200,168,104,0.8))  drop-shadow(0 6px 18px rgba(168,137,71,0.55)); }
}

/* Zone labels (overlay text on the map) */
.sme-zone-label {
  font-family: var(--sme-ff-b);
  font-weight: 600;
  fill: rgba(26,26,26,0.82);
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 2;
  stroke-linejoin: round;
  letter-spacing: 0.02em;
}

/* ── Side panel ──────────────────────────────────────────────────── */
.sme-map-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(200,168,104,0.05) 0%, transparent 40%),
    var(--sme-ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.09);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sme-map-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(
    -45deg,
    transparent 0,
    transparent 50%,
    rgba(200,168,104,0.08) 50%,
    rgba(200,168,104,0.08) 100%
  );
  pointer-events: none;
}
.sme-map-panel::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: var(--sme-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(200,168,104,0.6);
}

/* Status chips */
.sme-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.sme-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.sme-map-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 1px;
}
.sme-map-chip--taken::before    { background: #efe7d7; }
.sme-map-chip--reserved::before { background: var(--sme-gold); }
.sme-map-chip--info::before     { background: #c6c0b5; }

/* Panel content */
.sme-panel-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.sme-panel-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.sme-panel-logo[hidden] { display: none; }
.sme-panel-logo img {
  height: 64px;           /* consistent visual height for every logo */
  max-width: 200px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  /* colored logos — no invert filter */
}

.sme-panel-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sme-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sme-panel-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sme-gold);
}

.sme-panel-title {
  font-family: var(--sme-ff-d);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.sme-panel-sub {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sme-gold);
  margin-bottom: 28px;
}
.sme-panel-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0 0 28px;
}
.sme-panel-desc[hidden] { display: none; }

.sme-panel-rows {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.sme-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  gap: 12px;
}
.sme-panel-row[hidden] { display: none; }
.sme-panel-row span:first-child {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  flex-shrink: 0;
}
.sme-panel-row span:last-child {
  color: #fff;
  font-weight: 500;
  text-align: right;
}

/* Opening hours block (7-day list) */
.sme-panel-hours-block {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sme-panel-hours-block[hidden] { display: none; }
.sme-panel-hours-head {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 12px;
  font-weight: 500;
}
.sme-panel-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sme-panel-hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.sme-panel-hours-list li span:first-child {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.sme-panel-hours-list li span:last-child {
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.sme-panel-hours-list li.sme-hours-closed span:last-child {
  color: rgba(255,255,255,0.38);
  font-weight: 400;
}

/* Status dot */
.sme-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sme-status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sme-status-dot--taken::before    { background: #efe7d7; box-shadow: 0 0 0 3px rgba(239,231,215,0.18); }
.sme-status-dot--available::before,
.sme-status-dot--reserved::before { background: var(--sme-gold); box-shadow: 0 0 0 3px rgba(200,168,104,0.25); }
.sme-status-dot--info::before     { background: #c6c0b5; box-shadow: 0 0 0 3px rgba(198,192,181,0.18); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sme-map-section { padding: 12px 16px; }
  .sme-map-head { grid-template-columns: 1fr; }
  .sme-map-layout { grid-template-columns: 1fr; }
  .sme-map-frame { min-height: 480px; padding: 20px; }
  .sme-map-plan { margin-top: 56px; margin-bottom: 24px; }
  .sme-map-scale, .sme-map-compass { display: none; }
  .sme-panel-title { font-size: 28px; }
}
@media (max-width: 560px) {
  .sme-map-section { padding: 4px 16px; }   /* mobile — ~75% smaller */
  .sme-map-frame { padding: 16px; min-height: 380px; }
  .sme-map-tag { font-size: 9px; padding: 8px 14px; }
  .sme-map-panel { padding: 28px 22px; }
}
