/* ============================================================
   SM INMOBILIARIA — style.css
   ============================================================ */

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

:root {
  --gold:         #C9A84C;
  --gold-light:   #E8D5A3;
  --gold-dark:    #8B6914;
  --dark:         #1A1A2E;
  --dark2:        #16213E;
  --dark3:        #0F3460;
  --cream:        #F8F4EE;
  --cream2:       #F0EAE0;
  --white:        #FFFFFF;
  --text:         #2C2C2C;
  --muted:        #6B6B6B;
  --muted2:       #999999;
  --green:        #27500A;
  --green-bg:     #EAF3DE;
  --green-border: #C0DD97;
  --amber:        #633806;
  --amber-bg:     #FAEEDA;
  --amber-border: #FAC775;
  --red:          #A32D2D;
  --red-bg:       #FCEBEB;
  --red-border:   #F09595;
  --wa:           #25D366;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.12);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    14px;
  --radius-xl:    18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }

/* ── VIEWS ── */
.view { display: none; animation: fadeIn 0.3s ease; }
.view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  background: var(--dark);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-decoration: none;
}
.logo span { color: var(--white); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #bbc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.nav-link:hover,
.nav-link.active { color: var(--gold); }

.btn-admin {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn-admin:hover { background: var(--gold); color: var(--dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.2px;
}
.btn-primary:hover {
  background: #b8923d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-wa:hover {
  background: #1eba58;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, var(--dark3) 100%);
  padding: 6rem 2.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.035'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 2rem;
  position: relative;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  position: relative;
  font-weight: 700;
}
.hero h1 em { color: var(--gold); font-style: italic; }

.hero-sub {
  color: #9aa;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream2);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  padding: 1.2rem 2.5rem;
  text-align: center;
  border-right: 1px solid var(--cream2);
  flex: 1;
  min-width: 120px;
}
.stat-item:last-child { border-right: none; }
.stat-item .n { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--dark); font-weight: 600; }
.stat-item .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  background: var(--white);
  padding: 1rem 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--cream2);
  position: sticky;
  top: 68px;
  z-index: 90;
}

.filter-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-btn {
  background: var(--cream);
  border: 1px solid var(--cream2);
  color: var(--text);
  padding: 7px 20px;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 400;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active { background: var(--dark); color: var(--gold); border-color: var(--dark); font-weight: 500; }

.filter-sep { width: 1px; height: 24px; background: var(--cream2); }

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border: 1px solid var(--cream2);
  border-radius: 24px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--gold); }
.search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

/* ============================================================
   SECTION & GRID
   ============================================================ */
.section { padding: 3rem 2.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--dark); }
.count { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted); margin-left: 8px; font-weight: 400; }

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

.no-results { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: var(--muted); }
.no-results .icon { font-size: 3rem; margin-bottom: 1rem; }

/* ============================================================
   PROPERTY CARD
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream2);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-img { height: 210px; position: relative; overflow: hidden; flex-shrink: 0; }
.card-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  transition: transform 0.4s;
  background-size: cover;
  background-position: center;
}
.card:hover .card-thumb { transform: scale(1.06); }

/* Photo gallery thumbnails */
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-photo { transform: scale(1.06); }

