/* ================================
   HOUSELINKS – PREMIUM NAVY UI
   ================================ */

:root {
  --navy: #0f172a;        /* main navy */
  --navy-light: #1e293b;
  --navy-soft: #334155;
  --accent: #2563eb;     /* blue accent */
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(0,0,0,.08);
  --radius: 22px;
}

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

html, body {
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

/* ================================
   PAGE WRAPPER
   ================================ */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ================================
   FLOATING ACTION BUTTONS
   ================================ */
.fab {
  position: fixed;
  top: 18px;
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 14px 30px rgba(15,23,42,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(15,23,42,.55);
}
.fab-left { left: 20px; }
.fab-right { right: 20px; }

/* ================================
   FILTER BAR
   ================================ */
.filters-bar {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.filters-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
}

.filters-form input,
.filters-form select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: white;
}

/* ================================
   BUTTONS (GLOBAL)
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  box-shadow: 0 12px 24px rgba(15,23,42,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15,23,42,.55);
}
.filters-bar .btn.apply {
  background: linear-gradient(135deg, #0a2540, #102a43); /* navy */
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 10px 22px rgba(10,37,64,0.45);
  transition: all .25s ease;
}

.filters-bar .btn.apply:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 44px rgba(10,37,64,0.65);
}
/* ===== UNLOCK / REQUEST CONTACT BUTTON ===== */
.btn.unlock {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(79,195,247,.45);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn.unlock {
  position: relative;      /* REQUIRED for z-index */
  z-index: 1;
}

.btn.unlock:hover {
  z-index: 40;             /* 👈 brings it above cards */
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 28px 60px rgba(41,182,246,.75);
}

.btn.call {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.btn.whatsapp {
  background: linear-gradient(135deg, #075e54, #128c7e);
}

.card div {
  margin-bottom: 10px;
  color: var(--navy-light);
}

/* ================================
   BADGES
   ================================ */
.badge-new {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg,#dc2626,#991b1b);
  color: white;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .4px;
}

/* ================================
   CONTACT STATES
   ================================ */
.hidden {
  color: var(--muted);
  font-style: italic;
}

.contact-locked {
  background: rgba(15,23,42,.06);
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--navy);
}

.phone-box {
  margin-top: 10px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* ================================
   LOAD MORE
   ================================ */
.load-more {
  text-align: center;
  margin: 50px 0;
}

/* ================================
   ADMIN / TABLE (SAFE)
   ================================ */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--navy);
  color: white;
  font-weight: 600;
}

tr:hover {
  background: rgba(15,23,42,.04);
}
/* =========================================
   FORCE CLASSIC NAVY BLUE (FINAL OVERRIDE)
   Paste at VERY BOTTOM of style.css
========================================= */

:root{
  --navy:#0b3c5d; /* classic navy blue */
}

/* APPLY FILTER */
.filters-bar .btn.apply{
  background:var(--navy) !important;
  color:#ffffff !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(11,60,93,.55) !important;
}

/* UNLOCK BUTTON */
.btn.unlock{
  background:var(--navy) !important;
  color:#ffffff !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(11,60,93,.55) !important;
}

/* HOME FLOATING BUTTON */
.home-btn{
  background:var(--navy) !important;
  color:#ffffff !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(11,60,93,.55) !important;
}

/* SEND REQUEST FLOATING BUTTON */
.send-btn{
  background:var(--navy) !important;
  color:#ffffff !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(11,60,93,.55) !important;
}

/* HOVER – COME FRONT MORE */
.btn.apply:hover,
.btn.unlock:hover,
.home-btn:hover,
.send-btn:hover{
  transform:translateY(-4px) scale(1.06) !important;
  box-shadow:0 30px 60px rgba(11,60,93,.8) !important;
}

/* ACTIVE TOUCH FEEL */
.btn.apply:active,
.btn.unlock:active,
.home-btn:active,
.send-btn:active{
  transform:scale(0.97) !important;
}
/* =========================================
   FORCE LIGHT SKY BLUE (FINAL OVERRIDE)
   Paste at VERY BOTTOM of style.css
========================================= */

:root{
  --sky:#38bdf8;       /* sky blue */
  --sky-soft:#7dd3fc; /* lighter sky */
}

/* APPLY FILTER BUTTON */
.filters-bar .btn.apply{
  background:linear-gradient(135deg,var(--sky-soft),var(--sky)) !important;
  color:#00334d !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(56,189,248,.45) !important;
}

/* UNLOCK BUTTON */
.btn.unlock{
  background:linear-gradient(135deg,var(--sky-soft),var(--sky)) !important;
  color:#00334d !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(56,189,248,.45) !important;
}

/* HOME FLOATING BUTTON */
.home-btn{
  background:linear-gradient(135deg,var(--sky-soft),var(--sky)) !important;
  color:#00334d !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(56,189,248,.45) !important;
}

/* SEND REQUEST FLOATING BUTTON */
.send-btn{
  background:linear-gradient(135deg,var(--sky-soft),var(--sky)) !important;
  color:#00334d !important;
  border:none !important;
  box-shadow:0 14px 30px rgba(56,189,248,.45) !important;
}

/* HOVER – COME FRONT STRONG */
.btn.apply:hover,
.btn.unlock:hover,
.home-btn:hover,
.send-btn:hover{
  transform:translateY(-5px) scale(1.07) !important;
  box-shadow:0 34px 70px rgba(56,189,248,.75) !important;
}

/* ACTIVE TOUCH */
.btn.apply:active,
.btn.unlock:active,
.home-btn:active,
.send-btn:active{
  transform:scale(0.96) !important;
}
/* =========================================
   REMOVE SHADING FROM CONTACT AVAILABLE
========================================= */

.contact-locked{
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 10px 0 !important;
  color: #475569 !important; /* clean slate text */
  font-weight: 500;
}

/* Optional: icon only, no card look */
.contact-locked strong{
  color:#0284c7; /* sky blue highlight */
}
/* ===== FORM VERTICAL FIX ===== */
.house-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.house-form label {
  font-weight: 600;
  color: #0f172a;
}

.house-form input,
.house-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 15px;
}

