:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --orange: #f97316;
  --bg: #f8fafc;
  --text: #0f172a;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000; /* ✅ higher than any page content */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;

  /* ✅ keeps stacking predictable when backdrop-filter is used */
  isolation: isolate;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

/* tagline */
.brand-tagline {
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.55;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: -6px;
  transform: translateY(-2px);
  animation: taglineIn 0.5s ease-out both;
}

.logo:hover .brand-tagline {
  opacity: 0.85;
  transform: translateY(-3px);
}

@keyframes taglineIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 0.55;
    transform: translateY(-2px);
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }
}

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

.nav-links a {
  font-weight: 600;
  opacity: 0.9;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--orange);
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ✅ TRUST STRIP (shrinks header cleanly, no thick empty space) */
.trust-strip {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(248, 250, 252, 0.7);

  overflow: hidden;
  max-height: 90px; /* visible height */
  opacity: 1;

  transition:
    max-height 0.22s ease,
    opacity 0.18s ease;
  will-change: max-height, opacity;
}

/* when scrolling down: COLLAPSE HEIGHT so header becomes thin */
body.scroll-down .trust-strip {
  max-height: 0;
  opacity: 0;
  border-top: 0;
  pointer-events: none;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-pill {
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  opacity: 0.92;
}

.trust-link {
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--blue);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.trust-link:hover {
  filter: brightness(0.98);
}

/* ================= LAYOUT ================= */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 36px 20px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.2rem;
}

/* ================= NAV OVERLAY (MOBILE MENU) ================= */
/* ✅ NO BLUR: only dim background (prevents "everything blurs") */
/* ✅ Backdrop sits BELOW header/menu but ABOVE page content */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500; /* ✅ below header(2000), above page */
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* lock background scroll when menu open */
body.nav-open {
  overflow: hidden;
}

/* ================= SEARCH ================= */

.search-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  min-width: 220px;
  background: #fff;
}

.search-bar button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ✅ Browse helpers: chips + sort row */
.browse-tools {
  max-width: 1000px;
  margin: 0 auto 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  opacity: 0.95;
}

.chip:hover {
  transform: translateY(-1px);
}
.chip.is-active {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.28);
}

.sort-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sort-wrap label {
  font-weight: 900;
  opacity: 0.75;
}

.sort-wrap select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  min-width: 220px;
}

/* ================= ROOM CARDS (BROWSE) ================= */

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}

.room-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.room-media {
  position: relative;
  width: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.slider-shell {
  position: relative;
  width: 100%;
}

.image-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 170px;
  scroll-behavior: smooth;
}

.image-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  display: block;
  background: #e5e7eb;
}

.image-slider::-webkit-scrollbar {
  height: 0px;
}
.image-slider::-webkit-scrollbar-thumb {
  background: transparent;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  z-index: 50;

  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  font-weight: 900;

  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(8px);
}

.slider-prev {
  left: 12px;
}
.slider-next {
  right: 12px;
}

.slider-shell.has-multiple:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .slider-shell.has-multiple .slider-btn {
    opacity: 0.95;
    pointer-events: auto;
  }
}

.slider-btn:hover {
  background: rgba(15, 23, 42, 0.65);
  transform: translateY(-50%) scale(1.06);
}

.slider-btn:disabled {
  opacity: 0.35 !important;
  cursor: default;
  transform: translateY(-50%);
}

.badge {
  position: absolute;
  top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  z-index: 60;
}

.badge-popular {
  left: 10px;
  background: linear-gradient(135deg, var(--orange), #fb923c);
}
.badge-verified {
  right: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.room-info {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-title {
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
}
.room-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 0;
}

.room-price {
  font-weight: 900;
  color: var(--blue);
  margin-top: 4px;
  margin-bottom: 0;
}

.rating {
  color: #facc15;
  font-size: 0.85rem;
  margin: 0;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0f172a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  width: fit-content;
  margin: 6px 0 0;
  opacity: 0.85;
}

/* ✅ Detail sizing */
.room-detail-media .image-slider-detail {
  height: 420px;
}
.room-detail-media .image-slider-detail img {
  height: 420px;
}

@media (max-width: 900px) {
  .room-detail-media .image-slider-detail {
    height: 320px;
  }
  .room-detail-media .image-slider-detail img {
    height: 320px;
  }
}

@media (max-width: 520px) {
  .room-detail-media .image-slider-detail {
    height: 240px;
  }
  .room-detail-media .image-slider-detail img {
    height: 240px;
  }
}

/* ================= BUTTONS ================= */

.btn-secondary {
  padding: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  font-weight: 700;
  opacity: 0.9;
  cursor: pointer;
}

.btn-secondary:hover {
  opacity: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-1px);
}

/* ================= FORMS ================= */

.form-shell {
  max-width: 900px;
  margin: 0 auto;
}

.form-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.35;
}

