/* ====================================== */
/*   Header: site header, logo & search   */
/* ====================================== */

.site-header {
  background: #1f1f1f;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 32px;
  /* no justify-content here—let auto-margin do the work */
}

/* Logo */
.site-header .logo img {
  width: 100px;               /* make it a perfect square */
  height: 100px;
  border-radius: 50%;         /* turn it into a circle */
  object-fit: cover;          /* fill the circle, cropping if needed */
  border: 2px solid #D4AF37;  /* optional gold ring */
  display: block;
  pointer-events: none;
}


/* Search form container */
.header-search {
  display: flex;
  gap: 5px;
  /* remove flex:1 here so it only takes as much space as its children */
}

/* Text input */
.header-search input {
  /* give it a fixed basis instead of flex:1 */
  flex: 0 0 0px;       /* ← adjust this number to shorten/lengthen the location field */
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #121212;
  font-size: 0.9rem;
}

/* Dropdown */
.header-search select {
  /* fixed width for the “Any Type” dropdown */
  flex: 0 0 10px;       /* ← tweak this to fit your longest option text */
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #121212;
  font-size: 0.9rem;
}

/* Submit button */
.header-search button {
  padding: 8px 16px;
  background: #D4AF37;
  border: none;
  border-radius: 4px;
  color: #121212;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.header-search button:hover {
  opacity: 0.9;
}


