/* =========================================================
   Lancha_Ya — Design tokens & global styles
   ========================================================= */

:root {
  /* Brand palette — deep navy + warm coral on a soft off-white */
  --navy-950: #061528;
  --navy-900: #0a2540;
  --navy-800: #103257;
  --navy-700: #18446f;
  --navy-600: #1f5685;
  --navy-500: #2e6fa8;
  --navy-400: #5a8dc4;
  --navy-300: #8fb3d9;
  --navy-200: #c5d8eb;
  --navy-100: #e3edf6;
  --navy-50:  #f2f7fc;

  --sea-500:  #0eaab1;   /* turquoise sea accent */
  --sea-400:  #3dc1c7;
  --sea-100:  #d3f0f1;

  --coral-600: #e85a3c;  /* CTA coral — warm & Mediterranean */
  --coral-500: #ff6b3d;
  --coral-400: #ff8966;
  --coral-100: #ffe2d6;

  --sand-500: #e8b87a;
  --sand-100: #f8efde;

  --ink-900: #0a1628;
  --ink-700: #2c3e52;
  --ink-500: #5a6b7e;
  --ink-400: #7a8a9d;
  --ink-300: #aab5c2;
  --ink-200: #d5dce4;
  --ink-100: #eef1f5;
  --ink-50:  #f7f9fb;

  --bg: #fbfaf7;          /* warm off-white */
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --border: rgba(10, 22, 40, 0.08);
  --border-strong: rgba(10, 22, 40, 0.14);

  --success: #10a07b;
  --warning: #e0a83a;
  --danger:  #d8492c;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 1px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(10, 22, 40, 0.10), 0 2px 6px -2px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(10, 22, 40, 0.18), 0 8px 16px -8px rgba(10, 22, 40, 0.10);
  --shadow-xl: 0 40px 80px -24px rgba(10, 22, 40, 0.28);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --font-serif: "Instrument Serif", "Source Serif Pro", Georgia, serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root { height: 100%; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* =========================================================
   Type
   ========================================================= */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.h1 { font-family: var(--font-serif); font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
.h2 { font-family: var(--font-serif); font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
.h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.body { font-size: 15px; line-height: 1.55; color: var(--ink-700); }
.caption { font-size: 13px; line-height: 1.45; color: var(--ink-500); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-600); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--coral-500);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(232, 90, 60, 0.4);
}
.btn-primary:hover { background: var(--coral-600); box-shadow: 0 6px 18px -2px rgba(232, 90, 60, 0.5); }
.btn-navy { background: var(--navy-900); color: white; }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { color: var(--ink-900); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--ink-900);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--ink-700); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}
.btn-icon:hover { background: var(--ink-50); border-color: var(--border-strong); }

/* =========================================================
   Inputs
   ========================================================= */
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(16, 50, 87, 0.12);
}

/* =========================================================
   Chip / Badge
   ========================================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-700);
  white-space: nowrap;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--border-strong); color: var(--ink-900); }
.chip.is-active {
  background: var(--navy-900);
  color: white;
  border-color: var(--navy-900);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-bareboat { background: var(--sea-100); color: #0a6b70; }
.badge-captain { background: var(--navy-100); color: var(--navy-800); }
.badge-experience { background: var(--coral-100); color: #a8331c; }
.badge-instant { background: #fef3d2; color: #7a5a0a; }
.badge-verified { background: var(--sea-100); color: #0a6b70; }

/* =========================================================
   Layout
   ========================================================= */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.split-view {
  display: grid;
  grid-template-columns: 540px 1fr;
  flex: 1;
  min-height: 0;
  position: relative;
}

.results-panel {
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
  position: relative;
}