.house-form input:focus,
.house-form select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.form-title {
  margin-bottom: 10px;
  color: #020617;
}

.section-title {
  margin-top: 18px;
  color: #020617;
}

.hint {
  font-size: 13px;
  color: #64748b;
  margin-top: -6px;
}

.consent {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}

.submit-btn {
  margin-top: 20px;
}
.field-note {
  display: block;
  margin: 6px 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}
.footer-link {
  color: #0b2a4a;
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  text-decoration: underline;
}
/* ===== FOOTER CARD ===== */
.footer-card {
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #0b2a4a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: #64748b;
}
/* ===== EXCHANGE HERO ===== */
.exchange-hero {
  position: relative;
  height: 420px;
  border-radius: 28px;
  margin: 40px auto 60px;
  max-width: 1200px;

  background-image: url("/images/exchange-hero.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;

  box-shadow: 0 30px 60px rgba(15,23,42,0.12);
}

/* Dark soft overlay */
.exchange-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 47, 0.15),
    rgba(10, 25, 47, 0.55)
  );
}

/* Content */
.exchange-content {
  position: relative;
  z-index: 2;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 48px;
  max-width: 520px;
  color: #ffffff;
}

.exchange-content h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.exchange-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #e5e7eb;
  margin-bottom: 26px;
}

/* Mobile */
@media (max-width: 768px) {
  .exchange-hero {
    height: 360px;
    margin: 24px 12px 48px;
    border-radius: 20px;
  }

  .exchange-content {
    padding: 28px;
  }

  .exchange-content h2 {
    font-size: 28px;
  }
}
/* ===== PWA INSTALL BUTTON ===== */
.install-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;

  display: none;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 999px;

  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;

  border: none;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}
