/* =========================
   PRO REAL-ESTATE THEME
   Primary: Navy
   Accent:  Gold
   ========================= */

/* Change ONLY these variables to test different color combos */
:root{
  /* Surfaces */
  --page: #f6f8fb;
  --surface: #ffffff;
  --surfaceSoft: #f1f5f9;
  --surfaceGlass: rgba(255,255,255,0.82);
  --input: #ffffff;

  /* Text */
  --text: #0f172a;
  --muted: #475569;

  /* Lines + shadow */
  --line: #e2e8f0;
  --shadow: 0 8px 18px rgba(2, 8, 23, 0.10);


  /* Brand */
  --primary: #0b3a5b;    /* Navy */
  --secondary: #f59e0b;  /* Gold */
  --primaryText: #ffffff;
}

/* OPTIONAL palettes (quick swap):
   1) Blue + Teal:
      --primary:#1d4ed8; --secondary:#06b6d4;
   2) Emerald + Navy:
      --primary:#065f46; --secondary:#0b3a5b;
   3) Charcoal + Gold:
      --primary:#111827; --secondary:#f59e0b;
*/

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--page);  /* simple + fast */
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container{
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 1rem; top: 1rem; width:auto; height:auto;
  background: #fff; color:#000; padding: .6rem .8rem; border-radius: .6rem;
  z-index: 9999;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;          /* solid, faster */
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(2,8,23,0.08);
}

/* REMOVE this line if you have it: */
/* backdrop-filter: blur(10px); */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark{ font-size: 1.4rem; }
.brand-text strong{ display:block; font-size: 1rem; letter-spacing: .2px; }
.brand-sub{ display:block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

.site-nav{
  display:flex;
  align-items:center;
  gap: 1rem;
}
.site-nav .btn-primary {
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 500;
}
}
.site-nav a:hover{ color: var(--text); text-decoration: none; }

