/* ===========================
   style.css — Candorra Asset
   =========================== */

/* --- Variables --- */
:root{
  --primary: #9a8f2f;
  --primary-dark: #7a7123;
  --text: #15202b;
  --muted: #6b7280;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(18,22,26,0.12);
}
/* === Logo Styling === */
.logo {
  height: 40px; /* Reduced from 50px */
  width: 40px; /* Fixed width to prevent distortion */
  object-fit: contain;
  display: block;
  border-radius: 10px; /* Changed from 100% */
  background: #ffffff;
}



/* === Logo Styling === */
.brand {
  display: flex;
  align-items: center;
}

.brand span {
  font-size: 1.2rem; /* Slightly smaller */
  font-weight: 700;
  color: #222;
  font-family: 'Playfair Display', serif;
}


/* --- Base --- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* Language Selector */
.language-selector {
    margin-left: 20px;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--primary);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(154, 143, 47, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .language-selector select {
        width: 100%;
    }
}


/* Container helper */
.container{
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Screen-reader only helper */
.sr-only{position:absolute!important;height:1px;width:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* --- Header / Nav --- */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:60;
  transition:background .25s ease, box-shadow .25s ease;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  height: 62px;
  padding: 0 50px;
}

.site-header.scrolled{
  box-shadow: var(--shadow);
  background: #ffffff;
}

.nav-inner{
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
  width: 100%;
  height: 100%;
}

/* brand */
.brand{
  font-family: "Playfair Display", serif;
  font-weight:700;
  font-size:1.1rem;
  color:var(--text);
  text-decoration:none;
}

/* nav */
.main-nav ul{
  display:flex;
  gap:28px;
  list-style:none;
  margin:0;
  padding:0;
  font-weight: 700;
}
.main-nav li{
  font-weight: 700;
}
.main-nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:500;
}
.main-nav a:hover{color:var(--primary)}

/* auth buttons */
.auth-btns{
  display:flex;
  gap:12px;
  align-items:center;
}
.btn{
  font-weight:600;
  border-radius:8px;
  padding:8px 14px;
  border:none;
  cursor:pointer;
  transition:all .18s ease;
  font-size:0.95rem;
}

/* Login - outline */
.login-btn{
  background:transparent;
  color:var(--primary);
  border:1px solid var(--primary);
}
.login-btn:hover{
  background:var(--primary);
  color:#fff;
  transform:translateY(-2px);
}

/* Sign up - filled */
.signup-btn{
  background:var(--primary);
  color:#fff;
  border:1px solid transparent;
}
.signup-btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}
.signup-btn:active{transform:scale(.98)}

/* Mobile menu toggle */
.menu-toggle{
  display:none;
  background:transparent;
  border:none;
  font-size:20px;
  cursor:pointer;
}

/* --- Hero --- */
.hero{
  min-height: 86vh;
  position:relative;
  display:flex;
  align-items:flex-start;
  margin-top:70px;
  background-image: url('images/hero.png');
  background-size:cover;
  background-position:center;
  color:#fff;
  overflow:visible;
}

/* dark overlay for readability */
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 10%, rgba(0,0,0,0.45) 60%);
  z-index:0;
}

/* content inside hero */
.hero-content{
  position:relative;
  z-index:2;
  padding:60px 0;
  display:flex;
  align-items:flex-start;
  max-width: 600px;
  text-align: left;
  margin-left: 80px;
  margin-top: 100px;
}

/* left text area */
.hero-text{
  max-width:650px;
  text-align: left;
}

/* big title */
.hero-title{
  font-family:"Playfair Display", serif;
  font-weight:700;
  margin:0 0 40px 0;
  color:#fff;
  letter-spacing:0px;
  line-height:1.2;
  font-size:4rem;
  text-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

/* subtext under the heading */
.hero-sub{
  max-width:600px;
  color:rgba(255,255,255,0.9);
  margin:0 0 45px 0;
  font-size:1.25rem;
  line-height:1.8;
}

/* CTA */
.hero-cta .cta-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 34px;
  background:var(--primary);
  color:#fff;
  border-radius:10px;
  box-shadow: 0 6px 18px rgba(12,16,20,0.18);
  text-decoration:none;
  font-size:1.1rem;
  margin-top:15px;
}
.hero-cta .cta-btn:hover{
  background:var(--primary-dark);
  transform:translateY(-3px);
}

