@import url('./fonts/fonts.css');

:root {
  --amber-50: #fffbeb;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --amber-950: #451a03;
  --sky-100: #e0f2fe;
  --yellow-400: #facc15;
}

* {
  box-sizing: border-box;
}

body.pirate-map-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  color: var(--amber-950);
  background: var(--sky-100);
}

.font-pirate {
  font-family: 'Pirata One', cursive;
}

.map-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.map-shell--fullscreen {
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}

.map-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 251, 235, 0.95);
  border-bottom: 4px solid var(--amber-800);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 500;
}

.map-topbar--public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
}

.map-topbar-title {
  justify-self: start;
  min-width: 0;
}

.map-topbar-end {
  justify-self: end;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

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

.map-topbar h1 {
  margin: 0;
  font-family: 'Pirata One', cursive;
  font-size: 1.6rem;
  color: var(--amber-900);
}

.map-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 2px solid var(--amber-800);
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
}

.map-btn:hover {
  transform: translateY(-1px);
}

.map-btn-primary {
  background: var(--amber-800);
  color: var(--yellow-400);
}

.map-btn-secondary {
  background: var(--yellow-400);
  color: var(--amber-900);
}

.map-btn-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #b91c1c;
}

.map-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.map-fab-group {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.map-fab {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--amber-800);
  border-radius: 999px;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.1s ease, background 0.15s ease;
}

.map-fab:hover {
  transform: translateY(-2px);
}

.map-fab-locate {
  background: #e0f2fe;
  color: #0369a1;
}

.map-fab-locate:hover {
  background: #bae6fd;
}

.map-fab-suggest {
  background: var(--yellow-400);
  color: var(--amber-900);
}

.map-fab-suggest:hover {
  background: #fde047;
}

.map-fab-toggle {
  background: #f8fafc;
  color: #0f172a;
}

.map-fab-toggle--panorama {
  background: #ede9fe;
}

.map-fab-toggle--poi {
  background: #fef3c7;
}

.map-fab-toggle--smart {
  background: #dcfce7;
}

.map-fab-toggle.is-off {
  opacity: 0.42;
  filter: grayscale(0.45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.map-fab-toggle.is-off:hover {
  opacity: 0.72;
}

.map-fab-panorama-return {
  background: #ede9fe;
  color: #5b21b6;
}

.map-fab-panorama-return:hover {
  background: #ddd6fe;
}

.user-location-marker {
  background: transparent;
  border: none;
}

.user-location-pin {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  animation: user-location-bounce 2s ease-in-out infinite;
  transition: transform 0.8s ease-out;
}

.user-location-accuracy-ring {
  fill: rgba(14, 165, 233, 0.12);
  stroke: rgba(14, 165, 233, 0.45);
  stroke-width: 2;
}

.user-location-accuracy-text {
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.85;
}

@keyframes user-location-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.map-canvas-wrap--fullscreen {
  flex: 1;
  min-height: 0;
}

.map-canvas-wrap--fullscreen #pirate-map {
  height: 100%;
}

.map-lcp-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  background: var(--sky-100);
}

.map-canvas-wrap #pirate-map {
  position: relative;
  z-index: 1;
}

#pirate-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: var(--sky-100);
}

.leaflet-container {
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
}

.map-zoom-hud {
  position: absolute;
  left: max(0.55rem, env(safe-area-inset-left, 0px));
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  max-width: calc(100% - 1.1rem);
  pointer-events: none;
}

.map-zoom-indicator {
  font-size: 0.62rem;
  line-height: 1.25;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(30, 41, 59, 0.52);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.map-zoom-share {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(30, 41, 59, 0.72);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.map-zoom-share:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.map-zoom-share:focus-visible {
  outline: 2px solid rgba(12, 74, 110, 0.55);
  outline-offset: 2px;
}

.map-pick-host > .map-zoom-indicator {
  position: absolute;
  left: max(0.55rem, env(safe-area-inset-left, 0px));
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  max-width: calc(100% - 1.1rem);
  pointer-events: none;
}

.booking-map-marker {
  background: transparent;
  border: none;
}

.booking-map-marker--emoji {
  background: transparent !important;
  border: none !important;
}

.booking-map-marker--emoji .leaflet-marker-icon {
  background: transparent;
}

.booking-map-emoji-pin {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.booking-map-emoji-pin--small {
  width: 22px;
  height: 22px;
}

.booking-map-marker--emoji .booking-map-emoji {
  font-size: 1.45rem;
  line-height: 1;
  display: block;
}

.booking-map-marker--emoji-small .booking-map-emoji {
  font-size: 0.95rem;
}

.booking-map-marker--webcam {
  background: transparent;
  border: none;
}

.booking-map-webcam-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--webcam-border, #115e59);
  background: var(--webcam-bg, #0f766e);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.booking-map-webcam-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.booking-map-webcam-play--full {
  font-size: 1.35rem;
}

.booking-map-webcam-play--small {
  font-size: 0.72rem;
}

.booking-map-webcam-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.booking-map-webcam-thumb--full {
  width: 72px;
  height: 54px;
}

.booking-map-webcam-thumb--pin {
  width: 56px;
  height: 42px;
}

.booking-map-webcam-thumb--small {
  width: 40px;
  height: 30px;
  border-radius: 6px;
}

.booking-map-pin-wrap--webcam {
  width: 112px;
  height: 96px;
}

.booking-map-pin-wrap--webcam .booking-map-label {
  margin-top: 4px;
}

.map-modal--webcam {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  height: 100dvh;
  box-sizing: border-box;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.map-modal-panel--webcam {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  display: block;
  overflow: hidden;
  position: relative;
  background: #000;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .map-modal--webcam {
    padding:
      max(0.35rem, env(safe-area-inset-top, 0))
      max(0.35rem, env(safe-area-inset-right, 0))
      max(0.35rem, env(safe-area-inset-bottom, 0))
      max(0.35rem, env(safe-area-inset-left, 0));
    align-items: center;
    justify-content: center;
    height: 100dvh;
  }

  .map-modal-panel--webcam {
    width: min(98vw, 1400px);
    height: min(98dvh, 980px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
}

.webcam-close-overlay {
  position: absolute;
  top: max(0.65rem, env(safe-area-inset-top, 0.65rem));
  right: max(0.65rem, env(safe-area-inset-right, 0.65rem));
  z-index: 10;
  background: rgba(0, 0, 0, 0.72) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.webcam-title-overlay {
  position: absolute;
  top: max(0.65rem, env(safe-area-inset-top, 0.65rem));
  left: max(0.85rem, env(safe-area-inset-left, 0.85rem));
  z-index: 10;
  margin: 0;
  padding: 0.35rem 0.65rem;
  max-width: calc(100% - 5.5rem);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.webcam-viewport {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: none;
  border-radius: inherit;
  background: #000;
  cursor: grab;
  touch-action: none;
}

.webcam-viewport.is-dragging {
  cursor: grabbing;
}

.webcam-viewport img {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, left, top;
}

.webcam-viewport img.is-loading {
  opacity: 0.7;
}

.webcam-viewport img.is-error {
  opacity: 0.35;
}

.webcam-modal-toolbar {
  position: absolute;
  left: 50%;
  bottom: max(0.85rem, calc(env(safe-area-inset-bottom, 0px) + 0.65rem));
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.webcam-toolbar-btn {
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  line-height: 1;
}

.webcam-toolbar-btn.is-active,
.webcam-toolbar-btn.is-active:hover {
  background: rgba(124, 58, 237, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
}

.map-modal--panorama {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  height: 100dvh;
  box-sizing: border-box;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.map-modal-panel--panorama {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #000;
  border: none;
  border-radius: 0;
}

.panorama-viewport {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #000;
}

.panorama-viewport .psv-container {
  width: 100% !important;
  height: 100% !important;
}

.panorama-viewport .psv-markers,
.admin-panorama-preview .psv-markers {
  pointer-events: none;
}

.panorama-modal-toolbar {
  position: absolute;
  left: 50%;
  bottom: max(0.85rem, calc(env(safe-area-inset-bottom, 0px) + 0.65rem));
  transform: translateX(-50%);
  z-index: 10;
}

.admin-panorama-preview {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  position: relative;
  contain: layout paint style;
  isolation: isolate;
}

.admin-panorama-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-panorama-editor .admin-row {
  position: relative;
  z-index: 1;
}

.admin-panorama-toolbar {
  align-items: center;
  gap: 0.45rem;
}

.admin-panorama-zoom-btn {
  min-width: 2.5rem;
  padding-inline: 0.65rem;
  font-size: 1.15rem;
  line-height: 1;
}

.admin-panorama-preview .psv-container {
  width: 100% !important;
  height: 100% !important;
}

.admin-panorama-exif-hint {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.22);
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-panorama-exif-hint .map-btn {
  margin-top: 0.45rem;
}

.admin-panorama-tune {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.admin-panorama-tune .admin-field {
  margin-bottom: 0.5rem;
}

.psv-poi-hotspot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
  transition: transform 0.12s ease, background 0.12s ease;
}

.psv-poi-hotspot:hover,
.psv-poi-hotspot:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.32);
  outline: none;
}

.panorama-viewport .psv-tooltip,
.admin-panorama-preview .psv-tooltip {
  display: none !important;
}

.psv-marker {
  pointer-events: auto !important;
}

.booking-map-marker--temperature {
  background: transparent;
  border: none;
}

.booking-map-marker--weather {
  background: transparent !important;
  border: none !important;
}

.booking-map-weather-cloud {
  position: relative;
  width: 96px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.28));
  cursor: pointer;
}

.booking-map-weather-cloud-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.booking-map-weather-cloud-temps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  margin-top: 0.35rem;
  line-height: 1;
}

.booking-map-weather-temp-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0c4a6e;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

.booking-map-weather-temp-row--air {
  font-size: 0.82rem;
}

.booking-map-weather-temp-row--sea {
  font-size: 0.72rem;
  color: #0369a1;
}

.booking-map-weather-temp-icon {
  font-size: 0.68rem;
  line-height: 1;
}

.map-modal-panel--weather {
  width: min(92vw, 520px);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 1rem;
  background: #f0f9ff;
  border: 2px solid #7dd3fc;
}

.weather-modal-head {
  margin-bottom: 1rem;
}

.weather-modal-head .weather-modal-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #0c4a6e;
  font-size: 1.25rem;
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
}

.weather-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.weather-modal-head-actions .weather-updated {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0369a1;
  white-space: nowrap;
}

.weather-modal-head-actions .weather-refresh-btn {
  min-width: 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.weather-modal-head-actions .map-btn.map-icon-btn {
  min-width: 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  font-size: 1rem;
}

.weather-modal-head .map-modal-close {
  flex-shrink: 0;
  border-color: #0284c7;
  color: #0c4a6e;
}

.weather-modal-head-actions .map-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.weather-detailed-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #bae6fd;
}

.weather-detailed-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0c4a6e;
}

.weather-detailed-request-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.weather-detailed-request-row input[type='email'] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bae6fd;
  border-radius: 0.65rem;
  font: inherit;
}

.weather-unlock-hint {
  margin-top: 0.45rem !important;
  margin-bottom: 0 !important;
}

.weather-current-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.weather-current-card {
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 0.75rem;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.weather-current-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.weather-current-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0369a1;
}

.weather-current-grid.weather-current-grid--detailed .weather-current-card {
  padding: 0.55rem 0.45rem 0.5rem;
}

.weather-current-grid.weather-current-grid--detailed .weather-current-value {
  font-size: 1.35rem;
  line-height: 1.15;
}

.weather-current-compare {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.2;
}

.weather-current-compare--yesterday {
  margin-bottom: 0.15rem;
}

.weather-current-compare--tomorrow {
  margin-top: 0.15rem;
}

.weather-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.weather-current-card--extra .weather-current-value {
  font-size: 1.05rem;
}

.weather-current-compare--yesterday {
  color: #6366f1;
  font-weight: 700;
}

.weather-current-compare--tomorrow {
  color: #ea580c;
  font-weight: 700;
}

.weather-compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: center;
  margin: -0.35rem 0 0.65rem;
  font-size: 0.72rem;
  color: #64748b;
}

.weather-compare-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.weather-compare-swatch {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.weather-compare-swatch--yesterday {
  background: #6366f1;
}

.weather-compare-swatch--now {
  background: #0369a1;
}

.weather-compare-swatch--tomorrow {
  background: #ea580c;
}

.weather-contact-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #bae6fd;
}

.weather-contact-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0c4a6e;
}

