/* ================================================================
   LODGR DESIGN SYSTEM — Complete
   ================================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --page-bg: #ffffff;
  --surface: #f5f5f7;
  --surface-elevated: #ffffff;
  --surface-hover: #f0f0f2;
  --surface-muted: #fafafa;

  --text-primary: #1a1a2e;
  --text-secondary: #6b6b80;
  --text-muted: #9999ad;

  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);

  --accent: #e0165d;
  --accent-hover: #c41350;
  --accent-surface: rgba(224,22,93,0.08);
  --accent-glow: rgba(224,22,93,0.25);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --content-max: 1280px;
  --page-pad: clamp(16px, 5vw, 56px);
  --section-gap: 80px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  --success: #10b981;
  --danger: #ef4444;

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

[data-theme="dark"] {
  --page-bg: #0b0c14;
  --surface: #12131e;
  --surface-elevated: #181925;
  --surface-hover: #1e1f2e;
  --surface-muted: #0e0f18;

  --text-primary: #f0f0f5;
  --text-secondary: #9496ab;
  --text-muted: #5c5e72;

  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --accent: #ff4f91;
  --accent-hover: #ff6aa3;
  --accent-surface: rgba(255,79,145,0.1);
  --accent-glow: rgba(255,79,145,0.2);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);

  --success: #34d399;
  --danger: #f87171;

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239496ab' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration-slow) ease, color var(--duration-slow) ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mb-sm { margin-bottom: 12px; }
.mb-lg { margin-bottom: 40px; }
.w-fit { width: fit-content; }
.inline-form { margin: 0; }
.hidden { display: none; }
.page-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.listing-grid--padded { padding-bottom: 60px; }

/* --- GLOBAL CONTAINER --- */
.lodgr-container {
  width: min(100% - 2 * var(--page-pad), var(--content-max));
  margin-inline: auto;
}

/* --- TYPOGRAPHY SCALE --- */
.body-lg { font-size: 1rem; line-height: 1.6; }
.body-md { font-size: 0.9rem; line-height: 1.5; }

/* --- THEME TOGGLE --- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 1.1rem; position: relative; overflow: hidden;
  transition: all var(--duration-normal) ease; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border-hover); transform: scale(1.05); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
  position: absolute; transition: all var(--duration-slow) var(--ease-spring);
}
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

/* --- NAVBAR --- */
.lodgr-nav {
  position: sticky; top: 0; z-index: 1000; height: 72px;
  background: color-mix(in srgb, var(--page-bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: all var(--duration-slow) ease;
}
.lodgr-nav.scrolled { height: 64px; box-shadow: var(--shadow-sm); }
.lodgr-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 2rem;
}
.lodgr-nav-left { display: flex; align-items: center; gap: 1.5rem; }
.lodgr-nav-right { display: flex; align-items: center; gap: 0.5rem; }

.lodgr-logo {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
  color: var(--accent); font-weight: 700; font-size: 1.25rem;
}
.lodgr-logo i { font-size: 1.5rem; }
.lodgr-logo span { color: var(--text-primary); }

.nav-link-item {
  padding: 0.5rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--duration-fast) ease; white-space: nowrap;
}
.nav-link-item:hover { color: var(--text-primary); background: var(--surface); }
.nav-link-item.active { color: var(--text-primary); font-weight: 600; }

