﻿/*
 * YourHome Theme - Consolidated Styles
 * Version: 1.0.0
 * Description: A modern, responsive WordPress theme for real estate with a blue and white theme
 */

/* ===================================
   CSS VARIABLES
   =================================== */

   :root {
    /* Colors */
    --primary-blue: #5e72e4;
    --secondary-blue: #3a55e5;
    --light-blue: #eef1ff;
    --dark-blue: #172b4d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #e1e5eb;
  
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
  
    /* Spacing & Layout */
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* ===================================
     RESET & BASE STYLES
     =================================== */
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  *:focus {
    outline: none;
  }
  
  body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: var(--line-height-base);
    background-color: var(--light-gray);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--secondary-blue);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* ===================================
     HEADER & NAVIGATION
     =================================== */
  
  .site-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1000;
  }
  
  .site-branding {
    display: flex;
    align-items: center;
  }
  
  .custom-logo {
    max-height: 56px;
    width: auto;
  }
  
  .site-title {
    font-size: 1.8rem;
    font-weight: 700;
  }
  
  .site-title a {
    color: var(--dark-blue);
  }
  
  .site-description {
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.08) 0%, rgba(236, 239, 255, 0.6) 100%);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(94, 114, 228, 0.4);
  outline-offset: 2px;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
  border-color: rgba(94, 114, 228, 0.45);
}