/* arrow in CTA */
.cta-arrow{font-weight:700}

/* ==== Floating search card ==== */
.hero-search{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -36px;
  z-index: 6;
  width: min(1100px, 92%);
  padding: 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(144, 130, 32, 0.4);
  box-shadow: 0 10px 30px rgba(10,10,10,0.12), 0 0 20px rgba(144, 130, 32, 0.5);
}

/* search form layout */
.search-form{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.search-form .field{
  width: 200px;
  flex:1 1 180px;
}
.search-form input,
.search-form select{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e6e6e6;
  font-size:0.95rem;
}
.search-btn{
  background:var(--primary);
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  border:none;
  width: 200px;
}

/* --- Main content placeholders --- */
.main-content{
  padding:80px 0 120px;
}
.intro-cards h2{font-family:"Playfair Display", serif; margin-bottom:6px}
.muted{color:var(--muted)}
.cards{display:flex; gap:20px; margin-top:18px; flex-wrap:wrap}
.card{
  background:var(--card-bg);
  padding:20px;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(12,16,20,0.06);
  flex:1 1 280px;
}

/* --- Footer --- */
.site-footer{
  background:#faf9f6;
  padding:30px 0;
  border-top:1px solid #f0efe9;
}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:10px}
.foot-nav a{color:var(--muted);text-decoration:none;margin:0 6px}

/* ===== General Section Spacing ===== */
section {
  padding: 100px 50px;
}

/* Services Section */
.services {
  background: #fff;
  padding-bottom: 200px;
}

.services-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
}

.services-content {
  flex: 1;
  width: 500px;
  font-size: 20px;
  line-height: 1.8;
}

.services-content .section-title {
  color: #c29b3c;
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.services-subtitle {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.services-text {
  margin-bottom: 20px;
  color: #444;
  line-height: 1.6;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.service-item i {
  color: #c29b3c;
  margin-right: 10px;
}

/* Images Overlay */
.services-images {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
  top: -70px;
}

.services-images img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: absolute;
  transition: transform 0.3s ease;
}

.services-images .img-front {
  top: 100px;
  right: 0;
  z-index: 2;
  width: 600px;
  height: 600px;
  left: 15%;
}

.services-images .img-back {
  top: 40px;
  z-index: 1;
  width: 600px;
  height: 600px;
}

.services-images img:hover {
  transform: scale(1.05);
}

/* Featured Properties Section */
#properties {
  background: #fff;
}

.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.properties-header h2 {
  font-size: 28px;
  font-weight: bold;
}

.properties-header a {
  color: #a48c3b;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 10px;
  display: inline-block;
}
.properties-header a:hover {
  color: #000;
}

/* Property Grid */
.properties-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.property-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  width: 23%;
  height: 550px;
}

.property-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.property-info {
  text-align: left;
  padding: 10px 15px;
  color: #444;
  font-size: 14px;
  margin-left:20px;
}

.property-info p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-details {
  display: flex;
  gap: 70px;
  margin-top: 4px;
  color: #666;
  margin-left: 20px;
  padding-top: 5px;
}

.property-details p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.property-details i,
.property-info i {
  color: #908220;
  font-size: 12px;
}

/* View Button */
.view-btn {
  background: #a48c3b;
  border: none;
  padding: 10px 40px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  width: 300px;
}
.view-btn:hover {
  background: grey;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}

.overlay-content {
  background: #fff;
  margin: 50px auto;
  padding: 30px;
  width: 80%;
  max-width: 1000px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  padding-right: 10px;
}

#closeOverlay {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ===== Benefits Section ===== */
.benefits {
  background: #fff;
}