.nav-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0.35rem 0.35rem 0.35rem 1rem; transition: all var(--duration-normal) ease;
}
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.nav-search input {
  border: none; background: none; outline: none; font-size: 0.85rem;
  color: var(--text-primary); width: 200px; font-family: inherit;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search-btn {
  width: 32px; height: 32px; border-radius: var(--radius-full); border: none;
  background: var(--accent); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; transition: all var(--duration-fast) ease;
}
.nav-search-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.nav-host-btn {
  padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.85rem;
  font-weight: 500; color: var(--text-primary); background: none; border: none;
  transition: all var(--duration-fast) ease; white-space: nowrap;
}
.nav-host-btn:hover { background: var(--surface); }

.nav-auth-btn {
  padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.85rem;
  font-weight: 600; border: none; transition: all var(--duration-fast) ease; white-space: nowrap;
}
.nav-auth-btn.outline { color: var(--text-primary); background: none; border: 1px solid var(--border); }
.nav-auth-btn.outline:hover { border-color: var(--border-hover); background: var(--surface); }
.nav-auth-btn.filled { color: #fff; background: var(--accent); }
.nav-auth-btn.filled:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-mobile-toggle {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-primary);
  align-items: center; justify-content: center; font-size: 1.2rem;
  transition: all var(--duration-fast) ease;
}
.nav-mobile-toggle:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.nav-mobile-toggle.open i { transform: rotate(90deg); }
.nav-mobile-toggle i { transition: transform var(--duration-normal) ease; }

.nav-mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface-elevated); border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 12px var(--page-pad) 20px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
  z-index: 900;
}
.nav-mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.nav-mobile-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0.35rem 0.35rem 0.35rem 1rem; margin-bottom: 10px;
}
.nav-mobile-search input {
  flex: 1; border: none; background: none; outline: none; font-size: 0.9rem;
  color: var(--text-primary); font-family: inherit; min-width: 0;
}
.nav-mobile-search input::placeholder { color: var(--text-muted); }

.nav-mobile-link {
  display: flex; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-primary);
  transition: background var(--duration-fast) ease; width: 100%;
}
.nav-mobile-link:hover { background: var(--surface); }
.nav-mobile-link.filled { color: var(--accent); font-weight: 600; }
.nav-mobile-logout { margin: 0; }
.nav-mobile-logout .nav-mobile-link { border: none; background: none; font-family: inherit; cursor: pointer; }

.nav-auth-group { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 900px) {
  .nav-search input { width: 140px; }
  .nav-link-item, .nav-host-btn, .nav-auth-group { display: none; }
  .nav-mobile-toggle { display: flex; }
}
@media (max-width: 600px) {
  .nav-search { display: none; }
  .lodgr-nav { height: 60px; }
  .lodgr-nav-inner { gap: 1rem; }
}

/* --- SECTION WRAPPER --- */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px;
}
.section-header h2 { margin: 0; }
.section-see-all {
  font-size: 0.9rem; font-weight: 600; color: var(--accent); display: flex;
  align-items: center; gap: 0.3rem; transition: all var(--duration-fast) ease;
}
.section-see-all:hover { color: var(--accent-hover); gap: 0.5rem; }

/* --- LISTING CARD --- */
.listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; gap: 20px; } }

.l-card {
  background: var(--surface-elevated); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex; flex-direction: column;
}
.l-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.l-card-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.l-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.l-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover); color: var(--text-muted); font-size: 2rem;
}
.l-card:hover .l-card-img { transform: scale(1.04); }
.l-card-fav {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: var(--radius-full); border: none; background: var(--surface-elevated);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-primary); z-index: 2;
  transition: all var(--duration-fast) ease; opacity: 0.9;
}
.l-card:hover .l-card-fav { opacity: 1; }
.l-card-fav:hover { color: var(--accent); transform: scale(1.1); }
.l-card-fav.active { color: var(--accent); opacity: 1; }
.l-card-fav.active i { font-weight: bold; }
.l-card-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--surface-elevated); backdrop-filter: blur(8px);
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600; color: var(--text-primary);
  box-shadow: var(--shadow-xs); z-index: 2;
}
.l-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.l-card-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.l-card-meta {
  display: flex; align-items: center; justify-content: space-between; margin-top: 4px;
}
.l-card-location { font-size: 0.82rem; color: var(--text-secondary); }
.l-card-rating {
  display: flex; align-items: center; gap: 3px; font-size: 0.8rem; font-weight: 600;
}
.l-card-rating i { font-size: 0.7rem; color: var(--accent); }
.l-card-price { margin-top: 8px; font-size: 0.9rem; }
.l-card-price strong { font-weight: 700; }

/* --- CATEGORY BAR --- */
.cat-bar-wrap { position: relative; display: flex; align-items: center; }
.cat-bar {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding: 8px 0; flex: 1;
  scroll-padding-inline: 0;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); white-space: nowrap; border: 1px solid transparent;
  transition: all var(--duration-normal) ease; cursor: pointer; text-decoration: none;
  background: var(--surface); flex: 0 0 auto;
}
.cat-item i { font-size: 1rem; }
.cat-item:hover { color: var(--text-primary); background: var(--surface-hover); border-color: var(--border); text-decoration: none; }
.cat-item.active {
  color: var(--accent); background: var(--accent-surface); border-color: var(--accent);
  font-weight: 600;
}