/* --------------------------------- */
/* Dark-theme global base styles     */
/* --------------------------------- */
body.dark-theme {
  background-color: #121212;
  color:           #e0e0e0;
  font-family:     'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Optional: links, headings, paragraphs */
a { color: #D4AF37; }
h1, h2, h3, h4, h5, h6 { color: #e0e0e0; }
p, li, span, input, textarea { color: #e0e0e0; }

/* Main nav */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
/* Push everything after the logo to the right */
.main-nav {
  margin-left: auto; /* ← this sends the nav + the following search form to the right */
}
.main-nav a:hover {
  opacity: 0.8;
}

/*///////////////////////////////////////
/////// HEADER COMPUTER, MOBILE AND TABLET RESPONSIVENESS ///////////////
///////////////////////////////////////*/

/* ==========================================================================
   GLOBAL RESET & VARIABLES
   ========================================================================== */
:root {
  --gold: #D4AF37;
  --dark-bg: #1f1f1f;
  --text-light: #fff;
  --gap: 8px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body.dark-theme {
  background: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   BASE (MOBILE-FIRST)
   ========================================================================== */
.site-header {
  background: var(--dark-bg);
}
.site-header .header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  gap: var(--gap);
}
.site-header .logo {
  /* full-width, centered logo */
  order: 1;
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.site-header .logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.site-header .header-search {
  /* line-2: search & controls */
  order: 2;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  gap: var(--gap);
}
.site-header .header-search input,
.site-header .header-search select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid #444;
  border-radius: 4px;
  background: #fff;
  color: #333;
}
.site-header .header-search button {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  color: #000;
  cursor: pointer;
}
.site-header .nav-toggle {
  order: 2;
  flex: 0 0 auto;
  margin-left: var(--gap);
  background: none;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 1rem;
  color: var(--gold);
  cursor: pointer;
}
.site-header .main-nav {
  order: 3;
  flex: 0 0 100%;
  display: none; /* hidden under 769px */
}
.site-header .main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.site-header .main-nav a {
  color: var(--gold);
  text-decoration: none;
  padding: 8px 16px;
  text-align: center;
}

/* ==========================================================================
   1. MOBILE-S: up to 320px
   2. MOBILE-M: up to 375px
   3. MOBILE-L: up to 425px
   4. TABLET-PORTRAIT: up to 768px
   — all share the same layout rules —
   ========================================================================== */
@media (max-width: 768px) {
  /* everything defined above already applies here */
  /* Just ensure no wrapping inside the search row */
  .site-header .header-search {
    flex-wrap: nowrap;
  }
}

/* ──────────────────────────────────────
   1) MOBILE NAV TOGGLE: show .main-nav on .open
   ────────────────────────────────────── */
@media (max-width: 768px) {
  /* 1) make header-inner the positioning parent */
  .site-header .header-inner {
    position: relative;
  }

  /* 2) pin the dropdown right under the ☰ button */
  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 150px;
    width: auto;
    min-width: 140px;
    display: none;          /* keep hidden by default */
    flex-direction: column;
    background: var(--dark-bg);
    z-index: 1000;
  }

  /* when JS adds “open”, un-hide it */
  .site-header .main-nav.open {
    display: flex;
  }
  .site-header .main-nav.open ul {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    list-style: none;
    margin: 0;
    padding: 0 16px;
  }
  .site-header .main-nav.open a {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: left;
  }
}
@media (max-width: 768px) {
  .site-header .header-search input,
  .site-header .header-search select,
  .site-header .header-search button {
    font-size: 16px !important;   /* ✅ Prevent iOS zoom */
    line-height: 1.4;
  }
}

/* catch phones in landscape up to 896px tall */
@media screen 
  and (orientation: landscape) 
  and (max-width: 896px) {
  
  /* 1) keep the header as the positioning parent */
  .site-header .header-inner {
    position: relative;
  }

  /* 2) style the dropdown menu exactly as before,
        but remove any “right:16px” so JS can control `left` */
  .site-header .main-nav {
    display: none;              /* hidden by default */
    position: absolute;
    top: calc(100% + 4px);
    left: auto;                 /* let JS set it */
    right: auto;                /* remove the old pin */
    background: var(--dark-bg);
    z-index: 1000;
    flex-direction: column;
    padding: var(--gap) 0;
    min-width: 140px;
  }
  .site-header .main-nav.open {
    display: flex;
  }
}
  .site-header .header-search input,
  .site-header .header-search select,
  .site-header .header-search button {
    min-height: 60px;
  }


/* ──────────────────────────────────────
   MOBILE BREAKPOINTS (≤ 425px)
   logo centered on row 1;
   search + toggle on row 2, never shrink too far
   ────────────────────────────────────── */
@media (max-width: 425px) {
  .site-header .header-inner {
    display: flex;
    flex-wrap: wrap;             /* allow two rows */
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    gap: 4px;
  }

  /* Row 1: full-width centered logo */
  .site-header .logo {
    order: 1;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }

  /* Row 2: search form + menu toggle */
  .site-header .header-search {
    order: 2;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-header .nav-toggle {
    order: 2;
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 0.85rem;
    margin-left: 4px;
  }

  /* never let fields collapse below these widths */
  .site-header .header-search input {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  .site-header .header-search select {
    flex: 0 0 auto;
    min-width: 50px;
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  .site-header .header-search button {
    flex: 0 0 auto;
    min-width: 60px;
    padding: 6px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

  .site-header .header-search input,
  .site-header .header-search select,
  .site-header .header-search button {
    min-height: 40px;
  }


/* ==========================================================================
   5. LAPTOP: 1024px ─ search centered opposite logo, nav on 2nd line
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 2560px) {
  .site-header .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    gap: var(--gap);
  }
  /* Logo at far left */
  .site-header .logo {
    order: 1;
    flex: 0 0 auto;
  }
  /* Search centered on first row */
  .site-header .header-search {
    order: 2;
    flex: 1 1 auto;
    max-width: 50%;
    justify-content: center;
  }
  /* Hide toggle on laptop */
  .site-header .nav-toggle {
    display: none;
  }
  /* Nav links on second row */
  .site-header .main-nav {
    order: 3;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    margin-top: 12px;
  }
  .site-header .main-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .site-header .main-nav a {
    padding: 6px 12px;
    font-size: 1rem;
  }
}


/*///////////////////////////
/// PUBLIC HEADER AND PAGES///////////////////////////////////////
////////////////////////////*/
/* Dark background for all public pages */
/* ==============================
   Global Dark‐Theme & Auth Styles
   ============================== */

/* 1) Base & Body */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #1f1f1f;  /* Dark background */
  color: #f1f1f1;             /* Light text */
  line-height: 1.5;
}

/* 2) Public Header (logo area) */
.public-page .public-header {
  background-color: #1f1f1f;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #333;
}

/* Logo image */
.public-page .public-header .logo img {
 
  width: 100px;               /* make it a perfect square */
  height: 100px;
  border-radius: 50%;         /* turn it into a circle */
  object-fit: cover;          /* fill the circle, cropping if needed */
  border: 2px solid #D4AF37;  /* optional gold ring */
  display: block;
  pointer-events: none;
}


/* 3) Main & Auth Card Container */
.public-page main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

/* Center the registration/login form */
/* ======================================= */
/*  assets/css/auth.css (public auth forms) */
/* ======================================= */

/* 1) Container for any public‐page auth card */
.auth-card {
  max-width: 400px;               /* same width for login & register */
  width: 100%;                    /* full at smaller sizes */
  margin: 80px auto;              /* center vertically & horizontally */
  padding: 40px 24px;             /* balanced padding */
  background: #1f1f1f;            /* dark card bg */
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  box-sizing: border-box;
}

/* Title inside the card */
.auth-card h1 {
  text-align: center;
  color: #D4AF37; /* gold accent */
  margin-bottom: 24px;
  font-size: 2rem;
}

/* 2) Status messages (errors, success) */
.auth-card .status {
  text-align: center;
  color: #ff6b6b;     /* red for errors */
  background: rgba(255, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

/* 3) Form layout */
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1px;           /* consistent vertical spacing */
}

/* 4) Labels & Inputs */
.auth-card label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #ccc;
  font-size: 0.95rem;
}
.auth-card input,
.auth-card textarea,
.auth-card select {
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: #e0e0e0;
  font-size: 1rem;
  box-sizing: border-box;
  height: 40px;
}
.auth-card input::placeholder,
.auth-card textarea::placeholder {
  color: #777;
}
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
  outline: 2px solid #D4AF37;
}

/* 5) Password‐eye wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
}
/* match the input height you actually use */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  height: 40px;           /* or whatever your input height is */
  /* …other styling… */
}

/* CENTER the eye icon */
.password-wrapper button.toggle-password {
  position: absolute;
  top: 55%;               /* halfway down the input */
  right: 0.4rem;          /* your existing horizontal offset */
  transform: translateY(-50%);  /* ← changed from -80% to -50% */
  background-color: #D2AF37;
  border: none;
  width: 25px;            /* make this match your input height - padding */
  height: 25px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-wrapper button.toggle-password .icon-eye {
  width: 18px;
  height: 18px;
  fill: #1f1f1f;
}

/* 6) Submit button */
.auth-card button[type="submit"] {
  background: #D4AF37;
  color: #121212;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.auth-card button[type="submit"]:hover {
  opacity: 0.9;
}

/* 7) Small “link” buttons (forgot, sign-up, back-to-login) */
.btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #D4AF37;
  color: #D4AF37;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.btn-link:hover {
  background: #D4AF37;
  color: #121212;
}

/* 8) “Already have an account?” text */
.auth-card p.meta {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  color: #cccccc;
}
.auth-card p.meta + .btn-link {
  margin-top: 12px;
}

/* 9) Responsive tweaks */
/* below 768px: shrink padding & font-sizes */
@media (max-width: 768px) {
  .auth-card {
    margin: 40px 10px;
    padding: 30px 20px;
  }
  .auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
}

/* below 480px: stack tighter, enlarge touch areas */
@media (max-width: 480px) {
  .auth-card {
    margin: 20px 8px;
    padding: 20px 16px;
  }
  .auth-card form {
    gap: 12px;
  }
  .auth-card input,
  .auth-card textarea,
  .auth-card select {
    padding: 10px;
    font-size: 0.95rem;
  }
  .password-wrapper button.toggle-password {
    padding: 4px;
    right: 0.4rem;
  }
  .auth-card button[type="submit"],
  .btn-link {
    padding: 10px;
    font-size: 0.95rem;
  }
}
/* in your main stylesheet (e.g. style.css) */
.link-prompt {
  text-align: center;
  margin-top: 12px;
}


/* ====================================== */
/*   Homepage: hero & featured slider     */
/* ====================================== */

/* Hero section */
.hero {
  background: url('../images/building9.png') no-repeat center center;
  background-size: cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-size 0.3s ease;
}
.hero:hover {
  background-size: 110%;
}
.hero-content {
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  color: #D4AF37;
  font-size: 3rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.hero-content p {
  margin-top: 8px;
  color: #e0e0e0;
  font-size: 1.2rem;
}

/* Featured slider wrapper */
.featured-slider {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
}
.section-title{
   text-align: center;
  margin-bottom: 20px;
  color: #D4AF37; /* gold accent */
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: none;
  position: relative;
}
.slide.active {
  display: block;
}
.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Caption inside each slide */
.slide .caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  padding: 16px;
  border-radius: 4px;
}
.slide .caption h2 {
  margin: 0 0 8px;
  color: #fff;
}
.slide .caption p {
  margin: 0 0 12px;
  color: #ddd;
}
.slide .caption .btn {
  background: #D4AF37;
  color: #121212;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .hero { height: 250px; }
  .slide img { height: 250px; }
  .slide .caption {
    bottom: 10px;
    left: 10px;
    padding: 12px;
  }
  .slide .caption h2 {
    font-size: 1.5rem;
  }
}

/*/////////////////////////////////// 
//// Floating WhatsApp button AND OTHER WHATSAPP STYLE /////////////////////////
///////////////////////////////////*/

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform .2s;
}
.floating-whatsapp img {
  width: 60%;  /* scale down the icon inside */
  height: auto;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}
.wa-icon {
  width: 24px;
  height: 24px;
  /* no background specified, so the PNG’s transparency shows */
}

/*/////// WHATSAPP NUMBERS ON THE PROPERTY DETAILS ////////*/

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366;         /* WhatsApp green */
  text-decoration: none;
  margin-right: 16px;   /* space between multiple numbers */
  margin-bottom: 8px;
}

.wa-icon {
  width: 20px;
  height: 20px;
}


/* ===================================== */
/*   CTA: link to All Properties page   */
/* ===================================== */
.cta-all-properties {
  text-align: center;
  margin: 60px 0;               /* space above & below */
}

.btn-all-properties {
  display: inline-block;
  padding: 14px 28px;           /* bigger tappable area */
  background: #D4AF37;           /* gold accent */
  color: #121212;                /* dark text */
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-all-properties:hover {
  opacity: 0.9;
  transform: translateY(-2px);  /* subtle lift */
}


/* ================================ */
/*  assets/css/properties.css       */
/*  Styles for properties.php       */
/* ================================ */

/* Page wrapper */
.properties-page {
  padding: 30px;
}
.properties-page h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #D4AF37; /* gold accent */
}

/* Grid of property cards */
.properties-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Individual card */
.card {
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}
  .card img,
.card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-info {
  padding: 12px;
}
.card-info h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #e0e0e0;
}
.card-info p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #aaa;
}
.card-info .price {
  margin-top: 8px;
  font-weight: bold;
  color: #D4AF37;
}

/* No‐results message */
.no-results {
  text-align: center;
  font-size: 1rem;
  color: #ff6b6b;
}
 /* ------------ Property Cards (shared) ------------ */
.properties-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* Make the image fill the top of the card */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Card text block */
.card-info {
  padding: 12px;
}

/* Property title */
.card-info h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #e0e0e0;
}