.benefits-stats {
  display: flex;
  justify-content: space-around;
  background: #fdfbea;
  border-radius: 0;    
  text-align: center;
  width: 100%;
  padding: 20px;
  margin-top: 100px;
}

.benefits-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.benefits-text .section-title{
  font-size: 40px;
  color: #c29b3c;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  color: #c29b3c;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.benefits-heading {
  font-size: 2.2rem;
  margin: 0 0 18px 0;
}

.benefits-description {
  margin: 15px 0 25px;
  font-size: 16px;
  line-height: 1.7;
  width: 500px;
  color: #555;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.benefits-list i {
  color: #908220;
  margin-right: 10px;
  font-size: 16px;
}

/* Right visual wrapper */
.benefits-visual { 
  /* Visual wrapper styles */
}

.benefits-image-wrapper {
  position: relative;
  height: 457px;
  width: 483px;
}

/* SQUARE BEHIND IMAGE */
.square-shape {
  position: absolute;
  width: 280px;
  height: 100%;
  background: var(--primary);
  border-radius: 12px;
  z-index: 1;
  right: 0;
}

/* IMAGE (sits in front of the square) */
.benefits-img {
  z-index: 3;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  position: absolute;
  width: 426px;
  left: 0;
  height: 422px;
  bottom: 0;
}

/* OVERLAY (centered below image) */
.benefits-overlay {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}

/* LEFT overlay content */
.overlay-left { 
  display:flex; 
  flex-direction:column; 
  align-items:flex-start; 
}
.employee-count { 
  margin: 0; 
  font-weight:600; 
  color: white; 
  font-size: 20px; 
}
.reviews { 
  margin: 6px 0 0 0; 
  display:flex; 
  align-items:center; 
  gap:12px; 
  color:white; 
  font-size:0.95rem; 
}
.reviews i { color: gold; }

.review-count { 
  margin-left: 8px; 
  color: white; 
  font-size:0.9rem; 
}

/* RIGHT overlay content */
.overlay-right .avatars { 
  display:flex; 
  align-items:center; 
}
.avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.benefits-stats div h3 { 
  font-size: 20px; 
  margin:0; 
}
.benefits-stats div p { 
  font-size: 14px; 
  margin:6px 0 0; 
  color:#555; 
}

/* Latest Listings */
.latest-listings {
  /* padding: 4rem 2rem; */
}

/* Header row */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
}

.section-header .explore-all {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #c9a227;
  text-decoration: none;
  transition: color 0.3s ease;
}
.section-header .explore-all:hover {
  color: #a8861a;
}

/* Grid layout */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  justify-content: space-between;
}

/* Tall items */
.listing-item.tall1,
.listing-item.tall2 {
  border-radius: 20px;
  overflow: hidden;
}

/* Middle stacked column */
.listing-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.listing-stack .listing-item.small {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
}

/* Images */
.listing-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Testimonials Section */
.testimonials {
  color: #fff;
}

.testimonials-img {
  width: 100%;
  position: relative;
}

/* Heading on the left */
.overlay-text {
  position: absolute;
  top: 0;
  text-align: left;
  margin-bottom: 2rem;
  width: 600px;
  z-index: 4;
  left: 40px;
}

.overlay-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Cards Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: absolute;
  bottom: -20%;
  width: 100%;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  color: #333;
  display: flex;
  flex-direction: column;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.customer-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.customer-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.customer-info h3 i {
  color: #c9a227;
  margin-left: 6px;
}

.customer-info .role {
  font-size: 0.9rem;
  color: #666;
  font-family: 'Inter', sans-serif;
}

.testimonial-text {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.testimonial-date {
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}

/* Subscribe Section */
.subscribe-section {
  display: flex;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  top: -30%;
}

.subscribe-box {
  background: #fff;
  border-radius: 10px;
  text-align: center;
  width: 870px;
  height: 121px;
  margin-top: 20px;
  border: 1px solid rgba(144, 130, 32, 0.4);
  box-shadow: 0 5px 15px rgba(183, 163, 54, 0.3), 
              0 10px 30px rgba(10,10,10,0.12),
              0 0 20px rgba(144, 130, 32, 0.5);
}

.subscribe-box h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.subscribe-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
}