.weather-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.weather-contact-row input[type='text'],
.weather-contact-row input[type='tel'] {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bae6fd;
  border-radius: 0.65rem;
  font: inherit;
}

.weather-contact-status {
  margin: 0.4rem 0 0 !important;
}

.weather-sun-grid {
  margin-top: 0.85rem;
}

.weather-golden-hour-value {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.weather-golden-hour-line {
  display: block;
}

.weather-uv-value--low {
  color: #16a34a;
}

.weather-uv-value--normal {
  color: #0369a1;
}

.weather-uv-value--high {
  color: #dc2626;
}

.weather-chart-wrap {
  position: relative;
  margin-top: 0;
}

.weather-chart-now-marker {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: weather-now-pulse 1.6s ease-in-out infinite;
}

@keyframes weather-now-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.55);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(2, 132, 199, 0);
  }
}

.weather-chart-hint {
  display: none;
}

.weather-chart {
  display: block;
  width: 100%;
  height: 200px;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 0.75rem;
}

.weather-updated {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

.booking-map-temperature-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.booking-map-temperature-pin .booking-map-label {
  min-width: 78px;
}

.booking-map-temperature-line {
  display: block;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 700;
}

.pirate-map-cluster-marker {
  background: transparent;
  border: none;
}

.pirate-map-cluster-ring {
  position: relative;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.94);
  border: 2px solid #92400e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.pirate-map-cluster-emoji {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  font-size: 0.78rem;
  line-height: 18px;
  text-align: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: transparent !important;
}

