/* ═══════════════════════════════════════════════
   INMOBILIARIA — Design System
   Inspired by Aranda Propiedades
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --green:        #3d6b2a;
  --green-dark:   #2a4d1c;
  --green-light:  #5a8c40;
  --green-pale:   #eef4ea;
  --white:        #ffffff;
  --off-white:    #f7f8f5;
  --dark:         #1a1f16;
  --gray:         #6b7260;
  --gray-light:   #e8ebe3;
  --border:       #d4dbc8;
  --shadow:       0 2px 20px rgba(45,75,28,0.10);
  --shadow-lg:    0 8px 40px rgba(45,75,28,0.18);
  --radius:       8px;
  --radius-sm:    4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
}

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* Al tope: completamente transparente, sin blur, imagen visible */
.navbar.at-top {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Al scrollear: blanco sólido con blur suave */
.navbar:not(.at-top) {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav links blancos sobre el hero cuando es transparente */
.navbar.at-top .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.navbar.at-top .nav-link:hover,
.navbar.at-top .nav-link.active {
  color: #ffffff;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  margin-bottom: 2px;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: var(--green);
  transition: left 0.25s ease-out, right 0.25s ease-out;
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-btn:hover { background: var(--green-dark); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  background-image: url('/static/hero_bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  padding: 7rem 3rem 5rem;
  padding-top: calc(7rem + 70px); /* compensar navbar height */
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -70px; /* subir para quedar detrás del navbar */
}
/* Overlay oscuro para legibilidad */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 40, 15, 0.58);
  z-index: 0;
}
/* Texto y buscador por encima del overlay y de la ola */
.hero-sub,
.hero-title,
.hero > div {
  position: relative;
  z-index: 4;
}

/* Wave: fuera del hero, margin negativo para superponerse al borde inferior */
.hero-wave {
  position: relative;
  margin-top: -80px;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ── SEARCH BAR ──────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
}
.search-bar select, .search-bar input {
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: transparent;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.search-divider {
  width: 1px; height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.search-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--green-dark); }

/* ── SECTION ─────────────────────────────────── */
.section { padding: 3rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.section-sub {
  font-size: 0.82rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ── CARDS ───────────────────────────────────── */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.props-list { display: flex; flex-direction: column; gap: 1rem; }

.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
  border: 1px solid var(--border);
}
.prop-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-light);
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.prop-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.8rem;
}

.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
}
.card-badge-alt {
  background: var(--green-dark);
}