.subscribe-form input {
  flex: 1;
  max-width: 500px;
  padding: 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  font-size: 16px;
}

.subscribe-form button {
  padding: 10px 20px;
  border: 2px solid goldenrod;
  border-radius: 20px;
  background: transparent;
  color: goldenrod;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.subscribe-form button:hover {
  background: goldenrod;
  color: #fff;
}

/* Footer */
.footer {
  background: #9a8a22;
  color: #fff;
  padding: 0 50px;
  width: 100%;
  height: 323px;
  position: relative;
  margin-top: 200px;
}

.footer-content {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer-col {
  width: 20%;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ddd;
}

.socials li {
  display: flex;
  align-items: center;
  gap: 8px;
}



/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .hero-content {
    margin-left: 0;
    margin-right: 80px;
    text-align: right;
}

html[dir="rtl"] .hero-text {
    text-align: right;
}

html[dir="rtl"] .services-content {
    text-align: right;
}

html[dir="rtl"] .properties-header {
    text-align: right;
}

html[dir="rtl"] .property-info {
    text-align: right;
    margin-right: 20px;
    margin-left: 0;
}

html[dir="rtl"] .property-details {
    margin-right: 20px;
    margin-left: 0;
}

html[dir="rtl"] .benefits-text {
    text-align: right;
}

html[dir="rtl"] .benefits-list li {
    justify-content: flex-end;
}

html[dir="rtl"] .section-header {
    text-align: right;
}

html[dir="rtl"] .overlay-text {
    right: 40px;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .footer-content {
    text-align: right;
}

/* Mobile RTL */
@media (max-width: 768px) {
    html[dir="rtl"] .hero-content {
        margin-right: 20px;
        text-align: center;
    }
    
    html[dir="rtl"] .overlay-text {
        right: 0;
        text-align: center;
    }
}

/* ===========================
   ENHANCED MOBILE RESPONSIVENESS
   =========================== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 25px;
  }
  
  .hero-content {
    margin-left: 30px;
    margin-top: 80px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-sub {
    font-size: 1.1rem;
    max-width: 500px;
  }
  
  .services-container {
    gap: 40px;
  }
  
  .services-images .img-front,
  .services-images .img-back {
    width: 500px;
    height: 500px;
  }
  
  .properties-grid {
    gap: 20px;
  }
  
  .property-card {
    width: 48%;
  }
  
  .benefits-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .benefits-text {
    text-align: center;
  }
  
  .listings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    position: relative;
    bottom: 0;
    margin-top: 2rem;
  }
  
  .overlay-text {
    position: relative;
    width: 100%;
    left: 0;
    padding: 0 20px;
  }
  
  .subscribe-box {
    width: 90%;
    height: auto;
    padding: 20px;
  }
  
  .footer-content {
    flex-wrap: wrap;
  }
  
  .footer-col {
    width: 45%;
    margin-bottom: 30px;
  }
}

/* Mobile Styles (576px - 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 0 15px;
    height: 56px;
  }
  
  .hero {
    min-height: 70vh;
    margin-top: 60px;
  }
  
  .hero-content {
    margin-left: 20px;
    margin-top: 60px;
    text-align: center;
    justify-content: center;
  }
  
  .hero-text {
    margin-left: 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-sub {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-search {
    width: 96%;
    bottom: -50px;
    padding: 15px;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-form .field {
    flex: 1 1 100%;
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
    margin-top: 10px;
  }
  
  section {
    padding: 60px 20px;
  }
  
  .services-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .services-content {
    width: 100%;
    text-align: center;
  }
  
  .services-images {
    position: relative;
    top: 0;
    justify-content: center;
  }
  
  .services-images .img-front,
  .services-images .img-back {
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
  }
  
  .services-images .img-back {
    display: none;
  }
  
  .properties-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .properties-grid {
    justify-content: center;
  }
  
  .property-card {
    width: 100%;
    max-width: 400px;
  }
  
  .benefits-stats {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }
  
  .benefits-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: 400px;
  }
  
  .benefits-img {
    width: 100%;
    height: 380px;
  }
  
  .square-shape {
    width: 100%;
  }
  
  .benefits-description {
    width: 100%;
  }
  
  .listings-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    position: relative;
  }
  
  .subscribe-section {
    position: relative;
    top: 0;
    margin: 2rem auto;
  }
  
  .subscribe-box {
    width: 95%;
    height: auto;
    padding: 25px 15px;
  }
  
  .subscribe-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .subscribe-form input {
    max-width: 100%;
    width: 100%;
  }
  
  .footer {
    height: auto;
    padding: 40px 20px;
    margin-top: 100px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-col {
    width: 100%;
  }
  
  /* Mobile Navigation */
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    right: 12px;
    top: 64px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10,10,10,0.12);
    display: none;
    padding: 10px;
    width: 200px;
  }
  
  .main-nav.open {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 8px;
  }
  
  .auth-btns {
    display: none;
  }
  
  .auth-btns.mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
  }
  
  .auth-btns.mobile .btn {
    text-align: center;
    padding: 10px;
  }
}

