/* Southport Local brand tokens
   Sand background, marine teal, deckchair coral accent
   Display: Fjalla One (condensed, pier signage feel)
   Body: Karla (clean, humanist)
*/

:root {
  --sand: #F3ECDD;
  --sand-dark: #E7DCC3;
  --marine: #1F4B4C;
  --marine-deep: #163636;
  --coral: #E85D4E;
  --coral-dark: #C7473A;
  --ink: #2A2622;
  --paper: #FFFDF8;
  --stamp: #1F4B4C;
  --radius: 10px;
  --shadow: 0 2px 0 rgba(31,75,76,0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fjalla One', 'Arial Narrow', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--marine);
  margin: 0;
}

a { color: var(--marine); }

/* Header */

.topbar {
  background: var(--marine);
  color: var(--paper);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.topbar .logo {
  font-family: 'Fjalla One', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

/* Hero */

.hero {
  padding: 28px 18px 20px;
  background: linear-gradient(180deg, var(--marine) 0%, var(--marine) 60%, var(--sand) 60%);
}

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 6px 18px rgba(22,54,54,0.25);
}

.hero-card h1 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-card p {
  margin: 0 0 14px;
  color: #55504A;
  font-size: 0.95rem;
}

.stripe-rule {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--coral) 0px, var(--coral) 14px,
    var(--marine) 14px, var(--marine) 28px
  );
  border-radius: 4px;
  margin: 14px 0;
}

/* Search / filter */

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 2px;
}

.filter-chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sand-dark);
  border: none;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--marine);
  cursor: pointer;
}

.filter-chip.active {
  background: var(--coral);
  color: var(--paper);
}

/* Directory grid */

.section {
  padding: 18px;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.listing-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--sand-dark);
}

.listing-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--sand-dark);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.listing-info { flex: 1; min-width: 0; }

.listing-info h3 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  color: var(--ink);
}

.listing-meta {
  font-size: 0.8rem;
  color: #746E64;
  margin-top: 2px;
}

.stars {
  color: var(--coral);
  font-size: 0.85rem;
  margin-top: 4px;
}

.verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--marine);
  border: 1.5px solid var(--marine);
  border-radius: 999px;
  padding: 2px 8px;
  transform: rotate(-3deg);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--paper);
  font-family: 'Fjalla One', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
}

.btn:active { background: var(--coral-dark); }

.btn-outline {
  background: transparent;
  color: var(--marine);
  border: 2px solid var(--marine);
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22,54,54,0.55);
  z-index: 50;
  display: none;
  align-items: flex-end;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--paper);
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  padding: 20px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--marine);
  cursor: pointer;
}

/* Reviews */

.review {
  border-top: 1px solid var(--sand-dark);
  padding: 12px 0;
}

.review-head {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.9rem;
}

.review-body {
  font-size: 0.88rem;
  color: #4B463F;
  margin-top: 4px;
}

textarea, input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  font-family: 'Karla', sans-serif;
  padding: 10px;
  border-radius: 8px;
  border: 1.5px solid var(--sand-dark);
  background: var(--paper);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.star-input {
  display: flex;
  gap: 6px;
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--sand-dark);
}

.star-input span.active { color: var(--coral); }

/* Giveaway / points */

.points-badge {
  background: var(--marine);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

.points-badge .num {
  font-family: 'Fjalla One', sans-serif;
  font-size: 2rem;
  color: var(--coral);
  display: block;
}

/* Bottom nav */

.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--sand-dark);
  display: flex;
  z-index: 20;
}

.bottomnav button {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 4px 8px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: #746E64;
}

.bottomnav button.active { color: var(--coral); }

.bottomnav .icon {
  display: block;
  font-family: 'Fjalla One', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  width: 26px;
  padding: 1px 0;
  margin-left: auto;
  margin-right: auto;
}

.page { display: none; padding-bottom: 70px; }
.page.active { display: block; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #746E64;
}

.toast {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--marine);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 60;
  white-space: nowrap;
}

.toast.show { opacity: 1; }

/* Ordering */

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--sand-dark);
}

.menu-row-name { font-weight: 700; font-size: 0.92rem; }
.menu-row-price { color: #746E64; font-weight: 400; margin-left: 8px; font-size: 0.85rem; }

.qty-control { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--marine);
  background: var(--paper);
  color: var(--marine);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.qty-val { min-width: 16px; text-align: center; font-weight: 700; }

.order-total {
  text-align: right;
  font-family: 'Fjalla One', sans-serif;
  font-size: 1.1rem;
  color: var(--marine);
  margin: 10px 0;
}

/* Photos */

.photo-label {
  display: block;
  font-size: 0.8rem;
  color: #746E64;
  margin-bottom: 4px;
}

input[type="file"] { margin-bottom: 10px; font-size: 0.85rem; }

.review-photo {
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
  display: block;
}

/* Profile page */

#badgeRow .filter-chip {
  cursor: default;
}

.report-link {
  background: none;
  border: none;
  color: #9A9484;
  font-size: 0.72rem;
  text-decoration: underline;
  padding: 6px 0 0;
  cursor: pointer;
}