.booking-map-pin-wrap {
  width: 104px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.booking-map-emoji {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.booking-map-label {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 2px solid;
  background-color: var(--label-bg, #f59e0b);
  border-color: var(--label-border, #854d0e);
  color: var(--label-text, #ffffff);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.booking-map-label--tier1,
.booking-map-marker--tier1 .booking-map-label {
  box-shadow: none;
  border-width: 1px;
}

.booking-map-marker--tier1 .booking-map-emoji {
  filter: none;
}

.booking-map-webcam-thumb--tier1 {
  box-shadow: none;
  border-width: 1px;
}

.booking-map-label--sight,
.booking-map-marker--sight .booking-map-label {
  box-shadow: none;
  border-width: 1px;
  border-color: #fff !important;
}

.booking-map-marker--sight .booking-map-emoji {
  filter: none;
}

.booking-map-label-title {
  color: inherit;
}

.booking-map-info {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
  opacity: 0.92;
  color: inherit;
}

.booking-map-popup-info {
  font-size: 0.82em;
  font-weight: 500;
  opacity: 0.9;
}

.booking-map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin-top: 0.55rem;
}

.booking-map-popup-actions a {
  font-weight: 600;
}

.booking-map-popup-share {
  border: none;
  background: transparent;
  color: #0c4a6e;
  font: inherit;
  font-weight: 600;
  font-size: 0.88em;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.booking-map-popup-share:hover {
  opacity: 0.85;
}

.map-share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 12000;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(12, 74, 110, 0.94);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.map-icon-btn {
  min-width: auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.map-search-dropdown {
  position: relative;
  margin-left: 0.15rem;
}

.map-search-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.map-search-dropdown summary::-webkit-details-marker {
  display: none;
}

.map-search-panel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 0.35rem);
  width: min(300px, calc(100vw - 1.5rem));
  min-width: 0;
  background: #fff;
  border: 2px solid rgba(146, 64, 14, 0.35);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  z-index: 700;
}

.map-search-panel .map-search-input {
  width: 100%;
  min-width: 0;
}

.filter-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 220px;
  background: #fff;
  border: 2px solid rgba(146, 64, 14, 0.35);
  border-radius: 0.85rem;
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  z-index: 600;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 1100px) {
  .admin-layout {
    grid-template-columns: 380px 1fr;
    align-items: start;
  }
}

.admin-panel {
  background: rgba(255, 251, 235, 0.97);
  border: 4px solid var(--amber-800);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-panel h2 {
  margin: 0 0 0.75rem;
  font-family: 'Pirata One', cursive;
  font-size: 1.45rem;
  color: var(--amber-900);
}

.admin-panel h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--amber-800);
}

.admin-field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.admin-field--hidden {
  display: none !important;
}

.admin-field[hidden] {
  display: none !important;
}

.admin-upload-preview {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(146, 64, 14, 0.25);
  background: #fff;
}

.admin-upload-preview--vip {
  width: min(100%, 240px);
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

.admin-vip-fields {
  padding: 0.65rem 0.75rem;
  border: 2px dashed rgba(146, 64, 14, 0.25);
  border-radius: 0.75rem;
  margin-bottom: 0.65rem;
}

.map-modal--vip {
  padding: 0.75rem;
}

.map-modal-panel--vip {
  width: min(96vw, 720px);
  max-height: min(92dvh, 860px);
  overflow: auto;
  padding: 1rem;
  background: rgba(255, 251, 235, 0.98);
}

.vip-close-overlay {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

.vip-modal-head-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
  padding-right: 2.5rem;
}

.vip-modal-image {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid rgba(146, 64, 14, 0.25);
  flex: 0 0 auto;
  background: #fff;
}

.vip-modal-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.vip-modal-head-text h2 {
  margin: 0 0 0.35rem;
  font-family: 'Pirata One', cursive;
  font-size: 1.55rem;
  color: var(--amber-900);
  line-height: 1.15;
}

.vip-modal-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vip-modal-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f766e;
  word-break: break-all;
}

.vip-modal-link[hidden] {
  display: none !important;
}

.vip-modal-links:not(:has(.vip-modal-link:not([hidden]))) {
  display: none;
}

.vip-modal-link--facebook {
  color: #1877f2;
}

.vip-modal-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(69, 26, 3, 0.92);
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.vip-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
}

.booking-map-custom-icon {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.booking-map-custom-icon--pin {
  width: 32px;
  height: 32px;
}

.booking-map-custom-icon--pin-small {
  width: 22px;
  height: 22px;
}

.booking-map-pin-wrap .booking-map-custom-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
}

.admin-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-900);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 2px solid rgba(146, 64, 14, 0.3);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 600;
}

