/* ─── NAV ─── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

.nav-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.nav-btn:hover { opacity: 0.88; }

.nav-btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.nav-btn-ghost:hover { color: var(--fg); border-color: rgba(255,255,255,0.2); }

/* ─── APP SHELL ─── */
.app-main {
  min-height: calc(100vh - 64px - 80px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  line-height: 1.4;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  line-height: 1.4;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.2); }

.btn-ghost {
  display: inline-block;
  background: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--fg); }

.btn-full { width: 100%; text-align: center; }

.btn-sm {
  display: inline-block;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-green { background: var(--green); color: #0a0a0f; }
.btn-sm.btn-ghost { background: none; border: 1px solid var(--border); color: var(--fg-muted); }
.btn-sm.btn-secondary { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--fg); }
.btn-delete { color: #ff4d4d !important; border-color: rgba(255,77,77,0.3) !important; }

/* ─── HERO CTA ─── */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-label-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--fg);
}

.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: rgba(154,150,144,0.5); }

.form-select { cursor: pointer; }
.form-textarea { min-height: 100px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

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

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

.required { color: var(--accent); }

/* ─── ALERTS ─── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.alert-error { background: rgba(255,77,77,0.1); border: 1px solid rgba(255,77,77,0.25); color: #ff8080; }
.alert-success { background: rgba(69,232,157,0.1); border: 1px solid rgba(69,232,157,0.25); color: var(--green); }

/* ─── AUTH PAGES ─── */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
}

.auth-card-wide { max-width: 600px; }

.auth-logo { margin-bottom: 32px; }
.auth-logo a { font-family: var(--font-display); font-weight: 700; color: var(--fg); text-decoration: none; font-size: 1.1rem; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-sub { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 28px; }

.auth-form { margin-top: 28px; }

.auth-switch { margin-top: 20px; font-size: 0.9rem; color: var(--fg-muted); text-align: center; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── BROWSE PAGE ─── */
.browse-page { max-width: 960px; }

.browse-header { margin-bottom: 36px; }
.browse-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.browse-sub { color: var(--fg-muted); }

.search-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-field { flex: 1; min-width: 140px; }
.search-zip { max-width: 160px; }
.search-btn { flex-shrink: 0; margin-bottom: 0; }

.listing-count {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
  display: block;
}

.listing-card:hover {
  border-color: rgba(255,107,53,0.35);
  transform: translateY(-2px);
}

.listing-card-photo { aspect-ratio: 4/3; overflow: hidden; background: rgba(255,255,255,0.04); }
.listing-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.4;
}

.listing-card-body { padding: 20px; }
.listing-card-category { font-size: 0.75rem; font-family: var(--font-display); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.listing-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; line-height: 1.3; }
.listing-card-meta { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 12px; }
.listing-card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.listing-card-price span { font-size: 0.85rem; font-weight: 400; color: var(--fg-muted); margin-left: 2px; }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 32px;
  color: var(--fg-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state h3 { font-family: var(--font-display); font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.empty-state p { font-size: 0.95rem; }
.empty-state a { color: var(--accent); text-decoration: none; }

/* ─── LISTING DETAIL ─── */
.detail-page {}

.detail-breadcrumb { margin-bottom: 28px; }
.detail-breadcrumb a { color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; }
.detail-breadcrumb a:hover { color: var(--fg); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: flex-start;
}

/* Gallery */
.gallery { margin-bottom: 32px; }
.gallery-main-wrap { border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated); aspect-ratio: 4/3; margin-bottom: 12px; }
.gallery-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.gallery-placeholder { background: var(--bg-elevated); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 48px; color: var(--fg-muted); gap: 8px; margin-bottom: 32px; }

.detail-category { font-size: 0.75rem; font-family: var(--font-display); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.detail-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; line-height: 1.2; }
.detail-operator { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 20px; }
.detail-desc { color: var(--fg-muted); line-height: 1.7; margin-bottom: 24px; }

.detail-specs { display: flex; flex-direction: column; gap: 12px; }
.spec { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--bg-elevated); border-radius: 10px; border: 1px solid var(--border); }
.spec-label { font-family: var(--font-display); font-size: 0.85rem; color: var(--fg-muted); font-weight: 500; }
.spec-val { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }

/* Booking card */
.booking-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 80px;
}

