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

  :root {
    --color-text: #1f2a3d;
    --color-muted: #4a5568;
    --color-primary: #3b82f6;
    --color-primary-strong: #0f6ec7;
    --color-surface: #ffffff;
    --color-surface-soft: #f5f8ff;
    --color-border: #e5e9f5;
    --radius-lg: 20px;
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-card-strong: 0 16px 40px rgba(0, 0, 0, 0.12);
    --card-min: 320px;
    --card-gap: 1.25rem;
  }
 
  body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    background: radial-gradient(circle at 15% 20%, rgba(31, 131, 230, 0.08), transparent 35%), radial-gradient(circle at 85% 10%, rgba(17, 94, 166, 0.08), transparent 32%), #f7f9fc;
    line-height: 1.6;
    padding-top: var(--header-height, 80px);
  }
 
  a {
    text-decoration: none;
    color: inherit;
  }

  .page-offset {
    padding-top: 0;
  }
 
.properties,
.agents {
    padding: 2rem;
  }

  .services {
    margin: 14pt;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
  }

  .services-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
  }

  .services-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0f6ec7;
    margin-bottom: 0.35rem;
  }

  .services-header .lede {
    color: #4a5568;
    font-size: 1.05rem;
  }
  
.property-cards,
.service-cards,
.agent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
    gap: var(--card-gap);
    justify-content: center;
    margin: 0;
}
  
.property-card,
.service-card {
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid var(--color-border);
  }

  .agent-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    margin: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 110, 199, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
  }
  
.property-card:hover,
.service-card:hover,
.agent-card:hover {
    box-shadow: var(--shadow-card-strong);
    transform: translateY(-2px);
  }
  
  .property-card img,
  .service-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
  }

  .agent-photo {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: block;
  }

  .agent-card .placeholder {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-color: #ccc;
  }
  
  .property-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333333;
  }

  .agent-name {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-weight: 600;
  }

  .agent-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
  }

  .agent-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .agent-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #dbeafe;
    border-radius: 50%;
    color: #3b82f6;
    flex-shrink: 0;
  }

  .agent-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
  }

  .agent-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
  }

  .agent-contact-btn {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    display: block;
    text-align: center;
  }

  .agent-contact-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  .cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.6rem;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.22);
  }

  .cta-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2a3d;
  }

  .service-card p {
    font-size: 1rem;
    color: #4a5568;
  }

  .service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    font-size: 28px;
  }

.service-card__points {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1rem;
    color: var(--color-muted);
  }

  .service-card__points li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.35rem;
  }

  .service-card__points li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0f6ec7;
    font-weight: 700;
  }

  .service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.95rem 1.4rem;
    background: linear-gradient(135deg, #0f6ec7, #1f83e6);
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    width: 100%;
    box-shadow: 0 12px 26px rgba(31, 131, 230, 0.18);
  }

  .service-card__cta:hover {
    background: linear-gradient(135deg, #0c5ea9, #156dd1);
    box-shadow: 0 16px 32px rgba(12, 94, 169, 0.22);
    transform: translateY(-1px);
  }
  
  .property-card p {
    font-size: 1rem;
  }

  .valuation-hero {
    background: transparent;
    padding: 4rem 1.25rem 3rem;
    color: #1f2937;
  }

  .valuation-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  }

  .valuation-hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: #3b82f6;
  }

  .valuation-hero-text p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
  }

  .valuation-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  }

  .valuation-form {
    display: grid;
    gap: 1rem;
  }

  .valuation-field {
    text-align: left;
  }

  .valuation-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #1f2937;
  }

  .valuation-field input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .valuation-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  }

  .valuation-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1e6fe0);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.28);
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }

.valuation-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.32);
    filter: brightness(1.02);
  }

@media screen and (max-width: 768px) {
  .property-cards,
  .service-cards,
  .agent-cards {
      grid-template-columns: 1fr;
      margin: 0;
  }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border-bottom: 1px solid #d5e3f7;
    box-shadow: 0 12px 35px rgba(28, 78, 156, 0.12);
    background-size: 100% 200%;
    background-position: 50% 0;
    padding-top: env(safe-area-inset-top, 0px);
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 20px;
    gap: 1.25rem;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 40px;
    width: auto;
}

.nav-spacer {
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #333c4d;
    transition: color 0.15s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: #245fc4;
}

.nav-links a.active {
    color: #245fc4;
    font-weight: 700;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    border-radius: 14px;
    border: 2pt solid #3b82f6;
    color: #2f7be6;
    font-weight: 700;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.18);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
    transform: none;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.22);
    background: #3b82f6;
    color: #ffffff;
}

