/* ========================================
   ANKAA Residence — Dark Luxury Theme
   ======================================== */

:root {
  --bg-primary: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --accent: #c8a44e;
  --accent-light: #e0c673;
  --text: #f0f0f0;
  --text-muted: #8a8a8a;
  --border: #2a2a2a;
  --green: #34d399;
  --blue: #60a5fa;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.accent {
  color: var(--accent);
}

/* ---- SECTIONS ---- */
.section-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---- HERO HEADER ---- */
.hero-header {
  text-align: center;
  padding: 5rem 2rem 2.5rem;
}

.hero-label {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- FILTERS ---- */
.filters-section {
  padding-top: 2rem;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 2rem 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.filter-btn .count {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
}

.filter-btn.active .count {
  background: rgba(0, 0, 0, 0.2);
}

/* ---- PROPERTIES GRID ---- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- PROPERTY CARD ---- */
.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(200, 164, 78, 0.1);
  background: var(--bg-card-hover);
}

.property-card.hidden {
  display: none;
}

/* ---- CARD IMAGE / CAROUSEL ---- */
.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-track img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.card-image:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(200, 164, 78, 0.8);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dots .dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 10px;
}

/* No photo placeholder */
.no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 0.75rem;
}

.no-photo svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.no-photo span {
  font-size: 0.85rem;
  font-weight: 500;
}

.garage-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
}

/* ---- BADGES ---- */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-vacant {
  background: var(--green);
  color: #0a0a0a;
}

.badge-occupied {
  background: var(--blue);
  color: #0a0a0a;
}

.badge-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-type-commercial {
  background: rgba(200, 164, 78, 0.8);
  color: #0a0a0a;
}

.badge-type-garage {
  background: rgba(100, 100, 100, 0.8);
  color: var(--text);
}

