/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: #040812; color: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #040812; }
::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 3px; }

/* ===== SHADOWS & GLOW ===== */
.shadow-gold { box-shadow: 0 4px 24px rgba(201,168,76,0.35); }
.shadow-gold-lg { box-shadow: 0 8px 40px rgba(201,168,76,0.5); }

/* ===== GLASSMORPHISM ===== */
.glass-header {
  background: rgba(4,8,18,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.glass-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.glass-btn:hover { background: rgba(255,255,255,0.10); }
.glass-mobile-menu {
  background: rgba(4,8,18,0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.glass-dark {
  background: rgba(10,10,26,0.97);
  backdrop-filter: blur(24px);
}

/* ===== NAV LINKS ===== */
.nav-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(135deg, #C9A84C, #E8C76A);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #E8C76A; }
.nav-link:hover::after { width: 100%; left: 0; }

.mobile-nav-link {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.03);
}
.mobile-nav-link:hover {
  background: rgba(201,168,76,0.1);
  color: #E8C76A;
  padding-right: 1.5rem;
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== HERO IMAGES ===== */
.hero-images-strip {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1613977257363-707ba9348227?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

/* ===== SCROLL DOT ===== */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
}

/* ===== SEARCH BAR ===== */
.search-field {
  background: rgba(255,255,255,0.05);
  padding: 14px 18px;
  transition: background 0.2s;
}
.search-field:hover { background: rgba(255,255,255,0.08); }
.search-field:first-child { border-radius: 16px 0 0 16px; }
.search-field:last-child { border-radius: 0 16px 16px 0; }
@media (max-width: 639px) {
  .search-field:first-child, .search-field:last-child { border-radius: 0; }
  .search-field:first-child { border-radius: 16px 16px 0 0; }
  .search-field:last-child { border-radius: 0 0 16px 16px; }
}
.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  font-weight: 500;
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-input option { background: #0F1B35; color: #fff; }

/* ===== STATS ===== */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: all 0.4s ease;
}
.stat-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-4px);
}

/* ===== PROPERTY CARDS ===== */
.property-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}
.property-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.1);
}
.property-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.property-card:hover .property-img-wrap img {
  transform: scale(1.08);
}
.property-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.3);
  color: #E8C76A;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.property-badge.new {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.4);
  color: #4ade80;
}
.heart-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  background: rgba(10,10,26,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}
.heart-btn:hover { transform: scale(1.15); border-color: rgba(239,68,68,0.5); }
.heart-btn.active { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.5); }
.heart-btn svg { transition: all 0.3s ease; }
.heart-btn.active svg { fill: #ef4444; stroke: #ef4444; }

.compare-toggle-btn {
  position: absolute;
  top: 58px;
  left: 14px;
  width: 36px;
  height: 36px;
  background: rgba(10,10,26,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  color: #fff;
}
.compare-toggle-btn:hover { transform: scale(1.15); border-color: rgba(201,168,76,0.5); color: #E8C76A; }
.compare-toggle-btn.active { background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.5); color: #E8C76A; }

.property-body { padding: 1.25rem 1.25rem 1.5rem; }
.property-price {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #C9A84C, #E8C76A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.property-price-sub { font-size: 0.7rem; color: rgba(255,255,255,0.4); font-weight: 500; margin-top: 2px; }
.property-title { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 0.35rem; line-height: 1.3; }
.property-location { font-size: 0.8rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 4px; margin-bottom: 1rem; }
.property-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 1rem; }
.property-specs { display: flex; gap: 1rem; }
.spec-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: rgba(255,255,255,0.55); font-weight: 500; }
.spec-icon { font-size: 0.9rem; }
.property-cta {
  width: 100%;
  margin-top: 1.1rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: #E8C76A;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.property-cta:hover {
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

/* ===== SERVICES ===== */
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-6px);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-line { width: 48px; }
.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all 0.4s;
}
.service-card:hover .service-icon {
  background: rgba(201,168,76,0.18);
  box-shadow: 0 0 24px rgba(201,168,76,0.2);
}

/* ===== TESTIMONIALS ===== */
.testimonials-track-wrapper { position: relative; }
.testimonials-track { will-change: transform; }
.testimonial-card {
  flex-shrink: 0;
  width: calc(100% / 1);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s ease;
}
@media (min-width: 768px) { .testimonial-card { width: calc(50% - 12px); } }
@media (min-width: 1024px) { .testimonial-card { width: calc(33.333% - 16px); } }
.testimonial-card:hover {
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
}
.testimonial-stars { color: #E8C76A; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201,168,76,0.3); }
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* Dots */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: #C9A84C;
  width: 24px;
  border-radius: 4px;
}

/* ===== CONTACT ===== */
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.55); }
.form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  outline: none;
}
.form-input:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.06);
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input option { background: #0F1B35; }

/* ===== FOOTER ===== */
.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.35);
  color: #E8C76A;
  transform: translateY(-3px);
}
.footer-link {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}
.footer-link:hover { color: #E8C76A; padding-right: 6px; }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  z-index: 100;
  transition: all 0.3s ease;
  animation: pulseWhatsapp 3s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
}
@keyframes pulseWhatsapp {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}
.whatsapp-tooltip {
  position: absolute;
  left: 68px;
  background: rgba(10,10,26,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; }

/* ===== WISHLIST PANEL ===== */
.wishlist-panel { border-left: 1px solid rgba(255,255,255,0.08); }
.wishlist-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 0.875rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.3s;
}
.wishlist-item:hover { border-color: rgba(201,168,76,0.2); }
.wishlist-item img { width: 72px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wishlist-item-price { font-size: 0.8rem; color: #E8C76A; font-weight: 700; }
.wishlist-item-loc { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.wishlist-remove { flex-shrink: 0; width: 28px; height: 28px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: #f87171; font-size: 0.8rem; }
.wishlist-remove:hover { background: rgba(239,68,68,0.2); }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HAMBURGER ANIMATION ===== */
.menu-open #hamburger span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-open #hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open #hamburger span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== PROPERTY CARD ENTER ANIMATION ===== */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-enter {
  animation: cardEnter 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ===== TOAST NOTIFICATION ===== */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,26,0.95);
  border: 1px solid rgba(201,168,76,0.3);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 999;
  backdrop-filter: blur(16px);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== WISHLIST PANEL - FIXED ===== */
.wishlist-panel {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  transform: translateX(-100%);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.wishlist-panel.panel-hidden {
  transform: translateX(-100%);
}
.wishlist-panel:not(.panel-hidden) {
  transform: translateX(0);
}
.wishlist-view-btn {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #E8C76A;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  transition: color 0.2s;
}
.wishlist-view-btn:hover { color: #F0D98A; }

/* ===== IMG COUNT BADGE ===== */
.img-count-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(4,8,18,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ===== PROPERTY MODAL ROOT ===== */
.property-modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.property-modal-root.hidden { display: none; }
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}

/* ===== DETAIL INNER (the sheet) ===== */
.detail-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 95vh;
  background: #080E1F;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  scrollbar-width: thin;
  scrollbar-color: #C9A84C #080E1F;
}
.detail-inner.detail-open { transform: translateY(0); }

/* desktop: center panel */
@media (min-width: 1024px) {
  .property-modal-root {
    align-items: center;
  }
  .detail-inner {
    max-width: 1200px;
    max-height: 92vh;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(40px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  }
  .detail-inner.detail-open { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== CLOSE BTN ===== */
.detail-close-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 300;
  width: 40px; height: 40px;
  background: rgba(4,8,18,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.detail-close-btn:hover { background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); }
@media (min-width: 1024px) {
  .detail-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
  }
}

/* ===== GALLERY ===== */
.detail-gallery { display: flex; flex-direction: column; gap: 8px; }
.gallery-main {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
}
@media (min-width: 768px) { .gallery-main { height: 420px; border-radius: 24px 24px 0 0; } }
@media (min-width: 1024px) { .gallery-main { height: 480px; border-radius: 24px 24px 0 0; } }
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-overlay-top {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  z-index: 5;
}
.gallery-badge {
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.3);
  color: #E8C76A;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
}
.gallery-badge.new {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.4);
  color: #4ade80;
}
.gallery-heart {
  width: 40px; height: 40px;
  background: rgba(10,10,26,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  color: white;
}
.gallery-heart:hover { transform: scale(1.1); }
.gallery-heart.active { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(10,10,26,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
  color: white; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 5;
}
.gallery-prev { right: 14px; }
.gallery-next { left: 14px; }
.gallery-arrow:hover { background: rgba(201,168,76,0.25); border-color: rgba(201,168,76,0.5); }
.gallery-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(10,10,26,0.8); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: white; font-size: 0.75rem; font-weight: 600;
  padding: 4px 14px; border-radius: 50px; z-index: 5;
}
.gallery-thumbs {
  display: flex; gap: 6px; padding: 0 16px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex-shrink: 0;
  width: 72px; height: 52px;
  border-radius: 10px;
  background-size: cover; background-position: center;
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s;
  opacity: 0.6;
}
.gallery-thumb.active, .gallery-thumb:hover {
  border-color: #C9A84C; opacity: 1;
}

/* ===== DETAIL BODY ===== */
.detail-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .detail-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}
.detail-main-col {
  flex: 1;
  padding: 24px 20px;
  min-width: 0;
}
@media (min-width: 1024px) { .detail-main-col { padding: 32px 36px; } }

/* ===== DETAIL HEADER ===== */
.detail-header-section {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.detail-type-tag {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: #E8C76A; font-size: 0.75rem; font-weight: 700;
  padding: 3px 12px; border-radius: 50px;
}
.detail-city-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 0.75rem; font-weight: 600;
  padding: 3px 12px; border-radius: 50px;
}
.detail-title {
  font-size: 1.6rem; font-weight: 900; line-height: 1.2;
  margin: 8px 0 4px;
}
@media (min-width: 768px) { .detail-title { font-size: 2rem; } }
.detail-area { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.detail-price {
  font-size: 1.75rem; font-weight: 900;
  background: linear-gradient(135deg, #C9A84C, #E8C76A);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.detail-price-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ===== SPECS GRID ===== */
.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .detail-specs-grid { grid-template-columns: repeat(6,1fr); } }
.detail-spec-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; transition: all 0.3s;
}
.detail-spec-item:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.2);
}
.detail-spec-icon { font-size: 1.2rem; }
.detail-spec-val { font-size: 1rem; font-weight: 800; color: white; }
.detail-spec-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ===== DETAIL SECTIONS ===== */
.detail-section { margin-bottom: 28px; }
.detail-section-title {
  font-size: 1.1rem; font-weight: 800;
  color: white; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.detail-section-title::before {
  content: ''; display: block;
  width: 4px; height: 18px;
  background: linear-gradient(135deg, #C9A84C, #E8C76A);
  border-radius: 2px;
}
.detail-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  line-height: 1.9;
}
.detail-features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 640px) { .detail-features-grid { grid-template-columns: repeat(3,1fr); } }
.detail-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 9px 12px;
}

/* ===== MAP ===== */
.detail-map-wrap { position: relative; border-radius: 18px; overflow: hidden; }
.detail-map {
  height: 280px; width: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .detail-map { height: 340px; } }
.map-open-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 0.8rem; font-weight: 600;
  color: #E8C76A; text-decoration: none;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 7px 16px; border-radius: 50px;
  transition: all 0.2s;
}
.map-open-btn:hover { background: rgba(201,168,76,0.2); }

/* ===== RELATED ===== */
.related-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3,1fr); } }
.related-card {
  border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; transition: all 0.3s;
}
.related-card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-3px);
}
.related-img {
  height: 110px; background-size: cover; background-position: center;
  position: relative;
}
.related-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,10,26,0.8); backdrop-filter: blur(8px);
  color: #E8C76A; font-size: 0.68rem; font-weight: 700;
  padding: 2px 9px; border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.25);
}
.related-body { padding: 10px 12px; }
.related-price { font-size: 0.85rem; font-weight: 800; color: #E8C76A; margin-bottom: 2px; }
.related-title { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-loc { font-size: 0.7rem; color: rgba(255,255,255,0.4); }

/* ===== SIDEBAR ===== */
.detail-sidebar {
  width: 100%;
  padding: 0 20px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 1024px) {
  .detail-sidebar {
    width: 320px; flex-shrink: 0;
    padding: 32px 28px 32px 0;
    position: sticky; top: 0;
    max-height: 92vh; overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
}
.sidebar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 20px;
}
.sidebar-title { font-size: 1rem; font-weight: 800; margin-bottom: 16px; }
.agent-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.agent-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201,168,76,0.3); }
.agent-name { font-size: 0.9rem; font-weight: 700; }
.agent-title { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.agent-rating { font-size: 0.75rem; color: #E8C76A; margin-top: 2px; }
.agent-rating span { color: rgba(255,255,255,0.6); }
.sidebar-price-box {
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
}
.sidebar-price { font-size: 1.4rem; font-weight: 900; background: linear-gradient(135deg,#C9A84C,#E8C76A); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.sidebar-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: 14px;
  font-family: 'Cairo',sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.3s; margin-bottom: 8px;
}
.sidebar-btn-wa { background: #25D366; color: white; }
.sidebar-btn-wa:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.sidebar-btn-call { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: white; }
.sidebar-btn-call:hover { background: rgba(255,255,255,0.14); }
.sidebar-btn-share { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25); color: #E8C76A; margin-bottom: 0; }
.sidebar-btn-share:hover { background: rgba(201,168,76,0.18); }

.sidebar-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 6px 0; overflow: hidden;
}
.sidebar-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.sidebar-info-row:last-child { border-bottom: none; }
.sidebar-info-row:hover { background: rgba(255,255,255,0.03); }
.sidebar-info-row span:first-child { color: rgba(255,255,255,0.45); }
.sidebar-info-row span:last-child { font-weight: 600; color: rgba(255,255,255,0.85); }

/* ===== VIRTUAL TOUR PARALLAX ===== */
.virtual-tour-container {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  padding: 2rem;
}

.parallax-gallery {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  cursor: grab;
  background: #000;
}

.parallax-gallery:active { cursor: grabbing; }

.parallax-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1);
  transform: scale(1);
}

.parallax-layer.active {
  opacity: 1;
  animation: parallaxZoom 0.6s ease-out forwards;
}

@keyframes parallaxZoom {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.parallax-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.parallax-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.parallax-counter {
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #C9A84C, #E8C76A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parallax-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.parallax-nav {
  display: flex;
  gap: 1rem;
}

.parallax-btn {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  color: #E8C76A;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.5);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

.parallax-btn:active { transform: scale(0.95); }

@media (max-width: 640px) {
  .parallax-gallery { height: 280px; }
  .parallax-controls { justify-content: center; }
  .parallax-info { text-align: center; }
}

/* ============================================================
   NEW FEATURES v3 CSS
   ============================================================ */

/* ===== SKELETON LOADER ===== */
.skeleton-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
}
.skeleton-img {
  height: 220px;
  width: 100%;
}
.skeleton-body { padding: 1.25rem; }
.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
}
.skeleton-line:first-child { height: 22px; border-radius: 6px; }

@keyframes shimmerAnim {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(201,168,76,0.12) 40%,
    rgba(232,199,106,0.18) 50%,
    rgba(201,168,76,0.12) 60%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 800px 100%;
  animation: shimmerAnim 1.6s infinite linear;
}

/* ===== IMAGE FADE IN ===== */
.property-img-wrap img,
.gallery-main img {
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.img-loading { opacity: 0 !important; }
.img-loaded { opacity: 1 !important; }

/* ===== SORT BAR ===== */
.sort-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sort-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  font-weight: 600;
}
.sort-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.55);
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.sort-btn:hover { border-color: rgba(201,168,76,0.3); color: #E8C76A; }
.sort-btn.active {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.45);
  color: #E8C76A;
}

