/* ============================================================
   KOTHA JAGIR SOLUTION  DESIGN SYSTEM
   Glassmorphism  Space Grotesk + Inter  Warm Kathmandu Palette
   ============================================================ */

/*  CSS CUSTOM PROPERTIES  */
:root {
  --primary: #C65D3B;
  --primary-dark: #A44A2B;
  --primary-light: #D97050;
  --accent-gold: #D4A24C;
  --text-dark: #2B2724;
  --text-body: #3D3530;
  --text-muted: #7A6E68;
  --text-light: #F6F1EA;
  --text-on-glass: #2B2724;
  --success: #4A7A5E;
  --success-bg: rgba(74, 122, 94, 0.15);
  --warning: #D4A24C;
  --warning-bg: rgba(212, 162, 76, 0.15);
  --danger: #B23A3A;
  --danger-bg: rgba(178, 58, 58, 0.15);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-bg-dark: rgba(35, 30, 28, 0.94);
  --glass-border: 1px solid rgba(200, 185, 175, 0.45);
  --glass-border-dark: 1px solid rgba(255, 255, 255, 0.12);
  --glass-blur: none;
  --glass-shadow: 0 4px 24px rgba(31, 20, 14, 0.10), 0 1px 6px rgba(31, 20, 14, 0.06);
  --glass-shadow-hover: 0 12px 40px rgba(31, 20, 14, 0.15), 0 4px 14px rgba(31, 20, 14, 0.08);

  --bg-gradient: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(198, 93, 59, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(212, 162, 76, 0.26) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(198, 93, 59, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 65% 55%, rgba(180, 100, 60, 0.15) 0%, transparent 55%),
    linear-gradient(160deg, #F6F1EA 0%, #F0E8DE 40%, #EDE0D2 70%, #F4EDE4 100%);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --nav-h: 72px;
  --section-gap: 80px;
  --card-radius: 18px;
  --btn-radius: 12px;
  --input-radius: 12px;

  /* Transitions */
  --trans-fast: 150ms ease;
  --trans-smooth: 220ms cubic-bezier(0.34, 1.04, 0.64, 1);
  --trans-slow: 380ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fixed background blobs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 12%, rgba(198, 93, 59, 0.38) 0%, transparent 65%),
    radial-gradient(ellipse 55% 42% at 88% 20%, rgba(212, 162, 76, 0.34) 0%, transparent 65%),
    radial-gradient(ellipse 65% 50% at 55% 88%, rgba(198, 93, 59, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 38% at 72% 52%, rgba(220, 140, 70, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 42% at 28% 72%, rgba(180, 80, 50, 0.20) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/*  TYPOGRAPHY  */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  color: var(--text-body);
}

/*  CARD UTILITIES  */
.glass {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 185, 175, 0.45);
  box-shadow: var(--glass-shadow);
}

.glass-dark {
  background: rgba(35, 30, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow);
}

/*  LAYOUT  */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

/*  NAVBAR  */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #F6F1EA;
  border-bottom: 1px solid rgba(200, 185, 175, 0.5);
  box-shadow: 0 2px 12px rgba(31, 20, 14, 0.08);
  transition: all var(--trans-slow);
}

.navbar.scrolled {
  background: #F6F1EA;
  border-bottom: 1px solid rgba(200, 185, 175, 0.5);
  box-shadow: 0 4px 20px rgba(31, 20, 14, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-placeholder,
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 60px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  max-width: 240px;
}

.navbar-tabs {
  display: flex;
  gap: 4px;
  background: rgba(43, 39, 36, 0.92);
  padding: 4px;
  border-radius: 12px;
}

.nav-tab {
  padding: 8px 24px;
  border-radius: 9px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(246, 241, 234, 0.9);
  transition: all var(--trans-smooth);
  border: 1px solid transparent;
}

.nav-tab.active,
.nav-tab:hover {
  background: var(--primary);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-tab.active {
  box-shadow: 0 4px 12px rgba(198, 93, 59, 0.35);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.admin-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(200, 185, 175, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all var(--trans-fast);
}

.admin-link:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: var(--primary);
}

/*  NOTIFICATION BELL  */
.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-smooth);
  color: var(--text-body);
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 20, 14, 0.1);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  background: #E53E3E;
  border-radius: 50%;
  border: 2px solid #F6F1EA;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.85;
  }
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 200;
  display: none;
}