.admin-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.admin-card {
  background: #fff;
  border: 2px solid rgba(146, 64, 14, 0.2);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.admin-card-title {
  font-weight: 700;
  color: var(--amber-900);
}

.admin-card-meta {
  font-size: 0.8rem;
  color: rgba(69, 26, 3, 0.75);
  margin-top: 0.2rem;
}

.admin-booking-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-booking-status--pending {
  background: #fef3c7;
  color: #92400e;
}
.admin-booking-status--paid {
  background: #dcfce7;
  color: #166534;
}
.admin-booking-status--cancelled {
  background: #fee2e2;
  color: #991b1b;
}
.admin-booking-status--expired {
  background: #f1f5f9;
  color: #475569;
}

.admin-booking-detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}
.admin-booking-detail-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
}
.admin-booking-detail-list dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(69, 26, 3, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-booking-detail-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--amber-950, #451a03);
  word-break: break-word;
}
.admin-booking-detail-list code {
  font-size: 0.78rem;
  word-break: break-all;
}

.admin-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: none;
}

.admin-status.ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.admin-status.err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.admin-auth {
  width: min(320px, 90vw);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

body.admin-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

body.admin-locked .map-topbar,
body.admin-locked .admin-toolbar-status {
  display: none !important;
}

#admin-key {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 3px solid var(--amber-800);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 251, 235, 0.97);
  color: #1f2937;
}

#admin-key:focus {
  outline: none;
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

#admin-key.admin-auth-input--error {
  border-color: #dc2626;
  animation: admin-auth-shake 0.45s ease;
}

@keyframes admin-auth-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

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

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.admin-toolbar-status {
  display: none;
  margin: 0 1rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-toolbar-status.ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.admin-toolbar-status.err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.admin-email-status {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-email-status[hidden] {
  display: none !important;
}

.admin-email-status.is-ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.admin-email-status.is-err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.pick-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-800);
  margin: 0.35rem 0 0.75rem;
}

.map-pick-mode,
.map-pick-mode .leaflet-container {
  cursor: crosshair !important;
}

.pick-marker-icon {
  background: transparent;
  border: none;
}

.pick-marker-pin {
  position: relative;
  width: 28px;
  height: 28px;
}

.pick-marker-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #dc2626;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.pick-marker-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(220, 38, 38, 0.75);
  animation: pick-marker-pulse 1.4s ease-out infinite;
}

@keyframes pick-marker-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
  }
}

body.map-modal-open {
  overflow: hidden;
}

.map-modal[hidden] {
  display: none !important;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.map-modal.map-modal--weather {
  z-index: 12000;
}

.map-modal.map-modal--webcam,
.map-modal.map-modal--panorama {
  z-index: 13000;
}

.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.map-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: rgba(255, 251, 235, 0.98);
  border: 4px solid var(--amber-800);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.map-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.map-modal-head h2 {
  margin: 0;
  font-family: 'Pirata One', cursive;
  font-size: 1.5rem;
  color: var(--amber-900);
}

.map-modal-close {
  border: 2px solid var(--amber-800);
  background: #fff;
  border-radius: 0.6rem;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  cursor: pointer;
}

.map-modal-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(69, 26, 3, 0.85);
}

.suggest-map-canvas {
  width: 100%;
  height: 240px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(146, 64, 14, 0.25);
  margin-bottom: 0.5rem;
}

.map-search-wrap--center {
  width: 100%;
}

.map-search-wrap--center .map-search-input {
  width: 100%;
}

.map-modal--side {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  pointer-events: none;
}

.map-modal--side .map-modal-backdrop {
  pointer-events: none;
  background: transparent;
}

.map-modal-panel--side {
  position: fixed;
  right: 0;
  top: 72px;
  bottom: 0;
  width: min(420px, 100vw);
  max-height: none;
  overflow: auto;
  z-index: 2001;
  border-radius: 0;
  border-right: none;
  border-top: none;
  border-bottom: none;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .map-modal-panel--side {
    inset: auto 0 0 0;
    top: auto;
    width: 100%;
    max-height: 70vh;
    border-radius: 1rem 1rem 0 0;
  }
}
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.map-search-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.map-search-input {
  min-width: 200px;
  border: 2px solid rgba(146, 64, 14, 0.35);
  border-radius: 0.65rem;
  padding: 0.5rem 0.7rem;
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
}