/* Small Mobile Styles (under 576px) */
@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-sub {
    font-size: 0.9rem;
  }
  
  .hero-cta .cta-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .services-images .img-front {
    width: 100%;
    height: 300px;
  }
  
  .benefits-image-wrapper {
    height: 300px;
  }
  
  .benefits-img {
    height: 280px;
  }
  
  .benefits-text .section-title {
    font-size: 1.8rem;
  }
  
  .benefits-heading {
    font-size: 1.8rem;
  }
  
  .benefits-list li {
    font-size: 0.9rem;
  }
  
  .property-details {
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    text-align: center;
  }
  
  .property-info {
    margin-left: 0;
    text-align: center;
  }
  
  .view-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .overlay-content {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
  }
  
  .overlay-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    gap: 0.5rem;
  }
  
  .testimonial-card {
    padding: 1rem;
  }
}

/* Touch Device Improvements */
@media (max-width: 1024px) {
  .btn, .cta-btn, .view-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav a {
    padding: 8px 12px;
    display: block;
  }
  
  input, select {
    font-size: 16px;
  }
}

/* High-resolution mobile devices */
@media (max-width: 768px) and (min-resolution: 2dppx) {
  .hero {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .site-header, .hero-search, .subscribe-section, .footer {
    display: none;
  }
  
  .hero {
    background: none !important;
    color: #000 !important;
  }
  
  .hero-title, .hero-sub {
    color: #000 !important;
    text-shadow: none !important;
  }
}

/* ==========================
   MOBILE RESPONSIVENESS FIXES
   ========================== */

@media (max-width: 768px) {
  /* Hero search form - stack vertically */
  .search-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-form .field {
    flex: 1 1 100%;
    width: 100%;
  }
  
  /* Benefits stats - stack vertically */
  .benefits-stats {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
  
  .benefits-stats div {
    margin-bottom: 15px;
  }
  
  /* Testimonials grid - single column */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    bottom: 0;
    margin-top: 2rem;
  }
  
  /* Language selector mobile positioning */
  .language-selector {
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
  }
  
  .language-selector select {
    width: 100%;
  }
  
  /* Services images mobile adjustment */
  .services-images {
    position: relative;
    top: 0;
    justify-content: center;
  }
  
  .services-images .img-front,
  .services-images .img-back {
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
  }
  
  .services-images .img-back {
    display: none; /* Hide overlapping image on mobile */
  }
}

@media (max-width: 576px) {
  /* Further mobile optimizations */
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  .properties-grid {
    gap: 20px;
  }
  
  .property-card {
    width: 100%;
    max-width: 400px;
  }
}