.nav-cta.active {
    background: #ffffff;
    color: #2f7be6;
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

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

    .nav-cta {
        width: 100%;
        text-align: center;
    }
}

.hero {
    position: relative;
    background-image: url('images/hero_small.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 3rem 2rem;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 25%, rgba(120, 205, 255, 0.18), transparent 34%),
      radial-gradient(circle at 80% 20%, rgba(36, 115, 255, 0.14), transparent 30%),
      radial-gradient(ellipse at 40% 80%, rgba(0, 60, 120, 0.12), transparent 45%),
      linear-gradient(135deg, rgba(0, 40, 90, 0.12), rgba(0, 0, 0, 0.06));
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    mix-blend-mode: screen;
    opacity: 0.14;
  }
  
  .hero .text-container {
    position: relative;
    padding: 2rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(1px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    max-width: 720px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
  }
  
  .hero p {
    font-size: 1.15rem;
    font-weight: 300;
    color: #e9f2ff;
  }

  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
  }

  .hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #cfe6ff;
    margin-bottom: 0.6rem;
    font-weight: 700;
  }

  .hero-lede {
    margin-bottom: 1.25rem;
    max-width: 640px;
  }

  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #d6e6ff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .btn-primary {
    background: linear-gradient(135deg, #1f83e6, #50b8ff);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(31, 131, 230, 0.25);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(31, 131, 230, 0.3);
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #e9f2ff;
    border-color: rgba(255, 255, 255, 0.25);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
  }

  .hero-microcopy {
    font-size: 0.95rem;
    color: #d6e6ff;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-content: start;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    padding: 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .stat-card {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.1rem;
    letter-spacing: -0.4px;
  }

  .stat-label {
    color: #d6e6ff;
    font-size: 0.95rem;
  }

  @media screen and (max-width: 900px) {
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .hero {
      padding: 2.5rem 1.25rem;
      min-height: 70vh;
    }

    .hero-stats {
      display: none;
    }
  }

  @media screen and (max-width: 640px) {
    .hero h1 {
      font-size: 2.2rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .hero .text-container {
      padding: 1.5rem;
    }

    .hero-ctas {
      flex-direction: column;
      align-items: stretch;
    }
  }

  @media screen and (max-width: 768px) {
    
    .hero .text-container {
      padding: 5px;
      color: white;
    }

    .hero h1 {
        font-size: 18pt;
        font-weight: 400;
      }
      
      .hero p {
        font-size: 12pt;
        font-weight: 200;
      }

    .hero {
        height: 30vh;
      }
}

/* Stats section with white text */
.stats-section {
  background: linear-gradient(to right, #3B82F6, #2563EB);
  padding: 4rem 1rem;
  color: #ffffff;
}

.stats-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

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

.stats-section .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stats-section .stat-label {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer {
  background-color: #0f172a;
  color: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copyright {
  color: #9ca3af;
  font-size: 1rem;
}

.logo-container {
    width: 116px; /* Set the width of the container */
    height: 48px; /* Set the height of the container */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

/* CSS for the logo image */
.logo-image {
    max-width: 100%; /* Ensure the image fits within the container */
    max-height: 100%; /* Ensure the image fits within the container */
    user-select: none; /* Make the image non-selectable */
}
.idx-hero {
    position: relative;
    background: linear-gradient(135deg, #3B82F6, #2563EB, #1D4ED8);
    color: #ffffff;
    padding: 3rem 1.25rem;
    overflow: hidden;
}

.idx-hero::before,
.idx-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(60px);
    z-index: 1;
}

.idx-hero::before {
    top: 10%;
    left: 5%;
}

.idx-hero::after {
    bottom: -10%;
    right: 5%;
}

.idx-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.idx-hero-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.idx-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.idx-hero p {
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    color: #dbeafe;
}

.idx-search-card {
    margin-top: 1.5rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    padding: 1.25rem;
}

.idx-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.4rem;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.toggle-btn {
    border: none;
    background: transparent;
    padding: 0.9rem;
    border-radius: 10px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.idx-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.span-full {
    grid-column: 1 / -1;
}

.field {
    position: relative;
}

.field input,
.field select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    background: #f3f4f6;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 3rem;
}

.field select {
    padding-right: 2.5rem;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.icon-left::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    opacity: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-map::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 1 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon-dollar::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 1v22'/%3E%3Cpath d='M17 5.5C17 3 14.761 1 12 1S7 3 7 5.5 9.239 10 12 10s5 2 5 4.5S14.761 19 12 19 7 17 7 14.5'/%3E%3C/svg%3E");
}

.icon-bed::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 4v16M2 4h5a2 2 0 0 1 2 2v6H2m0-8v8m18 0H2m18 0v6m0-6V9a3 3 0 0 0-3-3h-4a3 3 0 0 0-3 3v3h10Z'/%3E%3C/svg%3E");
}

.icon-bath::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 4V2a2 2 0 1 1 4 0v2'/%3E%3Cpath d='M5 6h10M5 12h14M5 6v6a6 6 0 0 0 12 0V6'/%3E%3C/svg%3E");
}

.idx-submit {
    grid-column: 1 / -1;
    padding: 0.95rem;
    border: none;
    border-radius: 12px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.26);
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.idx-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.3);
    filter: brightness(1.02);
}

.idx-results {
    margin: 2rem;
}

.idx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.idx-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.idx-card article {
    height: 100%;
}

.idx-photo {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f4f8;
}

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

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

.idx-photo-fallback {
    width: 100%;
    height: 100%;
    background: #f0f4f8;
}

.idx-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.18) 100%);
}