/* ✅ Empty state card */
.empty-card {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  padding: 18px;
  text-align: center;
}

.empty-card p {
  margin: 0;
  opacity: 0.8;
}

/* ✅ Skeleton loading (AJAX browse) */
.skeleton {
  border-radius: 16px;
  background: linear-gradient(90deg, #f1f5f9, #e5e7eb, #f1f5f9);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
  height: 280px;
  box-shadow: var(--shadow);
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 32px 0 50px;
  flex-wrap: wrap;
}

.page-indicator {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pagination-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pagination-next {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
}

.pagination-back {
  background: #f3f4f6;
  color: #111827;
}

/* ✅ Room detail CTA bar (mobile sticky) */
.detail-cta {
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 12px;
  margin-top: 16px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.detail-cta .cta-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.detail-cta .cta-row a,
.detail-cta .cta-row button {
  flex: 1 1 160px;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: 70px;
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  opacity: 1;
}

.site-footer p {
  margin: 6px 0;
}

.footer-links {
  margin: 10px 0 6px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.95;
}

.footer-links a {
  font-weight: 900;
  color: #fff;
  opacity: 0.95;
}

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

.footer-small {
  max-width: 900px;
  margin: 10px auto 0;
  opacity: 0.85;
  line-height: 1.5;
}

/* ================= MOBILE NAV (PERFECT CLICKABLE) ================= */

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 84px;
    right: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    gap: 10px;

    /* ✅ above backdrop and above header content */
    z-index: 2100;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 900;
    display: block;
    width: 100%;
  }

  .nav-links a:hover {
    background: rgba(37, 99, 235, 0.06);
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: block;
    z-index: 2200;
    position: relative;
  }
}

/* hard disable any blur/filter on the menu itself */
body.nav-open .nav-links,
body.nav-open .nav-links * {
  filter: none !important;
  backdrop-filter: none !important;
}

/* ================= IDLE MODAL ================= */

.idle-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.idle-modal.show {
  display: flex;
}

.idle-card {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin: 0 auto;
  overflow: hidden;
}

.idle-title {
  margin: 0 0 8px;
  font-weight: 900;
}

.idle-text {
  margin: 0 0 14px;
  opacity: 0.82;
  line-height: 1.5;
}

.idle-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.idle-actions .btn-secondary,
.idle-actions .btn-primary {
  flex: 1 1 160px;
  width: auto;
}

@media (max-width: 420px) {
  .idle-card {
    padding: 16px;
  }
}

/* ================= TOASTS: IN-FLOW (NO OVERLAY) ================= */

.toast-wrap {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 14px;
  padding: 0;
}

@media (max-width: 520px) {
  .toast-wrap {
    top: 8px;
    margin-bottom: 12px;
  }
}

.toast {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}
.toast-error,
.toast-danger {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(220, 38, 38, 0.08);
}
.toast-warning {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
}
.toast-info {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
}

/* Optional helpers */
.greeting,
.message-card,
.alert-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px;
}

/* ================= BURGER MENU HARD FIX (PASTE AT VERY BOTTOM) ================= */

/* Backdrop must NEVER sit above the menu */
.nav-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Mobile: force proper click stacking order */
@media (max-width: 860px) {
  .site-header {
    z-index: 3000 !important;
  }

  .nav-backdrop {
    z-index: 2500 !important; /* below menu */
  }

  .nav-links {
    position: fixed !important;
    z-index: 3500 !important; /* above backdrop */
    pointer-events: auto !important;
  }

  .nav-links a {
    pointer-events: auto !important;
  }

  .burger {
    position: relative !important;
    z-index: 3600 !important; /* above everything */
  }
}

