@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800&display=swap');

:root {
  --bg: #faf8f6;
  --surface: #ffffff;
  --surface-alt: #f5f3f0;
  --ink: #1a1a1a;
  --muted: #666;
  --border: #e5e0da;
  --accent: #bf5700;
  --accent-hover: #a34a00;
  --accent-light: #ff7a1a;
  --accent-soft: rgba(191, 87, 0, 0.1);
  --accent-softer: rgba(191, 87, 0, 0.05);
  --success: #0d7a46;
  --danger: #c93a2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1140px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { resize: vertical; min-height: 100px; }

label {
  display: block;
}

label > span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ===== LAYOUT SHELL ===== */
.site-shell { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner,
.page {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(191, 87, 0, 0.25);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1rem; font-weight: 700; }
.brand-tagline { color: var(--muted); font-weight: 400; font-size: 0.7rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: all 0.15s;
}

.nav-link:hover { 
  background: var(--accent-soft); 
  color: var(--accent); 
}

/* ===== PAGE CONTAINER ===== */
.page { 
  padding: 2rem 0 4rem; 
  flex: 1; 
}

/* ===== HERO — BOLD CENTERED ===== */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--accent-softer) 0%, transparent 100%);
  border-radius: var(--radius-lg);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.hero .eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.button-sm { 
  padding: 0.45rem 0.85rem; 
  font-size: 0.8rem; 
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(191, 87, 0, 0.25);
}
.button-primary:hover { 
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(191, 87, 0, 0.3);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.button-secondary:hover { 
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
}
.button-ghost:hover { 
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===== FILTERS — COLLAPSIBLE ===== */
.filters-wrapper {
  margin-bottom: 1.5rem;
}

.filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.filters-toggle:hover {
  border-color: var(--accent);
}

.filters-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.filters-toggle-left svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.filters-count {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.filters-toggle-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.filters-wrapper.open .filters-toggle-icon {
  transform: rotate(180deg);
}

.filters-panel {
  display: none;
  padding: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.filters-wrapper.open .filters-toggle {
  border-radius: var(--radius) var(--radius) 0 0;
  border-color: var(--accent);
}

.filters-wrapper.open .filters-panel {
  display: block;
  border-color: var(--accent);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.filter-row-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.checkbox-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.checkbox-pill input {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.checkbox-pill:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ===== LISTINGS SECTION ===== */
.listings-section {
  margin-top: 0;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.sort-control span {
  color: var(--muted);
  font-weight: 500;
}

.sort-control select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

.sort-control select:focus {
  outline: none;
  border-color: var(--accent);
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.results-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===== VIEW TOGGLE ===== */
.view-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

.view-toggle button {
  padding: 0.4rem 0.7rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.view-toggle button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.view-toggle button svg {
  width: 16px;
  height: 16px;
}

/* ===== LISTING GRID ===== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ===== LISTING CARD — BOLD ===== */
.listing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.listing-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-alt), var(--border));
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.listing-card-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 0.3s;
}

.listing-card:hover .listing-card-media img {
  transform: scale(1.04);
}

.listing-card-badge {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  background: var(--accent);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.listing-card-interest {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.listing-card-interest svg {
  width: 12px;
  height: 12px;
}

.listing-card-body {
  padding: 0.9rem;
}

.listing-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.listing-card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.listing-card-header h3 a {
  transition: color 0.15s;
}

.listing-card-header h3 a:hover {
  color: var(--accent);
}

.listing-card-price {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  font-size: 1rem;
}

.listing-card-price .price-period {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
}

.listing-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.listing-card-details span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.listing-card-meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
}

.listing-card-roommates {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.listing-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.45rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
}

/* ===== MAP VIEW ===== */
.map-container {
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  color: var(--border);
}

.empty-state h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.hidden { display: none !important; }

/* ===== NOTICES ===== */
.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
}

.notice.success {
  background: rgba(13, 122, 70, 0.1);
  border-color: rgba(13, 122, 70, 0.25);
  color: var(--success);
}

.notice.error {
  background: rgba(201, 58, 46, 0.08);
  border-color: rgba(201, 58, 46, 0.2);
  color: var(--danger);
}

/* ===== DETAIL PAGE ===== */
.back-row { margin-bottom: 1rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.25rem;
  align-items: start;
}

.detail-main { display: grid; gap: 1rem; }

.detail-gallery {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-hero-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-alt), var(--border));
}

.detail-hero-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.thumbnail-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  overflow-x: auto;
}

.thumb-btn {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}

.thumb-btn:hover,
.thumb-btn.active {
  border-color: var(--accent);
}

.thumb-btn img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.detail-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.detail-title-row h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.fact {
  padding: 0.75rem;
  background: var(--accent-softer);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.fact strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  color: var(--ink);
}

.fact span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== SIDEBAR / HOST CARD ===== */
.detail-side { display: grid; gap: 1rem; }

.host-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  position: sticky;
  top: 75px;
}

.host-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.host-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  background: var(--accent);
  color: white;
}

.host-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.host-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.message-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ===== FORMS ===== */
.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.form-card h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem;
}