.idx-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3b82f6;
    color: #ffffff;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.idx-card .idx-card-body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.idx-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: #2d3748;
}

.idx-card .price {
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.idx-card .meta {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.idx-card .address {
    font-size: 0.95rem;
    color: #2d3748;
}

.idx-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

.idx-card-cta {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.idx-card:hover .idx-card-cta {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.25);
}

.idx-alert {
    margin: 1rem 2rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff5e5;
    color: #8a4b0e;
    border: 1px solid #f3d2a2;
}

  .idx-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.idx-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.idx-page-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #d5e3f7;
    background: #ffffff;
    color: #1f2a3d;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.idx-page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.idx-detail-hero {
    background: #0f6ec7;
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin: 2rem;
    box-shadow: 0 18px 40px rgba(15, 110, 199, 0.28);
}

.idx-detail-hero .back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #dff0ff;
    text-decoration: none;
}

.idx-detail-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.idx-detail-hero .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.idx-detail-hero .price {
    font-size: 1.5rem;
    font-weight: 800;
}

.idx-detail-body {
    margin: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.idx-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
}

.idx-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 180px;
}

.idx-detail-info {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.idx-detail-info h2 {
    margin-top: 0;
}

.idx-detail-info p {
    line-height: 1.5;
}

.idx-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.idx-detail-grid strong {
    display: block;
    color: #0f6ec7;
    margin-bottom: 0.25rem;
}

/* New Listing Detail Layout */
.listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    width: 100%;
}

.listing-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    overflow: hidden;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3b82f6;
}

.listing-carousel {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f3f4f6;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.carousel-thumbnails img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.carousel-thumbnails img:hover {
    border-color: #3b82f6;
}

.carousel-thumbnails img.active {
    border-color: #3b82f6;
}

.carousel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: #9ca3af;
    font-size: 1.25rem;
}

.listing-header {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.listing-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.listing-badge {
    display: inline-block;
    background: #3b82f6;
    color: #ffffff;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.listing-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    margin-top: 0.75rem;
}

.listing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-box {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-box svg {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: #dbeafe;
    border-radius: 50%;
    color: #3b82f6;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.listing-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.listing-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.listing-section p {
    color: #4b5563;
    line-height: 1.6;
}

.listing-details {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.detail-item svg {
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    font-size: 1rem;
}

.listing-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.contact-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-logo img {
    height: 48px;
    width: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

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

.btn-send,
.btn-call {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-send {
    background: #3b82f6;
    color: #ffffff;
}

.btn-send:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-call {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-call:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

/* Match embedded Agentmigo form button background to site primary color */
.listing-sidebar button[id^="amigo-form-"][id$="-submit"] {
    background: #3b82f6 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}

.listing-sidebar button[id^="amigo-form-"][id$="-submit"]:hover {
    background: #2563eb !important;
}

@media screen and (max-width: 1024px) {
    .listing-container {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .idx-hero {
        margin: 0;
        border-radius: 0;
        padding: 3rem 1rem;
    }

    .idx-results {
        margin: 1rem 1rem 2rem;
    }

    .idx-detail-hero {
        margin: 1rem;
    }

    .idx-detail-body {
        margin: 1rem;
        grid-template-columns: 1fr;
    }

    .listing-container {
        padding: 1rem;
    }

    .carousel-main {
        height: 300px;
    }

    .listing-stats {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        top: 20px;
    }
}