.notif-dropdown.open {
  display: block;
  animation: fadeSlideDown 180ms ease;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-header {
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dark);
}

.notif-item {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--trans-fast);
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-text {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/*  HERO  */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #F6F1EA;
  margin-top: var(--nav-h);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(212, 162, 76, 0.25);
  border: 1px solid rgba(212, 162, 76, 0.45);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  color: rgba(246, 241, 234, 0.82);
  font-size: 1.15rem;
  margin-bottom: 40px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/*  SEARCH BAR  */
.search-glass {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-radius: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
  background: #fff;


  border: 1px solid rgba(200, 185, 175, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-glass input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.search-glass input::placeholder {
  color: var(--text-muted);
}

.search-glass select {
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  border-radius: 8px;
  color: var(--text-dark);
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.search-glass select option {
  background: #3D3530;
  color: white;
}

/*  MODE TOGGLE  */
.mode-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  width: max-content;
  margin: 0 auto;
}

.mode-btn {
  padding: 10px 32px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--trans-smooth);
}

.mode-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(198, 93, 59, 0.45);
}

.mode-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/*  FILTER BAR  */
.filter-bar-wrap {
  padding: 12px 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.filter-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 8px 12px;
  border-radius: var(--input-radius);
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  font-size: 0.875rem;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--trans-fast);


}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.2);
}

.filter-toggle {
  display: flex;
  gap: 3px;
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  border-radius: 10px;
  padding: 3px;
}

.filter-toggle-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--trans-fast);
}

.filter-toggle-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(198, 93, 59, 0.3);
}

.range-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
}

.range-wrap label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.range-display {
  font-size: 0.75rem;
  color: var(--text-body);
  font-weight: 500;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, rgba(43, 39, 36, 0.2) 50%);
  outline: none;
  cursor: pointer;
  width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(198, 93, 59, 0.4);
  border: 2px solid white;
  transition: transform var(--trans-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.filter-clear {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.filter-clear:hover {
  background: rgba(198, 93, 59, 0.1);
}

/*  LISTING GRID  */
.listings-section {
  padding: 32px 0 80px;
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.45);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
  }
}

/*  LISTING CARD  */
.listing-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
  cursor: pointer;
  position: relative;
  background: var(--glass-bg);


  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.listing-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--glass-shadow-hover);
}

.listing-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.card-img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-img-wrap {
    height: 200px;
  }
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.listing-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-locality-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(30, 28, 26, 0.75);


  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-type-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(198, 93, 59, 0.9);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.card-body {
  padding: 10px;
}

@media (min-width: 768px) {
  .card-body {
    padding: 16px;
  }
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-title {
    font-size: 1rem;
  }
}

.card-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-price span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .card-price {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .card-price span {
    font-size: 0.8rem;
  }
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-outline {
  border: 1px solid rgba(43, 39, 36, 0.2);
  color: var(--text-body);
}

.badge-gold {
  background: rgba(212, 162, 76, 0.15);
  border: 1px solid rgba(212, 162, 76, 0.35);
  color: #9E7635;
}

.badge-green {
  background: rgba(74, 122, 94, 0.12);
  border: 1px solid rgba(74, 122, 94, 0.3);
  color: #2E5C41;
}

.badge-red {
  background: rgba(178, 58, 58, 0.1);
  border: 1px solid rgba(178, 58, 58, 0.25);
  color: var(--danger);
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(43, 39, 36, 0.08);
}

.card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/*  BOOKED / ARCHIVED CARD OVERLAY  */
.card-booked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 14, 0.72);


  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
  border-radius: var(--card-radius);
}

.booked-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(178, 58, 58, 0.85);
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.booked-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/*  BUTTONS  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: var(--btn-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--trans-smooth);
  border: none;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(198, 93, 59, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 93, 59, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(198, 93, 59, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.4);


}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 14px rgba(74, 122, 94, 0.35);
}

.btn-success:hover {
  background: #3A6A4E;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 14px rgba(178, 58, 58, 0.3);
}

.btn-danger:hover {
  background: #9A2F2F;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  min-height: 36px;
  font-size: 0.85rem;
  border-radius: 9px;
}

.btn-icon {
  padding: 9px;
  border-radius: 9px;
  width: 44px;
  height: 44px;
}

/*  PAGE LAYOUT  */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/*  DETAIL PAGE  */
.detail-hero {
  position: relative;
  height: 420px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

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

.detail-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 14, 0.7) 0%, transparent 50%);
}

.gallery-strip {
  display: flex;
  gap: 10px;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width: 110px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--trans-fast);
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img,
.gallery-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero.video-active {
  height: 580px;
  background: #14100e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.3);
  opacity: 0.65;
  z-index: 1;
  transform: scale(1.15); /* Prevents white edges when blurred */
}

.portrait-video-wrapper {
  position: relative;
  width: 290px; /* phone container width */
  height: 515px; /* phone container height (9:16 aspect ratio) */
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.video-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(255, 255, 255, 0.15);
  border-top: 3.5px solid var(--primary);
  border-radius: 50%;
  animation: spinVideo 0.8s linear infinite;
  z-index: 3;
}

@keyframes spinVideo {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-thumb {
  position: relative;
  background: #000;
}

.video-thumb img {
  opacity: 0.55;
  filter: blur(0.5px);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fff;
  transition: background var(--trans-fast);
}

.video-thumb:hover .video-thumb-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.play-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  margin-bottom: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  color: #fff;
  padding-left: 2px; /* offsets triangle to look centered */
}

.video-thumb-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 32px 0 80px;
}

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

.detail-main {}

.detail-sidebar {}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
}

.amenity-icon {
  color: var(--primary);
  font-size: 1rem;
}

/* Location locked card */
.locked-map {
  position: relative;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.locked-map-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ddd5, #d4c8be, #c9bdb4);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: saturate(0.6) brightness(0.7) saturate(0.6);
  transform: scale(1.08);
}

.locked-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(20, 16, 14, 0.45);
}

.locked-icon {
  font-size: 2rem;
  color: var(--accent-gold);
}

.locked-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

/*  MOBILE STICKY BAR  */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 500;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #F6F1EA;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -4px 24px rgba(31, 20, 14, 0.12);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
}

.mobile-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/*  APPLICATION FLOW  */
.apply-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: rgba(43, 39, 36, 0.92);
  z-index: 0;
}

.step-item.completed:not(:last-child)::after {
  background: var(--primary);
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(43, 39, 36, 0.2);
  color: var(--text-muted);
  z-index: 1;
  position: relative;
  transition: all var(--trans-smooth);
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(198, 93, 59, 0.4);
}

.step-item.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.step-item.active .step-label {
  color: var(--primary);
}

.step-item.completed .step-label {
  color: var(--success);
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  padding: 12px 16px;
  border-radius: var(--input-radius);
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: all var(--trans-fast);


  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.18);
}

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

/* Applicant ID display */
.applicant-id-display {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(74, 122, 94, 0.1);
  border: 1px solid rgba(74, 122, 94, 0.3);
  margin: 20px 0;
}

.applicant-id-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.applicant-id-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.05em;
}

/* QR payment */
.qr-wrap {
  text-align: center;
  padding: 32px;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border: 2px dashed rgba(43, 39, 36, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.qr-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 16px;
}

.qr-dot {
  aspect-ratio: 1;
  border-radius: 2px;
}

/* Confirmation step */
.confirm-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/*  STATUS BADGE  */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-badge.pending {
  background: var(--warning-bg);
  color: #8A6520;
  border: 1px solid rgba(212, 162, 76, 0.4);
}

.status-badge.confirmed {
  background: var(--success-bg);
  color: #2E5C41;
  border: 1px solid rgba(74, 122, 94, 0.3);
}

.status-badge.rejected {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(178, 58, 58, 0.25);
}

/*  DASHBOARD  */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

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

.dash-stat {
  padding: 20px;
  border-radius: 14px;
}

.dash-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.dash-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Push notification UI */
.push-card {
  padding: 24px;
  border-radius: 16px;
  margin-top: 20px;
}

.push-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.push-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.push-dot.enabled {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 122, 94, 0.25);
  animation: pulse-badge 2s infinite;
}

/*  ADMIN SIDEBAR  */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  gap: 0;
}

/* Admin hamburger toggle — hidden on desktop */
.admin-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  color: var(--text-dark);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.3rem;
  margin-right: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Admin sidebar overlay backdrop */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 800;
  cursor: pointer;
}

.admin-sidebar-overlay.visible {
  display: block;
}

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

  .admin-hamburger {
    display: flex;
  }

  .admin-sidebar {
    display: none !important;
  }

  .admin-sidebar.open {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 900;
    animation: slideInFromLeft 220ms cubic-bezier(0.34, 1.04, 0.64, 1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  background: #2B2724;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 12px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(246, 241, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 12px;
  margin: 20px 0 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(246, 241, 234, 0.7);
  cursor: pointer;
  transition: all var(--trans-fast);
  margin-bottom: 2px;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.sidebar-nav-item.active {
  background: rgba(198, 93, 59, 0.25);
  color: white;
  border-color: rgba(198, 93, 59, 0.4);
}

.sidebar-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.admin-content {
  padding: 32px 40px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .admin-content {
    padding: 16px 12px;
  }
}

/*  TABLE  */
.glass-table-wrap {
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  -webkit-overflow-scrolling: touch;
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.glass-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(43, 39, 36, 0.1);
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.glass-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(43, 39, 36, 0.06);
  color: var(--text-body);
  vertical-align: middle;
}

.glass-table tr:last-child td {
  border-bottom: none;
}

.glass-table tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}

/*  MODAL  */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.65);


  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 180ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  background: #F6F1EA;


  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 80px rgba(20, 16, 14, 0.25);
  overflow: hidden;
  animation: slideUp 220ms cubic-bezier(0.34, 1.04, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(43, 39, 36, 0.1);
}

.modal-header h3 {
  font-size: 1.1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(43, 39, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast);
  font-size: 1.1rem;
  color: var(--text-body);
}

.modal-close:hover {
  background: rgba(43, 39, 36, 0.92);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid rgba(43, 39, 36, 0.08);
}

/*  TOAST  */
.toast-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #2B2724;


  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toastIn 220ms cubic-bezier(0.34, 1.04, 0.64, 1);
  pointer-events: auto;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.warning {
  border-left: 3px solid var(--warning);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

/*  LOGIN PAGES  */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px 60px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  border-radius: 20px;
}

.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.login-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(198, 93, 59, 0.15);
  border: 1px solid rgba(198, 93, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

/*  FOOTER  */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(43, 39, 36, 0.1);
  background: rgba(43, 39, 36, 0.92);
}

@media (max-width: 768px) {
  .footer {
    padding-bottom: 96px; /* Avoid sticky bottom nav bar overlap */
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-word;
}

.footer-links li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--trans-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/*  MISC UTILITIES  */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

.divider {
  height: 1px;
  background: rgba(43, 39, 36, 0.92);
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-muted);
}

/*  TABS  */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.3);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: max-content;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 9px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--trans-smooth);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 10px rgba(198, 93, 59, 0.3);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-dark);
}

/*  RESPONSIVE  */
@media (max-width: 768px) {
  .navbar-tabs {
    display: none;
  }

  .brand-name {
    font-size: 11px;
    max-width: 160px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .filter-bar {
    gap: 8px;
    padding: 10px 14px;
  }

  .filter-group {
    min-width: 100px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  /* Admin responsive — tables scroll horizontally */
  .admin-content {
    padding: 16px 12px;
  }

  .modal-box {
    max-width: 100%;
  }

  .apply-wrap {
    padding: 20px 0 100px;
  }

  /* Apply form — 2-col grids become 1-col on mobile */
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Login/Apply cards get comfortable padding */
  .login-card {
    padding: 24px 16px;
  }

  /* Nav tabs bar on mobile gets extra bottom padding for sticky nav */
  .listings-section {
    padding-bottom: 120px;
  }

  /* Container padding reduction on mobile */
  .container {
    padding: 0 16px;
  }
}

/* Remove the old 480px single-col override — grid is always 2-col */
@media (max-width: 480px) {
  .search-glass {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }

  .search-glass select {
    width: 100%;
  }

  .mode-btn {
    padding: 9px 20px;
    font-size: 0.87rem;
  }

  .nav-tab {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

/*  NUMBER BADGE OVERLAPPING CARDS  */
.numbered-badge {
  position: absolute;
  top: -16px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #3D2B00;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 162, 76, 0.4);
  z-index: 2;
}

/* How it works section */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

.how-card {
  padding: 32px 24px 24px;
  border-radius: var(--card-radius);
  position: relative;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
}

/*  ARCHIVED PAGE  */
.archived-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px 60px;
}

.archived-card {
  max-width: 520px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}

.archived-img {
  height: 220px;
  position: relative;
}

.archived-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.7);
}

.archived-body {
  padding: 32px 28px;
}

/* Loader */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(198, 93, 59, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Input with icon */
.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-wrap .form-control {
  padding-left: 42px;
}

/* Search input */
.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(200, 185, 175, 0.45);
  font-size: 0.875rem;
  color: var(--text-dark);
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.15);
}

.search-input-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/*  RESPONSIVE NAV MOBILE  */
.mobile-nav-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  z-index: 600;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  background: #F6F1EA;
  border-top: 1px solid rgba(200, 185, 175, 0.5);
  box-shadow: 0 -2px 12px rgba(31, 20, 14, 0.08);
}

@media (max-width: 768px) {
  .mobile-nav-tabs {
    display: flex;
  }
}

.mobile-nav-tab {
  flex: 1;
  padding: 10px;
  min-height: 44px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  transition: all var(--trans-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 10px rgba(198, 93, 59, 0.3);
}

/*  SECTION BACKGROUNDS VARIETY  */
.bg-glass-section {
  background: rgba(255, 255, 255, 0.12);


  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* HLS Quality Badge — shows current streaming resolution */
.hls-quality-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 4px 9px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Membership Policy Columns */
.policy-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-body);
}

.policy-col-left {
  border-right: 1px solid rgba(0,0,0,0.08);
  padding-right: 12px;
}

@media (min-width: 768px) {
  .policy-cols {
    gap: 28px;
    font-size: 0.86rem;
  }
  .policy-col-left {
    padding-right: 24px;
  }
}

/* Admin stats cards grid wrapper */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
  }
}

/* HLS Quality Selector */
.hls-quality-selector-container {
  position: absolute;
  bottom: 50px;
  right: 12px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hls-quality-selector-container select {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.hls-quality-selector-container select option {
  background: #111;
  color: #fff;
}

/* Payment Wizard Grid & Layout */
.payment-wizard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.payment-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.payment-qr-container img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fdfdfd;
}

.payment-qr-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.payment-details-container {
  display: flex;
  flex-direction: column;
}

.payment-details-container h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-size: 1.05rem;
}

/* On screens larger than 520px, display side-by-side */
@media (min-width: 520px) {
  .payment-wizard-grid {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
  
  .payment-qr-container {
    align-items: flex-start;
    text-align: left;
  }
}