.map-search-input:focus {
  outline: 2px solid var(--amber-800);
  outline-offset: 1px;
}

.map-lang-switcher {
  position: relative;
}

.map-lang-dropdown {
  position: relative;
}

.map-lang-summary {
  list-style: none;
  cursor: pointer;
  min-width: auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  justify-content: center;
}

.map-lang-current-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.map-lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  background: #fff;
  border: 2px solid rgba(146, 64, 14, 0.35);
  border-radius: 0.75rem;
  padding: 0.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  z-index: 700;
  display: grid;
  gap: 0.2rem;
}

.map-lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: transparent;
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber-950);
  cursor: pointer;
  text-align: left;
}

.map-lang-option:hover,
.map-lang-option.is-active {
  background: rgba(250, 204, 21, 0.35);
}

.map-lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.suggest-success-view {
  text-align: center;
  padding: 1.5rem 0.5rem 0.75rem;
}

.suggest-success-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.suggest-success-view h2 {
  margin: 0 0 0.5rem;
  font-family: 'Pirata One', cursive;
  color: var(--amber-900);
}

.suggest-success-view p {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: rgba(69, 26, 3, 0.85);
}

.admin-workspace {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 1rem 0;
  background: rgba(255, 251, 235, 0.6);
  border-bottom: 2px solid rgba(146, 64, 14, 0.2);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  padding: 0.65rem 1rem 0;
  background: rgba(255, 251, 235, 0.6);
  border-bottom: 2px solid rgba(146, 64, 14, 0.2);
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-nav-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(120, 53, 15, 0.75);
  padding: 0 0.15rem;
}

.admin-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-tab {
  border: 2px solid rgba(146, 64, 14, 0.35);
  border-bottom: none;
  border-radius: 0.65rem 0.65rem 0 0;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--amber-900);
  cursor: pointer;
}

.admin-tab.is-active {
  background: rgba(255, 251, 235, 0.97);
  border-color: var(--amber-800);
  color: var(--amber-950);
}

.admin-tab-panel {
  flex: 1;
  min-height: 0;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-panel.is-active {
  display: flex;
  flex-direction: column;
}

.admin-tab-panel--split.is-active {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 0;
  min-height: calc(100vh - 130px);
}

.admin-places-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 251, 235, 0.85);
  border-bottom: 2px solid rgba(146, 64, 14, 0.15);
}

.admin-places-toolbar .pick-hint {
  margin: 0;
}

.admin-bulk-panorama-next {
  font-weight: 600;
}

.admin-bulk-panorama-log {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 280px;
  overflow: auto;
}

.admin-bulk-panorama-log li {
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-bulk-panorama-log li.is-ok {
  color: #065f46;
}

.admin-bulk-panorama-log li.is-error {
  color: #991b1b;
}

.admin-bulk-panorama-log li.is-pending {
  color: #475569;
}

.admin-map-full {
  flex: 1;
  min-height: 0;
}

.admin-map-full #pirate-map {
  height: calc(100vh - 160px);
  min-height: 360px;
}

.admin-panel--wide {
  max-width: 720px;
  margin: 1rem auto;
}

.admin-tab-panel[data-admin-panel='categories'].is-active {
  display: block;
  padding-bottom: 1rem;
}

.admin-tab-panel[data-admin-panel='redirects'].is-active,
.admin-tab-panel[data-admin-panel='system'].is-active,
.admin-tab-panel[data-admin-panel='map-emails'].is-active,
.admin-tab-panel[data-admin-panel='accommodation'].is-active,
.admin-tab-panel[data-admin-panel='bookings'].is-active,
.admin-tab-panel[data-admin-panel='accommodation-emails'].is-active,
.admin-tab-panel[data-admin-panel='reports'].is-active {
  display: block;
  padding-bottom: 1rem;
}

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

.admin-redirect-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.admin-stripe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-stripe-fieldset {
  border: 1px solid rgba(146, 64, 14, 0.25);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}

.admin-stripe-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  color: var(--amber-900);
}

.admin-stripe-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  min-height: 1.25rem;
}

.admin-stripe-status.ok { color: #166534; }
.admin-stripe-status.err { color: #b91c1c; }

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

.admin-acc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.admin-acc-gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid rgba(146, 64, 14, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 251, 235, 0.8);
}

.admin-acc-gallery-item.is-hero {
  border-color: rgba(2, 132, 199, 0.55);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.admin-acc-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-acc-gallery-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.92);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-acc-gallery-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
}

.admin-acc-gallery-actions .map-btn {
  flex: 1;
  padding: 0.35rem 0.45rem;
  font-size: 0.75rem;
}