/* Active filter tags */
.active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: #E8C76A;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px;
}
.filter-tag-x {
  background: none; border: none; color: inherit;
  cursor: pointer; font-size: 0.7rem; padding: 0; line-height: 1;
}
.reset-filters-btn {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  background: none; border: none; cursor: pointer;
  font-family: 'Cairo', sans-serif;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s;
}
.reset-filters-btn:hover { color: #E8C76A; }

/* ===== FILTER DRAWER BTN ===== */
.filter-drawer-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  padding: 8px 16px; border-radius: 50px;
  cursor: pointer; transition: all 0.3s;
  white-space: nowrap;
}
.filter-drawer-btn:hover {
  border-color: rgba(201,168,76,0.4);
  color: #E8C76A;
  background: rgba(201,168,76,0.08);
}
.filter-active-dot {
  position: absolute;
  top: 4px; left: 4px;
  width: 8px; height: 8px;
  background: #E8C76A;
  border-radius: 50%;
  border: 2px solid #080E1F;
}

/* ===== ADVANCED FILTER DRAWER ===== */
.filter-drawer {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  transform: translateX(0);
}
.filter-drawer-hidden {
  transform: translateX(100%);
}

.fd-group { display: flex; flex-direction: column; gap: 12px; }
.fd-label {
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: space-between;
}
.fd-range-val {
  color: #E8C76A; font-size: 0.75rem; font-weight: 600;
}