.badge {
  position: absolute;
  padding: 4px 12px;
  border-radius: 24px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(4px);
}
.badge.tipo { top: 12px; left: 12px; }
.badge.tipo.arriendo { background: rgba(26,26,46,.85); color: var(--gold); border: 1px solid rgba(201,168,76,.3); }
.badge.tipo.venta    { background: rgba(15,52,96,.85);  color: #7EC8E3;     border: 1px solid rgba(126,200,227,.3); }
.badge.status { bottom: 12px; left: 12px; }
.badge.status.disponible { background: rgba(39,80,10,.85);  color: #C0DD97; }
.badge.status.reservado  { background: rgba(99,56,6,.85);   color: #FAC775; }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: transform 0.2s;
  color: #aaa;
}
.fav-btn:hover { transform: scale(1.2); color: #e24b4a; }
.fav-btn.active { color: #e24b4a; }

.card-body { padding: 1.3rem; }
.card-price { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--dark); font-weight: 600; line-height: 1.2; }
.card-price-sub { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.card-title { font-size: 14px; font-weight: 500; margin: 0.6rem 0 0.25rem; line-height: 1.4; color: var(--text); }
.card-loc { font-size: 13px; color: var(--muted); margin-bottom: 0.9rem; }
.card-feats {
  display: flex;
  gap: 1.2rem;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--cream2);
  padding-top: 0.9rem;
  margin-bottom: 0.9rem;
}
.feat { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-actions { display: flex; gap: 0.6rem; }
.card-btn {
  flex: 1;
  padding: 9px 0;
  background: var(--cream);
  border: 1px solid var(--cream2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  font-weight: 500;
}
.card-btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.card-btn.wa { background: none; border-color: #C8F0D7; color: var(--wa); flex: 0; padding: 9px 12px; }
.card-btn.wa:hover { background: var(--wa); color: #fff; border-color: var(--wa); }

/* ============================================================
   GALLERY MODAL
   ============================================================ */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.gallery-overlay.open { display: flex; }

.gallery-main {
  position: relative;
  width: 90vw;
  max-width: 860px;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: none;
}
.gallery-img.active { display: block; }

.gallery-placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1A1A2E, #0F3460);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-arrow:hover { background: rgba(255,255,255,0.25); }
.gallery-arrow.prev { left: -54px; }
.gallery-arrow.next { right: -54px; }

.gallery-counter {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 1rem;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90vw;
}
.gallery-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.gallery-thumb.active { opacity: 1; border-color: var(--gold); }
.gallery-thumb-placeholder {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.gallery-thumb-placeholder.active { opacity: 1; border-color: var(--gold); }

.gallery-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gallery-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  padding: 3rem 2.5rem;
  background: var(--white);
  border-top: 1px solid var(--cream2);
}

.map-section .section-title { margin-bottom: 0.4rem; }
.map-section .map-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream2);
  position: relative;
  height: 400px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.map-info-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.map-info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.map-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 3px; }
.map-info-val { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-section {
  padding: 4rem 2.5rem;
  background: var(--cream);
  border-top: 1px solid var(--cream2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.contact-info h2 span { color: var(--gold); }
.contact-info p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 1.8rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-detail-text .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 2px; }
.contact-detail-text .val   { font-size: 14px; font-weight: 500; color: var(--text); }

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--cream2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  color: var(--dark);
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.fg { margin-bottom: 0.9rem; }
.fg label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--cream2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus { border-color: var(--gold); background: var(--white); }
.fg textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--dark);
  color: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
}
.submit-btn:hover { background: var(--dark3); }

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 1rem;
  display: none;
  line-height: 1.5;
}
.toast.success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.toast.error   { background: var(--red-bg);   border: 1px solid var(--red-border);   color: var(--red);   }

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about {
  background: var(--dark);
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.about-text h2 span { color: var(--gold); }
.about-text p { color: #9aa; line-height: 1.8; font-size: 15px; margin-bottom: 1rem; }

.about-list { list-style: none; color: #9aa; font-size: 14px; }
.about-list li { padding: 0.4rem 0; display: flex; align-items: center; gap: 0.6rem; }
.about-list li::before { content: '✦'; color: var(--gold); font-size: 10px; }

.about-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
}
.about-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--gold); }
.about-card p  { font-size: 13px; color: #9aa; line-height: 1.6; margin-bottom: 1rem; }

.wa-big {
  background: var(--wa);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.wa-big:hover { background: #1eba58; transform: translateY(-2px); }

/* ============================================================
   MODAL (Appointment / Details)
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
  backdrop-filter: blur(3px);
}
.overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cream2);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 10;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--cream); }

.modal-thumb {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  flex-shrink: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
}
.modal-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.0);
  transition: background 0.2s;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-thumb:hover .modal-thumb-overlay { background: rgba(0,0,0,0.35); }
.gallery-hint {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-thumb:hover .gallery-hint { opacity: 1; }

.modal-content { padding: 1.5rem; }
.modal-badges { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.modal-price { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--dark); font-weight: 700; line-height: 1.1; }
.modal-period { font-size: 14px; color: var(--muted); font-weight: 400; }
.modal-title { font-size: 16px; font-weight: 500; margin: 0.5rem 0 0.3rem; }
.modal-loc { font-size: 14px; color: var(--muted); margin-bottom: 1.2rem; }

.modal-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.mf { background: var(--cream); padding: 0.9rem; border-radius: var(--radius-md); text-align: center; }
.mf .val { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark); font-weight: 600; }
.mf .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.modal-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--cream2);
}

.modal-wa {
  background: var(--wa);
  color: #fff;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-bottom: 0.8rem;
}
.modal-wa:hover { background: #1eba58; }

.form-sect-title { font-size: 15px; font-weight: 500; margin-bottom: 1rem; color: var(--dark); }

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,22,0.88);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}
.login-overlay.show { display: flex; }

.login-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  width: 100%;
  max-width: 400px;
}
.login-logo { font-family: 'Playfair Display', serif; color: var(--dark); font-size: 1.4rem; text-align: center; margin-bottom: 0.3rem; }
.login-logo span { color: var(--gold); font-style: italic; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 1.8rem; }
.login-err {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 1rem;
  display: none;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-topbar {
  background: rgba(26,26,46,0.97);
  color: #9aa;
  font-size: 13px;
  padding: 9px 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-topbar strong { color: var(--gold); }

.admin-main { padding: 2.5rem; }

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--dark); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.scard {
  background: var(--white);
  border: 1px solid var(--cream2);
  border-radius: 11px;
  padding: 1.2rem;
  text-align: center;
}
.scard .sv { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--dark); font-weight: 600; }
.scard .sl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

.panel-box {
  background: var(--white);
  border: 1px solid var(--cream2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.panel-head {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--cream2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.panel-head span { font-size: 13px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 1px solid var(--cream2);
  background: #FAF8F5;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--cream2);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAF8; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 24px; font-size: 11px; font-weight: 500; }
.pill.disp { background: var(--green-bg); color: var(--green); }
.pill.res  { background: var(--amber-bg); color: var(--amber); }

.act-row { display: flex; gap: 0.4rem; flex-wrap: nowrap; }
.icon-btn {
  background: none;
  border: 1px solid var(--cream2);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.icon-btn:hover       { background: var(--cream); border-color: #ccc; }
.icon-btn.del:hover   { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.icon-btn.wa-btn:hover{ background: #E8FFF0; border-color: #B2E8C4; color: #0e8b44; }

.add-form {
  background: var(--white);
  border: 1px solid var(--cream2);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 2rem;
}
.add-form h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1.2rem; color: var(--dark); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.appt-row {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--cream2);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.appt-row:last-child { border-bottom: none; }
.appt-icon {
  width: 42px;
  height: 42px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.appt-info { flex: 1; min-width: 0; }
.appt-name   { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.appt-status { font-size: 12px; font-weight: 500; color: var(--gold); white-space: nowrap; }
.empty-row   { padding: 2.5rem; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark2);
  color: #778;
  padding: 2.5rem;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer strong { color: var(--gold); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-link { color: #99a; font-size: 13px; text-decoration: none; cursor: pointer; transition: color 0.2s; background: none; border: none; font-family: 'DM Sans', sans-serif; }
.footer-link:hover { color: var(--gold); }

/* ============================================================
   WA FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  background: var(--wa);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: transform 0.2s;
  border: none;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  nav { padding: 0 1.2rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 4rem 1.2rem 3.5rem; }
  .filters { padding: 1rem 1.2rem; }
  .section { padding: 2rem 1.2rem; }
  .map-section { padding: 2rem 1.2rem; }
  .contact-section { padding: 2rem 1.2rem; }
  .admin-main { padding: 1.5rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  table { font-size: 12px; }
  th, td { padding: 8px 10px; }
  .gallery-arrow.prev { left: -10px; }
  .gallery-arrow.next { right: -10px; }
}