.admin-acc-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-price-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-price-tier-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 251, 235, 0.65);
}

@media (max-width: 900px) {
  .admin-price-tier-row {
    grid-template-columns: 1fr;
  }
}

.admin-suggestions-side {
  overflow: auto;
  padding: 1rem;
  border-right: 2px solid rgba(146, 64, 14, 0.15);
  background: rgba(255, 251, 235, 0.5);
}

.admin-suggestions-map-wrap {
  min-height: 360px;
  position: relative;
}

#admin-suggestion-map {
  width: 100%;
  height: calc(100vh - 130px);
  min-height: 360px;
  background: var(--sky-100);
}

.admin-checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 700;
  margin-top: 0.5rem;
}

.color-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.map-lang-summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 820px) {
  .map-topbar--public h1 {
    font-size: 1.2rem;
  }

  .map-topbar-title {
    line-height: 1.15;
  }
}

@media (max-width: 900px) {
  .admin-tab-panel--split.is-active {
    grid-template-columns: 1fr;
  }

  .admin-suggestions-map-wrap {
    min-height: 280px;
  }

  #admin-suggestion-map {
    height: 280px;
  }

  .color-row--3 {
    grid-template-columns: 1fr;
  }
}

.admin-diag-status {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
}

.admin-diag-status.is-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.admin-diag-status.is-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.admin-diag-meta {
  margin-bottom: 1rem;
}

.admin-diag-meta-grid {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: #334155;
}

.admin-diag-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.admin-diag-columns h4 {
  margin: 0 0 0.5rem;
  color: #0c4a6e;
}

.admin-diag-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
}

.admin-diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-diag-table th,
.admin-diag-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  text-align: left;
}

.admin-diag-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.admin-diag-table tr:last-child td {
  border-bottom: none;
}

.diag-row--err {
  background: #fff7f7;
}

.diag-ms {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.diag-ms--fast {
  color: #047857;
}

.diag-ms--medium {
  color: #b45309;
}

.diag-ms--slow {
  color: #b91c1c;
}

.diag-detail code {
  font-size: 0.8rem;
  word-break: break-word;
}

.diag-error {
  color: #b91c1c;
}

.admin-diag-slowest-wrap ul,
ul.admin-diag-slowest {
  margin: 0;
  padding-left: 1.1rem;
}

.admin-diag-slowest li {
  margin: 0.25rem 0;
}

.admin-diag-verdict {
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.admin-diag-hints {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.9rem;
}

.admin-diag-hints li {
  margin: 0.2rem 0;
}

@media (max-width: 960px) {
  .admin-diag-columns {
    grid-template-columns: 1fr;
  }
}

body.admin-feedback-open {
  overflow: hidden;
}

.admin-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-feedback-modal[hidden] {
  display: none !important;
}

.admin-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.admin-feedback-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.25rem 1.35rem 1.1rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 2px solid rgba(146, 64, 14, 0.25);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.admin-feedback-panel.is-ok {
  border-color: #6ee7b7;
}

.admin-feedback-panel.is-err {
  border-color: #fca5a5;
}

.admin-feedback-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.admin-feedback-panel.is-ok .admin-feedback-icon {
  background: #ecfdf5;
  color: #065f46;
}

.admin-feedback-panel.is-err .admin-feedback-icon {
  background: #fef2f2;
  color: #991b1b;
}

.admin-feedback-message {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber-950);
  line-height: 1.45;
}

.admin-booking-admin-fieldset {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 2px dashed rgba(146, 64, 14, 0.25);
  border-radius: 0.75rem;
}

.admin-booking-admin-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 800;
  color: var(--amber-900);
}

.admin-booking-admin-block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(146, 64, 14, 0.12);
}

.admin-booking-admin-block:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
}

.admin-booking-admin-heading {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--amber-900);
}

.admin-recorded-at {
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
}

.admin-reports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-report-card {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(146, 64, 14, 0.18);
}

.admin-report-card-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(120, 53, 15, 0.75);
}

.admin-report-card-value {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--amber-950);
}

.admin-report-card-meta {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(120, 53, 15, 0.8);
}

.admin-report-card--revenue {
  border-color: #6ee7b7;
  background: #ecfdf5;
}

.admin-report-card--expense {
  border-color: #fca5a5;
  background: #fef2f2;
}

.admin-report-card--profit {
  border-color: #93c5fd;
  background: #eff6ff;
}

@media (max-width: 960px) {
  .admin-reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nav {
    gap: 0.85rem 1rem;
  }
}

@media (max-width: 560px) {
  .admin-reports-grid {
    grid-template-columns: 1fr;
  }
}