.cat-arrow {
  width: 32px; height: 32px; border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--surface-elevated); display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-primary); flex-shrink: 0;
  box-shadow: var(--shadow-xs); transition: all var(--duration-fast) ease; z-index: 5;
}
.cat-arrow:hover { box-shadow: var(--shadow-sm); }
.cat-arrow-left { margin-right: 8px; }
.cat-arrow-right { margin-left: 8px; }
@media (max-width: 768px) { .cat-arrow { display: none; } }

/* --- FLASH MESSAGES --- */
.flash-wrap { padding: 16px 0 0; }
.flash {
  padding: 14px 20px; border-radius: var(--radius-sm); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: space-between;
  animation: flashIn 0.4s var(--ease-out);
}
.flash-success { background: color-mix(in srgb, var(--success) 10%, transparent); border: 1px solid color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.flash-close {
  background: none; border: none; color: inherit; font-size: 1.2rem; opacity: 0.7;
  transition: opacity var(--duration-fast) ease; padding: 0; line-height: 1;
}
.flash-close:hover { opacity: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* --- FORMS --- */
.form-page { display: flex; justify-content: center; padding: 60px 0; }
.form-card {
  width: 100%; max-width: 520px; background: var(--surface-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
}
.form-card h2 { text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-primary); font-size: 0.9rem;
  font-family: inherit; transition: all var(--duration-normal) ease; outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-btn {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 600;
  font-family: inherit; transition: all var(--duration-normal) ease; margin-top: 24px;
}
.form-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-btn:active { transform: translateY(0); }
.form-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 24px; padding: 14px; font-size: 0.9rem; color: var(--text-secondary);
}
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-link { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-secondary); }
.form-link a { color: var(--accent); font-weight: 600; }
.form-link a:hover { text-decoration: underline; }
@media (max-width: 600px) { .form-card { padding: 28px 20px; } }

/* --- SHOW PAGE --- */
.show-page { padding: 40px 0 60px; }
.show-container { max-width: 820px; margin: 0 auto; }
.show-title { margin-bottom: 24px; }
.show-subtitle { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); margin-top: 6px; }
.show-host { color: var(--text-muted); }
.show-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.show-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.show-img-placeholder { display: flex; align-items: center; justify-content: center; background: var(--surface-hover); color: var(--text-muted); font-size: 3rem; }
.show-price-badge {
  position: absolute; bottom: 16px; right: 16px; color: #fff; background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px); padding: 10px 16px; border-radius: var(--radius-md); font-size: 0.95rem;
}
.show-section { padding: 26px 0 2px; border-top: 1px solid var(--border); }
.show-section .heading-md { margin-bottom: 14px; }

