/* ===========================================================
   D Stays — Luxury Minimalist Theme
   Charcoal + warm gold, serif display font + clean sans body
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --purple: #6b3fd6;
  --purple-light: #8b5cf6;
  --purple-deep: #5527b0;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cream: #ffffff;
  --cream-dark: #f5f4fb;
  --charcoal: #1f1a33;
  --charcoal-soft: #2d2650;
  --ink: #2a2540;
  --muted: #6f6b85;
  --border: #e8e5f5;
  --white: #ffffff;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --gold: var(--purple);
  --gold-light: var(--purple-light);
  --gold-deep: var(--purple-deep);
  --jewel: var(--blue);
  --jewel-light: var(--blue-light);

  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-soft: 0 2px 16px rgba(107, 63, 214, 0.08);
  --shadow-lift: 0 12px 32px rgba(107, 63, 214, 0.16);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Poppins', var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(107, 63, 214, 0.25);
}
.btn-primary:hover { background: var(--purple-deep); box-shadow: 0 4px 14px rgba(107, 63, 214, 0.35); }

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover { background: var(--purple-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }

.btn-outline-light {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline-light:hover { background: var(--purple); color: var(--white); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-danger-text { color: var(--danger); font-size: 13px; font-weight: 600; background: none; border: none; cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(224, 236, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.brand .accent { color: var(--purple); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--purple);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { right: 0; }

.nav-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
}
.nav-pill:hover {
  border-color: var(--purple);
  background: var(--cream-dark);
  color: var(--purple) !important;
}
.nav-pill::after { display: none; }

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero.has-photo {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.55) 100%), var(--hero-photo);
  background-size: cover;
  background-position: center;
}
.hero.has-photo .hero-content {
  background: rgba(255,255,255,0.9);
  padding: 36px;
  border-radius: 20px;
}

.hero-content { position: relative; z-index: 2; max-width: 640px; animation: fadeUp 0.6s ease both; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--charcoal);
  font-size: 52px;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
}
.hero-stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.section-header h2 { font-size: 34px; margin-bottom: 14px; }
.section-header p { color: var(--muted); font-size: 16px; line-height: 1.6; }

.property-card:nth-child(1) { animation-delay: 0.05s; }
.property-card:nth-child(2) { animation-delay: 0.12s; }
.property-card:nth-child(3) { animation-delay: 0.19s; }
.property-card:nth-child(4) { animation-delay: 0.26s; }
.property-card:nth-child(5) { animation-delay: 0.33s; }
.property-card:nth-child(6) { animation-delay: 0.4s; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 28px;
}

.property-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
  animation: fadeUp 0.5s ease both;
}
.property-card:hover { box-shadow: 0 8px 24px rgba(31,26,51,0.08); }

.property-card .photo {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.property-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .photo img { transform: scale(1.04); }

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--purple);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.property-card .body { padding: 22px; }
.property-card .type-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.property-card h3 { font-size: 23px; margin: 6px 0 4px; }
.property-card .location { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.property-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.property-card .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.property-card .price {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
}
.property-card .price small { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--muted); -webkit-text-fill-color: var(--muted); }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink);
}

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.site-footer .brand { color: var(--white); }
.site-footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.45);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 95, 0.15);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.booking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 110px;
}
.booking-card .price-line { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--charcoal); margin-bottom: 18px; }
.booking-card .price-line small { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--muted); }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 4px 0; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--charcoal); padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-top: 10px; }
.alert-success { background: #eaf3ec; color: var(--success); border: 1px solid #cbe4d0; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f2cfcc; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fdf1e2; color: var(--warn); }
.badge-confirmed { background: #e9f4eb; color: var(--success); }
.badge-cancelled { background: #fbeceb; color: var(--danger); }
.badge-completed { background: #e8eef7; color: #3a5a8c; }
.badge-unpaid { background: #fbeceb; color: var(--danger); }
.badge-partial { background: #fdf1e2; color: var(--warn); }
.badge-paid { background: #e9f4eb; color: var(--success); }
.badge-refunded { background: #eee; color: var(--muted); }
.badge-superadmin { background: var(--charcoal); color: var(--gold-light); }
.badge-admin { background: var(--cream-dark); color: var(--ink); border: 1px solid var(--border); }
.badge-active { background: #e9f4eb; color: var(--success); }
.badge-disabled { background: #eee; color: var(--muted); }

.admin-body { display: flex; min-height: 100vh; background: var(--cream); font-family: var(--font-sans); }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
}
.admin-sidebar .brand-block { padding: 26px 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar .brand { color: var(--white); font-size: 22px; }
.admin-sidebar .role-tag { font-size: 12px; color: var(--gold-light); margin-top: 4px; }
.admin-sidebar .user-name { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.admin-nav { flex: 1; padding: 18px 14px; }
.admin-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.admin-nav a.active { background: rgba(212,180,131,0.15); color: var(--gold-light); font-weight: 600; }

.admin-sidebar .sidebar-bottom { padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar .sidebar-bottom a { display: block; padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,0.55); border-radius: 10px; }
.admin-sidebar .sidebar-bottom a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

.admin-main { flex: 1; min-width: 0; padding: 40px 44px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 30px; }

.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-card-pad { padding: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-card .label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-serif); font-size: 30px; font-weight: 600; color: var(--charcoal); }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
table.admin-table td { padding: 14px 20px; border-bottom: 1px solid var(--cream-dark); color: var(--ink); }
table.admin-table tr:hover td { background: var(--cream); }
table.admin-table tr:last-child td { border-bottom: none; }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--muted);
}
.filter-tab.active { background: var(--charcoal); color: var(--gold-light); border-color: var(--charcoal); }
.filter-tab:hover:not(.active) { background: var(--cream-dark); }

.admin-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.admin-property-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.admin-property-card h3 { font-size: 18px; margin-bottom: 4px; }

.chip-remove { color: var(--muted); cursor: pointer; font-weight: 700; margin-left: 6px; }
.chip-remove:hover { color: var(--danger); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--charcoal); padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lift); }
.login-card .brand { text-align: center; display: block; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 960px) {
  .hero h1 { font-size: 40px; }
  .two-col, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 24px; }
}
/* ---------- Feature trust badges ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-item { text-align: left; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-item h3 { font-size: 17px; margin-bottom: 6px; }
.feature-item p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- How it works steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-item { text-align: left; position: relative; }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}
.step-item h3 { font-size: 19px; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}
/* ---------- Hero two-column layout with visual ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-content { max-width: 100%; }

.hero-visual {
  position: relative;
  height: 460px;
}

.hero-blob {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107,63,214,0.14), rgba(59,130,246,0.14));
  filter: blur(10px);
  z-index: 0;
}

.hero-card {
  position: absolute;
  width: 240px;
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 48px rgba(31,26,51,0.14);
  z-index: 2;
}
.hero-card-1 {
  top: 8%;
  right: 8%;
  transform: rotate(4deg);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: var(--white);
}
.hero-card-1 .hero-card-tag { color: rgba(255,255,255,0.75); }
.hero-card-1 .hero-card-title { color: var(--white); }
.hero-card-1 .hero-card-price { color: var(--white); }
.hero-card-1 .hero-card-price span { color: rgba(255,255,255,0.7); }

.hero-card-2 {
  bottom: 6%;
  left: 2%;
  transform: rotate(-3deg);
  z-index: 3;
}

.hero-card-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}
.hero-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.hero-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}
.hero-card-price span { font-weight: 400; color: var(--muted); font-size: 12px; }

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: 0 10px 28px rgba(31,26,51,0.12);
  z-index: 4;
}
.hero-badge-1 { top: 46%; left: 0%; }
.hero-badge-2 { bottom: 2%; right: 14%; color: var(--purple); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

@media (max-width: 600px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}
