/* ============================================================
   PropNest — Public Frontend Stylesheet v2
   All colours from CSS variables. Zero hardcoded brand values.
   ============================================================ */
:root {
  --primary:      #1D4ED8;
  --primary-dark: #1e40af;
  --secondary:    #F59E0B;
  --accent:       #0F6E56;
  --danger:       #DC2626;
  --text:         #1E293B;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --bg:           #F8FAFC;
  --white:        #FFFFFF;
  --navy:         #0F1A2E;
  --radius:       10px;
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ──────────────────────────────────────────────────*/
.navbar { position: sticky; top: 0; z-index: 200;
          background: rgba(15,26,46,0.96); backdrop-filter: blur(12px);
          border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.nav-brand { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.2px; flex-shrink: 0;
             display: flex; align-items: center; gap: 8px; max-width: 240px; }
.nav-brand:hover { text-decoration: none; opacity: .9; }
.nav-brand-text { line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; list-style: none; gap: 2px; flex: 1; }
.nav-links a { color: rgba(255,255,255,.75); padding: 7px 14px; border-radius: 7px;
               font-size: 14px; font-weight: 500; transition: all .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── BUTTONS ─────────────────────────────────────────────────*/
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
       padding: 9px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
       cursor: pointer; border: 2px solid transparent; transition: all .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary       { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent        { background: var(--accent); color: #fff; }
.btn-outline       { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark  { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline-dark:hover { background: var(--text); color: #fff; }
.btn-ghost         { color: rgba(255,255,255,.8); background: transparent; }
.btn-ghost:hover   { color: #fff; background: rgba(255,255,255,.1); }
.btn-nav-outline   { border: 1.5px solid rgba(255,255,255,.4); color: rgba(255,255,255,.9);
                     padding: 6px 16px; border-radius: 7px; font-size: 13.5px; }
.btn-nav-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.btn-nav-primary   { background: var(--primary); color: #fff; padding: 6px 16px;
                     border-radius: 7px; font-size: 13.5px; font-weight: 700; }
.btn-nav-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-sm  { padding: 5px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* ── HERO CAROUSEL ───────────────────────────────────────────*/
.hero-carousel { position: relative; min-height: 88vh; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center;
              opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; position: relative; }
/* Themed gradient — uses CSS variables so each theme can override the
   exact colours via :root, instead of a hardcoded inline gradient that
   would always beat theme stylesheets regardless of load order. */
.hero-slide-themed {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--accent) 0%, var(--primary) 55%, var(--secondary) 100%);
}
/* When a slide has an uploaded image, the inline style sets
   background-image to the photo URL directly, which overrides the
   gradient above (last background-image wins). We add a dark themed
   scrim on top via box-shadow inset so text stays readable, without
   needing a second background layer or fragile attribute selectors. */
.hero-slide-themed.has-image {
  background-color: var(--primary);
  box-shadow: inset 0 0 0 2000px rgba(15,26,46,.55);
}
.hero-content { position: relative; z-index: 2; max-width: 720px;
                margin: 0 auto; text-align: center; padding: 120px 24px 180px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px;
              background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
              color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2);
              padding: 6px 16px; border-radius: 20px; font-size: 12.5px;
              font-weight: 600; margin-bottom: 24px; letter-spacing: .3px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399;
             animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; color: #fff;
              line-height: 1.15; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-sub   { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px;
              line-height: 1.6; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta   { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn    { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px;
              border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
              border: none; transition: all .2s; text-decoration: none; }
.cta-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(29,78,216,.45); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,78,216,.5); text-decoration: none; color: #fff; }
.cta-ghost   { background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
               color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.cta-ghost:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }

/* Carousel arrows */
.carousel-prev,.carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px;
  cursor: pointer; z-index: 10; transition: all .2s;
  display: flex; align-items: center; justify-content: center; }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover,.carousel-next:hover { background: rgba(255,255,255,.3); }
.carousel-dots { position: absolute; bottom: 170px; left: 50%; transform: translateX(-50%);
                 display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4);
       border: none; cursor: pointer; transition: all .2s; padding: 0; }
.dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ── HERO SEARCH ─────────────────────────────────────────────*/
.hero-search-wrap { position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
                    padding: 0 24px 0; }
.hero-search { background: #fff; border-radius: 16px 16px 0 0;
               box-shadow: 0 -4px 32px rgba(0,0,0,.18);
               max-width: 900px; margin: 0 auto; overflow: hidden; }
.hs-tab-row { display: flex; border-bottom: 1px solid var(--border); }
.hs-tab { flex: 1; padding: 12px; background: transparent; border: none;
          font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
          border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all .15s; }
.hs-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.hs-tab:hover { color: var(--text); }
.hs-fields { display: flex; align-items: stretch; gap: 0; }
.hs-field { display: flex; flex-direction: column; padding: 10px 16px;
            border-right: 1px solid var(--border); min-width: 140px; }
.hs-field-grow { flex: 1; }
.hs-field label { font-size: 10.5px; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .5px; color: var(--muted); margin-bottom: 3px; }
.hs-field select, .hs-field input {
  border: none; outline: none; font-size: 14px; color: var(--text);
  background: transparent; padding: 0; width: 100%; }
.hs-submit { padding: 0 28px; background: var(--primary); color: #fff;
             border: none; font-size: 15px; font-weight: 700; cursor: pointer;
             display: flex; align-items: center; gap: 8px; transition: background .15s; }
.hs-submit:hover { background: var(--primary-dark); }

/* ── STATS STRIP ─────────────────────────────────────────────*/
.stats-strip { background: var(--navy); padding: 28px 0; border-top: 4px solid var(--primary); }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 12px 16px;
             border-right: 1px solid rgba(255,255,255,.08); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 24px; margin-bottom: 4px; }
.stat-num  { font-size: 30px; font-weight: 900; color: #fff; line-height: 1.1; }
.stat-lbl  { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px;
             font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* ── SECTION COMMON ──────────────────────────────────────────*/
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end;
                margin-bottom: 36px; }
.section-head.center { justify-content: center; text-align: center; }
.section-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
                 letter-spacing: 1px; color: var(--primary); margin-bottom: 6px; }
.section-title { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.2; }

/* ── PROPERTY CAROUSEL ───────────────────────────────────────*/
.prop-carousel { position: relative; overflow: hidden; }
.prop-track { display: flex; gap: 24px; transition: transform .4s ease; }
.prop-card  { flex: 0 0 calc(33.333% - 16px); background: #fff; border-radius: 14px;
              box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prop-card-img-wrap { position: relative; height: 220px; overflow: hidden; }
.prop-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-card-img-wrap img { transform: scale(1.05); }
.prop-no-img { width: 100%; height: 100%; background: var(--bg); display: flex;
               align-items: center; justify-content: center; font-size: 48px; }
.prop-type-badge { position: absolute; top: 12px; left: 12px; background: rgba(15,26,46,.75);
                   color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px;
                   border-radius: 20px; backdrop-filter: blur(4px); }
.prop-listing-badge { position: absolute; top: 12px; right: 12px; font-size: 11px;
                      font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.prop-listing-badge.sale { background: var(--primary); color: #fff; }
.prop-listing-badge.rent { background: var(--accent); color: #fff; }
.prop-featured-badge { position: absolute; bottom: 12px; left: 12px; background: var(--secondary);
                       color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px;
                       border-radius: 20px; }
.prop-save-btn { position: absolute; bottom: 12px; right: 12px; background: rgba(255,255,255,.9);
                 border: none; width: 32px; height: 32px; border-radius: 50%;
                 font-size: 15px; cursor: pointer; display: flex; align-items: center;
                 justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.prop-card-body { padding: 18px; }
.prop-price { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.prop-price-unit { font-size: 13px; font-weight: 400; color: var(--muted); }
.prop-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.prop-title a { color: var(--text); }
.prop-title a:hover { color: var(--primary); text-decoration: none; }
.prop-location { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.prop-specs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px;
              color: var(--muted); margin-bottom: 14px; }
.prop-btn { display: inline-block; background: var(--primary); color: #fff; padding: 8px 18px;
            border-radius: 8px; font-size: 13px; font-weight: 700; transition: background .15s; }
.prop-btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.prop-prev,.prop-next { position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1.5px solid var(--border); width: 40px; height: 40px;
  border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all .15s; }
.prop-prev { left: -20px; }
.prop-next { right: -20px; }
.prop-prev:hover,.prop-next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── CITIES GRID ─────────────────────────────────────────────*/
.cities-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.city-card { display: block; border-radius: 12px; overflow: hidden; position: relative;
             height: 108px; text-decoration: none; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.city-card:hover img { transform: scale(1.08); }
.city-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--primary),var(--accent));
                    display: flex; align-items: center; justify-content: center; font-size: 28px; opacity: .85; }
.city-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px;
                background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.city-name  { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
.city-state { color: rgba(255,255,255,.65); font-size: 11px; }

/* ── WHY SECTION ─────────────────────────────────────────────*/
.why-section { background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-card { background: #fff; border-radius: 14px; padding: 28px 24px;
            box-shadow: var(--shadow); border-top: 3px solid var(--primary);
            transition: transform .2s; }
.why-card:hover { transform: translateY(-4px); }
.why-icon  { font-size: 36px; margin-bottom: 14px; }
.why-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.why-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── AGENTS GRID ─────────────────────────────────────────────*/
.agents-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.agent-card { display: flex; gap: 16px; align-items: center; background: #fff;
              border-radius: 14px; padding: 20px; box-shadow: var(--shadow);
              text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.agent-avatar-wrap { flex-shrink: 0; }
.agent-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800; }
.agent-name    { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.agent-role    { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.agent-branch  { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.agent-rating  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stars { color: #F59E0B; font-size: 13px; }
.agent-listings { background: var(--bg); padding: 1px 7px; border-radius: 10px; font-size: 11px; }

/* ── CTA SECTION ─────────────────────────────────────────────*/
.cta-section { position: relative; overflow: hidden; padding: 80px 0; }
.cta-bg { position: absolute; inset: 0;
          background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 60%, var(--accent) 100%); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center;
             justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-text p  { font-size: 16px; color: rgba(255,255,255,.75); max-width: 500px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-white { background: #fff; color: var(--navy); font-weight: 700; }
.cta-white:hover { background: #F1F5F9; text-decoration: none; color: var(--navy); }
.cta-amber { background: var(--secondary); color: #fff; font-weight: 700; }
.cta-amber:hover { background: #d97706; text-decoration: none; color: #fff; }

/* ── AUTH PAGES ──────────────────────────────────────────────*/
.auth-page { min-height: calc(100vh - 68px); display: flex; align-items: center;
             justify-content: center; background: var(--bg); padding: 48px 20px; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
             padding: 44px 40px; width: 100%; max-width: 460px; }
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.auth-sub   { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.auth-form  { display: flex; flex-direction: column; }
.auth-footer { text-align: center; font-size: 13px; margin-top: 22px; color: var(--muted); }

/* ── FORM ELEMENTS ───────────────────────────────────────────*/
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700;
                    margin-bottom: 7px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .15s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; justify-content: space-between; align-items: center;
              margin-bottom: 18px; font-size: 13px; }

/* ── FLASH MESSAGES ──────────────────────────────────────────*/
.flash { padding: 14px 24px; font-size: 14px; font-weight: 500; }
.flash-success { background: #DCFCE7; color: #166534; border-bottom: 1px solid #BBF7D0; }
.flash-error   { background: #FEE2E2; color: #991B1B; border-bottom: 1px solid #FECACA; }
.flash-info    { background: #DBEAFE; color: #1E40AF; border-bottom: 1px solid #BFDBFE; }

/* ── CARDS (generic) ─────────────────────────────────────────*/
.card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
        transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 18px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.card-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.card-meta  { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.prop-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }

/* ── BADGES ──────────────────────────────────────────────────*/
.badge-featured { background: var(--secondary); color: #fff; font-size: 11px;
                  font-weight: 700; padding: 2px 9px; border-radius: 20px; text-transform: uppercase; }
.badge-status   { font-size: 11px; font-weight: 700; padding: 2px 9px;
                  border-radius: 20px; text-transform: uppercase; }
.badge-available { background: #DCFCE7; color: #166534; }
.badge-rented    { background: #FEF3C7; color: #92400E; }
.badge-sold      { background: #FEE2E2; color: #991B1B; }

/* ── FOOTER ──────────────────────────────────────────────────*/
.footer { background: var(--navy); color: rgba(255,255,255,.5);
          padding: 36px 0; text-align: center; font-size: 13px; line-height: 2; }
.footer a { color: rgba(255,255,255,.6); }
.footer a:hover { color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .cities-grid  { grid-template-columns: repeat(3,1fr); }
  .agents-grid  { grid-template-columns: repeat(2,1fr); }
  .prop-card    { flex: 0 0 calc(50% - 12px); }
  .nav-brand    { max-width: 160px; font-size: 16px; }
}
@media (max-width: 768px) {
  .nav-links      { display: none; }
  .nav-actions    { display: none; }
  .form-row       { grid-template-columns: 1fr; }
  .prop-grid      { grid-template-columns: 1fr; }
  .cities-grid    { grid-template-columns: repeat(2,1fr); }
  .why-grid       { grid-template-columns: 1fr; }
  .agents-grid    { grid-template-columns: 1fr; }
  .prop-card      { flex: 0 0 100%; }
  .stats-row      { grid-template-columns: repeat(2,1fr); }
  .cta-inner      { flex-direction: column; text-align: center; }
  .hero-content   { padding: 100px 20px 200px; }
  .hs-fields      { flex-direction: column; }
  .hs-field       { border-right: none; border-bottom: 1px solid var(--border); }
  .hs-submit      { padding: 14px; }
  .auth-card      { padding: 32px 24px; }
}
/* ══════════════════════════════════════════════════════════════
   MOBILE NAV — hamburger toggle + slide-down panel
   The .nav-links / .nav-actions display:none rules above hide the
   desktop nav at 768px with no replacement, which is what caused
   the navbar to have no way to access menu links on mobile. This
   adds a real mobile menu: a hamburger button (hidden on desktop)
   that toggles a slide-down panel containing the same links plus
   auth actions, stacked full-width and touch-friendly.
══════════════════════════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: #0F1A2E;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: max-height .25s ease;
}
.nav-mobile-panel.open { max-height: 80vh; overflow-y: auto; }
.nav-mobile-links { list-style: none; padding: 8px 20px; margin: 0; }
.nav-mobile-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-mobile-links li:last-child { border-bottom: none; }
.nav-mobile-links a {
  display: block;
  padding: 14px 4px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-mobile-links a:hover { color: #fff; text-decoration: none; }
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 24px;
}
.nav-mobile-actions .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-mobile-panel { display: block; }
}

@media (max-width: 480px) {
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .stats-row   { grid-template-columns: 1fr 1fr; }
  .hero-title  { font-size: 28px; }
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM CONFIRM / ALERT MODAL
   Replaces native browser confirm()/alert() dialogs (which can't be
   styled and look out of place against the rest of the site) with a
   themed modal matching the rest of the UI. Driven by
   PropNestConfirm(message, onConfirm) and PropNestAlert(message) in
   app.js — every existing [data-confirm] button and alert() call
   site now routes through this without needing changes to the
   dozens of view files that already use data-confirm="...".
══════════════════════════════════════════════════════════════ */
.pn-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.pn-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.pn-modal-box {
  background: #fff; border-radius: 14px;
  max-width: 400px; width: 100%;
  padding: 28px 28px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(8px) scale(.97);
  transition: transform .15s ease;
  text-align: left;
}
.pn-modal-overlay.is-open .pn-modal-box { transform: translateY(0) scale(1); }
.pn-modal-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
  background: #EFF6FF; color: var(--primary, #1D4ED8);
}
.pn-modal-overlay[data-tone="danger"] .pn-modal-icon { background: #FEE2E2; color: #DC2626; }
.pn-modal-overlay[data-tone="success"] .pn-modal-icon { background: #DCFCE7; color: #166534; }
.pn-modal-title {
  font-size: 16px; font-weight: 800; color: var(--text, #1E293B);
  margin-bottom: 6px; line-height: 1.3;
}
.pn-modal-msg {
  font-size: 13.5px; color: var(--muted, #64748B); line-height: 1.6;
  margin-bottom: 22px; word-break: break-word;
}
.pn-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pn-modal-actions button {
  border: none; border-radius: 8px; padding: 9px 20px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: opacity .12s ease; font-family: inherit;
}
.pn-modal-cancel { background: #F1F5F9; color: var(--text, #1E293B); }
.pn-modal-cancel:hover { opacity: .8; }
.pn-modal-ok { background: var(--primary, #1D4ED8); color: #fff; }
.pn-modal-ok:hover { opacity: .9; }
.pn-modal-overlay[data-tone="danger"] .pn-modal-ok { background: #DC2626; }

/* ══════════════════════════════════════════════════════════════
   PATCH v3 — Search bar layout fix + brand consistency
══════════════════════════════════════════════════════════════ */

/* Hero: ensure enough height for search bar below content */
.hero-carousel  { min-height: 92vh; padding-bottom: 140px; }
.hero-slide     { min-height: 92vh; }
.hero-content   { padding: 100px 24px 40px; }

/* Search wrap: pinned to bottom, full width, no overlap */
.hero-search-wrap {
  position: absolute;
  bottom:   0;
  left:     0;
  right:    0;
  z-index:  20;
  padding:  0 24px;
}

.hero-search {
  background:    #fff;
  border-radius: 16px 16px 0 0;
  box-shadow:    0 -4px 32px rgba(0,0,0,.18);
  max-width:     920px;
  margin:        0 auto;
  overflow:      hidden;
}

/* Tab row */
.hs-tab-row {
  display:       flex;
  border-bottom: 1px solid var(--border);
  background:    #fff;
}
.hs-tab {
  flex:          1;
  padding:       13px 10px;
  background:    transparent;
  border:        none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size:     14px;
  font-weight:   600;
  color:         var(--muted);
  cursor:        pointer;
  transition:    all .15s;
}
.hs-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.hs-tab:hover  { color: var(--text); }

/* Fields row */
.hs-fields {
  display:     flex;
  align-items: stretch;
  min-height:  60px;
}
.hs-field {
  display:        flex;
  flex-direction: column;
  justify-content:center;
  padding:        8px 16px;
  border-right:   1px solid var(--border);
  min-width:      150px;
}
.hs-field-grow { flex: 1; }
.hs-field label {
  font-size:      10px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color:          var(--muted);
  margin-bottom:  3px;
  white-space:    nowrap;
}
.hs-field select,
.hs-field input {
  border:     none;
  outline:    none;
  font-size:  14px;
  color:      var(--text);
  background: transparent;
  padding:    0;
  width:      100%;
  font-family: inherit;
}
.hs-field select:focus,
.hs-field input:focus { outline: none; }

.hs-submit {
  padding:        0 28px;
  background:     var(--primary);
  color:          #fff;
  border:         none;
  font-size:      15px;
  font-weight:    700;
  cursor:         pointer;
  display:        flex;
  align-items:    center;
  gap:            8px;
  white-space:    nowrap;
  transition:     background .15s;
  flex-shrink:    0;
}
.hs-submit:hover { background: var(--primary-dark); }

/* Carousel dot position: above search bar */
.carousel-dots { bottom: 150px; }

/* Mobile search */
@media (max-width: 768px) {
  .hero-carousel  { min-height: auto; padding-bottom: 320px; }
  .hero-slide     { min-height: 600px; }
  .hero-content   { padding: 80px 20px 30px; }
  .hs-fields      { flex-direction: column; }
  .hs-field       { border-right: none; border-bottom: 1px solid var(--border); min-width: 100%; }
  .hs-submit      { padding: 16px; justify-content: center; }
  .carousel-dots  { bottom: 330px; }
}

@media (max-width: 480px) {
  .hero-carousel  { padding-bottom: 380px; }
  .hero-slide     { min-height: 560px; }
  .carousel-dots  { bottom: 390px; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER v2 — 3-column layout
══════════════════════════════════════════════════════════════ */
.footer {
  background:  #0F1A2E;
  color:       rgba(255,255,255,.55);
  padding:     56px 0 0;
  font-size:   14px;
  line-height: 1.7;
}

/* Top 3-col row */
.footer-top {
  display:               grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap:                   48px;
  padding-bottom:        40px;
  border-bottom:         1px solid rgba(255,255,255,.08);
}

/* Brand column */
.footer-brand      { }
.footer-brand-name {
  font-size:   24px;
  font-weight: 800;
  color:       #fff;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.footer-tagline {
  color:       rgba(255,255,255,.5);
  font-size:   14px;
  max-width:   320px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Social row */
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.social-btn {
  width:           36px;
  height:          36px;
  border-radius:   50%;
  background:      rgba(255,255,255,.08);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           rgba(255,255,255,.7);
  transition:      all .18s;
  text-decoration: none;
}
.social-btn:hover {
  background:      var(--primary);
  color:           #fff;
  text-decoration: none;
  transform:       translateY(-2px);
}

/* Column headers */
.footer-col-title {
  font-size:     12px;
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color:         rgba(255,255,255,.4);
  margin-bottom: 16px;
}

/* Quick links */
.footer-links {
  list-style: none;
  padding:    0;
  margin:     0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color:           rgba(255,255,255,.6);
  font-size:       14px;
  transition:      color .15s;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

/* Contact list */
.footer-contact-list {
  list-style: none;
  padding:    0;
  margin:     0;
}
.footer-contact-list li {
  display:     flex;
  gap:         10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size:   13.5px;
  color:       rgba(255,255,255,.6);
}
.contact-icon { font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a {
  color:           rgba(255,255,255,.6);
  text-decoration: none;
  transition:      color .15s;
}
.footer-contact-list a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             12px;
  padding:         16px 0;
  font-size:       12px;
  color:           rgba(255,255,255,.28);
  flex-wrap:       wrap;
}
.footer-bottom-sep { opacity: .4; }

/* Footer responsive */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}