/* ================= AUTH: FORCE PERFECT CENTERING ================= */

/* Auth shell takes available space and centers */
.auth-shell {
  flex: 1;
  min-height: auto !important; /* override previous calc if it breaks centering */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
}

/* Keep the card centered and stable */
.auth-card {
  margin: 0 auto;
}

/* ================= AUTH: PERFECT PROPORTIONS (FINAL POLISH) ================= */

/* Keep the auth card looking "designed" (like before) */
.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 18px;
}

/* Title spacing */
.auth-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
}

/* Form spacing */
.auth-form .field {
  margin-bottom: 14px;
}

/* Labels */
.auth-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 7px;
  opacity: 0.9;
}

/* Inputs: consistent height + clean padding */
.auth-form input.input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select,
.auth-form textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

/* Textareas shouldn't be forced to 46px */
.auth-form textarea {
  height: auto;
  min-height: 120px;
}

/* Focus: sharp and modern */
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Button: full width, same height as inputs */
.auth-btn,
.auth-form button.btn-primary,
.auth-form input[type="submit"].btn-primary {
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

/* Password toggle: aligned nicely */
.pw-wrap {
  position: relative;
}

.pw-input {
  padding-right: 54px !important;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 900;
}

/* Small text / hints */
.auth-hint {
  margin-top: 14px;
  font-size: 0.95rem;
}

.auth-small {
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Mobile: slightly tighter padding */
@media (max-width: 420px) {
  .auth-card {
    padding: 16px;
  }

  .auth-form input,
  .auth-form select,
  .auth-form button,
  .auth-btn {
    height: 44px;
  }
}

/* ================= AUTH: CENTER TITLE + LINKS ================= */

/* Center the heading text ("Login" / "Create account") */
.auth-title {
  text-align: center;
}

/* Center the "Forgot password?" + "Already registered? Login" lines */
.auth-hint {
  text-align: center;
}

/* Keep the blue link looking nice when centered */
.auth-hint .auth-link {
  display: inline-block; /* prevents weird inline spacing issues */
}

.auth-hint {
  margin: 12px 0 0;
}
/* ================= AUTH ONLY: PERFECT CENTERING (NO GLOBAL LAYOUT CHANGES) ================= */

/* Apply only on auth pages by adding class="auth-page" to body */
body.auth-page main.container {
  min-height: calc(100vh - 220px);
  display: flex;
}

body.auth-page .auth-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center title + hint lines */
body.auth-page .auth-title,
body.auth-page .auth-hint {
  text-align: center;
}

:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --orange: #f97316;
  --bg: #f8fafc;
  --text: #0f172a;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000; /* ✅ higher than any page content */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;

  /* ✅ keeps stacking predictable when backdrop-filter is used */
  isolation: isolate;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

/* tagline */
.brand-tagline {
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.55;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: -6px;
  transform: translateY(-2px);
  animation: taglineIn 0.5s ease-out both;
}

.logo:hover .brand-tagline {
  opacity: 0.85;
  transform: translateY(-3px);
}

@keyframes taglineIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 0.55;
    transform: translateY(-2px);
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }
}

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

.nav-links a {
  font-weight: 600;
  opacity: 0.9;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--orange);
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ✅ TRUST STRIP (shrinks header cleanly, no thick empty space) */
.trust-strip {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(248, 250, 252, 0.7);

  overflow: hidden;
  max-height: 90px; /* visible height */
  opacity: 1;

  transition:
    max-height 0.22s ease,
    opacity 0.18s ease;
  will-change: max-height, opacity;
}

/* when scrolling down: COLLAPSE HEIGHT so header becomes thin */
body.scroll-down .trust-strip {
  max-height: 0;
  opacity: 0;
  border-top: 0;
  pointer-events: none;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-pill {
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  opacity: 0.92;
}

.trust-link {
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--blue);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.trust-link:hover {
  filter: brightness(0.98);
}

/* ================= LAYOUT ================= */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 36px 20px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.2rem;
}

