/* =========================================================
   BeachRent public booking site
   ========================================================= */

:root {
  --pub-ocean:      #0891b2;
  --pub-ocean-dark: #0e7490;
  --pub-sand:       #fbbf24;
  --pub-sand-dark:  #d97706;
  --pub-coral:      #ef4444;
  --pub-leaf:       #16a34a;
  --pub-cream:      #fffaf0;
  --pub-sky:        #e0f2fe;

  --pub-text:       #1e293b;
  --pub-text-soft:  #475569;
  --pub-muted:      #94a3b8;
  --pub-border:     #e2e8f0;

  --pub-radius:     14px;
  --pub-radius-lg:  22px;
  --pub-shadow:     0 10px 30px -10px rgba(15,23,42,.15);
  --pub-shadow-lg:  0 30px 60px -20px rgba(15,23,42,.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.public {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", serif;
  color: var(--pub-text);
  background: var(--pub-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* sans for UI elements */
.public input, .public select, .public textarea,
.public button, .public .btn,
.public .nav-cta, .public .site-nav a,
.public .badge, .public .car-card-group,
.public .muted, .public .small {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.public h1, .public h2, .public h3 {
  margin: 0;
  letter-spacing: -.02em;
  font-weight: 700;
}
.public h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; }
.public h2 { font-size: clamp(24px, 3vw, 34px); }
.public h3 { font-size: 18px; }

.public a { color: var(--pub-ocean); text-decoration: none; }
.public a:hover { color: var(--pub-ocean-dark); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 250, 240, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pub-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--pub-text); }
.logo-mark { font-size: 26px; }
.site-nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--pub-text-soft); font-weight: 500; }
.site-nav a:hover { color: var(--pub-ocean); }
.nav-cta {
  background: var(--pub-text);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
}
.nav-cta:hover { background: #000; }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 30px;
  background:
    radial-gradient(circle at 80% 20%, rgba(8,145,178,.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(251,191,36,.12), transparent 50%),
    var(--pub-cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '🌴';
  position: absolute;
  font-size: 240px;
  right: -40px; bottom: -60px;
  opacity: .04;
  transform: rotate(-15deg);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-text { max-width: 720px; margin-bottom: 40px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--pub-ocean), var(--pub-sand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--pub-text-soft);
  margin: 18px 0 0;
  max-width: 560px;
}

/* ---------- Search box ---------- */
.search-box {
  background: #fff;
  border-radius: var(--pub-radius-lg);
  box-shadow: var(--pub-shadow-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(255,255,255,.6);
}
.sb-field { display: flex; flex-direction: column; }
.sb-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pub-muted);
  margin-bottom: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sb-field input, .sb-field select {
  border: none;
  background: var(--pub-cream);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sb-field input:focus, .sb-field select:focus {
  outline: 2px solid var(--pub-ocean);
  outline-offset: -2px;
}
.sb-btn { height: 48px; }

/* ---------- Buttons ---------- */
.public .btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.public .btn:hover { transform: translateY(-1px); }
.public .btn:active { transform: translateY(0); }
.public .btn-primary {
  background: var(--pub-text);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(15,23,42,.3);
}
.public .btn-primary:hover { background: #000; box-shadow: 0 10px 20px -4px rgba(15,23,42,.4); color:#fff; }
.public .btn-ghost {
  background: #fff;
  border-color: var(--pub-border);
  color: var(--pub-text);
}
.public .btn-ghost:hover { border-color: var(--pub-text); }

/* ---------- Featured fleet ---------- */
.featured { padding: 80px 0 40px; }
.featured h2 { margin-bottom: 26px; }

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.car-card {
  background: #fff;
  border-radius: var(--pub-radius);
  overflow: hidden;
  box-shadow: var(--pub-shadow);
  transition: transform .2s, box-shadow .2s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--pub-shadow-lg); }
.car-card img {
  width: 100%; height: 180px; object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.car-card-ph {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--pub-sky), #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}
.car-card-body { padding: 18px 20px 20px; }
.car-card-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pub-ocean);
  font-weight: 700;
  margin-bottom: 4px;
}
.car-card h3 { font-size: 21px; margin-bottom: 4px; }
.car-card-meta { color: var(--pub-muted); font-size: 14px; display: flex; gap: 6px; }
.car-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--pub-border);
}
.price span:first-child { font-size: 22px; font-weight: 700; }

/* ---------- How it works ---------- */
.how { padding: 60px 0 100px; background: #fff; }
.how h2 { margin-bottom: 36px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.how-card {
  padding: 30px 26px;
  border-radius: var(--pub-radius);
  background: linear-gradient(135deg, var(--pub-cream), #fff);
  border: 1px solid var(--pub-border);
}
.how-num {
  width: 44px; height: 44px;
  background: var(--pub-ocean); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  margin-bottom: 14px;
  font-family: -apple-system, sans-serif;
}
.how-card:nth-child(2) .how-num { background: var(--pub-sand-dark); }
.how-card:nth-child(3) .how-num { background: var(--pub-leaf); }
.how-card h3 { margin-bottom: 6px; }
.how-card p { color: var(--pub-text-soft); margin: 0; font-size: 15px; }

/* ---------- Search results ---------- */
.search-page { padding: 30px 0 80px; }
.search-page h1 { font-size: 36px; margin-top: 8px; }
.search-page .muted { color: var(--pub-muted); margin-bottom: 24px; display: block; }

.search-results { display: flex; flex-direction: column; gap: 14px; }
.result-row {
  background: #fff;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  align-items: center;
  transition: box-shadow .15s, transform .15s;
}
.result-row:hover { box-shadow: var(--pub-shadow); transform: translateY(-1px); }
.result-row > img, .result-row > .car-card-ph {
  width: 180px; height: 110px;
  object-fit: cover;
  border-radius: 10px;
}
.result-row > .car-card-ph { font-size: 42px; }
.result-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pub-ocean);
  font-weight: 700;
}
.result-info h3 { font-size: 24px; margin: 2px 0 8px; }
.result-features {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--pub-text-soft);
  font-size: 14px;
  align-items: center;
}
.public .badge-soft {
  background: var(--pub-sky);
  color: var(--pub-ocean-dark);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.result-price { text-align: right; }
.result-total {
  font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  margin: 4px 0 12px;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border-radius: var(--pub-radius);
  border: 1px solid var(--pub-border);
}
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--pub-text-soft); margin-bottom: 24px; }