.map-panel {
  position: relative;
  background: var(--navy-100);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  position: relative;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-decoration: none;
}
.navbar-logo svg { color: var(--coral-500); }
.navbar-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
  min-width: 480px;
  cursor: pointer;
}
.navbar-search:hover { box-shadow: var(--shadow-md); }
.navbar-search-segment {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.navbar-search-segment:hover { background: var(--ink-50); }
.navbar-search-segment .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-900);
}
.navbar-search-segment .value {
  font-size: 13px;
  color: var(--ink-500);
}
.navbar-search-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 8px 0;
}
.navbar-search-button {
  width: 36px; height: 36px;
  background: var(--coral-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border: none;
  cursor: pointer;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.navbar-pill:hover { box-shadow: var(--shadow-md); }
.navbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   Filter bar
   ========================================================= */
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.filterbar::-webkit-scrollbar { display: none; }

/* =========================================================
   Results panel
   ========================================================= */
.results-header {
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.results-title {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  line-height: 1.1;
  margin: 0 0 4px;
}
.results-meta {
  font-size: 13px;
  color: var(--ink-500);
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 8px 24px 32px;
}

/* =========================================================
   Boat card
   ========================================================= */
.boat-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease;
}
.boat-card:hover { transform: translateY(-2px); }
.boat-card-image {
  position: relative;
  aspect-ratio: 1.05 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-100);
}
.boat-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.boat-card:hover .boat-card-image img { transform: scale(1.04); }
.boat-card-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  transition: transform 0.15s;
  border: none;
  cursor: pointer;
}
.boat-card-fav:hover { transform: scale(1.1); }
.boat-card-fav.is-fav { color: var(--coral-500); }
.boat-card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.boat-card-badge {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.boat-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.boat-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.boat-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.boat-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  white-space: nowrap;
}
.boat-card-loc {
  font-size: 13px;
  color: var(--ink-500);
}
.boat-card-meta {
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 4px;
}
.boat-card-price {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-900);
}
.boat-card-price strong {
  font-weight: 600;
  font-size: 15px;
}

.boat-card.is-active .boat-card-image {
  outline: 3px solid var(--navy-900);
  outline-offset: -3px;
}

/* =========================================================
   Map / pins
   ========================================================= */
.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-controls {
  position: absolute;
  top: 18px; right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.map-control {
  width: 38px; height: 38px;
  background: var(--surface);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.12s;
}
.map-control:hover { background: var(--ink-50); }

.map-search-here {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: white;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  border: none;
}
.map-search-here:hover { background: var(--navy-900); }

/* Leaflet divIcon wrapper — remove default icon styles */
.map-pin-wrap {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.map-pin-bubble {
  background: var(--surface);
  border: 1.5px solid var(--ink-900);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  box-shadow: 0 2px 6px rgba(10,22,40,0.18);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font-sans);
}
.map-pin-bubble::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 50%;
  width: 8px; height: 8px;
  background: inherit;
  border-right: 1.5px solid var(--ink-900);
  border-bottom: 1.5px solid var(--ink-900);
  transform: translateX(-50%) rotate(45deg);
}
.map-pin-bubble:hover { transform: scale(1.08); }
.map-pin-bubble.is-active-pin {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
  transform: scale(1.1);
}

/* =========================================================
   Map legend
   ========================================================= */
.map-legend {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  z-index: 10;
  max-width: 180px;
}
.map-legend-title {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.map-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.map-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* =========================================================
   Boat detail modal
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--bg);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 1080px;
  max-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  z-index: 5;
}
.modal-actions { display: flex; gap: 8px; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.modal-close:hover { background: var(--ink-200); }
.modal-body {
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
}
.modal-content { padding: 28px 32px 40px; }
.modal-sidebar {
  border-left: 1px solid var(--border);
  padding: 24px;
  background: var(--surface);
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 28px;
}
.gallery-item {
  background: var(--ink-100);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  transition: opacity 0.15s;
}
.gallery-item:hover { opacity: 0.92; }
.gallery-item:nth-child(1) { grid-row: 1 / 3; }

/* Booking sidebar */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
}
.booking-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.booking-price {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.booking-price-unit { color: var(--ink-500); font-size: 15px; }

.booking-fields {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.booking-field {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.booking-field:last-child { border-bottom: none; }
.booking-field:hover { background: var(--ink-50); }
.booking-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.booking-field-value {
  font-size: 14px;
  color: var(--ink-900);
}
.booking-field-row { display: grid; grid-template-columns: 1fr 1fr; }
.booking-field-row .booking-field { border-right: 1px solid var(--border-strong); }
.booking-field-row .booking-field:last-child { border-right: none; }

.booking-breakdown {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink-700);
}
.booking-row.is-total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
}

/* Detail content blocks */
.detail-section { padding: 24px 0; border-top: 1px solid var(--border); }
.detail-section:first-of-type { border-top: none; padding-top: 0; }

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.detail-title {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-700);
  flex-wrap: wrap;
}
.detail-meta-dot { width: 3px; height: 3px; background: var(--ink-300); border-radius: 50%; display: inline-block; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-size: 12px;
  color: var(--ink-500);
}
.spec-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}