/* ================= NAV OVERLAY (MOBILE MENU) ================= */
/* ✅ NO BLUR: only dim background (prevents "everything blurs") */
/* ✅ Backdrop sits BELOW header/menu but ABOVE page content */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500; /* ✅ below header(2000), above page */
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* lock background scroll when menu open */
body.nav-open {
  overflow: hidden;
}

/* ================= SEARCH ================= */

.search-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  min-width: 220px;
  background: #fff;
}

.search-bar button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ✅ Browse helpers: chips + sort row */
.browse-tools {
  max-width: 1000px;
  margin: 0 auto 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  opacity: 0.95;
}

.chip:hover {
  transform: translateY(-1px);
}
.chip.is-active {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.28);
}

.sort-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sort-wrap label {
  font-weight: 900;
  opacity: 0.75;
}

.sort-wrap select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  min-width: 220px;
}

/* ================= ROOM CARDS (BROWSE) ================= */

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}

.room-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.room-media {
  position: relative;
  width: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.slider-shell {
  position: relative;
  width: 100%;
}

.image-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 170px;
  scroll-behavior: smooth;
}

.image-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  display: block;
  background: #e5e7eb;
}

.image-slider::-webkit-scrollbar {
  height: 0px;
}
.image-slider::-webkit-scrollbar-thumb {
  background: transparent;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  z-index: 50;

  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  font-weight: 900;

  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(8px);
}

.slider-prev {
  left: 12px;
}
.slider-next {
  right: 12px;
}

.slider-shell.has-multiple:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .slider-shell.has-multiple .slider-btn {
    opacity: 0.95;
    pointer-events: auto;
  }
}

.slider-btn:hover {
  background: rgba(15, 23, 42, 0.65);
  transform: translateY(-50%) scale(1.06);
}

.slider-btn:disabled {
  opacity: 0.35 !important;
  cursor: default;
  transform: translateY(-50%);
}

.badge {
  position: absolute;
  top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  z-index: 60;
}

.badge-popular {
  left: 10px;
  background: linear-gradient(135deg, var(--orange), #fb923c);
}
.badge-verified {
  right: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.room-info {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-title {
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
}
.room-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 0;
}

.room-price {
  font-weight: 900;
  color: var(--blue);
  margin-top: 4px;
  margin-bottom: 0;
}

.rating {
  color: #facc15;
  font-size: 0.85rem;
  margin: 0;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0f172a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  width: fit-content;
  margin: 6px 0 0;
  opacity: 0.85;
}

/* ✅ Detail sizing */
.room-detail-media .image-slider-detail {
  height: 420px;
}
.room-detail-media .image-slider-detail img {
  height: 420px;
}

@media (max-width: 900px) {
  .room-detail-media .image-slider-detail {
    height: 320px;
  }
  .room-detail-media .image-slider-detail img {
    height: 320px;
  }
}

@media (max-width: 520px) {
  .room-detail-media .image-slider-detail {
    height: 240px;
  }
  .room-detail-media .image-slider-detail img {
    height: 240px;
  }
}

/* ================= BUTTONS ================= */

.btn-secondary {
  padding: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  font-weight: 700;
  opacity: 0.9;
  cursor: pointer;
}

.btn-secondary:hover {
  opacity: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-1px);
}

/* ================= FORMS ================= */

.form-shell {
  max-width: 900px;
  margin: 0 auto;
}

.form-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.35;
}

/* ✅ Empty state card */
.empty-card {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  padding: 18px;
  text-align: center;
}

.empty-card p {
  margin: 0;
  opacity: 0.8;
}