/* ---- CARD BODY ---- */
.card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.card-location {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  background: rgba(200, 164, 78, 0.1);
  border: 1px solid rgba(200, 164, 78, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* ---- CARD FOOTER ---- */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.card-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  flex: 1;
}

.card-voir-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.card-voir-btn:hover {
  background: var(--accent);
  color: #111;
  transform: scale(1.05);
}

.dpe-badge {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dpe-a { background: #319834; color: white; }
.dpe-b { background: #33a357; color: white; }
.dpe-c { background: #cbdb2a; color: #333; }
.dpe-d { background: #f0e50c; color: #333; }
.dpe-e { background: #f0b40c; color: #333; }
.dpe-f { background: #eb6c27; color: white; }
.dpe-g { background: #d7221f; color: white; }
.dpe-nc { background: var(--border); color: var(--text-muted); }

.status {
  font-size: 0.82rem;
  font-weight: 600;
}

.status-vacant {
  color: var(--green);
}

.status-occupied {
  color: var(--blue);
}

/* ---- BUILDING INFO ---- */
.building-info {
  padding: 2rem 0 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.info-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- PROXIMITY GRID ---- */
.proximity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.proximity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.proximity-item:hover {
  border-color: var(--accent);
}

.proximity-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.proximity-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.proximity-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .proximity-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* ---- CONTACT ---- */
.contact-section {
  padding-bottom: 4rem;
}

.contact-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }
.property-card:nth-child(7) { animation-delay: 0.7s; }
.property-card:nth-child(8) { animation-delay: 0.8s; }
.property-card:nth-child(9) { animation-delay: 0.9s; }
.property-card:nth-child(10) { animation-delay: 1.0s; }

.property-card {
  cursor: pointer;
}

/* ========================================
   DETAIL VIEW
   ======================================== */
.detail-hidden {
  display: none !important;
}

#detail-view {
  padding-top: 20px;
  min-height: 100vh;
}

.detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.detail-back svg {
  width: 18px;
  height: 18px;
}

.detail-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Detail Gallery */
.detail-gallery {
  margin-bottom: 2.5rem;
}

.detail-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}

.detail-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.detail-carousel .carousel-track img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Thumbnails */
.detail-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.detail-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, outline 0.2s;
  flex-shrink: 0;
}

.detail-thumbnails img.active,
.detail-thumbnails img:hover {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.detail-carousel .carousel-btn {
  opacity: 0;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
}

.detail-carousel:hover .carousel-btn {
  opacity: 1;
}

/* Fullscreen button */
.fullscreen-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.85);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10001;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.lightbox-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.detail-carousel .carousel-dots .dot {
  width: 8px;
  height: 8px;
}

.detail-carousel .carousel-dots .dot.active {
  width: 24px;
}

/* Detail Header */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.detail-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.detail-badge.vacant {
  background: var(--green);
  color: #0a0a0a;
}

.detail-badge.occupied {
  background: var(--blue);
  color: #0a0a0a;
}

#detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.detail-location {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}

.detail-price-box {
  text-align: right;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 220px;
}

.detail-price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.detail-price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.detail-charges {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.detail-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 800px;
}

/* Detail tags */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.detail-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(200, 164, 78, 0.12);
  color: var(--accent);
  border: 1px solid rgba(200, 164, 78, 0.25);
}

/* Specs */
.detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.spec-item:hover {
  border-color: var(--accent);
}

.spec-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}

.spec-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.spec-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Detail table */
.detail-table-section {
  margin-bottom: 2.5rem;
}

.detail-table-section h3,
.detail-charges-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-charges-section {
  margin-bottom: 2.5rem;
}

.charges-list {
  list-style: none;
  padding: 0;
}

.charges-list li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.charges-list li::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.6rem;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table tr {
  border-bottom: 1px solid var(--border);
}

.detail-table td {
  padding: 0.9rem 0;
  font-size: 0.92rem;
}

.detail-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.detail-table td:last-child {
  font-weight: 600;
}

/* DPE + GES row */
.dpe-ges-row {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}

.dpe-ges-row > div {
  flex: 1;
}

/* DPE visual */
.detail-dpe-section {
  margin-bottom: 0;
}

.detail-dpe-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.dpe-visual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dpe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s;
  opacity: 0.25;
}

.dpe-bar-a { background: #319834; width: 30%; }
.dpe-bar-b { background: #33a357; width: 40%; }
.dpe-bar-c { background: #cbdb2a; width: 50%; color: #333; }
.dpe-bar-d { background: #f0e50c; width: 60%; color: #333; }
.dpe-bar-e { background: #f0b40c; width: 70%; }
.dpe-bar-f { background: #eb6c27; width: 80%; }
.dpe-bar-g { background: #d7221f; width: 90%; }

.dpe-bar.active {
  opacity: 1;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  transform: scaleY(1.15);
}

.dpe-consumption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* GES visual */
.detail-ges-section {
  margin-bottom: 0;
}

.detail-ges-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ges-visual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ges-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s;
  opacity: 0.25;
}

.ges-bar-a { background: #f2e6ff; width: 30%; color: #6b21a8; }
.ges-bar-b { background: #dab4f5; width: 40%; color: #5b21a8; }
.ges-bar-c { background: #c084fc; width: 50%; }
.ges-bar-d { background: #a855f7; width: 60%; }
.ges-bar-e { background: #9333ea; width: 70%; }
.ges-bar-f { background: #7e22ce; width: 80%; }
.ges-bar-g { background: #581c87; width: 90%; }

.ges-bar.active {
  opacity: 1;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  transform: scaleY(1.15);
}

.ges-consumption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Map */
.detail-map-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.detail-map-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-map {
  border-radius: var(--radius);
  overflow: hidden;
}

.map-address {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streetview-link {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.streetview-link:hover {
  opacity: 0.8;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .nav-center {
    display: none;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .filters {
    padding: 0 1rem 2rem;
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-price-box {
    text-align: left;
    min-width: unset;
    width: 100%;
  }

  .detail-carousel {
    aspect-ratio: 16 / 10;
  }

  .detail-thumbnails img {
    width: 60px;
    height: 45px;
  }

  #detail-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.6rem;
  }

  .card-body {
    padding: 1rem;
  }

  .detail-container {
    padding: 1rem;
  }

  .detail-specs {
    grid-template-columns: 1fr 1fr;
  }
}