.menu-toggle .menu-icon {
  position: relative;
  width: 24px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon__line {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-icon__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .menu-icon__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-icon__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

  /* Keep logo and nav perfectly aligned */
  .primary-menu-container {
    display: flex;
    align-items: center;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
  }
  
  .nav-menu li {
    margin-left: 0; /* use gap instead */
  }
  
  .nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    line-height: 1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  .nav-menu .nav-link:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
  
  .header-cta .btn {
    white-space: nowrap;
  }
  
  .header-cta .btn {
    background: linear-gradient(135deg, #4f6ae6 0%, #3a55e5 100%);
    color: var(--white);
    border-radius: 9999px;
    padding: 0.45rem 1.1rem;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 6px 16px rgba(58, 85, 229, 0.25);
    border: 1px solid rgba(255,255,255,0.15);
  }
  
  .header-cta .btn:hover {
    background: linear-gradient(135deg, #3f60f0 0%, #2f4fe0 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(58, 85, 229, 0.35);
  }
  
  /* ===================================
     HERO SECTION
     =================================== */
  
  .hero-section {
    /* Local hero image */
    background-image: url('../images/img.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 90px;
    position: relative;
    color: var(--white);
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
  }
  
  .hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
  }
  
  .hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    margin: 0 8px;
    border-radius: 30px;
    font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  }
  
  .btn-outline-light {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
  }
  
  .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
  }

/* Active toggle feel for hero buttons */
.hero-buttons .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}
.hero-buttons .btn-primary:hover { background:#1d4ed8; border-color:#1d4ed8; }
.hero-buttons .btn-outline-light { backdrop-filter: saturate(120%) blur(2px); }
  
  /* ===================================
     SEARCH BAR
     =================================== */
  
  .search-filters {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
  }
  
  .search-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(94,114,228,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(94,114,228,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(94,114,228,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(94,114,228,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(94,114,228,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
  }
  
  .search-form {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(94, 114, 228, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(94, 114, 228, 0.1);
    transition: all 0.3s ease;
  }

/* Compact mobile filter card */
@media (max-width: 575.98px) {
  .search-filters { padding: 8px 0 !important; }
  .search-form { border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.05); margin: 0 6px; }
  /* Hidden by default on mobile; toggled via JS */
  .search-form { display: none; }
  .search-form.is-open { display: block; }
  .search-container { gap: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .search-field { padding: 8px 10px; border-right: 1px solid #eef0f5; border-bottom: 0; margin: 0; flex: 0 0 240px; display: flex; align-items: center; gap: 8px; }
  .search-field:last-of-type { border-right: 0; }
  .search-field label { font-size: 12px; margin: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .search-field label i { font-size: 13px; color: var(--primary-blue); }
  .search-field .select-wrapper { flex: 1; }
  .search-field .form-select { padding: 8px 10px; font-size: 13px; border-radius: 8px; width: 100%; }
  .search-button { display: flex; align-items: stretch; gap: 6px; padding: 8px 10px; }
  .btn-search { flex: 1; padding: 10px 14px; font-size: 13px; border-radius: 8px; }
  .btn-clear { white-space: nowrap; padding: 6px 8px; font-size: 11px; border-radius: 8px; }
}
  
  .search-form:hover {
    box-shadow: 0 25px 50px rgba(94, 114, 228, 0.15);
    transform: translateY(-2px);
  }
  
  .search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  
  .search-field {
    flex: 1 1 200px;
    min-width: 200px;
    padding: 25px 20px;
    border-right: 1px solid rgba(94, 114, 228, 0.1);
    position: relative;
    transition: all 0.3s ease;
  }
  
  .search-field:last-of-type {
    border-right: none;
  }
  
  .search-field:hover {
    background-color: rgba(94, 114, 228, 0.02);
  }
  
  .search-field:focus-within {
    background-color: rgba(94, 114, 228, 0.05);
  }
  
  .search-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .search-field label i {
    font-size: 16px;
    opacity: 0.8;
  }
  
  .select-wrapper {
    position: relative;
  }
  
  .select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
  }
  
  .search-field .form-select {
    width: 100%;
    border: 2px solid rgba(94, 114, 228, 0.1);
    background-color: var(--white);
    padding: 12px 15px;
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .search-field .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
    outline: none;
  }
  
  .search-field .form-select:hover {
    border-color: var(--primary-blue);
  }
  
.search-button {
  padding: 25px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.search-button:hover::before {
  left: 100%;
}

.search-button .btn {
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}


  
  .search-section-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
  }
  
  .search-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
  }
  
  .search-title i {
    color: var(--primary-blue);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .search-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
  }
  
  .search-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
  }
  
  /* ===================================
     ENHANCED PROPERTIES HERO SECTION
     =================================== */
  
  .properties-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 100px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
  }
  
  .properties-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://source.unsplash.com/1920x800/?house,real-estate,modern') center/cover;
    opacity: 0.15;
  }
  
  .properties-hero-content {
    position: relative;
    z-index: 3;
  }
  
  
  .properties-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
  }
  
  
  .properties-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.6;
  }
  
  
  .hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
  }
  
  .decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: subtleFloat 10s ease-in-out infinite;
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
  }
  
  .circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
  }
  
  .circle-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 30%;
    animation-delay: 8s;
  }

  /* ===================================
     PROPERTY CARDS
     =================================== */
  
  /* ===================================
     PROPERTIES GRID SECTION
     =================================== */
  
  .properties-grid {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, #fafbff 100%);
    position: relative;
  }
  
  .properties-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0.3;
  }
  
  .properties-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(94, 114, 228, 0.1);
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
  }
  
  .section-title i {
    color: var(--primary-blue);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
  }
  
  .view-options {
    display: flex;
    gap: 5px;
    background: rgba(94, 114, 228, 0.08);
    padding: 6px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    border: 1px solid rgba(94, 114, 228, 0.1);
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.1);
  }
  
  .view-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
  }
  
  .view-btn i {
    position: relative;
    z-index: 1;
  }
  
  .view-btn.active,
  .view-btn:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 114, 228, 0.3);
  }
  
  .view-btn.active::before,
  .view-btn:hover::before {
    opacity: 1;
  }
  
  .property-listings {
    margin-bottom: 50px;
  }
  
  .property-listings.list-view {
    display: block;
  }
  
  .property-listings.list-view .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .property-listings.list-view .property-card {
    flex-direction: row;
    height: auto;
  }
  
  .property-listings.list-view .property-image {
    width: 300px;
    height: 200px;
    border-radius: 20px 0 0 20px;
  }
  
  .property-listings.list-view .property-content {
    flex: 1;
    padding: 30px;
  }
  
  .property-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(94, 114, 228, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
  }
  
  .property-card:hover::before {
    opacity: 0.02;
  }
  
  .property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(94, 114, 228, 0.15);
    border-color: var(--primary-blue);
  }
  
  .property-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: var(--light-gray);
    border-radius: 20px 20px 0 0;
  }
  
  .property-image::before {
    display: none; /* disable shimmer overlay to avoid hiding images */
  }
  
  .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .property-image.loaded::before {
    display: none;
  }
  
  .property-card:hover .property-image img {
    transform: scale(1.08);
  }
  
  .property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
  }
  
  .property-badge .badge {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  
  .badge-sale {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
  }
  
  .badge-rent {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
  }
  
  .property-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
  }
  
  .favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }
  
  .favorite-btn:hover {
    color: #e74c3c;
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  }
  
  .property-content {
    padding: 25px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
  }
  
  .property-title {
    margin-bottom: 12px;
  }
  
  .property-title a {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    transition: color 0.3s ease;
  }
  
  .property-title a:hover {
    color: var(--primary-blue);
  }
  
  .property-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
  }
  
  .property-location i {
    color: var(--primary-blue);
    margin-right: 6px;
    font-size: 0.9rem;
  }
  
  .property-features {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
    gap: 15px;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    background: rgba(94, 114, 228, 0.08);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(94, 114, 228, 0.1);
  }
  
  .feature-item:hover {
    background: rgba(94, 114, 228, 0.12);
    transform: translateY(-2px);
  }
  
  .feature-item i {
    color: var(--primary-blue);
    margin-right: 6px;
    font-size: 0.9rem;
  }
  
  .feature-value {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.8rem;
  }
  
  .property-price {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: auto;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .property-actions {
    margin-top: 0;
  }
  
  .btn-details {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 15px;
    padding: 12px 20px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .btn-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .btn-details:hover::before {
    left: 100%;
  }
  
  .btn-details:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 114, 228, 0.4);
  }
  
  /* ===================================
     SINGLE PROPERTY PAGE
     =================================== */
  
  .property-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 60px 0;
    color: var(--white);
    position: relative;
  }
  
  .property-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://source.unsplash.com/1920x600/?house,real-estate') center/cover;
    opacity: 0.3;
  }
  
  .property-hero-content {
    position: relative;
  }
  
  .property-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
  }
  
  .property-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
  }
  
  .property-breadcrumb .breadcrumb-item a:hover {
    color: var(--white);
  }
  
  .property-breadcrumb .breadcrumb-item.active {
    color: var(--white);
  }
  
  .property-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .property-header .property-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .property-header .property-location {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
  }
  
  .property-header .property-location i {
    margin-right: 8px;
  }
  
  .property-header .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--border-radius);
  }
  
  .property-main-content {
    background-color: var(--white);
    padding: 40px 0;
  }
  
  .property-gallery,
  .property-features,
  .property-description,
  .property-amenities,
  .property-location-details {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
  }