/* Location & type line */
.card-info p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #aaa;
}

/* Price line */
.card-info .price {
  margin-top: 8px;
  font-weight: bold;
  color: #D4AF37;
}

.pagination {
  max-width: 400px;
  margin: 3rem auto 2rem auto;
  padding: 1rem;
  background-color: #1e1e1e; /* Dark card background */
  border: 1px solid #D4AF37;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pagination p {
  color: #D4AF37;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.pagination-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}


.pagination a {
  color: #D4AF37;
  text-decoration: underline;
  font-weight: bold;
}

.pagination a:hover {
  text-decoration: none;
}

.pagination .current-page {
  background-color: #D4AF37;
  color: #111;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}

.pagination a {
  color: #D4AF37;
  text-decoration: underline;
  font-weight: bold;
  white-space: nowrap;
}


/* =========================================
   Properties for rent and for sale
   Shared Sale & Rent listing styles
   ========================================= */

/* —— VARIABLES —— */
:root {
  --gold:       #D4AF37;
  --dark-bg:    #1f1f1f;
  --text-light: #fff;
}

/* —— CONTAINER (aligns with header) —— */
.properties-sale-page,
.properties-rent-page {
  background: var(--dark-bg);
  color:      var(--text-light);
  max-width:  1440px;
  margin:     0 auto;
  /* mobile-first padding matches header-inner: 12px top/bottom, 16px sides */
  padding:    30px 4px;
}

/* on “laptop” 1024–1439px: 16px→32px side padding */
@media (min-width: 1024px) and (max-width: 1439px) {
  .properties-sale-page,
  .properties-rent-page {
    padding: 30px 32px;
  }
}

/* on wide desktop ≥1440px: 16px→64px side padding */
@media (min-width: 1440px) {
  .properties-sale-page,
  .properties-rent-page {
    padding: 30px 64px;
  }
}

/* —— PAGE TITLE —— */
.properties-sale-page h1,
.properties-rent-page h1 {
  text-align:    center;
  margin-bottom: 24px;
  color:         var(--gold);
  font-size:     2rem;
}

/* —— GRID OF CARDS —— */
.properties-sale-page .properties-list,
.properties-rent-page .properties-list {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:                   24px;
}

/* —— CARD STYLES —— */
.properties-sale-page .card,
.properties-rent-page .card {
  background:      var(--dark-bg);
  border-radius:   8px;
  overflow:        hidden;
  transition:      transform 0.2s ease, box-shadow 0.2s ease;
}
.properties-sale-page .card:hover,
.properties-rent-page .card:hover {
  transform:   translateY(-5px);
  box-shadow:  0 8px 16px rgba(0,0,0,0.6);
}
.properties-sale-page .card img,
.properties-rent-page .card img {
  width:       100%;
  height:      180px;
  object-fit:  cover;
}

/* —— CARD INFO —— */
.properties-sale-page .card-info,
.properties-rent-page .card-info {
  padding: 12px;
}
.properties-sale-page .card-info h2,
.properties-rent-page .card-info h2 {
  margin:      0 0 8px;
  font-size:   1.2rem;
  color:       var(--text-light);
}
.properties-sale-page .card-info p,
.properties-rent-page .card-info p {
  margin:      4px 0;
  font-size:   0.9rem;
  color:       var(--text-light);
}
.properties-sale-page .card-info .price,
.properties-rent-page .card-info .price {
  margin-top:  8px;
  font-weight: bold;
  color:       var(--gold);
}

/* —— NO RESULTS MESSAGE —— */
.properties-sale-page .no-results,
.properties-rent-page .no-results {
  text-align:  center;
  font-size:   1rem;
  color:       #ff6b6b;
}


/* =========================================== */
/*  assets/css/property_detail.css             */
/*  Styles for property_detail.php             */
/* =========================================== */

.property-detail-page {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.property-detail-page .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.property-detail-page .gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}
.slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 30px;
  overflow: hidden;
}
.slide {
  display: none;
}
.slide[data-active] { display: block; }
.slide img {
  width: 100%;
  height: auto;
  display: block;
}
/* you already had this rule: */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  z-index: 10;
}