.show-description p { line-height: 1.6; }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.amenity {
  display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); color: var(--text-secondary);
}
.amenity i { font-size: 1.4rem; color: var(--accent); }
.amenity strong { color: var(--text-primary); }
.show-actions { display: flex; gap: 12px; margin: 0 0 8px; }
.show-action-btn {
  padding: 10px 24px; border-radius: var(--radius-sm); font-size: 0.9rem;
  font-weight: 600; font-family: inherit; transition: all var(--duration-fast) ease;
  border: none;
}
.show-action-btn.edit { background: var(--accent); color: #fff; }
.show-action-btn.edit:hover { background: var(--accent-hover); }
.show-action-btn.delete { background: none; color: var(--text-secondary); border: 1px solid var(--border); }
.show-action-btn.delete:hover { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.nav-logout-form { display: contents; }
.nav-logout-form button { cursor: pointer; font-family: inherit; }

.booking-card {
  margin: 8px 0 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.booking-card-price { font-size: 1.15rem; margin-bottom: 14px; }
.booking-card-price span { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.booking-note { color: var(--text-secondary); margin: 0 0 12px; }
.booking-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form .btn-lodgr { width: 100%; margin-top: 8px; }
.review-host-note { color: var(--text-muted); margin-bottom: 16px; }
@media (max-width: 600px) {
  .booking-dates { grid-template-columns: 1fr; }
}

/* --- REVIEWS --- */

/* Two-column review form: rating (left) + comment/submit (right) */
.review-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 0 0 30px;
  border: 1px solid var(--border);
}
.review-form-heading { margin: 0 0 18px; }
.review-form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }
.review-form-left { display: flex; flex-direction: column; }
.review-form-right { display: flex; flex-direction: column; gap: 16px; }
.review-form-right .btn-lodgr { align-self: flex-start; }

/* Rating stars (horizontal row, radios hidden but submittable) */
.rating-group label { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 8px; display: block; }
.rating {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.rating-label { display: inline-flex; cursor: pointer; padding: 2px; }
.rating-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.rating-label:has(input:focus-visible) .rating-star {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.rating-star {
  font-size: 1.7rem;
  color: var(--text-muted);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease, filter 0.18s ease;
}
.rating:hover .rating-star { transform: scale(1.05); }
.rating-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 10px; }

/* Textarea smooth focus animation */
.review-textarea {
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background var(--duration-fast) ease;
}
.review-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}

/* Submit button with hover/tap interaction (React Bits click-spark needs relative) */
.review-submit {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, background var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
}
.review-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.review-submit:active { transform: translateY(0) scale(0.97); }

.review-summary { color: var(--text-secondary); margin: 0 0 18px; }
.review-summary .ri-star-fill { color: var(--accent); }
.review-section-title { font-size: 1.6rem; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.review-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.review-grid .review-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}
.review-card .review-body { flex: 1 1 auto; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem;
  margin-right: 10px;
}
.review-author-col { display: flex; align-items: center; }
.review-author { font-weight: 600; font-size: 0.9rem; }

.review-starline {
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.review-star { font-size: 0.8rem; color: var(--accent); display: inline-block; transform-origin: center; }

.review-comment { margin: 8px 0 0; color: var(--text-secondary); line-height: 1.55; }

.review-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 36px 20px; border: 1px dashed var(--border); border-radius: var(--radius-md);
  color: var(--text-muted);
}
.review-empty i { font-size: 2rem; color: var(--text-muted); }

.review-delete {
  background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.review-delete:hover { color: var(--accent); background: var(--surface); }
.review-delete:active { transform: scale(0.92); }

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

@media (max-width: 768px) {
  .review-form { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .review-grid { grid-template-columns: 1fr; }
  .show-img { height: 300px; }
}

/* React Bits AnimatedList cards: note the hidden state is added only by JS,
   so if scripts fail the cards remain visible (no-JS safe). */
.rb-animated-item { will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
  .review-card { opacity: 1 !important; transform: none !important; transition: none; }
  .rb-animated-item { opacity: 1; transform: none; transition: none; }
  .review-star, .rating-star { animation: none !important; transition: none !important; }
  .review-submit, .review-textarea { transition: none; }
}

/* --- MAP --- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
#map { height: 440px; width: 100%; }

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

@media (max-width: 640px) {
  .review-grid { grid-template-columns: 1fr; }
  .show-img { height: 300px; }
  #map { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .review-card { opacity: 1; transform: none; transition: none; }
  .review-card:hover { transform: none; }
  .review-star { animation: none !important; }
}

/* --- FOOTER --- */
.lodgr-footer {
  background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; font-size: 1.2rem; }
.footer-brand i { color: var(--accent); font-size: 1.4rem; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-legal { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.footer-legal a:hover { text-decoration: underline; color: var(--text-primary); }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-primary); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--duration-fast) ease; }
.footer-col a:hover { color: var(--text-primary); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* --- ERROR PAGE --- */
.error-page { display: flex; justify-content: center; align-items: center; min-height: 60vh; text-align: center; }
.error-card { max-width: 480px; }
.error-card h1 { font-size: 4rem; margin: 0 0 8px; color: var(--accent); }
.error-card p { color: var(--text-secondary); margin: 0 0 24px; }

/* --- BUTTONS --- */
.btn-lodgr {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  font-family: inherit; border: none; cursor: pointer;
  transition: all var(--duration-normal) ease;
}
.btn-lodgr.primary { background: var(--accent); color: #fff; }
.btn-lodgr.primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lodgr.outline { background: none; color: var(--text-primary); border: 1px solid var(--border); }
.btn-lodgr.outline:hover { border-color: var(--border-hover); background: var(--surface); }
.btn-lodgr.sm { padding: 8px 16px; font-size: 0.82rem; }

/* --- NO RESULTS --- */
.no-results { text-align: center; padding: 80px 0; }
.no-results i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }
.no-results h3 { margin: 0 0 8px; color: var(--text-primary); }
.no-results p { color: var(--text-secondary); margin: 0 0 24px; }

/* --- RESULTS INFO --- */
.results-info { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 0.9rem; color: var(--text-secondary); }
.results-info strong { color: var(--text-primary); }
.clear-filters { color: var(--accent); text-decoration: underline; font-size: 0.85rem; margin-left: 8px; }
.clear-filters:hover { color: var(--accent-hover); }

/* --- LISTINGS PAGE HEADER --- */
.listings-header { padding-top: 24px; padding-bottom: 16px; }

/* --- DARK MODE BOOTSTRAP FIXES --- */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--surface); border-color: var(--border); color: var(--text-primary);
}
[data-theme="dark"] .form-control::placeholder { color: var(--text-muted); }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  border-color: var(--accent); color: var(--text-primary); box-shadow: 0 0 0 3px var(--accent-glow);
}
[data-theme="dark"] .form-check-input { background-color: var(--surface); border-color: var(--border); }
[data-theme="dark"] .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .form-check-label { color: var(--text-primary); }
[data-theme="dark"] .form-switch .form-check-input { background-color: var(--surface-hover); }
[data-theme="dark"] .form-switch .form-check-input:checked { background-color: var(--accent); }
[data-theme="dark"] .card { background-color: var(--surface-elevated); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .bg-body-light { background-color: var(--page-bg) !important; }
[data-theme="dark"] .border-bottom { border-color: var(--border) !important; }
[data-theme="dark"] .text-dark { color: var(--text-primary) !important; }
[data-theme="dark"] .text-muted { color: var(--text-secondary) !important; }
[data-theme="dark"] .bg-light { background-color: var(--surface) !important; }
[data-theme="dark"] .dropdown-menu { background-color: var(--surface-elevated); border-color: var(--border); }
[data-theme="dark"] .dropdown-item { color: var(--text-primary); }
[data-theme="dark"] .dropdown-item:hover { background-color: var(--surface-hover); color: var(--text-primary); }
[data-theme="dark"] .modal-content { background-color: var(--surface-elevated); color: var(--text-primary); }
[data-theme="dark"] .modal-header, [data-theme="dark"] .modal-footer { border-color: var(--border); }
[data-theme="dark"] .navbar-toggler { border-color: var(--border); }
[data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }
[data-theme="dark"] .accordion-button { background-color: var(--surface); color: var(--text-primary); }
[data-theme="dark"] .accordion-button:not(.collapsed) { background-color: var(--accent-surface); color: var(--accent); }
[data-theme="dark"] .accordion-button::after { filter: invert(1); }
[data-theme="dark"] .accordion-body { background-color: var(--surface); color: var(--text-primary); }
[data-theme="dark"] .list-group-item { background-color: var(--surface); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .breadcrumb { background-color: var(--surface); }
[data-theme="dark"] .alert-success { background-color: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #34d399; }
[data-theme="dark"] .alert-danger { background-color: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #f87171; }
[data-theme="dark"] hr { border-color: var(--border); opacity: 0.5; }
[data-theme="dark"] .table { color: var(--text-primary); }
[data-theme="dark"] .close-btn { color: var(--text-secondary); }

/* ================================================================
   HOMEPAGE HERO
   ================================================================ */
.home-hero {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 56vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--surface);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11,12,20,0.65) 0%, rgba(11,12,20,0.25) 40%, transparent 70%),
    linear-gradient(to top, rgba(11,12,20,0.92) 0%, rgba(11,12,20,0.45) 40%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroImageIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}
@keyframes heroImageIn {
  to { transform: scale(1); }
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--page-pad);
  padding-bottom: 0;
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
  padding-left: clamp(16px, 8vw, 80px);
}
.home-hero-content h1,
.home-hero-content p {
  color: #fff;
}
.home-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  padding-bottom: 8px;
  max-width: 620px;
  color: #fff;
}
.home-hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  line-height: 1.6;
}
@keyframes heroTextIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero search wrapper */
.home-search-wrapper {
  position: relative;
  z-index: 3;
  padding: 28px var(--page-pad) 0;
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
  margin-top: 28px;
  padding-bottom: 40px;
  opacity: 0;
  transform: translateY(25px);
  animation: heroTextIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

/* Search box */
.home-search-box {
  display: flex;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 6px 6px 20px;
  gap: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow var(--duration-normal) ease, border-color var(--duration-normal) ease;
}
.home-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 3px var(--accent-glow);
}
.home-search-field {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}
.home-search-field label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.home-search-field input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  padding: 2px 0;
  width: 100%;
}
.home-search-field input::placeholder { color: var(--text-muted); }
.home-search-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
.home-search-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--duration-normal) ease;
  cursor: pointer;
}
.home-search-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
  box-shadow: 0 4px 16px var(--accent-glow), 0 2px 8px var(--accent-glow);
}