/* Quick info card */
.property-quick-info li span:first-child{color:var(--text-muted)}
.property-quick-info li span:last-child{color:var(--dark-blue)}
.property-quick-info li{font-size:.95rem}
  
  .property-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
  }
  
  .thumbnail-gallery .thumbnail-img {
    cursor: pointer;
    border: 2px solid transparent;
  }
  
  .thumbnail-gallery .thumbnail-img:hover {
    border-color: var(--primary-blue);
  }
  
  .section-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue);
  }
  
  .feature-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
  }
  
  .feature-item:hover {
    transform: translateY(-5px);
  }
  
  .feature-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
  }
  
  .feature-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
  }
  
  .feature-label {
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  
  .description-content {
    line-height: 1.8;
    color: var(--text-dark);
  }
  
  .amenities-list,
  .proximity-list {
    list-style: none;
    padding: 0;
  }
  
  .amenities-list li,
  .proximity-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
  }
  
  .amenities-list li i,
  .proximity-list li i {
    margin-right: 10px;
    color: var(--primary-blue);
  }
  
  /* ===================================
     SIDEBAR CARDS
     =================================== */
  
  .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
  }
  
  .card-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 20px;
  }
  
  .card-header h5 {
    margin: 0;
    font-weight: 600;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 15px;
  }
  
  .form-control:focus {
    border-color: var(--primary-blue);
  }
  
  .agent-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
  }
  
  .agent-contact p {
    margin-bottom: 5px;
    color: var(--text-muted);
  }
  
  .agent-contact i {
    color: var(--primary-blue);
    margin-right: 5px;
  }
  
  .similar-property {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .similar-property:last-child {
    border-bottom: none;
  }
  
  .similar-property h6 {
    font-weight: 600;
    font-size: 0.875rem;
  }
  
  /* ===================================
     FOOTER
     =================================== */
  
  .site-footer {
    background-color: var(--dark-blue);
    color: #a9b3c1;
    padding: 80px 0 0;
  }
  
  .footer-widget-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
  }
  
  .footer-menu {
    list-style: none;
    padding: 0;
  }
  
  .footer-menu a {
    color: #a9b3c1;
  }
  
  .footer-menu a:hover {
    color: var(--white);
  }
  
  .contact-info {
    list-style: none;
    padding: 0;
  }
  
  .contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
  }
  
  .contact-info i {
    color: var(--primary-blue);
    margin-right: 10px;
  }
  
  .social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .social-link:hover {
    background-color: var(--primary-blue);
  }
  
  .site-info {
    background-color: #0f1620;
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* ===================================
     PAGINATION
     =================================== */
  
  .pagination {
    margin-top: 50px;
    justify-content: center;
  }
  
  .pagination .page-link {
    color: var(--primary-blue);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-weight: 600;
  }
  
  .pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-color: var(--primary-blue);
  }
  
  .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
  }
  
  /* ===================================
     NO PROPERTIES FOUND
     =================================== */
  
  .no-properties {
    text-align: center;
    padding: 60px 0;
  }
  
  .no-properties i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
  }
  
  .no-properties h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  /* ===================================
     ANIMATIONS
     =================================== */
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  
  .property-card,
  .property-features,
  .property-description,
  .property-amenities,
  .property-location-details {
    animation: fadeInUp 0.6s ease-out;
  }
  
  /* ===================================
     RESPONSIVE DESIGN
     =================================== */
  
  @media (max-width: 991.98px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { padding: 80px 0 60px; }
    .properties-title { font-size: 3rem; }
    .search-container { flex-direction: column; }
    .search-field { width: 100%; border-right: none; border-bottom: 1px solid rgba(94,114,228,0.1); padding: 14px; }
    .search-button { width: 100%; gap: 8px; padding: 14px; }
    /* Responsive overrides earlier: keep full-width on mobile but maintain sizes */
    .btn-search { width: 100%; }
    .btn-clear { width: 100%; }
    .menu-toggle { display: flex; }
    .primary-menu-container { display: none; position: absolute; top: 100%; width: 100%; background: var(--white); box-shadow: var(--box-shadow); }
    .primary-menu-container.toggled { display: block; }
    .nav-menu { flex-direction: column; padding: 1rem; }
    .property-card { margin-bottom: 25px; }
    .property-image { height: 160px; }
    .property-features { gap: 10px; }
    .feature-item { padding: 6px 10px; font-size: 0.75rem; }
    .view-options { margin-left: 0; margin-top: 20px; }
    .section-title { font-size: 1.8rem; }
  }
  
  @media (max-width: 767.98px) {
    .hero-content h1 { font-size: 1.8rem; }
    .properties-title { font-size: 2.5rem; }
    .hero-buttons { display: flex; justify-content: center; gap: 10px; }
    .hero-buttons .btn { padding: 0.6rem 1.1rem; margin: 0; }
    .property-image { height: 140px; }
    .property-title a { font-size: 1rem; }
    .property-price { font-size: 1.1rem; }
    .property-hero { padding: 40px 0; }
    .search-field { padding: 12px; }
    .search-button { padding: 12px; }
    .search-title { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
  }
  
  @media (max-width: 575.98px) {
    .properties-title { font-size: 1.6rem; }
    .property-image { height: 120px; }
    .property-title a { font-size: 0.95rem; }
    .property-features { flex-direction: column; gap: 8px; }
    .feature-item { padding: 6px 10px; font-size: 0.7rem; }
    .btn-search { padding: 12px 20px; font-size: 14px; }
    .property-hero { padding: 30px 0; }
    .search-title { font-size: 1.4rem; }
    .section-title { font-size: 1.4rem; }
  }
  
  /* ===================================
     ACCESSIBILITY & PRINT
     =================================== */
  
  .property-card:focus-within,
  .favorite-btn:focus,
  .btn-details:focus {
    outline: 2px solid var(--primary-blue);
  }
  
  @media print {
    .hero-section {
      background: none;
      color: var(--text-dark);
    }
  
    .property-card {
      box-shadow: none;
      border: 1px solid var(--border-color);
    }
  
    .property-favorite,
    .property-actions {
      display: none;
    }
  }
  
  /* ===================================
     CROSS-BROWSER COMPATIBILITY
     =================================== */
  
  @supports (-webkit-appearance:none) {
    .property-card,
    .property-image img {
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }
  }
  
  @-moz-document url-prefix() {
    .property-card {
      transform: translateZ(0);
    }
  }/* ===================================
   ENHANCED ANIMATIONS & EFFECTS
   =================================== */

/* Hero Section Enhancements */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(94, 114, 228, 0.1) 0%, rgba(58, 85, 229, 0.1) 100%);
  animation: heroShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-content h1 {
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content p {
  animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.9s both;
}

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateZ(0);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Service Cards Enhancements */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(94, 114, 228, 0.15);
}

