:root {
  --primary: #C8102E;
  --primary-dark: #9B0D23;
  --primary-light: #E8183F;
  --primary-overlay: rgba(200,16,46,.60);
  --secondary: #1A1A1A;
  --secondary-light: #2D2D2D;
  --white: #FFFFFF;
  --gray-50: #F9F9F9;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-400: #999999;
  --gray-600: #666666;
  --text: #1A1A1A;
  --font: 'Arial', Helvetica, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.15);
}

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

body {
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; }

/* ── UTILITIES ─────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--gray-50); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-danger { background: transparent; border: 2px solid #dc3545; color: #dc3545; }
.btn-danger:hover { background: #dc3545; color: #fff; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-venta { background: var(--primary); color: #fff; }
.badge-alquiler { background: var(--secondary); color: #fff; }
.badge-destacada { background: #F5A623; color: #fff; }

/* ── HEADER ────────────────────────────── */
.site-header {
  background: var(--secondary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 60px; width: auto; object-fit: contain; }
.logo-text { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo-text span { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #ccc; padding: 8px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-user { color: #aaa; font-size: 13px; }
.hamburger {
  display: none; background: none; border: none; color: #fff; font-size: 22px;
  padding: 6px; cursor: pointer;
}
.mobile-menu {
  display: none; background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,.1); padding: 10px 0;
}
.mobile-menu a { display: block; color: #ccc; padding: 12px 20px; font-size: 15px; }
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mobile-menu-open .mobile-menu { display: block; }

/* ── HERO SLIDER ───────────────────────── */
.slider { position: relative; background: var(--secondary); overflow: hidden; height: 520px; }
.slides { display: flex; transition: transform .5s ease; height: 100%; }
.slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; }
.slide-bg { width: 100%; height: 100%; object-fit: cover; opacity: .5; position: absolute; inset: 0; }
.slide-placeholder {
  width: 100%; height: 100%; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #333 100%);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.slide-content { position: absolute; bottom: 60px; left: 60px; max-width: 520px; z-index: 2; }
.slide-title { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.slide-zone { color: #ccc; font-size: 14px; margin: 6px 0 12px; }
.slide-price { color: var(--primary-light); font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.slide-badges { margin-bottom: 12px; display: flex; gap: 8px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s; border: none; }
.dot.active { background: var(--primary); transform: scale(1.2); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 24px;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
  backdrop-filter: blur(4px); z-index: 2;
}
.slider-arrow:hover { background: var(--primary); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ── SEARCH BAR ────────────────────────── */
.search-section { background: var(--secondary); padding-bottom: 28px; }
.search-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.search-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.search-group label { color: #aaa; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.search-group select, .search-group input {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: 9px 12px; border-radius: 4px; font-size: 14px; outline: none;
}
.search-group select option { background: var(--secondary); color: #fff; }
.search-group input::placeholder { color: #555; }
.search-group select:focus, .search-group input:focus { border-color: var(--primary); }
.search-section--compact { padding-top: 8px; padding-bottom: 8px; }
.search-section--compact .search-box { padding: 8px 12px; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.search-section--compact .search-group { min-width: 100px; flex: 1 1 0; gap: 2px; }
.search-section--compact .search-group label { font-size: 9px; letter-spacing: .2px; }
.search-section--compact .search-group select,
.search-section--compact .search-group input { padding: 4px 5px; font-size: 11px; }
.search-section--compact .search-group--narrow { flex: 0 0 90px; }
.search-section--compact .search-group--btn { flex: 0 0 auto; }

/* ── SECTION HEADER ────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 26px; font-weight: 700; }
.section-title span { color: var(--primary); }
.section-line { height: 3px; width: 50px; background: var(--primary); margin-top: 6px; }

/* ── PROPERTY CARDS ────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s; border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { height: 200px; background: var(--gray-100); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.card:hover .card-img img { transform: scale(1.05); }
.card-estado-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: var(--primary-overlay);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 10;
  isolation: isolate;
}
.card-estado-overlay span {
  color: #fff; font-weight: 800; font-size: 18px;
  letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
/* overlay en detalle de propiedad (imagen grande) */
.gallery-main-wrap { position: relative; }
.gallery-main-wrap .card-estado-overlay span { font-size: 32px; letter-spacing: 4px; }
.card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-zone { color: var(--gray-600); font-size: 13px; margin-bottom: 10px; }
.card-price { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-600); margin-bottom: 14px; flex-wrap: wrap; }
.card-footer { border-top: 1px solid var(--gray-100); padding-top: 12px; display: flex; justify-content: flex-end; }

/* ── LIST PAGE ─────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-count { font-size: 14px; color: var(--gray-600); }
.sort-select { border: 1.5px solid var(--gray-200); border-radius: 4px; padding: 7px 12px; font-size: 13px; outline: none; }
.btn-outline--light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline--light:hover { background: rgba(255,255,255,.1); }
/* ── DETAIL PAGE ───────────────────────── */
.breadcrumb { padding: 14px 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; margin-bottom: 30px; border-radius: 8px; overflow: hidden; max-height: 450px; }
.gallery-main { height: 450px; overflow: hidden; cursor: pointer; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-thumbs { display: grid; grid-template-rows: repeat(2, 1fr); gap: 6px; }
.gallery-thumb { overflow: hidden; cursor: pointer; position: relative; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-thumb:hover img { transform: scale(1.05); }
.more-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.detail-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.detail-location { color: var(--gray-600); font-size: 15px; margin-bottom: 16px; }
.detail-price { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.detail-type { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; text-transform: capitalize; }
.detail-badges { display: flex; gap: 8px; margin-bottom: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.feature-item { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; padding: 12px; text-align: center; }
.feature-icon { font-size: 22px; margin-bottom: 4px; }
.feature-label { font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .3px; }
.feature-val { font-size: 15px; font-weight: 700; margin-top: 2px; }
.detail-desc { font-size: 15px; line-height: 1.7; color: #444; white-space: pre-wrap; margin-bottom: 24px; }
.video-section { margin-bottom: 24px; }
.video-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.contact-card { background: var(--secondary); border-radius: 8px; padding: 24px; color: #fff; position: sticky; top: 90px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { color: #aaa; font-size: 13px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: 10px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 10px; outline: none;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #555; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; border: none; border-radius: 4px; padding: 12px; width: 100%; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.whatsapp-btn:hover { background: #1ebe5d; }

/* ── LIGHTBOX ──────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 24px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ── MODAL ─────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 10px; padding: 32px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: #999; }

/* ── FORMS ─────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 600; color: #444; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--gray-200); border-radius: 4px; padding: 10px 12px; font-size: 14px; outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.error-msg { color: var(--primary); font-size: 12px; margin-top: 3px; }
.success-msg { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 12px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }
.tab-buttons { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--gray-400); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--gray-400); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

.btn-featured-on  { background:#fff8e1; color:#b8860b; border:1px solid #f5cc5a; font-weight:700; }
.btn-featured-on:hover  { background:#f5cc5a; color:#7a5800; }
.btn-featured-off { background:#f0f0f0; color:#aaa; border:1px solid #ddd; font-weight:700; }
.btn-featured-off:hover { background:#ddd; color:#555; }
.btn-success-inline { background:#d4edda; color:#1a7f37; border:1px solid #b7dfc3; font-weight:700; }
.btn-success-inline:hover { background:#1a7f37; color:#fff; }
.btn-inactive-inline { background:#f0f0f0; color:#999; border:1px solid #ddd; font-weight:700; }
.btn-inactive-inline:hover { background:#999; color:#fff; }
.select-estado-inline {
  border: 1.5px solid #ddd; border-radius: 4px; padding: 4px 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; outline: none;
  background: #fff; color: #333;
}
.select-estado-inline:focus { border-color: var(--primary); }

/* ── ADMIN ─────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0; margin-right: 12px;
}
.admin-hamburger span {
  display: block; width: 100%; height: 2px; background: var(--secondary); border-radius: 2px;
}
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199;
}
.admin-sidebar-overlay.active { display: block; }
.admin-sidebar { width: 240px; background: var(--secondary); color: #fff; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar-logo { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-logo .logo-text { font-size: 16px; }
.admin-nav { padding: 12px 0; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  color: #aaa; font-size: 14px; cursor: pointer; transition: all .2s; text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,.08); border-right: 3px solid var(--primary); }
.admin-content { flex: 1; background: var(--gray-50); overflow-y: auto; }
.admin-topbar {
  background: #fff; padding: 16px 28px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.admin-topbar h1 { font-size: 20px; font-weight: 700; }
.admin-page { padding: 28px; }
.admin-card { background: #fff; border-radius: 8px; border: 1px solid var(--gray-200); padding: 24px; margin-bottom: 20px; }
.admin-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-50); padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); }
.data-table td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table .thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.table-actions { display: flex; gap: 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; border: 1px solid var(--gray-200); display: flex; align-items: center; gap: 14px; }
.stat-icon { font-size: 28px; width: 52px; height: 52px; background: rgba(200,16,46,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.stat-val { font-size: 24px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--gray-600); }
.img-upload-area {
  border: 2px dashed var(--gray-200); border-radius: 6px; padding: 20px;
  text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.img-upload-area:hover { border-color: var(--primary); background: rgba(200,16,46,.02); }
.img-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.img-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.img-preview { position: relative; width: 90px; height: 70px; cursor: pointer; transition: transform .15s; }
.img-preview:hover { transform: scale(1.05); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 2px solid transparent; transition: border-color .2s; }
.img-preview.img-main img { border-color: #f5a623; box-shadow: 0 0 0 2px #f5a62366; }
.img-preview-del { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.img-main-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(245,166,35,.92); color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 0 0 4px 4px; z-index: 1; letter-spacing: .3px; display:none; }
.img-new-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(40,167,69,.85); color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 0 0 4px 4px; z-index: 1; }

/* ── FOOTER ────────────────────────────── */
footer { background: var(--secondary); color: #fff; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }
.footer-desc { color: #888; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 6px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; font-weight: 700; transition: all .2s; }
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #888; font-size: 14px; transition: color .2s; cursor: pointer; }
.footer-links a:hover { color: var(--primary); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #888; }
.footer-contact-item strong { color: #ccc; flex-shrink: 0; }
.newsletter-wrap { display: flex; }
.newsletter-wrap input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 10px 14px; border-radius: 4px 0 0 4px; font-size: 14px; outline: none; }
.newsletter-wrap input::placeholder { color: #555; }
.newsletter-wrap input:focus { border-color: var(--primary); }
.newsletter-wrap button { background: var(--primary); color: #fff; border: none; padding: 10px 16px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.newsletter-wrap button:hover { background: var(--primary-dark); }
.footer-bottom { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: #555; font-size: 13px; }

/* ── TOAST ─────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast { background: var(--secondary); color: #fff; padding: 14px 20px; border-radius: 6px; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.25); animation: slideIn .3s ease; min-width: 260px; }
.toast.success { border-left: 4px solid #28a745; }
.toast.error { border-left: 4px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── EMPTY STATE ───────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: #aaa; }

/* ── PAGE TRANSITION ───────────────────── */
.page-enter { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ────────────────────────── */
@media(max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { max-height: 320px; }
  .gallery-main { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: block; }
  .header-actions .btn { display: none; }
  .header-actions .header-user { display: none; }
  .slide-content { left: 24px; bottom: 40px; }
  .slide-title { font-size: 22px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { display: none; }
  .gallery-main { height: 260px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -240px; top: 0; height: 100vh; transition: left .3s; z-index: 200; }
  .admin-sidebar.open { left: 0; }
  .admin-hamburger { display: flex; }
  .admin-topbar { gap: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .search-section--compact .search-group,
  .search-section--compact .search-group--narrow,
  .search-section--compact .search-group--btn { flex: 1 1 100%; min-width: 0; }
  .search-section--compact .search-group--narrow { flex: 1 1 100%; }
  .search-section--compact .search-group--btn { flex: 1 1 100%; }
  .search-section--compact .search-group--btn .btn { width: 100%; }
}
@media(max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .slider { height: 380px; }
}

/* Zone combo */
.zone-combo { position: relative; display: flex; }
.zone-combo input { flex: 1; border-radius: 6px 0 0 6px !important; }
.zone-combo-arrow { border: 1px solid #ddd; border-left: none; background: #f5f5f5; padding: 0 10px; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 13px; color: #555; transition: background .15s; }
.zone-combo-arrow:hover { background: #eee; }
.zone-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 0 0 6px 6px; max-height: 200px; overflow-y: auto; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.1); margin: 0; padding: 4px 0; list-style: none; }
.zone-dropdown li { padding: 8px 14px; cursor: pointer; font-size: 14px; }
.zone-dropdown li:hover { background: #f0f4ff; color: var(--primary, #333); }

/* img-main-badge emoji only */
.img-main-badge { position: absolute; top: 3px; left: 3px; font-size: 14px; line-height: 1; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

.whatsapp-btn {
  display: flex; align-items: center; justify-content: center;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #25D366;
  transition: transform .2s;
  line-height: 0;
}
.whatsapp-btn:hover { background: transparent !important; transform: scale(1.15); }