/* add these two so they actually fire */
.slider button.prev { left: 25px; }
.slider button.next { right: 25px; }
.slider { position: relative; overflow: hidden; }
.slide { display: none; /* hide all */ }
.slide.active { display: block; /* show current */ }

/*new slider from header.php*/
.swiper-container {
  width: 100%;
  max-width: 800px; /* or whatever fits your design */
  margin: auto;
}
.swiper-slide img,
.swiper-slide video {
  display: block;
  width: 100%;
}


/* assets/css/property_detail.css */

/* Turn the card into a responsive grid */
.details-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;               /* space between each column */
  background: #1f1f1f;
  border-radius: 8px;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Each pair stays a vertical stack inside its own grid cell */
.detail-item {
  display: flex;
  flex-direction: column;
}

/* Label styling stays the same */
.detail-label {
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 0.9rem;
   /* add these two lines: */
  text-align: center;
  width: 100%;
}

/* Value styling stays the same */
.detail-value {
  color: #e0e0e0;
  line-height: 1.4;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 4px;
}

/* make the card a grid of columns */
.details-card {
  display: grid;
  /* 4 columns of at least 200px, growing to fill available space */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

/* this makes the description item span across 2 columns */
.detail-description {
  grid-column: span 2;
}

/* ==========================================================================
   Property Detail Page Container
   — same padding & max-width as your listing pages
   ========================================================================== */
.property-detail-page {           /* or whatever wrapper class you use */
  max-width: 1440px;
  margin: 0 auto;
  /* mobile-first: match header/content 16px side padding */
  padding: 30px 16px;
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .property-detail-page {
    padding: 30px 32px;
  }
}
@media (min-width: 1440px) {
  .property-detail-page {
    padding: 30px 64px;
  }
}

/* ==========================================================================
   Media Slider
   — will never exceed the card’s width, and is centered under it
   ========================================================================== */
.property-detail-page .slider {
  max-width: 100%;
  margin: 24px auto;    /* gap above/below */
  overflow: hidden;      /* chop off any overshoot */
}

/* each “slide” takes the full width of that container */
.property-detail-page .slider .slide {
  width: 100%;
}

/* force images & videos to scale within “.slide” */
.property-detail-page .slider img,
.property-detail-page .slider video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;    /* match your card corners */
}


