/* ============================================================
   SOUTH FL PROPERTY LISTINGS — Main Stylesheet
   Stack: Plain CSS, no framework
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --primary:      #0179DA;
  --primary-dark: #222121;
  --accent:       #FFB800;
  --accent-dark:  #e0a200;
  --light-bg:     #f4f6fb;
  --white:        #ffffff;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
  --radius:       10px;
  --radius-lg:    16px;
  --nav-h:        68px;
  --transition:   .2s ease;
  --font:         'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

button { cursor: pointer; font-family: var(--font); border: none; background: none; }

.hidden { display: none !important; }

/* ── Utility ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }

.btn-center { display: flex; margin: 0 auto; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(1,121,218,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo i { color: var(--accent); font-size: 1.3rem; }
.logo-name { color: var(--white); }
.logo-gold { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}
.nav-link.active {
  background: rgba(255,184,0,.15);
  color: var(--accent);
  text-decoration: none;
}

/* Dropdown Nav */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}
.nav-dropdown-toggle .chevron {
  font-size: .65rem;
  transition: transform .2s ease;
  margin-top: 1px;
}
.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron { transform: rotate(180deg); }

/* Invisible bridge — prevents gap between toggle and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  min-width: 210px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  padding: .5rem 0;
  z-index: 9999;
  list-style: none;
  margin: 0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: rgba(255,255,255,.08); color: var(--accent); }
.dropdown-menu li a.active { color: var(--accent); }
.dropdown-menu li + li { border-top: 1px solid rgba(255,255,255,.07); }

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(255,255,255,.05);
    min-width: unset;
    width: 100%;
  }
  .dropdown-menu li a { padding: .5rem 2rem; }
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 7px;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  margin-left: .5rem;
}
.btn-register:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 680px;
  background:
    linear-gradient(160deg, rgba(0,80,152,.92) 0%, rgba(1,121,218,.80) 60%, rgba(255,184,0,.20) 100%),
    url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-overlay {
  width: 100%;
  padding: 4rem 1.5rem 5rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,184,0,.2);
  border: 1px solid rgba(255,184,0,.5);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  color: var(--white);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Search Form */
.search-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.search-field label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.search-field select,
.search-field input {
  height: 44px;
  padding: 0 .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}
.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1,121,218,.12);
}

.hero-search-wrap {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: .5rem;
  text-align: left;
}