/* ✅ Skeleton loading (AJAX browse) */
.skeleton {
  border-radius: 16px;
  background: linear-gradient(90deg, #f1f5f9, #e5e7eb, #f1f5f9);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
  height: 280px;
  box-shadow: var(--shadow);
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 32px 0 50px;
  flex-wrap: wrap;
}

.page-indicator {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pagination-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pagination-next {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
}

.pagination-back {
  background: #f3f4f6;
  color: #111827;
}

/* ✅ Room detail CTA bar (mobile sticky) */
.detail-cta {
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 12px;
  margin-top: 16px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.detail-cta .cta-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.detail-cta .cta-row a,
.detail-cta .cta-row button {
  flex: 1 1 160px;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: 70px;
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  opacity: 1;
}

.site-footer p {
  margin: 6px 0;
}

.footer-links {
  margin: 10px 0 6px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.95;
}

.footer-links a {
  font-weight: 900;
  color: #fff;
  opacity: 0.95;
}

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

.footer-small {
  max-width: 900px;
  margin: 10px auto 0;
  opacity: 0.85;
  line-height: 1.5;
}

/* ================= MOBILE NAV (PERFECT CLICKABLE) ================= */

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 84px;
    right: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    gap: 10px;

    /* ✅ above backdrop and above header content */
    z-index: 2100;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 900;
    display: block;
    width: 100%;
  }

  .nav-links a:hover {
    background: rgba(37, 99, 235, 0.06);
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: block;
    z-index: 2200;
    position: relative;
  }
}

/* hard disable any blur/filter on the menu itself */
body.nav-open .nav-links,
body.nav-open .nav-links * {
  filter: none !important;
  backdrop-filter: none !important;
}

/* ================= IDLE MODAL ================= */

.idle-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.idle-modal.show {
  display: flex;
}

.idle-card {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin: 0 auto;
  overflow: hidden;
}

.idle-title {
  margin: 0 0 8px;
  font-weight: 900;
}

.idle-text {
  margin: 0 0 14px;
  opacity: 0.82;
  line-height: 1.5;
}

.idle-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.idle-actions .btn-secondary,
.idle-actions .btn-primary {
  flex: 1 1 160px;
  width: auto;
}

@media (max-width: 420px) {
  .idle-card {
    padding: 16px;
  }
}

/* ================= TOASTS: IN-FLOW (NO OVERLAY) ================= */

.toast-wrap {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 14px;
  padding: 0;
}

@media (max-width: 520px) {
  .toast-wrap {
    top: 8px;
    margin-bottom: 12px;
  }
}

.toast {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}
.toast-error,
.toast-danger {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(220, 38, 38, 0.08);
}
.toast-warning {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
}
.toast-info {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
}

/* Optional helpers */
.greeting,
.message-card,
.alert-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px;
}

/* ================= BURGER MENU HARD FIX (PASTE AT VERY BOTTOM) ================= */

/* Backdrop must NEVER sit above the menu */
.nav-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Mobile: force proper click stacking order */
@media (max-width: 860px) {
  .site-header {
    z-index: 3000 !important;
  }

  .nav-backdrop {
    z-index: 2500 !important; /* below menu */
  }

  .nav-links {
    position: fixed !important;
    z-index: 3500 !important; /* above backdrop */
    pointer-events: auto !important;
  }

  .nav-links a {
    pointer-events: auto !important;
  }

  .burger {
    position: relative !important;
    z-index: 3600 !important; /* above everything */
  }
}

/* ================= AUTH: FORCE PERFECT CENTERING ================= */

/* Auth shell takes available space and centers */
.auth-shell {
  flex: 1;
  min-height: auto !important; /* override previous calc if it breaks centering */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
}

/* Keep the card centered and stable */
.auth-card {
  margin: 0 auto;
}

/* ================= AUTH: PERFECT PROPORTIONS (FINAL POLISH) ================= */

/* Keep the auth card looking "designed" (like before) */
.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 18px;
}

/* Title spacing */
.auth-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
}

/* Form spacing */
.auth-form .field {
  margin-bottom: 14px;
}

/* Labels */
.auth-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 7px;
  opacity: 0.9;
}

/* Inputs: consistent height + clean padding */
.auth-form input.input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select,
.auth-form textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

/* Textareas shouldn't be forced to 46px */
.auth-form textarea {
  height: auto;
  min-height: 120px;
}

