/* =====================================================================
   PaFiesta — design system
   Warm coral + gold palette, festive but trustworthy. Mobile-first.
   ===================================================================== */

:root {
  --coral: #FF6F5E;
  --coral-dark: #E2503F;
  --coral-light: #FFE3DE;
  --gold: #F2A93B;
  --gold-light: #FFF1D9;
  --cream: #FFF8F2;
  --ink: #2B2622;
  --ink-soft: #6B6259;
  --border: #F0E2D6;
  --white: #FFFFFF;
  --green: #3F9142;
  --red: #D64545;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(43, 38, 34, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 38, 34, 0.14);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 50%; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }

/* -------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--coral); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D9922E; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--red); color: var(--white); }

/* -------------------------------------------------- Top nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--coral-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  //height: 40px;
  width: auto;
  display: block;
}
/* Admin header has a dark background; wrap the logo in a light chip so it
   stays legible regardless of the logo file's own colors/transparency. */
.logo-on-dark {
 // background: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
}
.logo-on-dark img {
 // height: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--coral-dark); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}
.lang-switch:hover { border-color: var(--coral); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
  .nav-wrap.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
}

/* -------------------------------------------------- Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(43,38,34,0.55), rgba(43,38,34,0.35)), var(--coral);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0 96px;
}
.hero-inner { max-width: 640px; }
.hero h1 { font-size: 42px; }
.hero p { font-size: 18px; opacity: 0.95; }
.hero-search {
  background: var(--white);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 6px;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  margin-top: 24px;
}
.hero-search input {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-family: var(--font);
}
@media (max-width: 620px) {
  .hero h1 { font-size: 30px; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { padding: 10px 14px; }
}

/* -------------------------------------------------- Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }
/* Vendor profile page: main content + sidebar. Was previously an inline
   `grid-template-columns: 2fr 1fr` with no mobile breakpoint, which kept the
   photo slider squeezed into the narrow 2/3 column even on phones. */
.vendor-profile-grid { grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .vendor-profile-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 18px; }
.card img { height: 160px; width: 100%; object-fit: cover; }

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  display: block;
}
.category-card:hover { border-color: var(--coral); text-decoration: none; }
.category-card .icon { font-size: 28px; }
.category-card h3 { font-size: 17px; margin: 10px 0 4px; color: var(--ink); }
.category-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.step {
  text-align: center;
  padding: 0 12px;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  margin: 0 auto 12px;
}

/* -------------------------------------------------- Vendor cards */
.vendor-card { display: flex; flex-direction: column; height: 100%; }
.vendor-card .card-body { display: flex; flex-direction: column; flex: 1; }
.vendor-card h3 { font-size: 17px; margin: 0 0 4px; }
.vendor-card .badge-row { margin: 6px 0; }
.vendor-card .price { font-weight: 700; color: var(--coral-dark); margin: 8px 0; }
.vendor-card .btn { margin-top: auto; }
.stars { color: var(--gold); letter-spacing: 1px; }
.rating-num { font-weight: 700; margin-left: 4px; color: var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-verified { background: #E6F4E6; color: var(--green); }
.badge-pending { background: var(--gold-light); color: #A5710B; }
.badge-unverified { background: #F1EDE8; color: var(--ink-soft); }

/* -------------------------------------------------- Forms */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-light);
}
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-grid input { width: auto; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Alerts / flash */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}
.alert-success { background: #E6F4E6; color: #2B6B2E; }
.alert-error { background: #FBE7E5; color: #A2302A; }
.alert-info { background: var(--gold-light); color: #8A5D0C; }

/* -------------------------------------------------- Footer */
.site-footer {
  background: var(--ink);
  color: #E9E2DA;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer h4 { color: var(--white); font-size: 15px; }
.site-footer a { color: #E9E2DA; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--ink);
  color: #E9E2DA;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 13px; flex: 1 1 420px; }
.cookie-banner-inner a { color: var(--gold); }
.cookie-banner-inner button { flex: 0 0 auto; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
  color: #B9AFA4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* -------------------------------------------------- Dashboard layout */
.dash-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .dash-wrap { grid-template-columns: 1fr; } }
.dash-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  position: sticky;
  top: 84px;
}
.dash-sidebar a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.dash-sidebar a:hover { background: var(--coral-light); text-decoration: none; }
.dash-sidebar a.active { background: var(--coral); color: var(--white); }
.dash-main { min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--coral-dark); }
.stat-card .label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.panel h2 { font-size: 19px; }

table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
table.simple th { color: var(--ink-soft); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.lead-row { cursor: pointer; }
.lead-row:hover { background: var(--cream); }
.status-pill {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.status-new { background: var(--coral-light); color: var(--coral-dark); }
.status-responded { background: var(--gold-light); color: #8A5D0C; }
.status-booked { background: #E6F4E6; color: var(--green); }
.status-closed { background: #F1EDE8; color: var(--ink-soft); }

/* -------------------------------------------------- Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-tile img { height: 130px; width: 100%; object-fit: cover; }
.photo-tile .photo-actions {
  position: absolute; inset: auto 0 0 0;
  background: rgba(0,0,0,0.55);
  padding: 6px 8px;
  display: flex; justify-content: space-between; gap: 6px;
}
.photo-tile .photo-actions a, .photo-tile .photo-actions button {
  font-size: 11px; color: var(--white); background: none; border: none; cursor: pointer; padding: 0;
}
.photo-tile.is-primary { outline: 3px solid var(--gold); }

/* -------------------------------------------------- Vendor page photo slider */
/* Photos are expected at a 4:3 aspect ratio, so the display boxes below are
   sized the same way (via the modern `aspect-ratio` property, which scales
   with the column's width instead of a fixed pixel height) so a 4:3 upload
   shows in full, edge to edge, without being cropped top/bottom. */

/* Single-photo fallback (no slider controls needed for just one image). */
.vendor-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.vendor-cover img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }

.vendor-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
/* Real horizontal sliding motion: .carousel-track is a flex row of full-width
   slides that JS translates left/right (plus a cloned first/last slide at
   each end, swapped back in instantly once off-screen, for a seamless loop).
   Only one slide is ever visible at a time. */
.carousel-track { display: flex; aspect-ratio: 4 / 3; height: auto; }
/* The vendor page's main photo slider (all of a vendor's up-to-3 photos) —
   sized like the cover image above, since it now replaces it entirely. */
.vendor-carousel-main .carousel-track { aspect-ratio: 4 / 3; height: auto; }
.carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: var(--white); border: none;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: rgba(0,0,0,0.68); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none;
  background: rgba(255,255,255,0.6); cursor: pointer;
}
.carousel-dot.is-active { background: var(--white); }

/* -------------------------------------------------- Vendor video (above photo gallery) */
.vendor-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--ink);
  margin-bottom: 20px;
}
.vendor-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------- Social icon links (vendor page) */
.social-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social-links-label { font-weight: 700; font-size: 14px; color: var(--ink); margin-right: 2px; }
.social-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream); color: var(--coral-dark);
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-icon-btn:hover { background: var(--coral); color: var(--white); transform: translateY(-2px); }
.social-icon-btn svg { display: block; }

/* -------------------------------------------------- Availability calendar */
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}
.cal-day.empty { border: none; cursor: default; background: transparent; }
.cal-day.available { background: #E6F4E6; border-color: #C9E6C9; color: var(--green); }
.cal-day.booked { background: var(--coral-light); border-color: #FFC9BE; color: var(--coral-dark); }
.cal-day.blocked { background: #F1EDE8; border-color: var(--border); color: var(--ink-soft); }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.available { background: #C9E6C9; }
.swatch.booked { background: #FFC9BE; }
.swatch.blocked { background: var(--border); }

/* -------------------------------------------------- Misc */
.section-title { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
}
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }
