/* ============================================
   JUSTHOLIDAYS - Premium Modern Vacation Site
   Mobile-first • Dark + Teal only • 2026 luxury escape aesthetic
   ============================================ */

:root {
  --bg: #050606;
  --panel: #101313;
  --panel-2: #151a1a;
  --text: #e6eded;
  --text-muted: #a8b3b3;
  --teal: #1fd6d2;
  --teal-dark: #18c2bf;
  --line: rgba(255,255,255,0.08);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px -15px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: 42px; line-height: 1.05; }
h2 { font-size: 28px; line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.15; }

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 34px; }
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: #050606;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--teal);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Cards - Property / Listing */
.property-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s;
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(31, 214, 210, 0.2);
}

.property-card .image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover img {
  transform: scale(1.06);
}

.property-card .price {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(5,6,6,0.85);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.property-card .save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(5,6,6,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  transition: all 0.2s;
}

.property-card .save-btn:hover {
  background: var(--teal);
  color: #050606;
}

.property-card .content {
  padding: 16px 18px 18px;
}

.property-card .location {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.property-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.property-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Escape Type Cards */
.escape-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
}

.escape-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px -10px rgba(0,0,0,0.5);
}

.escape-card.active {
  border-color: var(--teal);
  background: rgba(31,214,210,0.06);
}

.escape-card .icon {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
}

.escape-card h3 {
  font-size: 21px;
  margin: 0 0 6px;
}

/* Navigation */
.top-nav {
  background: rgba(5,6,6,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5,6,6,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 100;
  padding: 8px 0;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
}

.bottom-nav a.active {
  color: var(--teal);
}

.bottom-nav .icon {
  font-size: 20px;
  margin-bottom: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,6,6,0.35), rgba(5,6,6,0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* Forms */
.input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--teal);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.section-header h2 {
  margin: 0;
}

/* Filters / Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip.active {
  background: rgba(31,214,210,0.12);
  border-color: var(--teal);
  color: var(--teal);
}

/* Utility */
.glass {
  background: rgba(16,19,19,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* Listing Grid */
.listing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .listing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Detail / Property Page */
.detail-hero {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.detail-content {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

/* Nice subtle dividers and spacing */
.divider {
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

/* Loading / Empty states */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .property-card .content {
    padding: 14px 16px;
  }
  
  h1 { font-size: 34px; }
}

/* Compatibility for public stays feed (live listings) */
.stay_feed {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .stay_feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stay_feed { grid-template-columns: repeat(3, 1fr); } }

.stay_card, .listing_card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.stay_card:hover, .listing_card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.stay_image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.stay_image img { width:100%; height:100%; object-fit:cover; }
.stay_body { padding: 16px 18px; }
.stay_body h3 { margin: 0 0 6px; font-size: 18px; }
.price_badge { position:absolute; bottom:12px; left:12px; background:rgba(5,6,6,0.85); padding:4px 12px; border-radius:999px; font-size:13px; font-weight:700; color:var(--teal); }

/* ============================================
   AUTH PAGES - Clean, modern, mobile-first
   ============================================ */
.auth_page {
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth_shell {
  width: 100%;
  max-width: 420px;
}

.logo_mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo_just {
  background: var(--teal);
  color: #050606;
  font-weight: 900;
  letter-spacing: -0.08em;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 22px;
  line-height: 1;
}

.auth_card {
  background: #101313;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6);
}

.auth_card h1 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.auth_card p {
  color: #a8b3b3;
  margin-bottom: 24px;
  font-size: 15px;
}

.form_group {
  margin-bottom: 16px;
}

.form_group label {
  display: block;
  color: #a8b3b3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.auth_switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #a8b3b3;
}

.auth_switch a {
  color: var(--teal);
  font-weight: 600;
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  background: #0b0e0e;
  border: 1px solid var(--line);
  color: #a8b3b3;
}

.notice.show {
  display: block;
}

.notice.error {
  border-color: rgba(255,92,92,0.4);
  color: #ffb5b5;
}

.notice.success {
  border-color: rgba(31,214,210,0.4);
  color: #b8fffd;
}

/* Role selection cards (used on register) */
.role_grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 8px;
}
.role_card {
  border: 1px solid var(--line);
  background: #0b0e0e;
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.role_card input { display: none; }
.role_card strong { display: block; font-size: 15px; }
.role_card span { display: block; margin-top: 4px; color: #a8b3b3; font-size: 13px; line-height: 1.3; }
.role_card:has(input:checked) {
  border-color: var(--teal);
  background: rgba(31,214,210,0.08);
}