.service-card .icon {
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-blue);
}

/* News Cards Enhancements */
.news-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 12px;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.news-card:hover::before {
  opacity: 0.03;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-card .card-image {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.news-card .card-image img {
  transition: transform 0.5s ease;
}

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

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced Search Bar (removed – using Simple Layout Overrides) */

/* Floating Elements */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

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

@keyframes subtleFloat {
  0%, 100% { 
    transform: translateY(0px) translateX(0px); 
    opacity: 0.6;
  }
  25% { 
    transform: translateY(-10px) translateX(8px); 
    opacity: 0.4;
  }
  50% { 
    transform: translateY(-15px) translateX(-5px); 
    opacity: 0.8;
  }
  75% { 
    transform: translateY(-8px) translateX(12px); 
    opacity: 0.5;
  }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced Typography */
.hero-content h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Dividers */
.section-divider {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-blue) 50%, transparent 100%);
  margin: 60px 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

/* Enhanced Footer (removed decorative overlay for simplicity) */

/* Services Section */
.services-section .section-title {
  margin-bottom: 0.5rem;
}
.services-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  border-color: rgba(94,114,228,.35);
}
.service-icon {
  font-size: 1.75rem;
  color: var(--primary-blue);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(94,114,228,.08);
  margin-bottom: 14px;
}
.service-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .5rem;
  color: var(--dark-blue);
}
.service-description {
  color: var(--text-dark);
  opacity: .9;
  margin-bottom: 1rem;
}
.read-more-link {
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.read-more-link:hover {
  color: var(--secondary-blue);
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .service-card:hover,
  .news-card:hover {
    transform: translateY(-5px);
  }
  
  .search-form {
    margin: 0 15px;
  }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .service-card,
  .news-card {
    border: 1px solid var(--border-color);
  }
}

/* ================================
   SINGLE PROPERTY DETAIL PAGE
   ================================ */
.property-main-content {
  background-color: var(--white);
}
.property-gallery .main-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.thumbnail-gallery .thumbnail-img {
  cursor: pointer;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  width: 120px;
  height: 80px;
  object-fit: cover;
}
.thumbnail-gallery .thumbnail-img:hover {
  border-color: var(--primary-blue);
}
.property-title {
  color: var(--dark-blue);
}
.property-location i { color: var(--primary-blue); }
.price-amount {
  color: var(--dark-blue);
}
.property-overview .property-area {
  background: rgba(94, 114, 228, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
}
.property-characteristics .text-muted { color: var(--text-muted); }

/* Sidebar card polish */
.card.shadow-sm { border: 1px solid var(--border-color); }
.card .form-label { font-weight: 600; }
.card .btn { border-radius: var(--border-radius); }

/* Related properties */
.related-properties-section .card {
  border: 1px solid var(--border-color);
  transition: transform .25s ease, box-shadow .25s ease;
}
.related-properties-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

@media (max-width: 991.98px) {
  .property-gallery .main-image img { height: 360px; }
  .thumbnail-gallery .thumbnail-img { width: 96px; height: 64px; }
}

/* ===================================
   ADMIN INTERFACE ENHANCEMENTS
   =================================== */

/* Property admin form improvements */
.form-table th {
  width: 200px;
  font-weight: 600;
}

.form-table td input[type="number"] {
  width: 120px;
}

.form-table td input[type="text"],
.form-table td select {
  width: 300px;
}

.form-table td textarea {
  width: 100%;
  max-width: 500px;
  min-height: 80px;
}

/* Gallery management */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.gallery-item {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-image:hover {
  background: #c82333;
}

/* Enhanced search form */
.search-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-form.loading {
  opacity: 0.7;
  pointer-events: none;
}

.search-form.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form.loading::before {
  content: 'Recherche en cours...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: var(--primary-blue);
  font-weight: 600;
}

/* Contact form enhancements */
.contact-form {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.contact-form .form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.contact-form .btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(94, 114, 228, 0.3);
}

/* Loading states */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error and success messages */
.alert {
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Property card enhancements (superseded by simple overrides) */

/* Sticky header */
.site-header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--secondary-blue);
  transform: translateY(-3px);
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
  .primary-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .primary-menu-container.toggled {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }
  
  .nav-menu .nav-item {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-menu .nav-link {
    padding: 15px 0;
    display: block;
    width: 100%;
  }
}

/* ===================================
   SIMPLE LAYOUT OVERRIDES (UI only)
   =================================== */

/* Base simplification */
body {
  background: #fff;
}

.container { max-width: 1100px; }

/* Hero section simplified */
.properties-hero {
  background: #ffffff;
  min-height: auto;
  padding: 40px 0 8px;
}
.properties-hero .properties-hero-content,
.properties-hero .properties-title{
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.properties-hero::before,
.hero-decoration { display: none; }
.properties-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  text-shadow: none;
  margin-bottom: .5rem;
  text-align: center;
}
.properties-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

/* Search/filters simplified */
.search-filters { background: #ffffff; padding: 16px 0; margin: 0; }
.search-form {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
  transform: none;
}
.search-form:hover { box-shadow: none; transform: none; }
.search-container { gap: 0; }
.search-field { padding: 12px; border-right: 1px solid #e5e7eb; }
.search-field:hover, .search-field:focus-within { background: transparent; }
.search-field label { color: #374151; text-transform: none; letter-spacing: 0; font-weight: 600; }
.search-field .form-select { border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 10px; font-size: 14px; }
.search-field .form-select:focus { box-shadow: none; border-color: #93c5fd; }
.select-wrapper::after { display: none; }

.search-button { padding: 12px; background: #fff; gap: 10px; }
.search-button .btn.btn-search {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.btn-search:hover { background: #1d4ed8; color: #fff; transform: none; box-shadow: none; }
.btn-search::before { display: none; }
.search-button .btn.btn-clear {
  background: transparent;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.btn-clear:hover { background: #f9fafb; transform: none; }

/* Header above grid */
.properties-grid { background: #fff; padding: 20px 0 40px; }
.properties-header { margin-bottom: 16px; padding: 0; border: 0; }
.section-title { font-size: 1.25rem; font-weight: 700; color: #111827; gap: 8px; }
.section-title::after, .section-title i { display: none; }
.view-options { background: transparent; border: 0; box-shadow: none; padding: 0; }
.properties-header .view-options { display: none !important; }
.view-btn { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; color: #374151; }
.view-btn::before { display: none; }
.view-btn.active, .view-btn:hover { color: #111827; box-shadow: none; transform: none; background: #f3f4f6; }

/* Property card simplified */
.property-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
}
.property-card::before { display: none; }
.property-card:hover { transform: none; box-shadow: none; border-color: #d1d5db; }
.property-image { height: 180px; border-radius: 8px 8px 0 0; background: #f3f4f6; }
.property-image img { transition: none; }
.property-badge { top: 10px; left: 10px; }
.property-badge .badge { box-shadow: none; padding: 6px 10px; font-weight: 600; border-radius: 999px; font-size: 11px; }
.badge-sale { background: #10b981; }
.badge-rent { background: #2563eb; }
.property-favorite { display: none; }

.property-content { padding: 14px; }
.property-title { margin-bottom: 6px; }
.property-title a { font-size: 16px; font-weight: 700; color: #111827; }
.property-location { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.property-location i { color: #9ca3af; }
.property-price { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 10px; text-shadow: none; }
.property-actions { margin-top: 0; }
.btn-details { background: transparent; color: #2563eb; border: 1px solid #2563eb; border-radius: 6px; padding: 8px 12px; font-weight: 600; box-shadow: none; text-transform: none; letter-spacing: 0; }
.btn-details:hover { background: #2563eb; color: #fff; transform: none; box-shadow: none; }

/* List view adjustments */
.property-listings.list-view .property-image { width: 260px; height: 180px; border-radius: 8px 0 0 8px; }
.property-listings.list-view .property-content { padding: 16px; }

/* Pagination */
.pagination { margin-top: 24px; }
.pagination .page-link { border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 12px; }
.pagination .page-link:hover { background: #f3f4f6; color: #111827; border-color: #d1d5db; }
.pagination .page-item.active .page-link { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Responsive simplifications */
@media (max-width: 991.98px) {
  .search-field { border-right: 0; border-bottom: 1px solid #e5e7eb; }
  .properties-title { font-size: 1.5rem; }
}

@media (max-width: 575.98px) {
  .property-image { height: 150px; }
}

/* ===================================
   ENHANCED PROPERTY MEDIA SECTIONS
   =================================== */

/* Floor Plan Section */
.property-floor-plan {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.property-floor-plan h3 {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.floor-plan-container {
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--box-shadow);
}

/* Exterior Photos Section */
.property-exterior-photos {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.property-exterior-photos h3 {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.exterior-photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.exterior-photo-item:hover {
  transform: scale(1.05);
}

.exterior-photo-item img {
  transition: filter 0.3s ease;
}

.exterior-photo-item:hover img {
  filter: brightness(1.1);
}

/* Interior Photos Section */
.property-interior-photos {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.property-interior-photos h3 {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.interior-photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.interior-photo-item:hover {
  transform: scale(1.05);
}

.interior-photo-item img {
  transition: filter 0.3s ease;
}

.interior-photo-item:hover img {
  filter: brightness(1.1);
}

/* Videos Section */
.property-videos {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.property-videos h3 {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.video-item {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.video-item h4 {
  color: var(--dark-blue);
  font-weight: 600;
  margin-bottom: 15px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: var(--border-radius);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.virtual-tour-container {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border-radius: var(--border-radius);
}

.virtual-tour-container .btn {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.virtual-tour-container .btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Enhanced Gallery Thumbnails */
.thumbnail-gallery .thumbnail-img {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-gallery .thumbnail-img:hover {
  border-color: var(--primary-blue);
  transform: scale(1.1);
}

/* Responsive Design for Media Sections */
@media (max-width: 768px) {
  .property-floor-plan,
  .property-exterior-photos,
  .property-interior-photos,
  .property-videos {
    padding: 15px;
  }
  
  .video-container {
    padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
  }
  
  .exterior-photo-item,
  .interior-photo-item {
    margin-bottom: 15px;
  }
}

/* Loading States for Images */
.property-gallery img,
.floor-plan-container img,
.exterior-photo-item img,
.interior-photo-item img {
  opacity: 1; /* ensure images are visible even without JS */
  transition: none;
}

.property-gallery img.loaded,
.floor-plan-container img.loaded,
.exterior-photo-item img.loaded,
.interior-photo-item img.loaded {
  opacity: 1;
}

/* Image Hover Effects */
.exterior-photo-item::before,
.interior-photo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(94, 114, 228, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.exterior-photo-item:hover::before,
.interior-photo-item:hover::before {
  opacity: 1;
}