@media (max-width: 768px) {
  .home-hero { min-height: clamp(400px, 70vw, 520px); }
  .home-search-box {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 0;
  }
  .home-search-field { width: 100%; padding: 10px 8px; }
  .home-search-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .home-search-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    margin-top: 8px;
  }
}
@media (max-width: 480px) {
  .home-hero-content h1 { font-size: 1.8rem; }
}

/* ================================================================
   CATEGORY HOVER REFINEMENTS
   ================================================================ */
.cat-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-item:hover {
  transform: translateY(-2px) scale(1.03);
}
.cat-item.active {
  transform: none;
}

/* ================================================================
   LISTING CARD REFINEMENTS
   ================================================================ */
.l-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.l-card:hover {
  transform: translateY(-5px);
}
.l-card-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.l-card:hover .l-card-img {
  transform: scale(1.05);
}

/* Destination card gradient overlay */
.l-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.l-card:hover .l-card-img-wrap::after {
  opacity: 1;
}

/* ================================================================
   FORM CARD — CREATE LISTING
   ================================================================ */
.form-card-wide {
  width: 100%;
  max-width: 820px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.form-card-wide h2 { text-align: center; margin-bottom: 8px; }
.form-card-wide .form-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 0.95rem;
}
@media (max-width: 600px) { .form-card-wide { padding: 28px 20px; } }