.form-card > .muted {
  margin-bottom: 1.25rem;
}

.form-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--accent);
}

.form-section > .muted {
  margin-top: -0.4rem;
  margin-bottom: 0.65rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.form-grid.three-up { grid-template-columns: repeat(3, 1fr); }

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.checkbox-row:hover {
  border-color: var(--accent);
}

.checkbox-row:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.checkbox-row input { 
  width: auto; 
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.checkbox-row span { margin-bottom: 0; }
.checkbox-row-wide { width: 100%; }

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

.checkbox-grid label { width: 100%; }

/* Image uploader */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface-alt);
}

.image-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
}

.image-upload-area svg {
  width: 32px;
  height: 32px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.image-upload-area p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.image-upload-area span {
  color: var(--accent);
  font-weight: 600;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.preview-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  cursor: grab;
  transition: all 0.15s;
}

.preview-card:hover {
  border-color: var(--accent);
}

.preview-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.preview-card.drag-over {
  border-color: var(--accent);
  transform: scale(1.05);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.preview-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.preview-card:hover .preview-card-overlay {
  opacity: 1;
}

.preview-card-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.preview-card-btn:hover {
  background: white;
  transform: scale(1.1);
}

.preview-card-btn.delete:hover {
  background: var(--danger);
  color: white;
}

.preview-card-btn svg {
  width: 14px;
  height: 14px;
}

.preview-card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ===== AUTH PAGE ===== */
.auth-page {
  display: grid;
  place-items: center;
  min-height: 55vh;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.auth-form form {
  display: grid;
  gap: 0;
}

.button-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.button-google:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.25rem 0;
}

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

.auth-divider span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.auth-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

.auth-links a:hover {
  color: var(--accent);
}

/* ===== DASHBOARD ===== */
.dashboard-page h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dashboard-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.dashboard-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.stack-list {
  display: grid;
  gap: 0.65rem;
}

.stack-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.stack-item.listing-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

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

.listing-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.listing-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

.listing-status.active {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.listing-status.inactive {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.button-danger {
  background: #dc2626;
  color: white;
  border: none;
}

.button-danger:hover {
  background: #b91c1c;
}

.stack-item h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.stack-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== LEGAL PAGES ===== */
.prose-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.prose-card h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.prose-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  color: var(--accent);
}

.prose-card p {
  color: var(--muted);
  margin: 0 0 0.85rem;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.15rem;
}

.footer-links a {
  transition: color 0.15s;
}

.footer-links a.feedback-link {
  color: var(--accent);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== LOADING STATE ===== */
.detail-loading {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .listing-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .detail-grid { 
    grid-template-columns: 1fr; 
  }
  
  .host-card { 
    position: static; 
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 1rem 0 2rem;
  }

  .header-inner { 
    flex-direction: column; 
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0;
  }
  
  .nav-links { 
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
  }
  
  .nav-link {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }
  
  .hero { 
    padding: 1.25rem 0.5rem 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero h1 { 
    font-size: 1.75rem; 
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .hero-actions {
    gap: 0.5rem;
  }
  
  .button {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }
  
  .filters-wrapper {
    margin-bottom: 1rem;
  }
  
  .filters-panel {
    padding: 0.75rem;
  }
  
  .listing-grid { 
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .listing-card-body {
    padding: 0.75rem;
  }
  
  .listing-card-header h3 {
    font-size: 0.9rem;
  }
  
  .listing-card-price {
    font-size: 0.95rem;
  }
  
  .filter-grid,
  .form-grid.two-up,
  .form-grid.three-up,
  .checkbox-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }
  
  .image-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .form-card,
  .auth-card,
  .prose-card {
    padding: 1rem;
    border-radius: var(--radius);
  }
  
  .form-section {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .form-section h3 {
    font-size: 0.9rem;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .footer-links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .detail-title-row {
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .detail-card {
    padding: 0.85rem;
  }
  
  .host-card {
    padding: 0.85rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .section-header h2 {
    font-size: 1.15rem;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .dashboard-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dashboard-actions .button {
    width: 100%;
  }
}

/* ===== LEGACY SUPPORT ===== */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading.stacked {
  flex-direction: column;
  align-items: flex-start;
}

.section-heading h2,
.section-heading h1 { 
  margin: 0; 
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}

#mode-indicator {
  font-size: 0.7rem;
}