/* ================================= */
/*  assets/css/about.css             */
/*  Styles for about.php             */
/* ================================= */

.about-page { padding: 30px; max-width: 1000px; margin: auto; }
.about-page h1, .about-page h2 { color: #D4AF37; }
.intro, .contact-details { margin-bottom: 30px; color: #fff; }
.contact-details p { margin: 6px 0; }

.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
}
.member-card {
  background: #1f1f1f;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}
.member-card img {
  width: 100px; height:100px;
  object-fit: cover;
  border-radius:50%;
  margin-bottom: 12px;
}
.member-card .role { color: #aaa; margin:6px 0; }
.member-card .contact { color: #D4AF37; }

/* Partners grid — matches member grid */
.partner-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Partner card — same style as member-card */
.partner-card {
  background: #1f1f1f;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

/* Partner logo — same size and style as member image */
.partner-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

/* Partner name/title — gold like members */
.partner-card h3 {
  margin: 8px 0;
  font-size: 1.1rem;
  color: #D4AF37;
}

/* Website link styling */
.partner-card a {
  color: #D4AF37;
  text-decoration: none;
}
.partner-card a:hover {
  text-decoration: underline;
}

/* Partner contact info */
.partner-contact {
  font-size: 0.95rem;
  color: #ccc;
  margin: 6px 0;
}

/* Partner description */
.partner-card .partner-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 8px;
  line-height: 1.4;
}



/* ================================= */
/*   assets/css/contact.css          */
/*   Styles for contact.php          */
/* ================================= */

.contact-page {
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-page h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #D4AF37;
}
.status {
  text-align: center;
  margin-bottom: 16px;
  color: #e0e0e0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form label {
  font-weight: 500;
  color: #ccc;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #2a2a2a;
  color: #e0e0e0;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #D4AF37;
}
.contact-form button {
  align-self: flex-start;
  background: #D4AF37;
  color: #121212;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}
.contact-form button:hover {
  opacity: 0.9;
}
/* make sure your status banner is visible on dark background */
.contact-page .status {
  background: #2a2a2a;
  color: #f1f1f1;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}
/* ───────────────────────────────────────────── */
/* Fix jumping layout on small/mobile screens   */
/* ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .contact-page {
    padding: 20px;
    margin-bottom: 60px;
  }

  .contact-form {
    gap: 10px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;   /* ✅ Prevent mobile zoom */
    max-width: 100%;
    width: 100%;                  /* ✅ Ensure it stays in layout */
    box-sizing: border-box;
    transition: all 0.2s ease;
    line-height: 1.4;
  }

  .contact-form textarea {
    min-height: 150px;
    resize: none;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: 2px solid #D4AF37;
    background-color: #2f2f2f;
  }
}

/* ================================= */
/*    assets/css/profile.css         */
/*    Styles for profile.php         */
/* ================================= */

.profile-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
}
.profile-page h1 {
  text-align: center;
  color: #D4AF37;
  margin-bottom: 24px;
}
.profile-info {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  line-height: 1.6;
}
.profile-info p {
  margin: 12px 0;
}
.profile-actions {
  text-align: center;
  margin-top: 20px;
}
.btn-logout {
  display: inline-block;
  background: #ff6b6b;  /* Contrast color for logout */
  color: #121212;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.btn-logout:hover {
  opacity: 0.9;
}

/* Basic modal styles for notification in the user profile */
.modal {
   display:none; 
   position:fixed; 
   top:0; 
   left:0; 
   width:100%; 
   height:100%; 
   background:rgba(0,0,0,0.5);
 }
.modal-content {
   background:#fff; 
   margin:10% auto; 
   padding:20px; 
   width:300px;
 }
.close {
   float:right; 
   cursor:pointer;
 }

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;      /* no wrap by default */
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;            /* ensure full-width container */
  box-sizing: border-box;
}

.profile-header h1 {
  flex: 1 1 0;            /* allow to shrink */
  min-width: 0;           /* required for true shrinking */
  font-size: clamp(1rem, 6vw, 2rem);
  margin: 0;
  white-space: nowrap;
}

#manageAlerts {
  flex: 0 1 auto;         /* allow slight shrink */
  font-size: clamp(0.9rem, 4vw, 1rem);
  white-space: nowrap;
}

/* ──────────────── */
/* Modal Backdrop   */
/* ──────────────── */
.modal {
  display: none;                /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

/* ──────────────── */
/* Modal Window     */
/* ──────────────── */
.modal-content {
  background: #1a1a1a;          /* dark background to match theme */
  color: #fff;                  /* light text */
  width: 90%;
  max-width: 420px;
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  font-size: 1rem;              /* base text size */
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ──────────────── */
/* Close Button     */
/* ──────────────── */
.modal-content .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  color: #ccc;
  cursor: pointer;
}
.modal-content .close:hover {
  color: #fff;
}

/* ──────────────── */
/* Modal Title      */
/* ──────────────── */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #f0c14b;
}

/* ──────────────── */
/* Form Elements    */
/* ──────────────── */
#alertsForm {
  margin-bottom: 1rem;
}
#alertsForm label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
#alertsForm input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1.1em;
  height: 1.1em;
}