.install-hint{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.55);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.install-hint-card{
  background:#ffffff;
  border-radius:18px;
  padding:24px;
  max-width:320px;
  text-align:center;
  box-shadow:0 20px 40px rgba(0,0,0,0.2);
  animation:floatIn .4s ease;
}

.install-hint-card strong{
  color:#0f172a;
  font-size:18px;
}

.install-hint-card p{
  margin:14px 0;
  color:#475569;
  line-height:1.4;
}

.install-hint-card .btn.small{
  padding:8px 16px;
  font-size:14px;
}
.filters-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;   /* allow wrapping */
}

.filters-form select,
.filters-form input,
.filters-form button {
  max-width: 220px; /* stop stretching */
  width: 100%;
}

.filters-bar {
  overflow-x: hidden; /* prevent layout breaking */
}

/* ================================
   GRID & CARDS (FINAL)
================================ */
.cards-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Tablet */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* ================================
   FINAL GRID
================================ */
.cards-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Tablet */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   FINAL CARD STYLE
================================ */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* NEW badge */
.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e11d48;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
}

/* Contact buttons */
.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn.call {
  background: #0f3cc9;
  color: #fff;
}

.btn.whatsapp {
  background: #25D366;
  color: #fff;
}
/* ===== FORCE CARD HOVER EFFECT ===== */
.cards-grid .card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.cards-grid .card:hover,
.cards-grid .card:focus-within {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  z-index: 999;
}
.badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #dc2626; /* red */
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  animation: pulseNew 1.5s infinite;
  box-shadow: 0 0 0 rgba(220,38,38,0.7);
}

/* Pulse animation */
@keyframes pulseNew {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220,38,38,0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(220,38,38,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220,38,38,0);
  }
}
.fab {
  animation: pulseFab 1.8s infinite;
}

@keyframes pulseFab {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.fab {
  animation: bounceFab 2s infinite;
}

@keyframes bounceFab {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
@media (max-width: 600px) {
  .hero-slider {
    height: 55vh;
  }
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.6));
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 8%;
  color: #fff;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #0a2540;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .3s ease, background .3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  background: #0f3a63;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content {
    left: 5%;
    right: 5%;
    bottom: 15%;
  }
}
/* ================================
   INSTALL APP FLOATING BUTTON
================================ */
.install-fab {
  position: fixed;
  top: 14px;
  right: 14px;          /* FORCE TOP RIGHT */
  z-index: 99999;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 16px 26px;
  font-size: 18px;      /* BIG TEXT */
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(239,68,68,0.6);
  animation: installPulse 1.4s infinite;
}

/* Pulse animation */
@keyframes installPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(239,68,68,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239,68,68,0);
  }
}

/* Mobile adjustment */
@media (max-width: 600px) {
  .install-fab {
    font-size: 16px;
    padding: 14px 22px;
    top: 10px;
    right: 10px;
  }
}
.install-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  animation: pulseInstall 1.5s infinite;
}

/* Pulse animation */
@keyframes pulseInstall {
  0% { transform: scale(1); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
/* FLOATING INSTALL BUTTON (uses your hero-btn) */
.install-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;

  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  animation: installPulse 1.8s infinite;
}

/* Hover */
.install-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

/* Mobile */
@media (max-width: 600px) {
  .install-fab {
    top: 10px;
    right: 10px;
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* Pulse animation */
@keyframes installPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70%  { box-shadow: 0 0 0 18px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.fab-left {
  color: red;              /* 🔴 text only */
  background: inherit;    /* keep existing background */
}
/* =========================================
   FIX LONG TEXT BREAKING CARD WIDTH
   ========================================= */

/* Apply to all card text */
.card {
  overflow: hidden;
}

/* Force text to wrap instead of expanding */
.card p,
.card span,
.card div {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Short description specific (recommended) */
.short-desc {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;

  /* Optional: limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
