/* ============================================
   REALTY MASTERZ — Premium Real Estate Mohali
   Professional Responsive Stylesheet v3.0
   ============================================ */



/* ===== CSS VARIABLES ===== */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #a07830;
  --dark: #0a0a0b;
  --dark-2: #111114;
  --dark-3: #18181d;
  --dark-4: #22222a;
  --dark-5: #2c2c38;
  --text: #e8e6e1;
  --text-muted: #9a9890;
  --text-dim: #6a6865;
  --white: #ffffff;
  --border: rgba(201,168,76,0.15);
  --border-light: rgba(255,255,255,0.07);
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: var(--dark-4);
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loadbar 1.4s ease-in-out infinite;
}

@keyframes loadbar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== CURSOR ===== */
.cursor, .cursor-follower {
  display: none;
}

@media (pointer: fine) and (min-width: 768px) {
  .cursor, .cursor-follower {
    display: block;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    transition: opacity 0.3s;
  }
  
  .cursor {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: translate(-50%, -50%);
  }
  
  .cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
  }
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .container {
    padding: 0 60px;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  height: auto;
  min-height: 70px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.33, 0.66, 0.66, 1);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 20px;
  min-height: 70px;
}

.nav-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
  padding: 15px 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-rm {
  color: var(--gold);
}

.logo-masterz {
  color: var(--text);
}

.nav-links {
  display: none;
  flex: 1;
  gap: 0;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 10px;
  }
}

.nav-link {
  padding: 8px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-block;
  }
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  z-index: 100;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MOBILE MENU ===== */
.nav-links.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu .nav-link {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu .nav-link::after {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 40px 80px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 0 60px;
    align-items: stretch;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: -100px;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: #6b7ae8;
  bottom: -50px;
  left: 10%;
  animation: float 20s ease-in-out infinite 1s;
}

.orb3 {
  width: 250px;
  height: 250px;
  background: #ff6b9d;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
    max-width: 580px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 80px;
  }

  .hero-content .hero-badge {
    align-self: flex-start;
  }

  .hero-content .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-content .hero-actions {
    justify-content: flex-start;
  }

  .hero-content .hero-stats {
    justify-content: flex-start;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-line {
  display: block;
}

.title-line.italic {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

@media (max-width: 500px) {
  .hero-actions {
    flex-direction: column;
  }
}

.btn-primary, .btn-secondary, .btn-outline {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  display: none;
}

@media (min-width: 600px) {
  .stat-divider {
    display: block;
  }
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
}

.stat-plus {
  font-size: 1.25rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-grid {
  display: none; /* hidden on mobile/tablet */
  gap: 16px;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    width: 420px;
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
    position: relative;
    bottom: auto;
    right: auto;
  }

  .img-card-1 {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .hero-image-grid {
    width: 480px;
  }
}

.img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 180px;
}

@media (min-width: 1024px) {
  .img-card {
    height: 160px;
  }

  .img-card-1 {
    height: 200px;
  }
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-card:hover img {
  transform: scale(1.05);
}

.img-card-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  display: none;
}

@media (min-width: 768px) {
  .scroll-hint {
    display: block;
  }
}

.scroll-hint span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.scroll-line {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scroll-animate 2s ease-in-out infinite;
}

@keyframes scroll-animate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===== REVEAL ANIMATIONS — Fixed: use .revealed class added by IntersectionObserver ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SECTIONS COMMON ===== */
section {
  position: relative;
  padding: 60px 20px;
}

@media (min-width: 768px) {
  section {
    padding: 100px 40px;
  }
}

@media (min-width: 1400px) {
  section {
    padding: 120px 60px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50px;
  border: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ===== PROPERTIES SECTION ===== */
.properties {
  background: var(--dark-2);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.33, 0.66, 0.66, 1);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  border-color: var(--border);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.property-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--dark-4);
}

@media (min-width: 768px) {
  .property-image {
    height: 280px;
  }
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}

.property-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .property-overlay {
  opacity: 1;
}

.quick-view {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.quick-view:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.property-fav {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.property-fav:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.property-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .property-body {
    padding: 24px;
  }
}

.property-type {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.property-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.property-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.property-features span {
  padding: 4px 8px;
  background: var(--dark-4);
  border-radius: var(--radius);
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.property-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.property-btn {
  padding: 8px 16px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.property-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.view-all-wrap {
  text-align: center;
}

/* ===== WHY US SECTION ===== */
.why-us {
  background: var(--dark);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 100px;
  }
}

.why-left {
  order: 2;
}

@media (min-width: 1024px) {
  .why-left {
    order: 1;
  }
}

.why-left .section-tag {
  justify-content: flex-start;
}

.why-left .section-title {
  text-align: left;
}

.why-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.why-list {
  margin-bottom: 40px;
}

.why-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.why-icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.why-item h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-right {
  order: 1;
}

@media (min-width: 1024px) {
  .why-right {
    order: 2;
  }
}

.why-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
}

@media (min-width: 768px) {
  .why-image-wrap {
    height: 500px;
  }
}

.why-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.why-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
}

@media (max-width: 767px) {
  .why-card {
    display: none;
  }
}

.why-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.why-card strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.why-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}

.testimonials-slider {
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.33, 0.66, 0.66, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 40px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 16px);
    margin-right: 32px;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 24px);
    margin-right: 36px;
  }
}

