/* ===========================
   Ramisbnb - Public Site CSS
   =========================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #2563eb;
  --info-bg: #eff6ff;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --text: #0f172a;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);

  --navbar-height: 68px;
  --transition: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
a.btn, a.btn:hover { color: #fff; }
button { cursor: pointer; font-family: var(--font); border: none; }
input, select, textarea { font-family: var(--font); font-size: 1rem; }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }

/* === LAYOUT === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
.page { padding-top: calc(var(--navbar-height) + 2rem); padding-bottom: 4rem; min-height: 100vh; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 100;
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 0.4rem;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-auth { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--navbar-height); left: 0; right: 0; background: #fff; padding: 1rem; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.65rem 1.4rem;
  border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}

/* === FORMS === */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--text); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control.error { border-color: var(--error); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.82rem; color: var(--error); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-group input[type="checkbox"] { margin-top: 0.2rem; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-group label { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); }

/* === CARDS === */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); background: var(--surface-2); }

/* === BADGES === */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-pending { background: #eff6ff; color: #2563eb; }
.badge-accepted { background: #f0fdf4; color: #16a34a; }
.badge-paid { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: #fef2f2; color: var(--error); }
.badge-rejected { background: #fef2f2; color: var(--error); }
.badge-expired { background: #f4f4f5; color: #71717a; }
.badge-completed { background: #f1f5f9; color: #475569; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff; padding: calc(var(--navbar-height) + 1.5rem) 0 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; font-size: 1.6rem; }
.hero-subtitle { font-size: 1rem; opacity: 0.88; max-width: 580px; margin: 0 auto 1.25rem; }
.hero-badges { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  padding: 0.5rem 1rem; border-radius: 20px;
  font-size: 0.9rem; color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === SECTION === */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* === GALLERY === */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 280px 220px; gap: 6px; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.3s; }
.gallery img:hover { transform: scale(1.03); }
.gallery-placeholder { background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 0.5rem; }
.gallery-more { position: relative; overflow: hidden; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 250px; } .gallery > *:not(.gallery-main) { display: none; } }

/* === PROPERTY DETAILS === */
.property-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
@media (max-width: 940px) { .property-grid { grid-template-columns: 1fr; } }

.property-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.highlight-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.highlight-icon { font-size: 1.4rem; flex-shrink: 0; }
.highlight-label { font-size: 0.78rem; color: var(--text-muted); }
.highlight-value { font-weight: 600; color: var(--text); font-size: 0.92rem; }

/* === SLEEPING ARRANGEMENTS === */

.sleeping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .sleeping-grid { grid-template-columns: 1fr; }
}

.sleeping-card {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.sleeping-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.sleeping-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.sleeping-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .amenities-grid { grid-template-columns: 1fr; }
}

.amenity-category {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.amenity-cat-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.amenity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex-wrap: wrap;
}

.amenity-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.amenity-desc {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 2rem;
  margin-top: 0.1rem;
}

.amenity-not-included {
  grid-column: 1 / -1;
  background: #fef2f2;
  border-color: #fecaca;
}

.amenity-not-included .amenity-cat-title {
  color: var(--error);
}

.amenity-not-included s {
  color: var(--text-muted);
}

.rules-list { display: flex; flex-direction: column; gap: 0.6rem; }
.rules-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }
.rules-list li::before { content: '—'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* === BOOKING WIDGET === */
.booking-widget {
  position: sticky; top: calc(var(--navbar-height) + 1rem);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden;
}
.booking-widget-horizontal { position: static; }
@media (max-width: 640px) {
  .booking-widget-horizontal .booking-widget-body { flex-direction: column; align-items: stretch; }
  .booking-widget-horizontal .booking-widget-body > div { min-width: 0 !important; flex: unset !important; }
}
.booking-widget-header { background: var(--primary); color: #fff; padding: 1.25rem 1.5rem; }
.booking-widget-header p { opacity: 0.8; font-size: 0.85rem; margin-top: 0.25rem; }
.price-from { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.price-from small { font-size: 0.8rem; font-weight: 400; opacity: 0.75; }
.booking-widget-body { padding: 1.5rem; }
.date-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* === QUOTE RESULT === */
.quote-result { background: var(--surface-2); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; border: 1px solid var(--border-light); }
.quote-line { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; font-size: 0.88rem; color: var(--text-muted); }
.quote-line + .quote-line { border-top: 1px dashed var(--border); }
.quote-total { border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem; color: var(--text); }
.quote-deposit { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; font-style: italic; }
.auth-required-box { background: var(--info-bg); border: 1px solid var(--info); border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; text-align: center; }
.auth-required-box p { font-size: 0.92rem; color: var(--text); margin: 0; font-weight: 500; }

/* === CALENDAR === */
.calendar-widget { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 1.5rem; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-header h3 { font-size: 1rem; }
.cal-nav { display: flex; gap: 0.4rem; }
.cal-nav button { padding: 0.4rem 0.75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition); }
.cal-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-header { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 0.4rem 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.83rem; cursor: pointer;
  transition: all 0.15s; position: relative; border: 1.5px solid transparent;
}
.cal-day:hover:not(.unavailable):not(.past) { background: var(--primary); color: #fff; }
.cal-day.today { font-weight: 700; border-color: var(--primary); }
.cal-day.unavailable { color: var(--text-light); text-decoration: line-through; cursor: not-allowed; background: var(--surface-2); }
.cal-day.past { color: var(--text-light); cursor: not-allowed; opacity: 0.5; }
.cal-day.selected-start, .cal-day.selected-end { background: var(--primary); color: #fff; font-weight: 600; border-radius: var(--radius-sm); }
.cal-day.in-range { background: rgba(37,99,235,0.08); border-radius: 0; }
.cal-legend { display: flex; gap: 1.25rem; margin-top: 0.75rem; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); }
.cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.dot-available { background: #fff; border: 1px solid var(--border); }
.dot-unavailable { background: var(--surface-2); border: 1px solid var(--border-light); }
.dot-selected { background: var(--primary); }

/* === AUTH === */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface-2); padding: 2rem 1rem; padding-top: calc(var(--navbar-height) + 2rem); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 2.5rem; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.auth-link { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--text-light); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* === BOOKING CARDS (selfcare) === */
.bookings-list { display: flex; flex-direction: column; gap: 1rem; }
.booking-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition); cursor: pointer;
}
.booking-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.booking-card-dates { flex: 1; }
.booking-card-dates .ref { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.booking-card-dates .dates { font-size: 1rem; font-weight: 600; }
.booking-card-dates .guests { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.booking-card-meta { text-align: right; flex-shrink: 0; }
.booking-card-meta .amount { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.booking-card-meta .status { margin-top: 0.3rem; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text); }

/* === BOOKING DETAIL === */
.booking-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
@media (max-width: 900px) { .booking-detail-grid { grid-template-columns: 1fr; } }
.detail-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; font-size: 0.93rem; border-bottom: 1px solid var(--border-light); }
.detail-row:last-child { border-bottom: none; }
.detail-row .lbl { color: var(--text-muted); }
.detail-row .val { font-weight: 500; }
.detail-row.total { font-weight: 700; font-size: 1.05rem; }
.detail-row.total .val { color: var(--primary); font-size: 1.15rem; }

/* === PAYMENT === */
.payment-summary { background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border-light); padding: 1.25rem; margin-bottom: 1.5rem; }

/* === PRACTICAL INFO === */
.info-block { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.info-block h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.05rem; }
.info-block p { color: var(--text-muted); line-height: 1.75; white-space: pre-line; }
.wifi-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.wifi-box .wifi-info { font-size: 0.9rem; opacity: 0.85; }
.wifi-box .wifi-code { font-size: 1.05rem; font-weight: 700; font-family: monospace; }

/* Practical info — staggered fade-in */
.pi-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pi-section.pi-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Practical info — accordion */
.pi-section h3 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pi-section h3::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-135deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.pi-section.pi-collapsed h3::after {
  transform: rotate(45deg);
}
.pi-section .pi-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}
.pi-section.pi-collapsed .pi-content {
  max-height: 0 !important;
  opacity: 0;
}

/* Practical info — map fade */
.pi-map-iframe {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pi-map-iframe.pi-map-loaded {
  opacity: 1;
}

/* === PROFILE === */
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }
.avatar-circle { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto 1rem; }
.score-card { text-align: center; padding: 1.5rem; }
.score-value { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.score-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.score-bar { height: 8px; background: var(--border); border-radius: 4px; margin: 0.75rem 0 0.25rem; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; }

/* === TOAST === */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500;
  min-width: 280px; max-width: 380px;
  animation: slideIn 0.25s ease; pointer-events: all; cursor: pointer;
}
.toast-success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.toast-error { background: var(--error-bg); color: var(--error); border-left: 4px solid var(--error); }
.toast-info { background: var(--info-bg); color: var(--info); border-left: 4px solid var(--info); }
.toast-warning { background: var(--warning-bg); color: var(--warning); border-left: 4px solid var(--warning); }

/* === MODAL === */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.15s ease; }
.modal { background: #fff; border-radius: var(--radius-xl); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideUp 0.2s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; }
.modal-close { background: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; padding: 0.25rem; line-height: 1; border: none; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* === LIGHTBOX === */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.5rem; cursor: pointer; background: rgba(255,255,255,0.1); border: none; padding: 0.75rem 1rem; border-radius: var(--radius); transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* === LOADER === */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
.page-loader { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.loader-inline { display: flex; align-items: center; justify-content: center; padding: 2rem; }

/* === ALERTS === */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #fecaca; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #bfdbfe; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }

/* === STEPS === */
.steps { display: flex; align-items: center; margin-bottom: 2rem; }
.step { display: flex; align-items: center; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; background: var(--border); color: var(--text-muted); }
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done .step-num { background: var(--success); color: #fff; }
.step-label { margin-left: 0.5rem; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.step.active .step-label { color: var(--primary); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 0.75rem; }
.step.done + .step-line, .step.done .step-line { background: var(--success); }
@media (max-width: 480px) { .step-label { display: none; } }

/* === POLICY === */
.policy-grid { display: grid; gap: 0.6rem; }
.policy-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 0.88rem; }
.policy-item .period { color: var(--text-muted); }
.policy-refund-full { color: var(--success) !important; font-weight: 700; }
.policy-refund-partial { color: #d97706 !important; font-weight: 700; }
.policy-refund-none { color: var(--error) !important; font-weight: 700; }

/* === FOOTER === */
.site-footer { background: var(--surface-2); color: var(--text-muted); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { color: var(--text); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-links h4 { color: var(--text-secondary); margin-bottom: 0.75rem; font-size: 0.88rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; flex-wrap: wrap; gap: 0.5rem; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }
.separator { height: 1px; background: var(--border); margin: 1.5rem 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* === ANIMATIONS === */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* =========================================================
   REVIEWS
   ========================================================= */

/* === COMPLEMENTARY === */
.complementary-banner { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: linear-gradient(135deg, var(--primary-light, #eef4ff) 0%, var(--surface-2) 100%); border-radius: var(--radius-lg); margin-bottom: 1.25rem; border: 1px solid var(--border-light, var(--border)); }
.complementary-banner-icon { font-size: 2.2rem; flex-shrink: 0; }
.complementary-banner strong { display: block; font-size: 1.05rem; margin-bottom: .15rem; }
.complementary-banner span { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.complementary-grid { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; }
.complementary-chip { display: flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; font-weight: 500; transition: transform .15s, box-shadow .15s; }
.complementary-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.complementary-emoji { font-size: 1.25rem; line-height: 1; }
.complementary-footer { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.complementary-footer p { margin: 0 0 .35rem; }
.complementary-footer p:last-child { margin: 0; }

/* === LOCATION PHOTOS === */
.location-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.location-photo-item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.location-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.location-photo-item:hover img { transform: scale(1.05); }

/* === CONTACT SECTION === */
.contact-section { padding: 4rem 0; margin-top: 3rem; border-top: 1px solid var(--border); }
.contact-header { text-align: center; margin-bottom: 2rem; }
.contact-header p { margin-top: 0.35rem; }
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .contact-form-row { grid-template-columns: 1fr; } }

.reviews-section {
  background: var(--surface-2);
  padding: 4rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews-subtitle {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.review-comment {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.reviews-empty {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 3rem 0;
}

/* Star selector in review modal */
.star-selector {
  display: flex;
  gap: 0.5rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #d1d5db;
  padding: 0;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
}

.star-btn.active,
.star-btn:hover {
  color: #f59e0b;
  transform: scale(1.1);
}

/* Phone country code selector */
select#reg-phone-code,
select#pf-phone-code {
  font-size: 0.9rem;
  padding: 0.5rem 0.25rem;
}

/* =========================================================
   SITE ACCESS GATE
   ========================================================= */

body.gate-active #navbar,
body.gate-active #app,
body.gate-active #toast-container {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

#site-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.gate-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.gate-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.gate-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.gate-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.5rem 0 1rem;
}

#gate-code {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}

#gate-code::placeholder {
  text-transform: none;
  letter-spacing: normal;
}

.gate-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gate-separator::before,
.gate-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gate-switch {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.gate-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.gate-switch a:hover {
  text-decoration: underline;
}

.gate-card .form-group {
  margin-bottom: 1rem;
}

.gate-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