/* ──────────────── */
/* Save Button      */
/* ──────────────── */
#alertsForm button {
  background: #f0c14b;
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
#alertsForm button:hover {
  background: #ddb347;
}

/* ──────────────── */
/* Feedback Message */
/* ──────────────── */
#alertsMsg {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #0f0;  /* green on success */
}
#alertsMsg.error {
  color: #f33;  /* red on error */
}


/* ================================= */
/*    assets/css/404.css             */
/*    Styles for 404.php             */
/* ================================= */

.not-found-page {
  text-align: center;
  padding: 60px 20px;
}
.not-found-page h1 {
  font-size: 6rem;
  margin: 0;
  color: #D4AF37;
}
.not-found-page p {
  font-size: 1.2rem;
  color: #fff;
  margin: 16px 0;
}
.btn-home {
  display: inline-block;
  margin-top: 20px;
  background: #D4AF37;
  color: #121212;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.btn-home:hover {
  opacity: 0.9;
}
/* Footer (shared front & back) */
footer {
  background: #1f1f1f;
  color:      #fff;
  text-align: center;   /* center the text */
  padding:    20px 0;
  margin-top: 40px;
  font-size:  0.9rem;
}

/* If you have two different classes, unify them: */
.site-footer, .admin-footer {
  background: #1f1f1f;
  color:      #fff;
  text-align: center;
  padding:    20px 0;
  margin-top: 40px;
}
/* ========================================= */
/*   assets/css/style.css                   */
/*   Forgot / Reset Password pages styling  */
/* ========================================= */