/* Upload dropzone */
.upload-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--surface);
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-surface);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-dropzone .upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.upload-dropzone:hover .upload-icon { color: var(--accent); }
.upload-dropzone .upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.upload-dropzone .upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.upload-preview {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.upload-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

/* Terms checkbox */
.form-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.form-terms input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}
.form-terms label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.form-terms label a {
  color: var(--accent);
  font-weight: 600;
}
.form-terms label a:hover { text-decoration: underline; }

/* Submit button disabled state */
.form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ================================================================
   FORM CARD ENTRANCE ANIMATION
   ================================================================ */
.form-animate-in {
  opacity: 0;
  transform: translateY(25px);
  animation: formCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.form-group-animate {
  opacity: 0;
  transform: translateY(14px);
  animation: formFieldIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.form-group-animate:nth-child(1) { animation-delay: 0.1s; }
.form-group-animate:nth-child(2) { animation-delay: 0.17s; }
.form-group-animate:nth-child(3) { animation-delay: 0.24s; }
.form-group-animate:nth-child(4) { animation-delay: 0.31s; }
.form-group-animate:nth-child(5) { animation-delay: 0.38s; }
.form-group-animate:nth-child(6) { animation-delay: 0.45s; }
.form-group-animate:nth-child(7) { animation-delay: 0.52s; }
.form-group-animate:nth-child(8) { animation-delay: 0.59s; }
.form-terms-animate {
  opacity: 0;
  animation: formFieldIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}
.form-btn-animate {
  opacity: 0;
  animation: formFieldIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}
@keyframes formCardIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes formFieldIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SECTION REFINEMENTS
   ================================================================ */
.section-home { padding: 72px 0; }
.section-home + .section-home { padding-top: 0; }
@media (max-width: 768px) { .section-home { padding: 48px 0; } }

/* --- HOST CTA --- */
.host-cta {
  display: flex;
  align-items: stretch;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.host-cta-content {
  flex: 1 1 55%;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.host-cta-sub {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 380px;
}
.host-cta-media {
  flex: 1 1 45%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.host-cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .host-cta { flex-direction: column; }
  .host-cta-media { min-height: 260px; order: -1; }
}

/* Category stagger entrance */
@keyframes catItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-bar .cat-item {
  opacity: 0;
  animation: catItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cat-bar .cat-item:nth-child(1)  { animation-delay: 0.05s; }
.cat-bar .cat-item:nth-child(2)  { animation-delay: 0.10s; }
.cat-bar .cat-item:nth-child(3)  { animation-delay: 0.15s; }
.cat-bar .cat-item:nth-child(4)  { animation-delay: 0.20s; }
.cat-bar .cat-item:nth-child(5)  { animation-delay: 0.25s; }
.cat-bar .cat-item:nth-child(6)  { animation-delay: 0.30s; }
.cat-bar .cat-item:nth-child(7)  { animation-delay: 0.35s; }
.cat-bar .cat-item:nth-child(8)  { animation-delay: 0.40s; }
.cat-bar .cat-item:nth-child(9)  { animation-delay: 0.45s; }
.cat-bar .cat-item:nth-child(10) { animation-delay: 0.50s; }
.cat-bar .cat-item:nth-child(11) { animation-delay: 0.55s; }
.cat-bar .cat-item:nth-child(12) { animation-delay: 0.60s; }
.cat-bar .cat-item:nth-child(13) { animation-delay: 0.65s; }
.cat-bar .cat-item:nth-child(14) { animation-delay: 0.70s; }
.cat-bar .cat-item:nth-child(15) { animation-delay: 0.75s; }
.cat-bar .cat-item:nth-child(16) { animation-delay: 0.80s; }
.cat-bar .cat-item:nth-child(17) { animation-delay: 0.85s; }
.cat-bar .cat-item:nth-child(18) { animation-delay: 0.90s; }
.cat-bar .cat-item:nth-child(19) { animation-delay: 0.95s; }

@media (prefers-reduced-motion: reduce) {
  .cat-bar .cat-item { opacity: 1; animation: none; }
}

/* ================================================================
   DESTINATION CARD SPECIAL
   ================================================================ */
.dest-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/2;
  display: block;
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dest-card:hover img { transform: scale(1.06); }
.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  z-index: 1;
}
.dest-card-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}
.dest-card-info h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 0 0 2px; }
.dest-card-info p { color: rgba(255,255,255,0.8); font-size: 0.82rem; margin: 0; }

/* ================================================================
   BENEFITS CARD
   ================================================================ */
.benefit-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.benefit-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--accent);
}
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { color: var(--text-secondary); margin: 0; }