/* Focus: sharp and modern */
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Button: full width, same height as inputs */
.auth-btn,
.auth-form button.btn-primary,
.auth-form input[type="submit"].btn-primary {
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

/* Password toggle: aligned nicely */
.pw-wrap {
  position: relative;
}

.pw-input {
  padding-right: 54px !important;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 900;
}

/* Small text / hints */
.auth-hint {
  margin-top: 14px;
  font-size: 0.95rem;
}

.auth-small {
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Mobile: slightly tighter padding */
@media (max-width: 420px) {
  .auth-card {
    padding: 16px;
  }

  .auth-form input,
  .auth-form select,
  .auth-form button,
  .auth-btn {
    height: 44px;
  }
}

/* ================= AUTH: CENTER TITLE + LINKS ================= */

/* Center the heading text ("Login" / "Create account") */
.auth-title {
  text-align: center;
}

/* Center the "Forgot password?" + "Already registered? Login" lines */
.auth-hint {
  text-align: center;
}

/* Keep the blue link looking nice when centered */
.auth-hint .auth-link {
  display: inline-block; /* prevents weird inline spacing issues */
}

.auth-hint {
  margin: 12px 0 0;
}
/* ================= AUTH ONLY: PERFECT CENTERING (NO GLOBAL LAYOUT CHANGES) ================= */

/* Apply only on auth pages by adding class="auth-page" to body */
body.auth-page main.container {
  min-height: calc(100vh - 220px);
  display: flex;
}

body.auth-page .auth-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center title + hint lines */
body.auth-page .auth-title,
body.auth-page .auth-hint {
  text-align: center;
}

/* ===================================================================== */
/* 1) AUTH CSS MUST NOT AFFECT OTHER PAGES (dashboard, counters, etc.)    */
/*    We scope auth styling to body.auth-page ONLY                        */
/* ===================================================================== */

/* Cancel any previous unscoped auth rules (safety override) */
body:not(.auth-page) .auth-shell,
body:not(.auth-page) .auth-card,
body:not(.auth-page) .auth-form,
body:not(.auth-page) .auth-title,
body:not(.auth-page) .auth-hint {
  all: revert; /* stops auth styles from leaking into dashboard layouts */
}

/* Auth-only layout */
body.auth-page main.container {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
}

body.auth-page .auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
}

body.auth-page .auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px;
  margin: 0 auto;
}

body.auth-page .auth-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

body.auth-page .auth-form .field {
  margin-bottom: 14px;
}

body.auth-page .auth-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 7px;
  opacity: 0.9;
}

body.auth-page .auth-form input.input,
body.auth-page .auth-form input[type="text"],
body.auth-page .auth-form input[type="email"],
body.auth-page .auth-form input[type="password"],
body.auth-page .auth-form input[type="tel"],
body.auth-page .auth-form select,
body.auth-page .auth-form textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

body.auth-page .auth-form textarea {
  height: auto;
  min-height: 120px;
}

body.auth-page .auth-form input:focus,
body.auth-page .auth-form select:focus,
body.auth-page .auth-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.auth-page .auth-btn,
body.auth-page .auth-form button.btn-primary,
body.auth-page .auth-form input[type="submit"].btn-primary {
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

body.auth-page .pw-wrap {
  position: relative;
}

body.auth-page .pw-input {
  padding-right: 54px !important;
}

body.auth-page .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

body.auth-page .auth-hint {
  margin: 12px 0 0;
  font-size: 0.95rem;
  text-align: center;
}

body.auth-page .auth-link {
  font-weight: 900;
  color: var(--blue);
  display: inline-block;
}

body.auth-page .auth-link:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  body.auth-page .auth-card {
    padding: 16px;
  }
  body.auth-page .auth-form input,
  body.auth-page .auth-form select,
  body.auth-page .auth-form button,
  body.auth-page .auth-btn {
    height: 44px;
  }
}

/* ===================================================================== */
/* 2) DASHBOARD: STAT/COUNTERS + ROOM ROWS (RESTORE THE BEAUTY)           */
/*    Safe: only applies if your dashboard template uses these classes.   */
/* ===================================================================== */

/* --- Stats / counters (top cards) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}

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

.stat-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  font-weight: 900;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

.stat-value {
  font-weight: 1000;
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1;
}

/* --- Dashboard room list (the “SECURE ROOM…” rows) --- */
.room-row {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

@media (max-width: 720px) {
  .room-row {
    grid-template-columns: 1fr;
  }
}

.room-row h3,
.room-row .room-row-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 1rem;
}