/* Base form wrapper */
.forgot-password-page,
.reset-password-page {
  max-width: 400px;
  margin: 60px auto;
  padding: 24px;
  background: #1f1f1f;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Page titles */
.forgot-password-page h1,
.reset-password-page h1 {
  margin-bottom: 24px;
  font-size: 1.8rem;
  color: #D4AF37;
  text-align: center;
}

/* Status message */
.forgot-password-page .status,
.reset-password-page .status {
  text-align: center;
  margin-bottom: 16px;
  color: #ff6b6b;  /* red for errors/warnings */
}

/* Form layout */
.forgot-password-page form,
.reset-password-page form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Labels and inputs */
.forgot-password-page label,
.reset-password-page label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #fff;
}

.forgot-password-page input,
.reset-password-page input {
  margin-top: 6px;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #2a2a2a;
  color: #fff;
  font-size: 1rem;
}

.forgot-password-page input:focus,
.reset-password-page input:focus {
  outline: 2px solid #D4AF37;
}

/* Submit buttons */
.forgot-password-page button,
.reset-password-page button {
  padding: 10px 20px;
  background: #D4AF37;
  color: #121212;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
  align-self: center;
}

.forgot-password-page button:hover,
.reset-password-page button:hover {
  opacity: 0.9;
}

/* “Back to login” link */
.reset-password-page p a,
.forgot-password-page p a {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #D4AF37;
  text-decoration: none;
}