.testimonials-track:hover .testimonial-card {
  border-color: var(--border);
}

.testimonial-stars {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  margin-bottom: 2px;
}

.testimonial-author span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tnav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tnav-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.tnav-dots {
  display: flex;
  gap: 8px;
}

.tnav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tnav-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-light);
}

.footer-top {
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .footer-top {
    padding: 80px 40px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    gap: 80px;
  }
}

.footer-brand {
  order: 1;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-rera {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-bottom {
  padding: 30px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-bottom {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-legal {
    margin-top: 0;
  }
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: sticky;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--dark);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin: 12px;
}

.modal-content {
  padding: 20px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 120px 20px 80px;
  text-align: center;
  margin-top: 70px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 140px 40px 100px;
  }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-num {
    font-size: 1.5rem;
  }
  
  .property-name {
    font-size: 1.1rem;
  }
  
  .property-price {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .nav-container {
    gap: 20px;
    padding: 10px 0;
  }
  
  .nav-logo {
    font-size: 1.3rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== THEME: Always dark — ignore OS preference ===== */
/* Site is designed exclusively as a dark luxury theme */

/* ===== PRINT STYLES ===== */
@media print {
  nav, .whatsapp-float, .modal-overlay {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* ============================================================
   RESPONSIVE FIXES — RealtyMasterz v3.1
   Fixes: mobile menu toggle, testimonial slider width,
   missing modal styles, missing page-specific styles,
   search bar overflow, projects/about/contact layouts
   ============================================================ */

/* ===== BUG FIX 1: Mobile menu — was toggling .open but CSS used .mobile-menu =====
   JS adds/removes class "open". CSS only styled .mobile-menu.
   Solution: alias .nav-links.open to the same rules as .mobile-menu */
.nav-links.open {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex !important;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 999;
}

.nav-links.open .nav-link {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.nav-links.open .nav-link::after {
  display: none;
}

/* Mobile: hide desktop nav links by default */
@media (max-width: 899px) {
  .nav-links:not(.open) {
    display: none !important;
  }
}

/* ===== BUG FIX 2: Modal — .active not styled (JS uses .active, CSS used .open) ===== */
.modal-overlay.open,
.modal-overlay.active {
  display: flex;
}

/* ===== BUG FIX 3: Missing modal interior styles ===== */
.modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 480px) {
  .modal-img {
    height: 280px;
  }
}

.modal-body {
  padding: 24px;
}

.modal-type {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.modal-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.modal-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-detail strong {
  color: var(--white);
  font-size: 0.95rem;
}

.modal-detail span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.modal-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.btn-primary-sm {
  padding: 10px 20px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-primary-sm:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUG FIX 4: btn-dm and btn-call missing styles ===== */
.btn-dm,
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dm {
  background: #25d366;
  color: #fff;
}

.btn-dm:hover {
  background: #20bb5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-call {
  background: var(--gold);
  color: var(--dark);
}

.btn-call:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3);
}

/* ===== BUG FIX 5: Testimonial slider — hardcoded pixel width breaks mobile ===== */
/* JS uses cardW = 380 + 24 = 404px. Fix: make cards responsive via CSS variable */
.testimonials-slider {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 0;
  transition: transform 0.6s cubic-bezier(0.33, 0.66, 0.66, 1);
  will-change: transform;
}

/* On mobile, each card = 100% width. JS offset calculation synced via JS patch */
@media (max-width: 767px) {
  .testimonial-card {
    flex: 0 0 100%;
    margin-right: 0;
    padding: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 16px);
    margin-right: 32px;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 24px);
    margin-right: 36px;
  }
}

/* ===== BUG FIX 6: Breadcrumb — missing styles ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.breadcrumb a {
  color: var(--gold);
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

/* ===== BUG FIX 7: page-title, page-subtitle missing on inner pages ===== */
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-title em {
  font-style: italic;
  color: var(--gold);
}

.page-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BUG FIX 8: search-filter-bar overflows on mobile ===== */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 16px;
  flex: 1 1 200px;
  min-width: 0;
  transition: border-color 0.3s ease;
}

.search-bar-wrap:focus-within {
  border-color: var(--gold);
}

.search-bar-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  width: 100%;
  min-width: 0;
}

.search-bar-wrap input::placeholder {
  color: var(--text-dim);
}

.filter-select {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
  flex: 1 1 140px;
  min-width: 0;
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-select option {
  background: var(--dark-3);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.properties-page {
  background: var(--dark);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .properties-page {
    padding: 80px 40px;
  }
}

/* ===== BUG FIX 9: Projects page missing styles ===== */
.projects-section {
  background: var(--dark);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .projects-section {
    padding: 80px 40px;
  }
}

.projects-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .projects-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.project-card {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.proj-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .proj-img img {
  transform: scale(1.05);
}

.project-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status.ongoing {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.project-status.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.project-status.upcoming {
  background: rgba(107, 122, 232, 0.15);
  color: #818cf8;
  border: 1px solid rgba(107, 122, 232, 0.4);
}

.proj-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.proj-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.3;
}

.proj-loc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.proj-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.proj-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.proj-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proj-spec strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
}

.proj-spec span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--dark-5);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  transition: width 1s ease;
}

.inquiry-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

/* ===== BUG FIX 10: About page missing styles ===== */
.about-section {
  background: var(--dark);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .about-section {
    padding: 80px 40px;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 4px solid var(--dark);
}

@media (max-width: 480px) {
  .img-accent {
    display: none;
  }
}

.about-text .section-tag {
  display: inline-block;
  margin-bottom: 16px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cert-badge {
  padding: 10px 16px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-badge span {
  color: var(--gold);
  font-weight: 600;
}

/* Values grid */
.values-section {
  background: var(--dark-2);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .values-section {
    padding: 80px 40px;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

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

/* Timeline */
.history-section {
  background: var(--dark);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .history-section {
    padding: 80px 40px;
  }
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .history-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--dark);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-item h4 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1rem;
}

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

/* Team section */
.team-section {
  background: var(--dark-2);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .team-section {
    padding: 80px 40px;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-card-body {
  padding: 20px;
}

.team-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ===== BUG FIX 11: Contact page missing styles ===== */
.contact-section {
  background: var(--dark);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 80px 40px;
  }
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-page-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Contact form */
.contact-form-wrap {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .contact-form-wrap {
    padding: 40px 36px;
  }
}

.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-4);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select option {
  background: var(--dark-4);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-sans);
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #4ade80;
  font-size: 0.95rem;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* ===== BUG FIX 12: Floating card animation fix ===== */
.floating-card {
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== BUG FIX 13: Badge rent color — missing =====  */
.property-badge.rent {
  background: var(--dark-4);
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* ===== BUG FIX 14: Hero image grid overflow on mobile ===== */
@media (max-width: 1023px) {
  .hero-image-grid {
    display: none;
  }
}

/* ===== BUG FIX 15: CTA section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .cta-section {
    padding: 80px 40px;
  }
}

/* ===== BUG FIX 16: General touch targets — min 44px for mobile ===== */
@media (max-width: 768px) {
  .filter-btn,
  .property-btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-dm,
  .btn-call {
    min-height: 44px;
  }
  
  .tnav-btn {
    width: 48px;
    height: 48px;
  }
}

/* ===== BUG FIX 17: Prevent horizontal scroll from orbs ===== */
.hero-bg {
  overflow: hidden;
}

/* ===== BUG FIX 18: Footer grid on very small screens ===== */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== BUG FIX 19: Property detail page styles ===== */
.property-detail-section {
  background: var(--dark);
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .property-detail-section {
    padding: 80px 40px;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
  }
}

.detail-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .detail-gallery img {
    height: 480px;
  }
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.detail-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.detail-thumbs img:hover,
.detail-thumbs img.active {
  border-color: var(--gold);
  transform: scale(1.04);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-price-box {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.detail-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.detail-type {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.detail-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.detail-spec {
  text-align: center;
}

.detail-spec strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.detail-spec span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-actions .btn-dm,
.detail-actions .btn-call {
  justify-content: center;
  width: 100%;
}

.detail-desc h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.detail-desc p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.detail-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.detail-features-list span {
  padding: 6px 14px;
  background: var(--dark-4);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--dark);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 10;
}

/* Share buttons */
.share-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--dark-3);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ============================================================
   DESKTOP LAYOUT FIXES v3.2
   ============================================================ */

/* ===== Hero inner: 2-column layout on desktop ===== */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 120px 0 60px;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 0;
    min-height: 100vh;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-inner {
    padding: 140px 0 80px;
  }
}

/* ===== Fix orb3 float animation — was conflicting with translate(-50%,-50%) ===== */
.orb3 {
  animation: float3 18s ease-in-out infinite 2s !important;
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(30px); }
}

/* ===== Fix stat-num + stat-plus alignment on desktop ===== */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-plus {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

/* ===== Hero stats on desktop: horizontal inline strip ===== */
@media (min-width: 1024px) {
  .hero-stats {
    padding: 28px 32px;
    gap: 32px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
  }
}

/* ===== Fix nav desktop spacing (logo was too close to links) ===== */
@media (min-width: 900px) {
  .nav-container {
    padding: 20px 0;
  }

  .nav-links {
    justify-content: center;
  }
}

/* ===== Properties grid on desktop: consistent 3-col ===== */
@media (min-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* ===== Why-us section: better desktop proportions ===== */
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .why-image-wrap {
    height: 560px;
  }
}

/* ===== Section vertical rhythm on desktop ===== */
@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 56px;
  }

  .section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
  }
}

/* ===== Footer: enforce dark background regardless of OS theme ===== */
.footer,
.footer-top,
.footer-bottom {
  background: var(--dark-2) !important;
  color: var(--text) !important;
}

/* ===== Force dark background everywhere — prevent OS light mode bleed ===== */
html, body {
  background: var(--dark) !important;
  color: var(--text) !important;
}

/* ===== Testimonials: desktop shows 3 across properly ===== */
@media (min-width: 1024px) {
  .testimonials-slider {
    overflow: hidden;
  }

  .testimonial-card {
    padding: 36px;
  }
}

/* ===== Hero mobile: center-stack padding fix ===== */
@media (max-width: 1023px) {
  .hero-content {
    padding: 0;
  }
}

/* ===== Property card hover: ensure no overflow on desktop ===== */
.properties {
  overflow: hidden;
}

/* ===== Desktop: why-card floating-card visible ===== */
@media (min-width: 768px) {
  .why-card {
    display: flex;
  }
}



/* ============================================================
   PROPERTY DETAIL PAGE — Full CSS (Missing Styles Fix)
   ============================================================ */

/* ===== PROPERTY DETAIL HERO ===== */
.property-detail-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  margin-top: 70px;
}

@media (min-width: 768px) {
  .property-detail-hero {
    height: 560px;
  }
}

@media (min-width: 1024px) {
  .property-detail-hero {
    height: 640px;
  }
}

.property-detail-hero #heroImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-detail-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 11, 0.92) 0%,
    rgba(10, 10, 11, 0.4) 50%,
    rgba(10, 10, 11, 0.1) 100%
  );
}

.property-detail-hero .hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 32px;
}

@media (min-width: 768px) {
  .property-detail-hero .hero-info {
    padding: 32px 40px 48px;
  }
}

.property-detail-hero .breadcrumb {
  justify-content: flex-start;
  margin-bottom: 20px;
}

/* ===== PROPERTY DETAIL MAIN SECTION ===== */
.property-detail-main {
  background: var(--dark);
  padding: 48px 0 80px;
}

@media (min-width: 768px) {
  .property-detail-main {
    padding: 64px 0 100px;
  }
}

/* ===== PROPERTY DETAIL GRID (left + sidebar) ===== */
.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .property-detail-grid {
    grid-template-columns: 1fr 380px;
    gap: 48px;
  }
}

@media (min-width: 1280px) {
  .property-detail-grid {
    grid-template-columns: 1fr 420px;
    gap: 56px;
  }
}

/* ===== PROPERTY DETAIL LEFT ===== */
.property-detail-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

/* ===== DETAIL SECTION (card-like sections in left column) ===== */
.detail-section {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .detail-section {
    padding: 32px 28px;
  }
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

.detail-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== PROPERTY GALLERY (main image + thumbnails) ===== */
.property-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.property-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.property-gallery img:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

/* First image: full-width hero */
.property-gallery img:first-child {
  height: 300px;
  grid-column: 1 / -1;
}

@media (min-width: 480px) {
  .property-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .property-gallery img:first-child {
    grid-column: 1 / -1;
    height: 360px;
  }
  .property-gallery img {
    height: 180px;
  }
}

@media (min-width: 768px) {
  .property-gallery img:first-child {
    height: 420px;
  }
  .property-gallery img {
    height: 200px;
  }
}

/* ===== SPECS GRID ===== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 480px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.spec-card {
  background: var(--dark-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  transition: border-color 0.3s ease;
}

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

.spec-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.spec-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== FEATURE LIST (amenities) ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 560px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--dark-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.feature-item::before {
  content: '✓';
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-item:hover {
  border-color: var(--border);
  color: var(--text);
}

/* ===== PROPERTY SIDEBAR ===== */
.property-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .property-sidebar {
    position: sticky;
    top: 90px;
  }
}

.sidebar-card {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color 0.3s ease;
}

.sidebar-card:hover {
  border-color: var(--border);
}

.sidebar-price {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1.2;
}

.sidebar-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.sidebar-badge.rent {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.sidebar-cta-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btns .btn-dm,
.sidebar-btns .btn-call,
.sidebar-btns .btn-primary {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-btns .btn-dm svg,
.sidebar-btns .btn-call svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== AGENT CARD ===== */
.agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.agent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.agent-info strong {
  color: var(--white);
  font-size: 0.95rem;
  display: block;
}

.agent-info span {
  color: var(--gold);
  font-size: 0.78rem;
  display: block;
}

/* ===== SIMILAR PROPERTIES (bottom section grid fix) ===== */
@media (max-width: 767px) {
  .property-detail-main + section .properties-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .property-detail-main + section .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===== MOBILE: sidebar shows below content on small screens ===== */
@media (max-width: 1023px) {
  .property-detail-grid {
    grid-template-columns: 1fr;
  }

  .property-sidebar {
    position: static;
  }

  /* On mobile sidebar shows after left column, reorder so CTAs appear first */
  .property-sidebar {
    order: -1;
  }

  .property-detail-left {
    order: 1;
  }
}

/* Keep sidebar after content on tablet (more content first) */
@media (min-width: 768px) and (max-width: 1023px) {
  .property-sidebar {
    order: 1;
  }

  .property-detail-left {
    order: 0;
  }
}


/* ============================================================
   PROJECTS FULL PAGE — Missing & Broken CSS Fix
   ============================================================ */

/* Projects filter bar: wrap properly on mobile */
.projects-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Projects masonry grid: proper responsive columns */
.projects-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .projects-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 639px) {
  /* Featured card: full width + stacked on mobile */
  .project-full-card.featured {
    grid-column: span 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .project-full-card.featured .proj-img img {
    min-height: 240px !important;
  }

  .project-full-card.featured .proj-body {
    padding: 24px 20px !important;
  }

  .proj-name {
    font-size: 1.4rem !important;
  }

  .proj-specs {
    gap: 16px;
  }

  .proj-spec strong {
    font-size: 1.1rem !important;
  }

  .inquiry-btns {
    flex-direction: column;
  }

  .inquiry-btns .btn-dm,
  .inquiry-btns .btn-call {
    width: 100%;
    justify-content: center;
  }
}

/* Featured card: 2-col image+body on desktop */
@media (min-width: 640px) {
  .project-full-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-full-card.featured .proj-img {
    aspect-ratio: auto;
    min-height: 320px;
  }

  .project-full-card.featured .proj-img img {
    min-height: 320px;
  }

  .project-full-card.featured .proj-body {
    padding: 40px 36px;
  }
}

/* Project full card: image overflow fix */
.project-full-card .proj-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  height: auto;
  background: var(--dark-4);
  min-height: 0;
}

.project-full-card .proj-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-full-card:hover .proj-img img {
  transform: scale(1.04);
}

/* Proj body padding on non-featured cards */
.project-full-card:not(.featured) .proj-body {
  padding: 28px 24px;
}

/* Register strip responsive */
.register-strip {
  text-align: center;
}

.register-strip .inquiry-btns {
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .register-strip {
    padding: 32px 20px !important;
  }

  .register-strip h2 {
    font-size: 1.6rem !important;
  }

  .register-strip .inquiry-btns {
    flex-direction: column;
    align-items: center;
  }

  .register-strip .btn-dm,
  .register-strip .btn-call,
  .register-strip .btn-primary {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   GLOBAL MOBILE FIXES — Additional polish
   ============================================================ */

/* Ensure all inline styles on similar-properties section work on mobile */
@media (max-width: 767px) {
  /* Similar properties at bottom of property-detail */
  section[style*="grid-template-columns:repeat(3,1fr)"] .properties-grid,
  .properties-grid[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .properties-grid[style*="grid-template-columns:repeat(3,1fr)"],
  section .properties-grid[style] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Nearby grid mobile fix */
.nearby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  .nearby-grid {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumb: left-align on property detail hero */
.property-detail-hero .breadcrumb {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.7);
}

.property-detail-hero .breadcrumb a {
  color: var(--gold-light);
}

/* EMI calc row wrapping */
@media (max-width: 380px) {
  .emi-row {
    flex-direction: column;
    gap: 2px;
  }
}

/* Tag chips wrap fix */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Share row wrap fix */
.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.share-row .share-btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
  min-height: 40px;
}

/* Fix: project-status badge inside project-full-card position */
.project-full-card .proj-img .project-status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

/* Fix: inquiry-btns alignment */
.inquiry-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inquiry-btns .btn-dm,
.inquiry-btns .btn-call {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 120px;
}

/* Fix: similar properties section inline style grid override for mobile */
@media (max-width: 639px) {
  .properties-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Map iframe: responsive on all screens */
iframe {
  max-width: 100%;
}

/* Lightbox close button: visible and tappable on mobile */
.lightbox-close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3100;
}


/* Similar properties grid (property detail page) */
.properties-grid--similar {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .properties-grid--similar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .properties-grid--similar {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero info row on property detail hero */
.hero-info-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 540px) {
  .hero-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-info-row > div:last-child {
    text-align: left !important;
  }
}

/* ============================================================
   PROJECTS PAGE — Button size fix & View Full Project button
   ============================================================ */

/* btn-sm: compact version of btn-dm / btn-call for project cards */
.btn-sm {
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  gap: 6px !important;
  flex: 0 0 auto !important;   /* prevent stretch */
  min-height: unset !important;
  white-space: nowrap;
}

/* Override the flex:1 rule that was bloating inquiry buttons */
.inquiry-btns .btn-dm,
.inquiry-btns .btn-call {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* proj-view-btn: the gold outlined "View Full Project →" link */
.proj-view-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  margin-bottom: 14px;
  align-self: flex-start;
  text-decoration: none;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.proj-view-btn:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,168,76,0.25);
}

/* inquiry-btns inside proj-body: keep row layout on all sizes */
.proj-body .inquiry-btns {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mobile override — stack only on very small screens */
@media (max-width: 380px) {
  .proj-body .inquiry-btns {
    flex-direction: column;
  }

  .proj-body .inquiry-btns .btn-dm,
  .proj-body .inquiry-btns .btn-call {
    width: 100%;
    justify-content: center;
  }
}

/* Remove old conflicting mobile full-width btn rules for proj cards */
@media (max-width: 639px) {
  .project-full-card .inquiry-btns {
    flex-direction: row !important;
  }

  .project-full-card .inquiry-btns .btn-dm,
  .project-full-card .inquiry-btns .btn-call {
    width: auto !important;
  }
}

/* Register strip buttons - keep reasonable size */
.register-strip .btn-dm,
.register-strip .btn-call {
  flex: 0 0 auto !important;
  width: auto !important;
}