.nav-toggle{
  display:none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .55rem .7rem;
  color: var(--text);
}
.nav-toggle-bars{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav-toggle-bars::before{ top: -6px; }
.nav-toggle-bars::after{ top: 6px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .4rem;
  padding: .75rem 1rem;
  border-radius: .9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration:none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(2,8,23,0.06);
}
.btn:hover{ filter: brightness(1.02); text-decoration: none; }

.btn-primary{
  border-color: transparent;
  background: var(--primary);
  color: var(--primaryText);
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(11,58,91,0.20);
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-outline{
  background: transparent;
  border-color: rgba(11,58,91,0.25);
  color: var(--primary);
}
.btn-outline:hover{
  background: rgba(11,58,91,0.06);
}

.btn-small{
  padding: .55rem .8rem;
  border-radius: .75rem;
  font-size: .9rem;
}
.btn-block{ width: 100%; }

/* Hero */
.hero{
  padding: 3.5rem 0 2rem;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.badge{
  display:inline-flex;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: .85rem;
}
.hero h1{
  margin: .8rem 0 .6rem;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.accent{
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead{
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-cta{
  display:flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.hero-points{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Hero card */
.hero-card{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.2rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card-title{ margin: 0 0 .35rem; }
.muted{ color: var(--muted); }

.search-form{
  display:grid;
  gap: .9rem;
  margin-top: .9rem;
}

label{
  display:grid;
  gap: .45rem;
  font-size: .95rem;
  color: var(--muted);
}

input, select, textarea{
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .75rem .8rem;
  border-radius: .9rem;
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(11,58,91,0.55);
  box-shadow: 0 0 0 4px rgba(11,58,91,0.10);
}

.form-hint{
  margin: .1rem 0 0;
  font-size: .86rem;
  color: rgba(71,85,105,0.95);
}

/* Sections */
.section{
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.section-soft{
  background: var(--surfaceSoft);
}
.section h2{
  margin: 0 0 .6rem;
  font-size: 1.55rem;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Listings */
.listings-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.listing{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.2rem;
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}

.listing .thumb{
  height: 150px;
  background:
    radial-gradient(500px 180px at 20% 0%, rgba(11,58,91,0.18), transparent 60%),
    radial-gradient(500px 180px at 80% 0%, rgba(245,158,11,0.22), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,0.04), rgba(15,23,42,0.01));
  border-bottom: 1px solid var(--line);
}

.listing .body{
  padding: 1rem;
  display:grid;
  gap: .45rem;
}
.listing .title{
  margin: 0;
  font-size: 1.05rem;
}
.kv{
  display:flex;
  flex-wrap: wrap;
  gap: .45rem .6rem;
  color: var(--muted);
  font-size: .9rem;
}
.pill{
  display:inline-flex;
  padding: .22rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surfaceSoft);
  font-size: .82rem;
  color: rgba(71,85,105,0.95);
}
.price{
  margin-top: .2rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--primary);
}
.listing .actions{
  display:flex;
  gap: .6rem;
  padding: 0 1rem 1rem;
}

.note{
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surfaceSoft);
}

/* Chips */
.chips{
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.chip{
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: rgba(71,85,105,0.95);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.card{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 .4rem; }
.quote{ margin: 0 0 .6rem; line-height: 1.6; }

/* About */
.about-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}
.stats{
  display:grid;
  gap: .8rem;
}
.stat{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: 0 10px 18px rgba(2,8,23,0.06);
}
.stat-num{ font-weight: 900; font-size: 1.15rem; color: var(--primary); }
.stat-label{ color: var(--muted); margin-top: .2rem; }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.contact-box{
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  border-radius: 1.2rem;
  margin-top: 1rem;
  box-shadow: 0 10px 18px rgba(2,8,23,0.06);
}
.contact-box a{
  color: var(--primary);
  font-weight: 700;
}
.mini-actions{
  display:flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.enquiry-form{
  display:grid;
  gap: .9rem;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}
.footer-inner{
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  color: var(--muted);
}

/* Floating buttons */
.fab{
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration:none;
  font-weight: 800;
}
.fab:hover{ text-decoration: none; filter: brightness(1.02); }

.fab-whatsapp{
  bottom: 1rem;
  background: var(--secondary);
  border-color: transparent;
  color: #1f2937;
}
.fab-call{
  bottom: 4.6rem;
  background: var(--primary);
  border-color: transparent;
  color: var(--primaryText);
}

.back-to-top{
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 920px){
  .hero-grid, .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .listings-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px){
  .nav-toggle{ display:inline-flex; }

  .site-nav{
    display:none;
    position: absolute;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    min-width: 220px;
    box-shadow: var(--shadow);
  }
  .site-nav.open{ display:flex; }
  .site-nav a{ padding: .4rem .2rem; }

  .cards{ grid-template-columns: 1fr; }
  .listings-grid{ grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .back-to-top{ transition: none; }
}
/* ===== Property Cards Enhancement ===== */
.property-cards {
  gap: 30px;
}

.property-card {
  border-top: 4px solid #caa34d;
}

.property-card h3 {
  margin-bottom: 10px;
}
/* ===== Contact Page ===== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.map-box iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Fix Nav Call Button Color ===== */
.site-nav .btn-primary {
  color: #fff !important;
}

.site-nav .btn-primary:hover {
  color: #fff !important;
}
/* ===== Mobile Navigation ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 22px;
  height: 2px;
  background: #0f2a44;
  position: relative;
  display: block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: #0f2a44;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  .site-nav a {
    margin: 10px 0;
    color: #0f2a44;
  }

  .site-nav.active {
    display: flex;
  }
}
/* ===== Active Navigation Link ===== */
.site-nav a.active {
  color: #caa34d;
  font-weight: 600;
}

.site-nav a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #caa34d;
  margin-top: 4px;
}
/* ===== Company Name / Brand Styling ===== */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #0f2a44;
}

.brand-name::after {
  content: ".";
  color: #caa34d; /* premium gold accent */
}

.brand-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-top: 2px;
  letter-spacing: 0.4px;
}
.instant-inquiry {
  background: #f8f8f8;
  padding: 50px 0;
}

.inquiry-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 25px;
}

.inquiry-title span {
  color: #2a2ad2;
}

.inquiry-form {
  background: #fff;
  padding: 25px;
  border: 1px solid #ddd;
}

.inquiry-form .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.inquiry-form textarea {
  resize: none;
  margin-bottom: 20px;
}

.btn-inquiry {
  display: block;
  margin: 0 auto;
  background: #c00000;
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-size: 16px;
  cursor: pointer;
}

.btn-inquiry:hover {
  background: #a00000;
}

.inquiry-contact {
  margin-top: 20px;
  font-size: 14px;
  color: #444;
}

.inquiry-contact p {
  margin: 5px 0;
}

/* Mobile Fix */
@media (max-width: 768px) {
  .inquiry-form .form-row {
    flex-direction: column;
  }
}
/* Inquiry Popup */
.inquiry-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.inquiry-popup.active {
  display: flex;
}

.popup-box {
  background: #fff;
  width: 90%;
  max-width: 650px;
  padding: 25px;
  position: relative;
  border-radius: 4px;
}

.popup-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.popup-box h2 span {
  color: #2a2ad2;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}

.popup-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
}

.popup-form textarea {
  resize: none;
  margin-bottom: 15px;
}

.popup-btn {
  display: block;
  margin: 0 auto;
  background: #c00000;
  color: #fff;
  border: none;
  padding: 10px 30px;
  cursor: pointer;
}

.popup-contact {
  margin-top: 15px;
  font-size: 13px;
  color: #444;
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  .popup-row {
    flex-direction: column;
  }
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.listing-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.listing-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.listing-body {
  padding: 16px;
}

.listing-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.listing-price {
  font-weight: bold;
  margin-bottom: 8px;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 12px;
  background: #25d366;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.admin-link {
  position: fixed;
  bottom: 5px;
  right: 8px;
  font-size: 11px;
  opacity: 0.05;
}
.admin-link:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  body {
    padding: 15px !important;
  }

  .box, .admin-box {
    width: 100% !important;
    padding: 15px !important;
  }

  input, select, textarea, button {
    font-size: 16px !important;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }
}
/* ===== MOBILE ADMIN OPTIMIZATION ===== */
@media (max-width: 768px) {

  body {
    padding: 12px !important;
  }

  .box,
  .admin-box,
  .listing {
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 15px !important;
  }

  h1 {
    font-size: 20px;
  }

  label {
    font-size: 14px;
  }

  input,
  select,
  textarea {
    width: 100%;
    font-size: 16px;   /* prevents zoom on iPhone */
    padding: 10px;
  }

  button,
  .delete-btn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-top: 10px;
  }

  nav {
    text-align: center;
  }

  nav a {
    display: block;
    margin: 6px 0;
    font-size: 14px;
  }

}
/* Hide admin link on desktop */
.admin-link {
  display: none;
}

/* Show admin link on mobile only */
@media (max-width: 768px) {
  .admin-link {
    display: block;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    z-index: 9999;
  }
}
.admin-btn {
  background: #111;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}

.admin-btn:hover {
  background: #333;
}
@media (max-width: 768px) {
  .admin-btn {
    display: block;
    margin-top: 8px;
    text-align: center;
  }
}