/* Day / night theme toggle */
.map-theme-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.map-theme-switcher-track {
  position: relative;
  display: block;
  width: 3.55rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--amber-800);
  background: linear-gradient(90deg, #fb923c 0%, #fdba74 42%, #1e3a8a 58%, #0f172a 100%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.map-theme-switcher-sky {
  position: absolute;
  top: 0.12rem;
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.map-theme-switcher-sky--day {
  left: 0.28rem;
}

.map-theme-switcher-sky--night {
  right: 0.28rem;
}

.map-theme-switcher-clouds {
  position: absolute;
  left: 0.55rem;
  bottom: 0.1rem;
  font-size: 0.55rem;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.map-theme-switcher-stars {
  position: absolute;
  right: 0.45rem;
  bottom: 0.18rem;
  font-size: 0.42rem;
  letter-spacing: 0.08rem;
  color: #fde68a;
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

.map-theme-switcher-thumb {
  position: absolute;
  top: 0.14rem;
  left: 0.14rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a, #facc15 55%, #f59e0b);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.map-theme-switcher-input:checked + .map-theme-switcher-track .map-theme-switcher-thumb {
  transform: translateX(1.65rem);
  background: radial-gradient(circle at 40% 35%, #f8fafc, #cbd5e1 55%, #94a3b8);
}

.map-theme-switcher-input:focus-visible + .map-theme-switcher-track {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* Night theme */
body.pirate-map-body.map-theme--night {
  --sky-100: #0f172a;
  --amber-50: #1e293b;
  color: #fde68a;
  background: #0f172a;
}

body.map-theme--night .map-topbar--public {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.map-theme--night .map-topbar h1 {
  color: #fde68a;
}

body.map-theme--night .map-btn-secondary {
  background: #1e293b;
  color: #fde68a;
  border-color: #64748b;
}

body.map-theme--night .map-btn-secondary:hover {
  background: #334155;
}

body.map-theme--night .map-theme-switcher-track {
  border-color: #64748b;
}

body.map-theme--night .map-lang-summary,
body.map-theme--night .map-search-dropdown > summary {
  background: #1e293b;
  color: #fde68a;
  border-color: #64748b;
}

body.map-theme--night .map-lang-panel,
body.map-theme--night .map-search-panel {
  background: #1e293b;
  border-color: #64748b;
}

body.map-theme--night .map-lang-option {
  color: #fde68a;
}

body.map-theme--night .map-lang-option:hover,
body.map-theme--night .map-lang-option.is-active {
  background: #334155;
}

body.map-theme--night .map-search-input {
  background: #0f172a;
  color: #fde68a;
  border-color: #64748b;
}

body.map-theme--night .map-category-chip {
  background: #1e293b;
  color: #fde68a;
  border-color: #64748b;
}

body.map-theme--night .weather-modal-head-actions .weather-updated {
  color: #bae6fd;
}

body.map-theme--night .map-modal-panel--weather {
  background: #0c4a6e;
  border-color: #0369a1;
  color: #e0f2fe;
}

body.map-theme--night .weather-modal-head .weather-modal-title {
  color: #e0f2fe;
}

body.map-theme--night .weather-current-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: #0369a1;
}

body.map-theme--night .weather-current-label,
body.map-theme--night .weather-current-value,
body.map-theme--night .weather-contact-label,
body.map-theme--night .pick-hint {
  color: #e0f2fe;
}

body.map-theme--night .weather-current-value.weather-uv-value--low {
  color: #4ade80;
}

body.map-theme--night .weather-current-value.weather-uv-value--normal {
  color: #7dd3fc;
}

body.map-theme--night .weather-current-value.weather-uv-value--high {
  color: #f87171;
}

body.map-theme--night .weather-contact-row input,
body.map-theme--night .weather-detailed-request-row input {
  background: #0f172a;
  color: #e0f2fe;
  border-color: #0369a1;
}

body.map-theme--night .map-zoom-hud .map-zoom-indicator,
body.map-theme--night .map-zoom-share {
  background: rgba(15, 23, 42, 0.92);
  color: #fde68a;
  border-color: #64748b;
}

/* Phone registration webcam previews */
.weather-phone-cameras {
  margin: 0.85rem 0 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(2, 132, 199, 0.35);
}

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

.weather-phone-camera {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 2px solid #7dd3fc;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.weather-phone-camera:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.weather-phone-camera:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.weather-phone-camera-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #e0f2fe;
}

.weather-phone-camera-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0c4a6e;
}

body.map-theme--night .weather-phone-camera {
  background: #0f172a;
  border-color: #0369a1;
}

body.map-theme--night .weather-phone-camera-label {
  color: #bae6fd;
}