.room-row .room-row-meta {
  margin: 4px 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.room-row .room-row-stats {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.room-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--blue-dark);
}

.room-pill--muted {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
  color: rgba(15, 23, 42, 0.75);
}

/* Actions: Images | Edit | Delete */
.room-row .room-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .room-row .room-row-actions {
    justify-content: flex-start;
  }
}

.room-action {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.room-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.room-action--primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.room-action--danger {
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: rgba(220, 38, 38, 0.95);
}

/* ===================================================================== */
/* DASHBOARD: STATS / COUNTERS + ROOM ROWS (SAFE, TARGETED RESTORE)       */
/* Only applies to landlord dashboard markup you shared                    */
/* ===================================================================== */

/* --- Stats / Counters row --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 22px;
}

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

/* clickable stat cards */
.dashboard-grid .stat-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-align: left;
}

.dashboard-grid .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-grid .stat-number {
  font-weight: 1000;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.dashboard-grid .stat-label {
  font-weight: 900;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* optional: makes them feel like “tiles” */
.dashboard-grid .stat-link {
  cursor: pointer;
}

/* --- Room rows list --- */
.dashboard-rooms {
  margin-top: 6px;
}

.room-row {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 14px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.room-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .room-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* title */
.room-row strong {
  display: block;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

/* actions: Images | Edit | Delete */
.room-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  font-weight: 900;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .room-actions {
    justify-content: flex-start;
  }
}

/* remove the ugly “|” visual dominance */
.room-actions {
  gap: 8px;
}
.room-actions a + * {
  margin: 0;
}

/* style action links like small buttons (clean + modern) */
.room-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.room-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* make Images + Edit feel primary-ish */
.room-actions a[href*="upload_room_images"],
.room-actions a[href*="edit_room"] {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

/* make Delete look dangerous (but classy) */
.room-actions a[href*="delete_room"] {
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: rgba(220, 38, 38, 0.95);
}

/* ------------------------------ */
/* 1) TRUST STRIP: NO FLICKER     */
/* ------------------------------ */
/*
  Your freeze/flicker is coming from max-height transitions (layout reflow)
  while scroll handler toggles class rapidly.

  This override removes layout collapse and uses transform only (GPU friendly).
*/
.trust-strip {
  max-height: none !important;
  height: 48px; /* stable height = no reflow */
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
  will-change: transform, opacity;
}

/* Hide using transform only */
body.scroll-down .trust-strip {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

/* Ensure inner aligns nicely inside fixed height */
.trust-inner {
  height: 48px;
  padding: 0 20px; /* remove vertical padding (prevents overflow jitter) */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------ */
/* 2) STATS / COUNTERS CONSISTENT */
/* ------------------------------ */

/* SERVICES counters grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

/* SERVICES stat cards: footer-blue background + white numbers */
.stat-grid .stat-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 16px;
}

.stat-grid .stat-number {
  color: #ffffff;
  font-weight: 1000;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-grid .stat-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  opacity: 0.95;
  margin-top: 6px;
}

/* DASHBOARD cards: footer-blue background, BUT numbers must be black */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 22px;
}

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

.dashboard-grid .stat-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-grid .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* dashboard number BLACK */
.dashboard-grid .stat-number {
  color: #0f172a; /* black-ish */
  font-weight: 1000;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* dashboard label white */
.dashboard-grid .stat-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  opacity: 0.95;
}

/* ------------------------------ */
/* DASHBOARD ROOM ROWS (CLEAN)    */
/* ------------------------------ */
.dashboard-rooms {
  margin-top: 6px;
}

.room-row {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 14px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.room-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .room-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.room-row strong {
  display: block;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

/* Actions become buttons */
.room-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 720px) {
  .room-actions {
    justify-content: flex-start;
  }
}

.room-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.room-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* Images/Edit primary */
.room-actions a[href*="upload_room_images"],
.room-actions a[href*="edit_room"] {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

/* Delete danger */
.room-actions a[href*="delete_room"] {
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: rgba(220, 38, 38, 0.95);
}

/* ------------------------------ */
/* 3) AUTH LINK (blue)            */
/* ------------------------------ */
/* Even before we scope auth fully, make sure auth links look correct */
.auth-link {
  color: var(--blue);
  font-weight: 900;
}

.auth-link:hover {
  text-decoration: underline;
}

/* =========================================================
   ADD ROOM PAGE (Create Room) — SAFE, SCOPED STYLES ONLY
   ========================================================= */

/* --- Guide box (tabs) --- */
.guide-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 16px;
}

.guide-head {
  margin-bottom: 12px;
}

.guide-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.guide-sub {
  margin: 6px 0 0;
  opacity: 0.75;
  line-height: 1.45;
}

.guide-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

.guide-tab {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  opacity: 0.95;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.guide-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.guide-tab.is-active {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-dark);
}

.guide-panels {
  margin-top: 10px;
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
}

.guide-card {
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.guide-label {
  font-weight: 1000;
  margin-bottom: 6px;
}

.guide-text {
  opacity: 0.82;
  line-height: 1.5;
}

.guide-mini {
  margin-top: 10px;
  font-weight: 800;
  opacity: 0.9;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-right: 8px;
}

.guide-pill.bad {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

/* --- Form layout grid --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

/* Each field block */
.form-field label {
  display: block;
  font-weight: 900;
  margin: 0 0 7px;
  opacity: 0.92;
}

/* Make Django widgets look consistent even without custom classes */
.form-card input[type="text"],
.form-card input[type="number"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="date"],
.form-card input[type="url"],
.form-card input[type="password"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

/* Focus */
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Full-width fields */
.form-field.full {
  grid-column: 1 / -1;
}

/* Checkbox field */
.form-field.inline {
  grid-column: 1 / -1;
}

.checkbox-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 12px;
  border-radius: 14px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Errors + alerts */
.form-alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.form-alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: rgba(220, 38, 38, 0.95);
}

.field-error {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(220, 38, 38, 0.95);
}

.help-text {
  margin: 8px 0 0;
  opacity: 0.75;
}

/* File input */
.file-input {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: rgba(248, 250, 252, 0.8);
}

/* Image preview grid */
.img-preview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .img-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .img-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.img-preview-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.img-preview-item img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

/* ===== ROOM IMAGE SLIDER ===== */

.slider-shell {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* slider track */
.image-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.image-slider::-webkit-scrollbar {
  display: none;
}

.image-slider img {
  min-width: 100%;
  height: 220px;
  object-fit: cover;
  scroll-snap-align: start;
  pointer-events: none;
}

/* arrows */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;

  font-size: 22px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  transition: opacity 0.2s ease;
}

/* show arrows only on hover */

.slider-shell:hover .slider-btn {
  opacity: 1;
}

/* mobile devices always show */

@media (hover: none) {
  .slider-btn {
    opacity: 1;
  }
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

/* ===== DOT INDICATORS ===== */

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.slider-btn {
  pointer-events: auto;
  z-index: 100;
}

.map-shell {
  max-width: 1100px;
  margin: 0 auto 24px;
}

#roomsMap {
  height: 420px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.price-marker {
  background: white;
  color: #111;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.price-marker:hover {
  background: #111;
  color: white;
}

.mobile-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: none;
  justify-content: space-between;

  padding: 10px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  z-index: 999;
}

.contact-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  margin: 0 5px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.contact-btn.call {
  background: #2563eb;
}

.contact-btn.whatsapp {
  background: #25d366;
}

.contact-btn.email {
  background: #111;
}

.mobile-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: none;
  justify-content: space-between;

  padding: 10px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  z-index: 999;
}

.contact-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  margin: 0 5px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.contact-btn.call {
  background: #2563eb;
}

.contact-btn.whatsapp {
  background: #25d366;
}

.contact-btn.email {
  background: #111;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  height: 70px;
}

/* Logo wrapper */
.navbar-logo {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Logo image */
.navbar-logo img {
  height: 80%; /* automatically scales with navbar */
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* Hover effect */
.navbar-logo:hover img {
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }

  .navbar-logo img {
    height: 75%;
  }
}

.navbar-logo img {
  height: 60px;
  width: auto;
  display: block;
}