.host-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}
.host-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-900);
}
.feature-row svg { color: var(--navy-700); flex-shrink: 0; }

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.review-text { font-size: 14px; line-height: 1.5; color: var(--ink-700); margin: 0; }

.location-map {
  height: 260px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent 60%),
    linear-gradient(135deg, #b8d4e8 0%, #8fb8d6 100%);
  border: 1px solid var(--border);
}

/* =========================================================
   Hero (overlay)
   ========================================================= */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  max-width: 460px;
  z-index: 20;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Empty / loading
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-50) 50%, var(--ink-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: white;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   Mobile — tablet
   ========================================================= */
@media (max-width: 1023px) {
  .app-shell { overflow: auto; height: auto; min-height: 100vh; }
  .split-view { grid-template-columns: 1fr; display: flex; flex-direction: column; min-height: auto; }
  .results-panel { border-right: none; overflow: visible; order: 1; }
  .map-panel { height: 45vh; min-height: 280px; order: 0; }
  .map-legend { display: none; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .navbar-search { min-width: 0; flex: 1; }
  .navbar-search-segment { padding: 6px 10px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-sidebar { border-left: none; border-top: 1px solid var(--border); }
  .modal-overlay { padding: 16px; }
  .gallery { aspect-ratio: 16/10; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-overlay { position: relative; top: auto; left: auto; transform: none; margin: 16px auto; max-width: 460px; }
  /* Dashboard responsive */
  .dash-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .dash-featured { grid-template-columns: 1fr !important; }
  .dash-featured-img { min-height: 200px; }
  .dash-boat-row { grid-template-columns: 100px 1fr !important; }
  .dash-boat-extra { display: none; }
  .dash-booking-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-booking-table > div { min-width: 700px; }
  .dash-pending-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .dash-pending-actions { justify-content: flex-start; }
  .dash-owner-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .dash-payout-grid { grid-template-columns: 1fr !important; }
  .dash-calendar { gap: 4px !important; }
}

/* =========================================================
   Mobile — phone
   ========================================================= */
@media (max-width: 640px) {
  .navbar { padding: 10px 16px; gap: 8px; }
  .navbar-logo span { display: none; }
  .navbar-search { display: none; }
  .navbar-actions .btn-ghost { display: none; }
  .filterbar { padding: 10px 12px; gap: 6px; }
  .results-grid { grid-template-columns: 1fr; padding: 8px 16px 32px; }
  .results-header { padding: 16px 16px 8px; }
  .hero-overlay { margin: 12px; padding: 20px 18px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 26px; }
  .results-title { font-size: 22px; }
  .map-panel { height: 35vh; min-height: 220px; }
  .modal-overlay { padding: 0; }
  .modal { border-radius: 0; max-height: 100vh; }
  .booking-price { font-size: 26px; }
  .detail-title { font-size: 26px; }
  /* Dashboard phone */
  .dash-stats { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dash-container { padding: 20px 16px 40px !important; }
  .dash-featured { min-height: auto !important; }
  .dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-tabs button { white-space: nowrap; font-size: 13px !important; padding: 10px 14px !important; }
  /* Navbar toggle for dashboards */
  .navbar-toggle { font-size: 12px !important; }
  .navbar-toggle button { padding: 6px 10px !important; font-size: 12px !important; }
}