/* IDX Listing Cards — hover effects */
.idx-listing-card-container {
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.listing-card-link:hover .idx-listing-card-container {
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.idx-listing-card-photos {
  overflow: hidden;
}
.idx-listing-card-photos img {
  transition: transform .35s ease;
}
.listing-card-link:hover .idx-listing-card-photos img {
  transform: scale(1.06);
}

/* IDX Search Bar — suppress browser autofill blue highlight */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1e293b !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* IDX Search Bar — force white text on checked (blue) dropdown items */
.inline-multi-select .inline-multi-select-item.inline-multi-select-item-checked,
.inline-multi-select .inline-multi-select-item.inline-multi-select-item-checked * {
  color: #ffffff !important;
}

/* ============================================================
   LISTINGS FOUND BAR
   ============================================================ */
.listings-found-bar {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1.5rem;
  text-align: center;
}

.listings-found-bar p {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
}

.listings-found-bar strong {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   QUICK ACTIONS SECTION
   ============================================================ */
.quick-actions {
  background: var(--light-bg);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 3.5rem;
  background: var(--light-bg);
}

.qa-icon {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(1,121,218,.08);
  border: 2px solid rgba(1,121,218,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-icon i {
  font-size: 3.5rem;
  color: var(--primary);
}

.qa-content { flex: 1; }

.qa-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.qa-content p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.qa-btn:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }

@media (max-width: 768px) {
  .quick-actions-grid { grid-template-columns: 1fr; }
  .quick-action-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }
  .qa-icon { width: 100px; height: 100px; }
  .qa-icon i { font-size: 2.5rem; }
  .qa-btn { margin: 0 auto; }
}

@media (max-width: 480px) {
  .quick-action-card { flex-direction: column; text-align: center; gap: 1.25rem; }
}

/* ============================================================
   LISTINGS SECTION
   ============================================================ */
.listings-section {
  padding: 3.5rem 1.5rem 5rem;
}

.listings-container {
  max-width: 1280px;
  margin: 0 auto;
}

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.listings-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
}

.listings-subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

.listings-controls {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.sort-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sort-select {
  padding: .45rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: var(--font);
  font-size: .85rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  padding-right: 1.75rem;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Property Card */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .card-image-wrap img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 99px;
}

.card-type {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: rgba(1,121,218,.85);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 99px;
}

.card-save {
  position: absolute;
  bottom: .85rem;
  right: .85rem;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
  font-size: .9rem;
}
.card-save:hover,
.card-save.saved { color: #e53e3e; background: var(--white); }

.card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .3rem;
}

.card-address {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-city {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.card-stats {
  display: flex;
  gap: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
}

.card-stat {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-weight: 500;
}
.card-stat i { color: var(--accent); font-size: .8rem; }

.card-stat strong { color: var(--text); }

.btn-view {
  margin-top: auto;
  padding: .6rem;
  background: var(--light-bg);
  color: var(--primary);
  border-radius: 7px;
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  transition: background var(--transition), color var(--transition);
  border: 1.5px solid var(--border);
  width: 100%;
}
.btn-view:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.no-results i { font-size: 3rem; margin-bottom: 1rem; color: var(--border); display: block; }
.no-results h3 { font-size: 1.3rem; color: var(--text); margin-bottom: .5rem; }

/* ============================================================
   WHY REGISTER SECTION
   ============================================================ */
.why-register {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.why-container { max-width: 960px; margin: 0 auto; }

.why-register h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.why-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.12); }
.why-card-link { text-decoration: none; color: #fff; display: block; cursor: pointer; }
.why-card-link:hover { background: rgba(255,255,255,.15); border-color: var(--accent); }

.why-card i {
  font-size: 1.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.why-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 1.5rem 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo i { color: var(--accent); }

.footer-tagline {
  font-size: .82rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-links ul li { margin-bottom: .55rem; }
.footer-links ul li a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--white); text-decoration: none; }

.footer-contact p {
  font-size: .85rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--white); }
.footer-contact i { color: var(--accent); }

.footer-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  margin-top: .75rem;
  display: block !important;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); text-decoration: none; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
  box-shadow: var(--shadow-lg);
}

.modal--narrow { max-width: 480px; }

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
  border: none;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* Property Snapshot inside modal */
.modal-property {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--light-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -32px; /* pull up under the sticky close btn */
  padding-top: 2.75rem;
}

.modal-prop-img {
  width: 90px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-prop-info { flex: 1; min-width: 0; }
.modal-prop-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.modal-prop-address { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-prop-city { font-size: .8rem; color: var(--text-muted); }
.modal-prop-stats { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; display: flex; gap: .75rem; }

/* Modal form area */
.modal-form-wrap {
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}

.modal-sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Lead Form */
.lead-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: flex; flex-direction: column; }
.form-row--two { flex-direction: row; gap: 1rem; }
.form-row--two .form-group { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.req { color: var(--accent); }

.form-group input,
.form-group textarea {
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1,121,218,.1);
}
.form-group input.error { border-color: #e53e3e; }

.field-error {
  font-size: .75rem;
  color: #e53e3e;
  min-height: 1rem;
  display: block;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.btn-submit {
  padding: .85rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
}
.btn-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-legal {
  font-size: .74rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.form-legal a { color: var(--text-muted); text-decoration: underline; }

/* Thank You State */
.thankyou {
  text-align: center;
  padding: 2rem 1rem;
}
.thankyou i {
  font-size: 3rem;
  color: #22c55e;
  display: block;
  margin-bottom: 1rem;
}
.thankyou h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}
.thankyou p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Register icon */
.register-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,184,0,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.register-icon i { font-size: 1.4rem; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .search-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.5rem;
    gap: .25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-links.open {
    max-height: 400px;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,.1);
  }
  .nav-link { padding: .75rem 1rem; border-radius: 8px; }
  .btn-register { margin: .5rem 0 0; padding: .75rem 1rem; justify-content: center; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-overlay { padding: 2.5rem 1rem 3rem; }
  .hero-sub .break-lg { display: none; }

  /* Search */
  .search-grid { grid-template-columns: 1fr 1fr; }

  /* Listings */
  .listings-header { flex-direction: column; align-items: flex-start; }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Modal */
  .modal-property { flex-direction: column; text-align: center; }
  .modal-prop-stats { justify-content: center; }
  .form-row--two { flex-direction: column; }
}

@media (max-width: 480px) {
  .search-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.8rem; }
}

/* reCAPTCHA badge — hide on mobile (IDX-injected, not our contact form) */
@media (max-width: 768px) {
  .grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }
}

/* ============================================================
   LEGAL PAGES (Privacy Policy & Terms of Use)
   ============================================================ */
.legal-section {
  padding: 4rem 1.5rem 5rem;
  background: var(--light-bg);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-updated {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.legal-container p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-container h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 .75rem;
}

.legal-container ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-container ul li {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: .35rem;
}

.legal-container address {
  font-style: normal;
  background: var(--light-bg);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.9;
  font-size: .95rem;
}

.legal-container address a { color: var(--primary); }

@media (max-width: 768px) {
  .legal-container { padding: 2rem 1.25rem; }
}

/* ── Scrollbar Styling ─────────────────────────────────────── */
.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-track { background: var(--light-bg); }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ============================================================
   MAP SEARCH PAGE
   ============================================================ */
.map-search-section {
  background: var(--white);
  padding: 0;
}
.map-search-container {
  width: 100%;
  min-height: 400px;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  background: var(--white);
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.map-container {
  max-width: 1280px;
  margin: 0 auto;
}

.map-header {
  text-align: center;
  margin-bottom: 2rem;
}

.map-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.map-header p {
  font-size: .95rem;
  color: var(--text-muted);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

@media (max-width: 768px) {
  .map-embed iframe { height: 320px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 4rem 1.5rem 5rem;
  background: var(--light-bg);
  min-height: calc(100vh - var(--nav-h) - 300px);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

.contact-page-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

/* Contact info card */
.contact-info-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.contact-info-card .agent-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.contact-info-card .agent-title {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,184,0,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon i {
  font-size: .9rem;
  color: var(--accent);
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding-top: .1rem;
}

.contact-detail-text span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  font-weight: 600;
}

.contact-detail-text a,
.contact-detail-text p {
  font-size: .9rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1.5;
  margin: 0;
}

.contact-detail-text a:hover {
  color: rgba(255,255,255,.8);
  text-decoration: underline;
}

/* Contact form card */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}

.contact-form-card .form-intro {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

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

.contact-form .form-row--two {
  display: flex;
  gap: 1rem;
}

.contact-form .form-row--two .form-group {
  flex: 1;
}

.contact-submit-btn {
  padding: .9rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
}

.contact-submit-btn:hover {
  background: #005cb3;
  transform: translateY(-1px);
}

.contact-thankyou {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-thankyou i {
  font-size: 3rem;
  color: #22c55e;
  display: block;
  margin-bottom: 1rem;
}

.contact-thankyou h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.contact-thankyou p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact hero banner */
.contact-hero {
  background:
    linear-gradient(160deg, rgba(0,80,152,.92) 0%, rgba(1,121,218,.85) 100%),
    url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1600&q=80') center/cover no-repeat;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 3.5rem;
  text-align: center;
  color: var(--white);
}

.contact-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.contact-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form .form-row--two {
    flex-direction: column;
  }
}