/* ================================================================
   LISTINGS FILTER BAR
   ================================================================ */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  margin: 16px 0 4px;
}
.filter-toggle-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.filter-toggle-btn[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}
.filter-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.filter-chevron {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.filter-panel {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
}
.filter-panel > .listings-filter {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.filter-panel.open {
  margin: 0 0 10px;
}
.filter-panel.open > .listings-filter {
  transform: translateY(0);
  opacity: 1;
}
.filter-panel .listings-filter > * {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.filter-panel:not(.open) .listings-filter > * {
  opacity: 0;
  transform: translateY(6px);
}

.listings-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-field input {
  min-width: 110px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.filter-field input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 60px;
}
.page-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ================================================================
   STATIC INFO PAGE
   ================================================================ */
.info-page {
  padding: 56px 0 80px;
}
.info-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.info-hero h1 { margin-bottom: 12px; }
.info-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.info-section {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.info-section h2 { margin-bottom: 8px; }
.info-section p { margin: 0; line-height: 1.6; }
.info-cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .home-search-wrapper { animation: none; opacity: 1; transform: none; }
  .listing-card-enter { transition: none; }
  .filter-panel,
  .filter-panel > .listings-filter,
  .filter-panel .filter-field,
  .filter-panel .listings-filter > .btn-lodgr,
  .filter-panel .clear-filters { transition: none; }
}