/* Gallery arrows */
.card-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff; border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; z-index: 2;
}
.card-arrow-left { left: 8px; }
.card-arrow-right { right: 8px; }
.card-img-wrap:hover .card-arrow { opacity: 1; }
.card-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.card-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: background 0.2s;
}
.card-dot.active { background: #fff; }

.card-body { padding: 1.2rem; }
.card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}
.card-location {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.card-specs {
  display: flex; gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-light);
}
.card-spec { display: flex; align-items: center; gap: 0.2rem; }
.card-title-small {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-footer-row {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-detail {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-detail:hover { background: var(--green-dark); }
.card-contact-small { font-size: 0.72rem; color: var(--gray); }

/* LIST view */
.props-list .prop-card { display: flex; flex-direction: row; }
.props-list .card-img-wrap { width: 240px; min-width: 240px; height: auto; }
.props-list .card-body { flex: 1; padding: 1.5rem; }
.props-list .card-footer-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; border-top: none; border-left: 1px solid var(--gray-light); min-width: 140px; }

/* ── TOOLBAR ─────────────────────────────────── */
.toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.toolbar-count {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
}
.view-btns { display: flex; gap: 0.4rem; }
.view-btn {
  background: none;
  border: 1px solid var(--border);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray);
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.view-btn.active, .view-btn:hover { border-color: var(--green); color: var(--green); }

/* ── FILTER BAR ──────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.filter-select {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--green); }
.filter-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { background: var(--green-dark); }
.filter-clear {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-clear:hover { border-color: var(--green); color: var(--green); }

/* ── LOCATION PICKER ─────────────────────────── */
.loc-wrap { position: relative; flex: 1; min-width: 0; }
.loc-trigger {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
  user-select: none;
}
.loc-trigger:hover, .loc-trigger.open { border-color: var(--green); }
.loc-trigger-text { flex: 1; }
.loc-arrow { font-size: 0.6rem; transition: transform 0.2s; }
.loc-trigger.open .loc-arrow { transform: rotate(180deg); }
.loc-dropdown {
  position: fixed;
  top: 0; left: 0; /* overridden by JS posicionarDropdown */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 999999;
  display: none;
  width: 480px;
  max-width: 90vw;
}
.loc-dropdown.open { display: block; }
.loc-dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.loc-dropdown-header span { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); }
.loc-close-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--gray); }
.loc-panels { display: grid; grid-template-columns: 1fr 1fr; }
.loc-panel:first-child { border-right: 1px solid var(--border); }
.loc-panel-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); padding: 0.7rem 1rem 0.4rem; border-bottom: 1px solid var(--border); }
.loc-list { max-height: 220px; overflow-y: auto; padding: 0.3rem 0; }
.loc-list::-webkit-scrollbar { width: 3px; }
.loc-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.loc-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; cursor: pointer; font-size: 0.82rem; color: var(--dark); transition: background 0.15s; }
.loc-item:hover { background: var(--green-pale); }
.loc-item.selected { background: var(--green-pale); font-weight: 500; }
.loc-checkbox { width: 14px; height: 14px; border: 1.5px solid var(--border); border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.loc-item.selected .loc-checkbox { background: var(--green); border-color: var(--green); }
.loc-item.selected .loc-checkbox::after { content: '✓'; font-size: 9px; color: #fff; }
.loc-footer { padding: 0.7rem 1rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
.loc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; }
.loc-tag { font-size: 0.68rem; background: var(--green); color: #fff; padding: 0.2rem 0.5rem; border-radius: 3px; display: flex; align-items: center; gap: 0.3rem; }
.loc-tag-x { cursor: pointer; opacity: 0.8; }
.loc-apply { background: var(--green); color: #fff; border: none; padding: 0.4rem 1rem; border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.loc-apply:hover { background: var(--green-dark); }

/* ── SIDEBAR FILTERS ─────────────────────────── */
.page-layout { display: flex; align-items: flex-start; }
.sidebar-filters {
  width: 260px; min-width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky; top: 70px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  display: none;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.sidebar-filters.visible {
  display: block;
  animation: sidebarIn 0.35s ease forwards;
}
@keyframes sidebarIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.catalog-main { flex: 1; min-width: 0; }
.sf-section { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.sf-section:last-child { border-bottom: none; }
.sf-title { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark); font-weight: 600; margin-bottom: 0.8rem; }
.sf-item { display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0; cursor: pointer; font-size: 0.82rem; color: var(--gray); transition: color 0.15s; }
.sf-item:hover { color: var(--green); }
.sf-item.active { color: var(--green); font-weight: 500; }
.sf-item-left { display: flex; align-items: center; gap: 0.5rem; }
.sf-check { width: 14px; height: 14px; border: 1.5px solid var(--border); border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.sf-item.active .sf-check { background: var(--green); border-color: var(--green); }
.sf-item.active .sf-check::after { content: '✓'; font-size: 9px; color: #fff; }
.sf-count { font-size: 0.72rem; color: #bbb; }
.sf-price { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.sf-price input { flex: 1; padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8rem; font-family: 'Outfit', sans-serif; outline: none; width: 0; }
.sf-price input:focus { border-color: var(--green); }
.sf-price-btn { background: var(--green); color: #fff; border: none; padding: 0.45rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.72rem; cursor: pointer; }

/* ── ALERTS ──────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.82rem; margin-bottom: 1rem; display: none; border-left: 3px solid; }
.alert.show { display: block; }
.alert-success { background: #eef7ea; border-color: var(--green); color: var(--green-dark); }
.alert-error { background: #fef0f0; border-color: #dc3545; color: #b91c1c; }

/* ── COMMENTS ────────────────────────────────── */
.comments-section { padding: 3rem; background: var(--white); border-top: 2px solid var(--gray-light); margin-top: 1rem; }
.comment-form { background: var(--off-white); border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; }
.comment-form h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cf-field label { display: block; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.3rem; }
.cf-field input, .cf-field textarea { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-size: 0.88rem; outline: none; }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--green); }
.cf-field textarea { resize: vertical; min-height: 75px; }
.stars-select { display: flex; gap: 0.3rem; margin: 0.7rem 0; font-size: 1.5rem; cursor: pointer; }
.stars-select span { color: #ddd; transition: color 0.15s; }
.stars-select span.lit { color: #f0a500; }
.comment-submit { background: var(--green); color: #fff; border: none; padding: 0.6rem 1.5rem; font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.2s; }
.comment-submit:hover { background: var(--green-dark); }
.comment-card { background: var(--off-white); border: 1px solid var(--border); padding: 1.2rem; border-radius: var(--radius); margin-bottom: 0.8rem; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.comment-author { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.comment-date { font-size: 0.7rem; color: var(--gray); }
.comment-stars { color: #f0a500; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-text { font-size: 0.85rem; color: #444; line-height: 1.6; }

/* ── PROPERTY DETAIL ─────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; padding: 2rem 3rem 4rem; max-width: 1200px; margin: 0 auto; }
.main-photo { width: 100%; height: 420px; background: var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.thumb { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; background: var(--gray-light); }
.thumb.active, .thumb:hover { border-color: var(--green); }
.map-container { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 260px; border: none; display: block; }
.no-map { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--gray); background: var(--gray-light); border-radius: var(--radius); }
.info-panel {}
.prop-op-badge { display: inline-block; background: var(--green); color: #fff; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 3px; margin-bottom: 0.8rem; }
.prop-tipo-badge { display: inline-block; background: var(--gray-light); color: var(--gray); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 3px; margin-bottom: 0.8rem; margin-left: 0.4rem; }
.prop-titulo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; color: var(--dark); line-height: 1.2; margin-bottom: 0.5rem; }
.prop-precio { font-size: 1.6rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1.2rem; }
.green-bar { width: 40px; height: 3px; background: var(--green); border-radius: 2px; margin-bottom: 1.5rem; }
.info-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.3rem; font-weight: 500; }
.info-value { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; color: var(--dark); }
.ficha { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.ficha-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.9rem; font-weight: 600; }
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ficha-item { display: flex; flex-direction: column; gap: 0.15rem; }
.ficha-item-label { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); }
.ficha-item-val { font-size: 0.9rem; color: var(--dark); font-weight: 500; }
.ficha-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.ficha-tag { font-size: 0.72rem; background: var(--green-pale); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 3px; color: var(--green-dark); }
.contact-box { background: var(--white); border: 2px solid var(--green); padding: 1.5rem; border-radius: var(--radius); margin-top: 1rem; }
.contact-box h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); }
.contact-number { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.whatsapp-btn { display: block; margin-top: 1rem; background: #25d366; color: #fff; text-align: center; padding: 0.75rem; border-radius: var(--radius-sm); text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s; }
.whatsapp-btn:hover { background: #1ebe5d; }

/* ── EMPTY STATE ─────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray); }
.empty-state img { width: 80px; height: 80px; object-fit: contain; opacity: 0.5; margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; }

/* ── ADMIN ───────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.admin-sidebar { background: var(--dark); padding: 2rem 0; }
.sidebar-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.5rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8a9080; cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; text-decoration: none; }
.sidebar-item:hover, .sidebar-item.active { color: #fff; border-left-color: var(--green); background: rgba(255,255,255,0.05); }
.sidebar-item img { width: 18px; height: 18px; object-fit: contain; }
.admin-main { padding: 2.5rem 3rem; background: var(--off-white); }
.admin-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--dark); }
.admin-sub { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 2rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.form-card { background: var(--white); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); margin-bottom: 2rem; }
.form-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--dark); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.4rem; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-size: 0.9rem; color: var(--dark); outline: none; transition: border-color 0.2s; background: var(--white); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foto-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.foto-prev-img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.submit-btn { background: var(--green); color: #fff; border: none; padding: 0.8rem 2rem; font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.2s; }
.submit-btn:hover { background: var(--green-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.table-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); color: var(--dark); }
table { width: 100%; border-collapse: collapse; }
th { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); background: var(--off-white); }
td { font-size: 0.82rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--green-pale); }
.badge-active { background: #eef7ea; color: var(--green-dark); font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: 10px; font-weight: 600; }
.badge-inactive { background: #fef0f0; color: #b91c1c; font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: 10px; font-weight: 600; }
.del-btn { background: none; border: 1px solid var(--border); color: #dc3545; padding: 0.3rem 0.7rem; font-size: 0.72rem; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; }
.del-btn:hover { background: #dc3545; color: #fff; border-color: #dc3545; }
.edit-btn { background: none; border: 1px solid var(--green); color: var(--green); padding: 0.3rem 0.7rem; font-size: 0.72rem; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; }
.edit-btn:hover { background: var(--green); color: #fff; }
.prop-thumb { width: 50px; height: 38px; object-fit: cover; border-radius: var(--radius-sm); }

/* ── ARGENPROP IMPORT ────────────────────────── */
.argenprop-btn { display: flex; align-items: center; gap: 0.6rem; background: none; border: 2px solid var(--green); color: var(--green); padding: 0.7rem 1.5rem; font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; margin-bottom: 1.5rem; width: 100%; justify-content: center; }
.argenprop-btn:hover { background: var(--green); color: #fff; }
.import-box { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem; display: none; }
.import-box.open { display: block; }
.import-box label { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.5rem; }
.import-row { display: flex; gap: 0.5rem; }
.import-row input { flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-size: 0.88rem; outline: none; }
.import-row input:focus { border-color: var(--green); }
.import-go { background: var(--green); color: #fff; border: none; padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.import-go:hover { background: var(--green-dark); }
.import-go:disabled { opacity: 0.6; cursor: not-allowed; }
.import-status { font-size: 0.78rem; margin-top: 0.6rem; display: none; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); border-left: 3px solid; }
.import-status.ok { display: block; background: #eef7ea; border-color: var(--green); color: var(--green-dark); }
.import-status.err { display: block; background: #fef0f0; border-color: #dc3545; color: #b91c1c; }
.import-status.loading { display: block; background: var(--off-white); border-color: var(--green); color: var(--gray); }
.import-imgs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.import-img-item { position: relative; cursor: pointer; }
.import-img-item img { width: 70px; height: 55px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; }
.import-img-item.selected img { border-color: var(--green); }
.import-img-item .img-check { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; background: var(--green); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 9px; color: #fff; }
.import-img-item.selected .img-check { display: flex; }

/* ── MODAL ───────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray); }
.modal-body { padding: 1.5rem 2rem; }
.modal-footer { padding: 1rem 2rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; justify-content: flex-end; }
.modal-save { background: var(--green); color: #fff; border: none; padding: 0.7rem 1.5rem; font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.2s; }
.modal-save:hover { background: var(--green-dark); }
.modal-cancel { background: none; border: 1px solid var(--border); color: var(--gray); padding: 0.7rem 1.2rem; font-family: 'Outfit', sans-serif; font-size: 0.78rem; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; }
.modal-cancel:hover { border-color: #dc3545; color: #dc3545; }

/* ── ADMIN LOGIN ─────────────────────────────── */
.admin-login-body { background: var(--green-dark); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.admin-login-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--green-dark); text-align: center; margin-bottom: 0.3rem; }
.admin-login-sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); text-align: center; margin-bottom: 2rem; }
.setup-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: none; }
.setup-toggle { font-size: 0.75rem; color: var(--gray); text-align: center; cursor: pointer; letter-spacing: 0.1em; margin-top: 1rem; display: block; }
.setup-toggle:hover { color: var(--green); }

/* ── TABS ────────────────────────────────────── */
.tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid var(--border); }
.tab-btn { background: none; border: none; cursor: pointer; padding: 0.8rem 1.5rem; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--gray); position: relative; transition: color 0.2s; }
.tab-btn.active { color: var(--green); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--green); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 1.5rem; }
  .nav-links { gap: 1rem; }
  .hero {
    padding: 5rem 1.5rem 7rem;
    padding-top: calc(5rem + 70px);
    background-attachment: scroll; /* fixed no funciona bien en iOS */
  }
  .hero-wave svg { height: 45px; }
  .search-bar { flex-direction: column; padding: 1rem; }
  .search-divider { display: none; }
  .search-btn { width: 100%; }
  .toolbar, .filter-bar, .section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .props-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .page-layout { flex-direction: column; }
  .sidebar-filters { width: 100%; min-width: unset; position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .props-list .prop-card { flex-direction: column; }
  .props-list .card-img-wrap { width: 100%; height: 200px; }
  .detail-layout { grid-template-columns: 1fr; padding: 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 0; }
  .sidebar-item { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-item.active { border-bottom-color: var(--green); border-left: none; }
  .admin-main { padding: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .loc-dropdown { width: 100%; }
  .loc-panels { grid-template-columns: 1fr; }
  .loc-panel:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .cf-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .props-grid { grid-template-columns: 1fr; }
  .card-body { padding: 0.9rem; }
  .hero-title { font-size: 1.6rem; }
  .search-bar { gap: 0.4rem; }
  .loc-trigger-text { font-size: 0.78rem; }
  .search-btn { font-size: 0.78rem; padding: 0.6rem 1rem; }
}

/* ── PANEL TOGGLE (admin) ────────────────────── */
.panel { display: none; }
.panel.active { display: block; }

/* ── DROPDOWN Z-INDEX FIX ────────────────────── */
.filter-bar { overflow: visible; }
.navbar { z-index: 100; }

/* Hero search bar */
.hero .loc-wrap { position: relative; }
.hero .search-bar { position: relative; }

/* ── ARGENPROP BANNER ────────────────────────── */
.argenprop-banner {
  display: block;
  margin-top: 1.2rem;
  text-decoration: none;
  border: 1.5px solid #00A650;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  background: #f4fdf7;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
}
.argenprop-banner:hover {
  background: #e6f9ee;
  box-shadow: 0 4px 16px rgba(0,166,80,0.13);
  transform: translateY(-2px);
}
.argenprop-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.argenprop-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
}
.argenprop-banner-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.1rem;
}
.argenprop-brand {
  font-weight: 700;
  font-size: 0.97rem;
  color: #00A650;
  letter-spacing: 0.01em;
}
.argenprop-sub {
  font-size: 0.78rem;
  color: var(--gray);
}
.argenprop-arrow {
  font-size: 1.15rem;
  color: #00A650;
  font-weight: 700;
  margin-left: auto;
}

/* Badge pequeño en cards del catálogo */
.prop-argenprop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e6f9ee;
  border: 1px solid #b2eacc;
  border-radius: 6px;
  padding: 0.18rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #00A650;
  margin-top: 0.4rem;
  text-decoration: none;
}
.prop-argenprop-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.prop-argenprop-badge:hover {
  background: #c8f0d8;
}

/* ── LOGO EN NAVBAR ──────────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── LOGO EN ADMIN LOGIN ─────────────────────────── */
.admin-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.admin-login-logo-img {
  height: 48px;
  width: auto;
  border-radius: 50%;
  object-fit: contain;
}

/* ── ICONOS IMAGEN EN SPECS DE CARDS ─────────────── */
.spec-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  object-fit: contain;
}

/* ── ICONOS IMAGEN EN CARACTERÍSTICAS DE PROPIEDAD ── */
.caract-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
  object-fit: contain;
}
.ficha-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── LOGO NAVBAR (solo imagen, sin texto) ────────── */
.nav-logo {
  height: 128px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 220px;
}

/* ── LOGO ADMIN NAVBAR ───────────────────────────── */
.nav-logo-admin {
  height: 128px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 200px;
}

/* ── LOGO ADMIN LOGIN ────────────────────────────── */
.admin-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.admin-login-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* ── SIDEBAR ICONS ───────────────────────────────── */
.sidebar-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 9px;
  object-fit: contain;
}

/* ── EMPTY STATE IMG ─────────────────────────────── */
.empty-state-img {
  width: 120px;
  height: auto;
  opacity: 0.6;
  margin-bottom: 0.8rem;
}

/* ── LOGIN SWITCH ────────────────────────────────── */
.login-switch {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 1.2rem;
}
.login-switch span {
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
}
.login-switch span:hover { text-decoration: underline; }

/* ══ FOOTER DEL SITIO ════════════════════════════════ */
.site-footer {
  background: #1a2a1a;
  color: #d4e8d4;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  position: relative;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-logo-col {
  flex: 0 0 auto;
}
.footer-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}
.footer-secciones {
  flex: 1;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-seccion {
  flex: 1;
  min-width: 150px;
}
.footer-sec-titulo {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8d5a2;
  margin-bottom: 0.75rem;
}
.footer-sec-contenido {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #b8ccb8;
}
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #2d4a2d;
  display: none;
  justify-content: center;
  font-size: 0.8rem;
}
.footer-bottom a, .footer-bottom span {
  color: #a8d5a2;
  text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ── BADGE DEL DESARROLLADOR ─────────────────────── */
.dev-badge {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dev-badge:hover { opacity: 1; transform: scale(1.08); }
.dev-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ── FOOTER ADMIN PANEL ──────────────────────────── */
.footer-sec-row {
  margin-bottom: 0.5rem;
}
.footer-sec-row-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.footer-sec-titulo-input {
  flex: 1;
  min-width: 140px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-sec-contenido-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
}
.footer-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger-sm {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger-sm:hover { background: #fca5a5; }

/* ── CUSTOM SELECT DROPDOWNS (Tipo / Operación) ───── */
.csdd-wrap {
  position: relative;
  flex: 1;
}
.csdd-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  cursor: pointer;
  user-select: none;
  min-width: 120px;
  height: 100%;
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
}
.csdd-text {
  font-size: 0.84rem;
  color: var(--dark);
  flex: 1;
  white-space: nowrap;
}
.csdd-arrow {
  font-size: 0.65rem;
  color: var(--gray);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.csdd-trigger.open .csdd-arrow { transform: rotate(180deg); }
.csdd-dropdown {
  position: fixed;
  top: 0; left: 0; /* overridden by JS posicionarDropdown */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 999999;
  display: none;
  min-width: 200px;
  overflow: hidden;
}
.csdd-dropdown.open { display: block; }
.csdd-list { padding: 0.4rem 0; }
.csdd-item {
  padding: 0.55rem 1.1rem;
  font-size: 0.83rem;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.csdd-item:hover { background: var(--off-white); color: var(--green); }
.csdd-item.selected { color: var(--green); font-weight: 600; }

/* ══ SOBRE NOSOTROS ADMIN ══════════════════════════════════ */
.sobre-bloque {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--white);
  overflow: hidden;
  cursor: default;
}
.sobre-bloque-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.sobre-tipo-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.sobre-bloque-editor {
  padding: 1rem 1.1rem 1.1rem;
}
.sobre-texto-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--gray);
}
.sobre-texto-toolbar label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  white-space: nowrap;
}
.sobre-texto-toolbar input[type="color"] {
  width: 32px; height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px;
  cursor: pointer;
}
.sobre-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  resize: vertical;
}
.sobre-textarea:focus { border-color: var(--green); outline: none; }
.sobre-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.sobre-img-thumb {
  position: relative;
  width: 100px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sobre-img-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sobre-img-thumb button {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sobre-upload-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--off-white);
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.sobre-upload-btn:hover { background: var(--green-pale); }

/* ── VIDEO TABS (admin sobre nosotros) ────────── */
.sobre-video-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
  margin-bottom: 0.2rem;
}
.sobre-video-tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--off-white);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  color: var(--gray);
  transition: all 0.15s;
}
.sobre-video-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}
.sobre-video-tab:hover:not(.active) {
  border-color: var(--green);
  color: var(--green);
}
.sobre-video-archivo-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.8rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  margin-top: 0.7rem;
}

/* ══ RICH TEXT EDITOR ══════════════════════════════════════ */
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.rte-btn {
  padding: 0.25rem 0.5rem;
  min-width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
  position: relative;
}
.rte-btn:hover { background: #e8f5e9; border-color: var(--green); color: var(--green); }
.rte-color-btn { gap: 3px; font-weight: 700; cursor: pointer; }
.rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; }
.rte-select {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  padding: 0 0.3rem;
  color: var(--dark);
  background: #fff;
  cursor: pointer;
}
.rte-editor {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  padding: 0.7rem 0.9rem;
  font-family: 'Outfit', sans-serif;
  line-height: 1.7;
  color: #1a1f16;
  outline: none;
  background: #fff;
}
.rte-editor:focus { border-color: var(--green); }
.rte-editor p { margin: 0 0 0.5em; }
.rte-editor:empty:before {
  content: attr(placeholder);
  color: var(--gray);
  pointer-events: none;
}

/* ── 2. Smooth image transition in cards ──────────────────── */
.card-img-wrap img {
  transition: opacity 0.3s ease;
}
.card-img-wrap img.fading {
  opacity: 0;
}

/* ── 5. Reviews horizontal carousel ─────────────────────── */
.reviews-strip {
  display: flex;
  gap: 1.2rem;
  overflow: hidden;
  padding: 0.5rem 0 1rem;
}
.reviews-strip .comment-card {
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 300px;
  animation: reviewFadeIn 0.5s ease;
}
@keyframes reviewFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 6. Share button on property detail ─────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  color: var(--dark);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--green); color: var(--green); }
.share-menu {
  display: none;
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 999;
  min-width: 180px;
  overflow: hidden;
}
.share-menu.open { display: block; }
.share-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.83rem;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s;
}
.share-menu a:hover { background: var(--off-white); }
.share-wrap { position: relative; display: inline-block; }

/* ── 7. Hero entrance animation ─────────────────────────── */
.hero-sub {
  animation: heroReveal 0.7s ease-out both;
}
.hero-title {
  animation: heroReveal 0.9s 0.15s ease-out both;
}
.hero > div {
  animation: heroReveal 1s 0.3s ease-out both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 1. Footer admin panel polish ────────────────────────── */
#panel-footer .table-card h3 {
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 0.04em;
}
#panel-footer .field label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.3rem;
}
#panel-footer .submit-btn {
  margin-top: 0.8rem;
}