.reset-password-page p a:hover,
.forgot-password-page p a:hover {
  text-decoration: underline;
}

/*/////////////////////////////
/// password wrappers/////////
////////////////////////////*/
.password-wrapper {
  position: relative;
  display: flex;              /* keep input & button inline */
  align-items: center;
}

/* make the input fill the available space */
.password-wrapper input {
  flex: 1;
  padding-right: 2.5em;       /* space for the eye button */
}

/* style the toggle button */
.toggle-password {
  position: absolute;
  right: 0.5em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
}
.toggle-password:focus {
  outline: none;
  color: #fff;
}

/* when “shown”, flip the eye icon (optional) */
.toggle-password.show .icon-eye {
  transform: scaleX(-1);
}

/*///////////////////////
||| script.js css and mobile responsiveness |||
///////////////////////*/



/* js lazy display images*/

img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img:not(.lazy) {
  opacity: 1;
}

/*// 8) Reveal on scroll//*/

.reveal { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/*=======================================//
/* ============== PHONE =======================
================================================ */
@media (max-width: 480px) {
  /* Overall text: shrink globally */
  body {
    font-size: 0.9rem;
  }

  /* Hero text: slightly smaller */
  .hero-content h1 { font-size: 2rem; }
  .hero-content p  { font-size: 1rem; }

  /* Details card: 1-column grid */
  .details-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .detail-label { font-size: 0.8rem; }
  .detail-value { font-size: 0.9rem; }

  /* Footer: reduce padding */
  .site-footer {
    padding: 16px 0;
  }
}
 /*====================================>
 === FOR SCREENS OF SIZE S (320PX) for all the pages (body)=====>
 ======================================*/
 @media (max-width: 320px) {
  
 }
@media (max-width: 768px) {
  /* Details card: single column & full-width grey background */
  .details-card {
    display: block;            /* fall back to block flow */
    background: #1f1f1f;
    padding: 16px;
    border-radius: 8px;
    margin: 16px;
  }
  .detail-item {
    margin-bottom: 12px;
  }
  .detail-label,
  .detail-value {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .property-detail-page .details-card {
    grid-template-columns: 1fr;  /* collapse to one column */
    padding: 16px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .slider {
    width: 100vw;        /* full viewport width */
    margin: 0 -5px;     /* cancel out any page padding */
  }
  .slider-inner,
  .slide {
    width: 20%;
  }
  .slide img {
    width: 90%;
    height: auto;        /* preserve aspect ratio */
    display: block;
  }

}

/* ===============================================
   Extra tweaks for really small phones (<360px)
   — now including body/content adjustments
   =============================================== */
@media (max-width: 360px) {
  /* —— Global body/font scaling —— */
  body {
    font-size: 0.85rem;           /* shrink overall text */
    line-height: 1.4;
  }
  main, section, .properties-page,
  .property-detail-page,
  .about-page, .contact-page {
    padding: 12px;                /* tighter page padding */
  }

  /* —— Property grid: single column —— */
  .properties-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card img {
    height: 140px;                /* shorter image height */
  }
  .card-info h2 {
    font-size: 1rem;
  }

  /* —— Hero & slider —— */
  .hero {
    height: 180px;                /* shrink hero area */
  }
  .slide img {
    height: 140px;
  }

  /* —— Detail cards —— */
  .details-card {
    display: block;               /* stack all fields vertically */
    padding: 12px;
    margin: 12px 0;
  }
  .detail-item {
    margin-bottom: 12px;
  }
  .detail-label {
    font-size: 0.75rem;
  }
  .detail-value {
    font-size: 0.85rem;
    padding: 8px;
  }
}

/* ────────────────────── */
/*  Scroll ↕ Toggle Button */
/* ────────────────────── */
.scroll-toggle {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  /* hidden until JS adds “show” */
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #D4AF37;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #121212;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: opacity 0.2s ease;
}
.scroll-toggle.show {
  display: flex;
  opacity: 1;
}
.scroll-toggle.hide {
  opacity: 0;
  pointer-events: none;
}
.scroll-toggle:hover {
  opacity: 0.9;
}