/* ---------- Booking form ---------- */
.book-page { padding: 30px 0 80px; }
.book-page h1 { font-size: 36px; margin: 8px 0 26px; }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.book-form, .book-summary {
  background: #fff;
  padding: 26px 28px;
  border-radius: var(--pub-radius);
  border: 1px solid var(--pub-border);
  box-shadow: var(--pub-shadow);
}
.book-form h2 { font-size: 18px; margin-bottom: 12px; }
.book-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pub-muted);
  font-weight: 700;
  margin: 10px 0 4px;
  font-family: -apple-system, sans-serif;
}
.book-form input, .book-form select, .book-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  font-family: -apple-system, sans-serif;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus {
  outline: none;
  border-color: var(--pub-ocean);
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}
.book-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.book-summary img, .book-summary .car-card-ph {
  width: 100%; height: 150px; object-fit: cover; border-radius: 10px;
  margin-bottom: 14px;
}
.book-summary .car-card-ph { font-size: 50px; }
.book-vehicle { margin-bottom: 14px; }
.book-vehicle h3 { font-size: 22px; margin: 4px 0; }
.book-dl {
  margin: 18px 0;
  padding: 0;
  border-top: 1px solid var(--pub-border);
  border-bottom: 1px solid var(--pub-border);
  font-size: 14px;
}
.book-dl dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pub-muted);
  font-weight: 700;
  margin-top: 10px;
  font-family: -apple-system, sans-serif;
}
.book-dl dd { margin: 1px 0 8px; padding: 0; font-weight: 500; color: var(--pub-text); }
.book-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 28px; font-weight: 700;
  letter-spacing: -.02em;
}
.book-total span:first-child { font-size: 16px; color: var(--pub-text-soft); font-weight: 600; }

/* ---------- Thanks page ---------- */
.thanks-page { padding: 60px 0 100px; }
.thanks-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 40px;
  border-radius: var(--pub-radius-lg);
  text-align: center;
  box-shadow: var(--pub-shadow-lg);
  border: 1px solid var(--pub-border);
}
.thanks-icon { font-size: 60px; margin-bottom: 12px; }
.thanks-card h1 { font-size: 32px; margin-bottom: 6px; }
.thanks-summary {
  text-align: left;
  margin: 30px 0;
  padding: 22px;
  background: var(--pub-cream);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px;
}
.thanks-summary .kv { display: flex; justify-content: space-between; }
.thanks-summary .total {
  padding-top: 10px; border-top: 1px solid var(--pub-border);
  font-size: 18px; font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pub-text);
  color: rgba(255,255,255,.7);
  padding: 30px 0;
  font-size: 14px;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Flash ---------- */
.public .flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
  font-family: -apple-system, sans-serif;
}
.public .flash-success { background: #ecfdf5; color: #065f46; }
.public .flash-error   { background: #fef2f2; color: #991b1b; }

/* ---------- Utilities ---------- */
.public .muted { color: var(--pub-muted); }
.public .small { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .search-box { grid-template-columns: 1fr; }
  .sb-btn { width: 100%; }
  .fleet-grid, .how-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; }
  .result-row > img, .result-row > .car-card-ph { width: 100%; height: 200px; }
  .result-price { text-align: left; }
}
@media (max-width: 560px) {
  .fleet-grid, .how-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; font-size: 14px; }
  .hero { padding: 40px 0 20px; }
  .featured, .how { padding: 50px 0; }
  .book-form, .book-summary { padding: 20px; }
}