.booking-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.booking-price span { font-size: 1rem; font-weight: 400; color: var(--fg-muted); }
.booking-note { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 20px; line-height: 1.5; }
.booking-disclaimer { font-size: 0.8rem; color: var(--fg-muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ─── CONFIRMATION PAGE ─── */
.confirmation-page { display: flex; justify-content: center; }

.confirmation-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.confirmation-icon { font-size: 56px; margin-bottom: 20px; }
.confirmation-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.confirmation-sub { color: var(--fg-muted); line-height: 1.6; margin-bottom: 32px; }

.confirmation-details { text-align: left; margin-bottom: 32px; }
.conf-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.conf-row:last-child { border-bottom: none; }
.conf-label { color: var(--fg-muted); font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; }
.conf-val { font-weight: 500; }

.confirmation-actions { display: flex; justify-content: center; gap: 12px; }

/* ─── STATUS BADGES ─── */
.status-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: rgba(255,197,61,0.15); color: #ffc53d; border: 1px solid rgba(255,197,61,0.3); }
.status-confirmed { background: rgba(69,232,157,0.15); color: var(--green); border: 1px solid rgba(69,232,157,0.3); }
.status-cancelled { background: rgba(255,77,77,0.1); color: #ff8080; border: 1px solid rgba(255,77,77,0.25); }

/* ─── DASHBOARD ─── */
.dashboard-page {}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.dashboard-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.dashboard-sub { color: var(--fg-muted); font-size: 0.95rem; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-card-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 4px; color: var(--accent); }
.stat-card-label { font-size: 0.85rem; color: var(--fg-muted); font-family: var(--font-display); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.dashboard-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header-row .section-title { margin-bottom: 0; }

.link-accent { color: var(--accent); text-decoration: none; font-size: 0.85rem; font-family: var(--font-display); font-weight: 600; }

.badge-count {
  background: var(--accent-glow);
  border: 1px solid rgba(255,107,53,0.25);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
}

.booking-list { display: flex; flex-direction: column; gap: 12px; }

.booking-row {
  padding: 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.booking-row-confirmed { border-color: rgba(69,232,157,0.15); }

.booking-row-info { flex: 1; }
.booking-row-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.booking-row-meta { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.5; }
.booking-row-notes { font-size: 0.82rem; color: var(--fg-muted); font-style: italic; margin-top: 4px; }
.booking-row-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

.empty-text { color: var(--fg-muted); font-size: 0.9rem; }
.muted { color: var(--fg-muted); }

.dash-listings { display: flex; flex-direction: column; gap: 12px; }

.dash-listing-card {
  padding: 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.dash-listing-card.inactive { opacity: 0.55; }
.dash-listing-card:hover { border-color: rgba(255,255,255,0.15); }

.dash-listing-info { flex: 1; }
.dash-listing-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 3px; }
.dash-listing-meta { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.5; }
.dash-listing-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── LISTING FORM ─── */
.form-page {}

.form-page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.back-link { color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { color: var(--fg); }
.form-page-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: flex-start;
}

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.form-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.form-card-sub { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 16px; line-height: 1.5; }

.photo-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.photo-item { display: flex; align-items: center; gap: 12px; }
.photo-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.photo-meta { flex: 1; }
.badge-primary { font-size: 0.7rem; font-family: var(--font-display); background: var(--accent-glow); color: var(--accent); padding: 2px 8px; border-radius: 100px; border: 1px solid rgba(255,107,53,0.2); }

.photo-form { padding-top: 16px; border-top: 1px solid var(--border); }

/* ─── ERROR PAGE ─── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
  gap: 16px;
}

.error-code { font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: rgba(255,255,255,0.08); line-height: 1; }
.error-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.error-sub { color: var(--fg-muted); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .app-main { padding: 32px 20px; }

  .nav-inner { padding: 0 20px; }
  .nav-btn { display: none; }

  .detail-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }

  .dashboard-header { flex-direction: column; gap: 16px; }
  .dashboard-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-btn { width: 100%; }

  .auth-card { padding: 32px 24px; }
  .confirmation-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .stat-card-val { font-size: 1.8rem; }
}