/* Type / City buttons */
.fd-type-btns, .fd-city-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.fd-type-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  padding: 7px 14px; border-radius: 50px;
  cursor: pointer; transition: all 0.2s;
}
.fd-type-btn:hover { border-color: rgba(201,168,76,0.35); color: #E8C76A; }
.fd-type-btn.active {
  background: rgba(201,168,76,0.18);
  border-color: #C9A84C; color: #E8C76A;
}

/* Number buttons (beds/baths) */
.fd-num-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-num-btn {
  width: 52px; height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  border-radius: 12px; cursor: pointer;
  transition: all 0.2s; display: flex;
  align-items: center; justify-content: center;
}
.fd-num-btn:hover { border-color: rgba(201,168,76,0.35); color: #E8C76A; }
.fd-num-btn.active {
  background: rgba(201,168,76,0.18);
  border-color: #C9A84C; color: #E8C76A;
}

/* Dual range slider */
.fd-dual-range {
  position: relative;
  height: 36px;
  display: flex; align-items: center;
}
.fd-range {
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.fd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: linear-gradient(135deg,#C9A84C,#E8C76A);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(201,168,76,0.5);
  transition: transform 0.2s;
}
.fd-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.fd-range::-moz-range-thumb {
  width: 20px; height: 20px;
  background: linear-gradient(135deg,#C9A84C,#E8C76A);
  border-radius: 50%; cursor: pointer;
  pointer-events: all; border: none;
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
}
.fd-dual-range::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  z-index: 0;
}
.fd-range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* ===== RECENTLY VIEWED ===== */
.rv-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.rv-icon { font-size: 1.4rem; }
.rv-title { font-size: 1rem; font-weight: 800; }
.rv-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.rv-clear-btn {
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  background: none; border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px; border-radius: 50px;
  cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
}
.rv-clear-btn:hover { border-color: rgba(239,68,68,0.4); color: #f87171; }
.rv-track-wrap { overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.rv-track-wrap::-webkit-scrollbar { display: none; }
.rv-track {
  display: flex; gap: 12px;
  width: max-content;
}
.rv-card {
  width: 200px; flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all 0.3s;
}
.rv-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.rv-img {
  height: 110px;
  background-size: cover; background-position: center;
  position: relative;
}
.rv-type {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,10,26,0.85); backdrop-filter: blur(8px);
  color: #E8C76A; font-size: 0.68rem; font-weight: 700;
  padding: 2px 9px; border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.25);
}
.rv-info { padding: 10px 12px; }
.rv-price { font-size: 0.85rem; font-weight: 800; color: #E8C76A; margin-bottom: 3px; }
.rv-name { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-loc { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ===== STATUS BADGE ===== */
.status-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 5px;
  backdrop-filter: blur(10px);
}
.status-available {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80;
}
.status-reserved {
  background: rgba(251,146,60,0.15);
  border: 1px solid rgba(251,146,60,0.35);
  color: #fb923c;
}
.status-dot {
  width: 6px; height: 6px;
  background: #4ade80; border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ===== SHARE CARD BUTTON ===== */
.share-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: 'Cairo', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  padding: 7px 14px; border-radius: 10px;
  cursor: pointer; transition: all 0.3s;
  margin-top: 8px; width: 100%;
  justify-content: center;
}
.share-card-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
  color: #E8C76A;
  transform: translateY(-1px);
}

/* ============================================================
   360° PANORAMA VIEWER CSS
   ============================================================ */

/* Section title badge */
.tour360-live-badge {
  display: inline-flex; align-items: center;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.35);
  color: #f87171;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 10px; border-radius: 50px;
  margin-right: 10px;
  letter-spacing: 0.05em;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Viewer wrap */
.tour360-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #040812;
  border: 1px solid rgba(255,255,255,0.08);
  user-select: none;
}
@media (min-width: 768px) { .tour360-wrap { height: 520px; } }
@media (min-width: 1024px) { .tour360-wrap { height: 560px; } }

/* Canvas fills the wrap */
.tour360-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Overlay UI */
.tour360-overlay-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Drag hint */
.tour360-hint {
  position: absolute;
  bottom: 60px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(4,8,18,0.75); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem; font-weight: 600;
  font-family: 'Cairo', sans-serif;
  padding: 8px 18px; border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  animation: hintFade 4s ease forwards;
}
.tour360-hint.hidden { display: none; }
@keyframes hintFade {
  0%,60% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* Controls */
.tour360-controls {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 6px;
  pointer-events: all;
}
.t360-btn {
  width: 38px; height: 38px;
  background: rgba(4,8,18,0.8); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; border-radius: 10px;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.t360-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.5);
  color: #E8C76A;
}
.t360-fs { font-size: 0.85rem; }

/* Compass */
.tour360-compass {
  position: absolute;
  top: 14px; left: 14px;
  width: 46px; height: 46px;
  background: rgba(4,8,18,0.8); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.compass-needle {
  width: 2px; height: 16px;
  background: linear-gradient(to bottom, #ef4444 50%, rgba(255,255,255,0.3) 50%);
  border-radius: 1px;
  transform-origin: bottom center;
  transition: transform 0.1s linear;
  position: absolute;
  top: 7px;
}
.compass-n {
  position: absolute;
  top: 3px;
  font-size: 0.55rem; font-weight: 800;
  color: #ef4444; font-family: 'Inter', sans-serif;
}

/* Loading overlay */
.tour360-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(4,8,18,0.9);
  gap: 16px;
}
.tour360-loading.hidden { display: none; }
.t360-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin360 0.8s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }
.tour360-loading p {
  font-family: 'Cairo', sans-serif;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* Error state */
.tour360-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(4,8,18,0.85);
  gap: 8px;
}
.t360-err-icon { font-size: 3rem; }
.tour360-error p {
  font-family: 'Cairo', sans-serif;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem; font-weight: 600;
}
.t360-err-sub { color: rgba(255,255,255,0.35) !important; font-size: 0.8rem !important; }

/* 360 badge on property cards */
.badge-360 {
  position: absolute;
  top: 50px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(4,8,18,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.5);
  color: #E8C76A;
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 10px; border-radius: 50px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
  animation: badge360Glow 3s ease-in-out infinite;
}
@keyframes badge360Glow {
  0%,100% { box-shadow: 0 0 8px rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 20px rgba(201,168,76,0.6); }
}

/* Fullscreen mode */
.tour360-wrap:fullscreen { border-radius: 0; height: 100vh; }
.tour360-wrap:-webkit-full-screen { border-radius: 0; height: 100vh; }
