
/*========================= 
   CampusNest - style.css 
   =========================== */
   .listing-form{
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Reset + base */
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: "Poppins", Arial, sans-serif; color:#222; background:#fff; line-height:1.5; min-height: 100vh; display:flex; flex-direction:column; }
main { flex: 1; }
a { color:inherit; text-decoration:none;}
/* Container helper */
.container { width:90%; max-width:1200px; margin:0 auto; }

/* ===== NAVBAR - FIXED & STYLED ===== */
.header { background-color: #003366; color: rgb(0, 217, 255); box-shadow: 0 2px 8px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem;}
.logo { font-size: 1.5rem; font-weight: 700; color: #00bbff; }
.nav-links-wrapper { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.2rem; }
.nav-links li { position: relative; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 6px; transition: background 0.3s ease, color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { background-color: #ffcc00; color: #003366; }
.btn.auth-open { background: #ffcc00; color: #003366; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.btn.auth-open:hover { filter: brightness(1.1); }



/* ==================================================
   🔹 GLOBAL USER DROPDOWN (NAVBAR + PROFILE PAGES)
   ================================================== */

/* ===== WRAPPER ===== */
.dropdown,
.profile-dropdown {
  position: relative;
  display: inline-block;
}

/* ===== BUTTON ===== */
.user-btn,
.profile-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #ffcc00;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.user-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #7b2ff7;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
}

.user-btn:hover,
.profile-btn:hover {
  background: #ffcc00;
  color: #003366;
}

/* ===== DROPDOWN PANEL ===== */
.dropdown-menu,
.dropdown-content {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 200px;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 3000;
}

.dropdown.is-open .dropdown-menu,
.profile-dropdown.is-open .dropdown-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== HEADER ===== */
.dropdown-header {
  background: #003366;
  color: #fff;
  padding: 14px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #ffcc00;
}

/* ===== LINKS & BUTTONS ===== */
.dropdown-menu a,
.dropdown-menu button,
.dropdown-content a,
.dropdown-content button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  text-align: left;

  font-size: 0.95rem;
  font-weight: 600;
  color: #003366;
  cursor: pointer;
  text-decoration: none;

  transition: background 0.25s ease, padding-left 0.25s ease;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover,
.dropdown-content a:hover,
.dropdown-content button:hover {
  background: #f5f7fb;
  padding-left: 26px;
}

/* ===== LOGOUT ===== */
#logoutBtn {
  color: #c62828;
  font-weight: 700;
  border-top: 1px solid #eee;
}



/* ===== FIX DROPDOWN LINK VISIBILITY ===== */
.dropdown-menu a,
.dropdown-content a {
  color: #003366 !important;
}

.dropdown-menu a:hover,
.dropdown-content a:hover {
  color: #003366 !important;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .navbar { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-direction: column; width: 100%; background: #003366; padding: 1rem; }
  .nav-links li { width: 100%; }
  .nav-links a, .btn.auth-open { display: block; width: 100%; text-align: left; }
  .dropdown-list { position: static; box-shadow: none; border: none; }
}

/* Buttons */
.btn { background:#ffcc00; color:#003366; border:none; padding:10px 14px; border-radius:8px; font-weight:700; cursor:pointer; }
.btn:hover { filter:brightness(1.03); }
.btn-outline { background:transparent; border:2px solid #ffcc00; color:#ffcc00; padding:8px 12px; border-radius:8px; cursor:pointer; }

/* HERO */
.hero {
  position: relative;
  height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero .slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
}

/* ✅ CRITICAL FIX: ALWAYS SHOW FIRST SLIDE */
.slide:first-child {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.35)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ======================== Hero Search Bar Styling ======================== */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 20px auto;
  padding: 12px 16px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-bar input,
.search-bar select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  width: 180px;
  transition: border-color 0.2s;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: #0077ff;
}

.search-bar .search-btn {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #0077ff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-bar .search-btn:hover {
  background-color: #005fcc;
}

@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    padding: 10px;
  }

  .search-bar input,
  .search-bar select,
  .search-bar .search-btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* FEATURES */
.features { padding:48px 0; background:#f8f9fb; }
.features h2 { text-align:center; color:#002855; }
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:18px; }
.feature-card { background:#fff; padding:16px; border-radius:10px; box-shadow:0 6px 18px rgba(3,51,102,0.06); text-align:center; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.feature-card img { width:64px; height:64px; margin-bottom:10px; }
.feature-card:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }

/* ======================== LISTINGS PAGE =========================== */
.listings {
  padding: 48px 0;
  background: #f9fbff;
  min-height: 70vh;
}

.listings h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 6px;
  font-size: 1.6rem;
}

.listings .intro-text {
  text-align: center;
  margin-bottom: 18px;
  color: #444;
}

/* --------------------------- Listings Grid --------------------------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 18px;
  justify-items: center;
}

/* --------------------------- Listing Card --------------------------- */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #ddd;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card .img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.meta {
  color: #555;
  font-size: 0.9rem;
}

.meta div {
  margin-bottom: 4px;
}

.price {
  font-weight: 800;
  color: #003f86;
}

/* --------------------------- Verified Badge --------------------------- */
.verified {
  display: center;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background-color: #218838; margin-left: 115px;
  width: 2.4cm;
  color: #000;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  justify-content: center;
  margin-top: 10px;
}

.verified span {
  font-weight: bold;
  color: #000;
}

/* --------------------------- Action Buttons --------------------------- */
.actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn.view-btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #ffcc00;
  color: #003366;
  transition: background-color 0.2s, color 0.2s;
}

.btn.view-btn:hover {
  background-color: #003366;
  color: #ffcc00;
}

/* ===== Message above search ===== */
    .listings-message {
      text-align: center;
      margin: 30px auto 20px;
      font-size: 1.2rem;
      color: #002077;
      max-width: 800px;
      line-height: 1.5;
      font-weight: 500;
    }

    /* ===== Search Bar + Add Listing ===== */
    .search-bar {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin: 20px auto 30px;
      max-width: 800px;
    }

    .search-bar input {
      flex: 1;
      padding: 12px 16px;
      border: 1px solid #ccc;
      border-radius: 30px;
      font-size: 16px;
      outline: none;
      transition: 0.3s;
    }

    .search-bar input:focus {
      border-color: #002077;
      box-shadow: 0 0 6px rgba(0, 32, 119, 0.3);
    }

   /* ===== Land info style ===== */

     .listings .landlord-info {
      display: flex;
      justify-content: center;
      margin: 0 auto 28px;
      text-align: center;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .listings .landlord-info.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .listings .landlord-header-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      width: min(100%, 430px);
      padding: 24px;
      border-radius: 14px;
      background: #f0f3f8;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .listings .landlord-info img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid #0008a0;
      margin-bottom: 15px;
      box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    .listings .landlord-info h2 {
      margin: 0 0 10px 0;
      font-size: 28px;
      color: #333;
    }

    .listings .landlord-info p {
      margin: 4px 0;
      font-size: 16px;
      color: #666;
    }

    .listings .landlord-info .verified {
      display: inline-block;
      background: #002077; 
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 14px;
      margin-top: 8px;
    }

    /* ===== Listings Grid ===== */
    .listing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .card {
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 6px 12px rgba(0,0,0,0.08);
      transition: transform 0.3s, box-shadow 0.3s;
    }

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

    .card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .card-body {
      padding: 15px;
    }

    .card-body h3 {
      margin: 0 0 8px 0;
      font-size: 20px;
    }

    .card-body .meta div {
      font-size: 14px;
      margin-bottom: 4px;
      color: #555;
    }

    .card-body .actions {
      margin-top: 10px;
    }

    .btn {
      display: inline-block;
      padding: 6px 12px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
    }

    .btn.view-btn {
      background: #ffe600; 
      color: #000000;
    }

    .btn.view-btn:hover {
      background: #002287;
      color: #fff;
    }

/* LANDLORDS PAGE */
.landlord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; margin-top: 18px; justify-items: center;}
.landlord-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); display: flex; flex-direction: column; width: 100%; max-width: 350px; transition: transform 0.25s ease, box-shadow 0.25s ease;}
.landlord-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.landlord-card .img-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.landlord-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landlord-card .card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; text-align: center; }
.landlord-card h3 { color:#003366; font-size:1.1rem; margin-bottom:4px; }
.landlord-card .meta { color:#555; font-size:0.9rem; }
.landlord-card .verified { display:inline-block; margin-top:6px; background:#28a745; color:#000000; padding:5px 10px; border-radius:6px; font-size:0.75rem; }
.landlord-card .actions { margin-top:auto; display:flex; justify-content:center; gap:10px; }
.landlord-card .btn.secondary { background:#003366; color:#fff; border:none; }
.landlord-card .btn.secondary:hover { background:#ffcc00; color:#003366; }

    .listings .landlord-info .verified {
      display: inline-block;
      background: #002077; 
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 14px;
      margin-top: 8px;
      margin-left: 10px;
    }

      .intro-text {
      text-align: center;
      margin: 30px auto 100px;
      font-size: 1.2rem;
      color: #002077;
      max-width: 800px;
      line-height: 1.5;
      font-weight: 500;
      
    } 

/* ADD LISTING / LANDLORD FORMS */
.form-page, .add-landlord-section { padding:48px 0; text-align:center; }
.form-wrap, .add-form {
    max-width: 600px;
    margin:0 auto;
    background:#fff;
    padding:2.5rem;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,0.1);
    display:flex;
    flex-direction:column;
    gap:12px;
    text-align:left;
}
input[type="text"], input[type="number"], input[type="email"], select, textarea { padding:12px; border-radius:8px; border:1px solid #ddd; width:100%; font-size:1rem; }
textarea { min-height:120px; resize:vertical; }
.add-form label, .form-wrap label { font-weight:600; color:#003366; }
.add-form .btn, .form-wrap .btn { background:#003366; color:#fff; padding:0.9rem; border:none; border-radius:6px; cursor:pointer; font-weight:600; transition: background 0.3s ease; }
.add-form .btn:hover, .form-wrap .btn:hover { background:#ffcc00; color:#003366; }
.status-message { text-align:center; margin-top:0.5rem; font-weight:600; }

/* ===== PROFILE PAGE ===== */
.profile-page {
  padding: 60px 0;
  background: #f8faff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
}

.profile-container {
  background: #fff;
  border-radius: 14px;
  padding: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 650px;
}

.profile-container h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 1.2rem;
}

.profile-container p {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
}

.profile-container form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-container label {
  font-weight: 600;
  color: #003366;
}

.profile-container input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.profile-container button {
  margin-top: 14px;
  background: #003366;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.profile-container button:hover {
  background: #ffcc00;
  color: #003366;
}

.success-message {
  color: green;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

/* PROFILE DETAILS */
.profile-details {
  margin-top: 2.5rem;
  background: #f4f7fb;
  border-radius: 10px;
  padding: 1.5rem;
}

.profile-details h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 1rem;
}

.profile-details p {
  font-size: 1rem;
  color: #333;
  margin: 6px 0;
}

.profile-details strong {
  color: #003366;
}



/* ABOUT & CONTACT */
.about { padding:48px 0; background:#f8f9fb; }
.about-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin-top:18px; }
.about-card { background:#fff; padding:18px; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }

/* FOOTER */
footer {
  background:#003366;
  color:#fff;
  padding:28px 0 16px;
  margin-top:auto;
}

.footer-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
  margin-bottom: 18px;
}

.footer-column h4 {
  color: #ffcc00;
  margin-bottom: 10px;
}

.footer-column p,
.footer-column a,
.footer-contact-link {
  color:#dbe9ff;
  font-size: 0.95rem;
}

.footer-column a,
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  transition: color .2s ease;
}

.footer-column a:hover,
.footer-contact-link:hover {
  color: #ffcc00;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 14px;
  text-align: center;
}

/* SCROLL REVEAL */
.reveal-base {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-up { transform: translateY(48px); }

.reveal-base.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* RESPONSIVE */
@media (max-width:900px) {
  .hero h1 { font-size:1.5rem; }
  .hero { height:60vh; }
  .search-bar input, .search-bar select { min-width:120px; }
  .landlord-grid { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
  .form-wrap, .add-form { max-width:90%; padding:2rem; }
}

/* ---------- AUTH MODAL ---------- */ 

.auth-modal { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.55); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999; 
} 

.auth-box { 
  background: #fff; 
  border-radius: 12px; 
  width: 90%; 
  max-width: 420px; 
  padding: 24px 28px; 
  position: relative; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); 
} 

.auth-close { 
  position: absolute; 
  top: 10px; 
  right: 14px; 
  background: none; 
  border: none; 
  font-size: 1.8rem; 
  cursor: pointer; 
  color: #666; 
} 

.auth-tabs { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 18px; 
} 

.auth-tabs button { 
  flex: 1; 
  padding: 10px; 
  border: none; 
  background: #eee; 
  font-weight: 600; 
  cursor: pointer; 
} 

.auth-tabs button.active { 
  background: #003366; 
  color: #fff; 
} 

.auth-form { 
  display: flex; 
  flex-direction: column; 
  gap: 2px; /* spacing between inputs */
  
} 

.auth-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 5px;
}

.auth-form .btn { 
  width: 100%; 
  margin-top: 5px; /* space between input and button */
  margin-bottom: -7px;
  padding: 12px; 
  background-color: #003366; /* blue background */
  color: #fff; /* white text */
  border: none; 
  border-radius: 8px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: transform 0.1s ease, filter 0.2s ease;
}

.auth-form .btn:hover { 
  filter: brightness(1.1); 
  background-color: #004890;
}

.auth-form .btn:active {
  transform: scale(0.98); /* small click effect */
  
}

.alt-signin { 
  text-align: center; 
  margin: 12px 0;
}

.auth-form .btn-outline {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 10px;

  background-color: #fff;           /* white background */
  color: #f4b400;                    /* yellow text */
  border: 2px solid #f4b400;         /* yellow border */

  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;

  transition: transform 0.1s ease, filter 0.2s ease, background-color 0.2s ease;
}

.auth-form .btn-outline:hover {
  background-color: #ffe284;         /* soft yellow hover */
}

.auth-form .btn-outline:active {
  transform: scale(0.98);
}



/* ===== STATS SECTION ===== */
.stats { background:#f8fafc; text-align:center; padding:70px 20px; }
.stats h2 { font-size:1.8rem; color:#002855; margin-bottom:10px; }
.stats p { color:#555; margin-bottom:40px; font-size:1rem; }
.stats-grid { display:flex; justify-content:center; align-items:center; gap:40px; flex-wrap:wrap; }

.reviews-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 100%);
}

.reviews-section h2,
.reviews-subtitle {
  text-align: center;
}

.reviews-section h2 {
  color: #002855;
  margin-bottom: 8px;
}

.reviews-subtitle {
  color: #475569;
  margin-bottom: 30px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid #d9e6ff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(0, 40, 110, 0.08);
}

.review-profile {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffcc00;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-name { color: #003366; font-weight: 700; margin: 0; }
.review-campus { margin: 0; color: #64748b; font-size: 0.9rem; }
.review-text { margin: 0; color: #1f2937; line-height: 1.5; }

.reviews-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.review-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.review-modal-content {
  width: min(540px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  border: 1px solid #d9e6ff;
}

.review-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: #334155;
}

.review-form label { display:block; margin:8px 0 6px; color:#003366; font-weight:600; }
.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid #c9d7f2;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.review-form textarea { min-height: 110px; }

.review-profile-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 6px 0 10px;
  border: 2px solid #ffcc00;
}

@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-actions { flex-wrap: wrap; }
}
.stat-box { background:#fff; padding:25px 40px; border-radius:12px; width:220px; box-shadow:0 3px 6px rgba(0,0,0,0.1); transition:transform 0.2s ease, box-shadow 0.2s ease; opacity:0; transform:translateY(30px); }
.stat-box.visible { opacity:1; transform:translateY(0); transition:all 0.8s ease; }
.stat-box h3 { font-size:2rem; color:#ffb703; margin-bottom:8px; font-weight:700; }
.stat-box p { font-size:0.95rem; color:#002855; font-weight:500; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffcc00;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  transition: 0.3s;
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  background: #f8f8f8;
  border-color: #003366;
  color: #003366;
}
/* ===== Listing Details Section (Theme aligned) ===== */
.listing-details {
  padding: 56px 0 64px;
  background: radial-gradient(circle at top, #f9fcff 0%, #eef4ff 42%, #e7effc 100%);
}

.listing-details #main-image,
.listing-details .listing-info,
.listing-details .image-gallery,
.listing-details .landlord-info,
.listing-details .enquiry-form,
.listing-details .listing-map {
  width: min(1100px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.listing-details #main-image {
  margin-bottom: 24px;
}

.listing-details .main-listing-image {
  display: block;
  width: 100%;
  height: clamp(280px, 52vw, 520px);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #d7e5ff;
  box-shadow: 0 18px 36px rgba(0, 42, 117, 0.18);
}

.listing-details .listing-info {
  margin-bottom: 22px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d9e6ff;
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 10px 24px rgba(0, 40, 110, 0.10);
}

.listing-details .listing-info h1 {
  color: #003366;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.listing-details .listing-info p {
  color: #334155;
  line-height: 1.7;
  margin: 6px 0;
}

.listing-details .image-gallery {
  position: relative;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #d9e6ff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 40, 110, 0.10);
  padding: 18px;
  overflow: hidden;
  max-width: 820px;
  text-align: center
}

.listing-details .image-gallery .gallery-image {
  width: min(100%, 700px);
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: clamp(220px, 38vw, 380px);
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d7e5ff;
}

.listing-details .gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  background: rgba(0, 51, 102, 0.92);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 30, 90, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  z-index: 2;
}

.listing-details .gallery-btn.left {
  left: 34px;
}
.listing-details .gallery-btn.right {
  right: 34px;
}

.listing-details .gallery-btn:hover {
  transform: translateY(-50%) scale(1.07);
  background: #ffcc00;
  color: #003366;
}

.listing-details .landlord-info {
  margin-bottom: 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d9e6ff;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 10px 24px rgba(0, 40, 110, 0.10);
}

.listing-details .landlord-info .landlord-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffcc00;
  box-shadow: 0 8px 18px rgba(0, 30, 90, 0.22);
}

.listing-details .landlord-info h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  color: #003366;
  font-size: 1.6rem;
}


.listing-details .landlord-info p {
  color: #475569;
  margin-bottom: 12px;
}

.listing-details .landlord-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.listing-details .landlord-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  background: #003366;
  color: #fff;
  border: 1px solid #003366;
  transition: all 0.25s ease;
}

.listing-details .landlord-contact a:hover {
  background: #ffcc00;
  color: #003366;
  border-color: #ffcc00;
}

.listing-details .enquiry-form {
  max-width: 760px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #d9e6ff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 40, 110, 0.10);
}

.listing-details .enquiry-form h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 16px;
  font-size: 2rem;
}

.listing-details .enquiry-form label {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
  font-weight: 600;
}

.listing-details .enquiry-form input,
.listing-details .enquiry-form textarea {
  width: 100%;
  border: 1px solid #c9d7f2;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.listing-details .enquiry-form textarea {
  min-height: 130px;
}

.listing-details .enquiry-form input:focus,
.listing-details .enquiry-form textarea:focus {
  outline: none;
  border-color: #1f5db8;
  box-shadow: 0 0 0 3px rgba(31, 93, 184, 0.12);
}

.listing-details .enquiry-form button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #003366;
  color: #fff;
  transition: all 0.25s ease;
}

.listing-details .enquiry-form button:hover {
  background: #ffcc00;
  color: #003366;
}

.listing-details .listing-map {
  margin-bottom: 0;
  background: #ffffff;
  border: 1px solid #d9e6ff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 40, 110, 0.10);
}

.listing-details .listing-map h3 {
  color: #003366;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.listing-details .listing-map iframe {
  width: 100%;
  height: clamp(260px, 42vw, 380px);
  border: 0;
  border-radius: 12px;
}

.listing-details .map-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.listing-details .map-buttons .btn {
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 700;
}

.listing-details .map-buttons .btn:hover {
  background: #ffcc00;
  color: #003366;
}

.form-message {
  margin-top: 10px;
  font-weight: 600;
}

/* Center the heading and intro text in add-landlord section */
.add-landlord h1,
.add-landlord .intro-text {
    text-align: center;
}

.enquiries-page h1 {
  text-align: center;
  margin-bottom: 20px;
}

.enquiries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.enquiry-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.enquiry-card h3 {
  margin-top: 0;
  color: #2c3e50;
}

.enquiry-card p {
  margin: 6px 0;
  color: #555;
  font-size: 0.95rem;
}

.enquiry-card .pending {
  color: orange;
  font-weight: bold;
}

.enquiry-card .approved {
  color: green;
  font-weight: bold;
}

.enquiry-card .rejected {
  color: red;
  font-weight: bold;
}

.enquiry-card .enquiry-date {
  font-size: 0.85rem;
  color: #999;
  text-align: right;
  margin-top: 10px;
}

.map-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.map-buttons .btn {
  padding: 10px 20px;
  border: none;
  background: #ff7a59;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.map-buttons .btn:hover {
  background: #ff5722;
}

/* ===== CONTACT PAGE STYLE (MATCHES ADD-LANDLORD UI) ===== */

.page-title {
  text-align: center;
  font-size: 32px;
  margin-top: 40px;
  color: #002a5c;
}

.page-subtitle {
  text-align: center;
  font-size: 16px;
  color: #444;
  margin-bottom: 30px;
}

.form-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 850px;
  margin: 0 auto 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  font-weight: 600;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  background: #003366;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-submit:hover {
  background: #00234d;
}

#contactMessageFeedback {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}


/* Remove Enquiry Button */
.delete-enquiry-btn {
  margin-top: 12px;
  background: #002f8b;           /* destructive red */
  color: #fff;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Hover */
.delete-enquiry-btn:hover {
  background: #bbab00;
}

/* Active click */
.delete-enquiry-btn:active {
  transform: scale(0.97);
}

/* Disabled (optional future use) */
.delete-enquiry-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}


/* Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Circular logo */
.logo img {
  width: 64px;
  height: 64px;             /* force square */
  border-radius: 50%;       /* makes it circular */
  object-fit: cover;        /* crops nicely inside circle */
  background: #0b1c2d;      /* subtle dark bg if logo has transparency */
  padding: 4px;             /* breathing room */
  margin-right: 10px; /* adjust gap size here */
}

  #userNameTop {
    font-size: 20px; /* adjust size */
  }

/* Themed forms (Add Listing / Add Landlord) */
.add-listing,
.add-landlord {
  padding: 30px 0 50px;
  }

.form-title {
  text-align: center;
  color: #003366;
  margin-bottom: 10px;
}

.listing-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dbe7ff;
  box-shadow: 0 14px 32px rgba(0, 40, 120, 0.12);
}

.listing-form .form-group {
  margin-bottom: 14px;
}

.listing-form label {
  display: block;
  margin-bottom: 7px;
  color: #003366;
  font-weight: 600;
}

.listing-form input[type="text"],
.listing-form input[type="number"],
.listing-form input[type="email"],
.listing-form input[type="tel"],
.listing-form select,
.listing-form textarea,
.listing-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #c9d7f2;
  font-size: 1rem;
  background: #fff;
}

.listing-form textarea {
  min-height: 120px;
  resize: vertical;
}

.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus {
  border-color: #1f5db8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 93, 184, 0.12);
}

.listing-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #003366;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.listing-form input[type="file"]::file-selector-button:hover {
  background: #ffcc00;
  color: #003366;
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 1rem;
}

/* Listings page search controls */
.listing-search {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 18px auto 28px;
}

.listing-search input,
.listing-search select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4dcec;
  border-radius: 10px;
  font-size: 0.98rem;
  background: #fff;
}

.listing-search .btn {
  padding: 12px 18px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .listing-search {
    grid-template-columns: 1fr;
  }
}

/* ===== 2026 UI REFINEMENT: FEEDBACK FOLLOW-UP ===== */
:root {
  --theme-surface-1: #f5fbff;
  --theme-surface-2: #e8f3ff;
  --theme-card-1: #ffffff;
  --theme-card-2: #f2f8ff;
}

body,
main,
.hero,
.features,
.stats,
.listings,
.about,
.profile-page,
.form-page,
.add-landlord-section,
.listing-details,
.contact-page,
.enquiries-page {
  background-image: linear-gradient(180deg, var(--theme-surface-1) 0%, var(--theme-surface-2) 100%);
}

/* keep home search button blue as requested */
.search-bar .search-btn,
.hero .search-btn,
.btn.search-btn {
  background-image: linear-gradient(135deg, #0b5fb8, #003f86) !important;
  color: #fff !important;
}

.search-bar .search-btn:hover,
.hero .search-btn:hover,
.btn.search-btn:hover {
  background-image: linear-gradient(135deg, #0f70d8, #0a4f92) !important;
}

/* navbar button borders should be yellow */
.nav-links > li > a,
#authBtn {
  border: 1.5px solid #ffcc00;
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.2);
}

/* two-tone surfaces across cards/boxes/dropdowns/footer */
.card,
.feature-card,
.about-card,
.landlord-card,
.listing-info,
.profile-container,
.form-wrap,
.add-form,
.review-card,
.stat-box,
.enquiry-card,
.dropdown-menu,
.dropdown-content,
.auth-box,
.review-modal-content {
  background-image: linear-gradient(165deg, var(--theme-card-1) 0%, var(--theme-card-2) 100%);
}

.dropdown-header,
.footer-column h4,
.topbar h1,
.listings h1,
.reviews-section h2,
.stats h2,
.about h1,
.form-page h1,
.add-landlord-section h1,
.listing-details h1,
.listing-details h2,
.profile-container h1,
.contact-page h1,
.enquiries-page h1 {
  text-shadow: 0 0 8px color-mix(in srgb, currentColor 30%, white 70%);
}

footer {
  background-image: linear-gradient(145deg, #002a57 0%, #003f86 100%);
}

.footer-column h4 {
  color: #ffd84d;
}

/* Apply add-review style language to file pickers on add-listing/add-landlord */
.listing-form input[type="file"],
.form-wrap input[type="file"],
.add-form input[type="file"] {
  border: 1px dashed #8cb8e6;
  background: linear-gradient(180deg, #dff1ff, #c9e8ff);
  border-radius: 10px;
  padding: 10px;
}

.listing-form input[type="file"]::file-selector-button,
.form-wrap input[type="file"]::file-selector-button,
.add-form input[type="file"]::file-selector-button {
  border: none;
  border-radius: 8px;
  margin-right: 12px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #003366, #0a4f92);
  cursor: pointer;
}

.listing-form input[type="file"]::file-selector-button:hover,
.form-wrap input[type="file"]::file-selector-button:hover,
.add-form input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #0a4f92, #1562b0);
}

/* global heading glow (kept subtle and color-aware) */
h1,
h2,
h3 {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 22%, white 78%);
}

/* Themed forms (Add Listing / Add Landlord) */
.add-listing,
.add-landlord {
  padding: 30px 0 50px;
}

.form-title {
  text-align: center;
  color: #003366;
  margin-bottom: 10px;
}

.listing-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dbe7ff;
  box-shadow: 0 14px 32px rgba(0, 40, 120, 0.12);
}

.listing-form .form-group {
  margin-bottom: 14px;
}

.listing-form label {
  display: block;
  margin-bottom: 7px;
  color: #003366;
  font-weight: 600;
}

.listing-form input[type="text"],
.listing-form input[type="number"],
.listing-form input[type="email"],
.listing-form input[type="tel"],
.listing-form select,
.listing-form textarea,
.listing-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #c9d7f2;
  font-size: 1rem;
  background: #fff;
}

.listing-form textarea {
  min-height: 120px;
  resize: vertical;
}

.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus {
  border-color: #1f5db8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 93, 184, 0.12);
}

.listing-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #003366;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.listing-form input[type="file"]::file-selector-button:hover {
  background: #ffcc00;
  color: #003366;
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 1rem;
}
/* Enquiry card media layout */
.enquiry-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: stretch;
}

.enquiry-image-wrap {
  width: 100%;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f7;
}

.enquiry-listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.enquiry-content {
  display: flex;
  flex-direction: column;
}

.enquiry-content h3 {
  margin-bottom: 6px;
}

.enquiry-content .delete-enquiry-btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 720px) {
  .enquiry-card {
    grid-template-columns: 1fr;
  }

  .enquiry-image-wrap {
    min-height: 200px;
  }
}
/* ===== 2026 UI POLISH: STABLE LAYOUT + THEME CONSISTENCY ===== */
:root {
  --theme-blue-1: #003366;
  --theme-blue-2: #0a4f92;
  --theme-blue-soft-1: #dff1ff;
  --theme-blue-soft-2: #c9e8ff;
  --theme-accent-1: #ffcc00;
  --theme-accent-2: #f3b700;
  --theme-baby-blue: #9edcff;
}

html,
body {
  overscroll-behavior: none;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f5fbff 0%, #edf6ff 100%);
}

.header,
footer,
.btn,
.reviews-section,
.features,
.stats,
.about,
.listings,
.profile-page,
.form-page,
.add-landlord-section {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.header {
  background-image: linear-gradient(135deg, var(--theme-blue-1), var(--theme-blue-2));
}

.logo span {
  color: #f8fdff;
  text-shadow: 0 0 8px rgba(219, 227, 233, 0.95), 0 0 14px rgba(219, 227, 233, 0.8);
}

.nav-links > li > a,
#authBtn {
  border: 1.5px solid var(--theme-baby-blue);
  background: linear-gradient(135deg, rgba(158, 220, 255, 0.12), rgba(158, 220, 255, 0.03));
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
#authBtn:hover {
  border-color: #d5f0ff;
}

.btn,
.auth-form .btn,
.search-bar .search-btn,
.btn.view-btn {
  background-image: linear-gradient(135deg, var(--theme-accent-1), var(--theme-accent-2));
}

.review-modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.review-modal-content h3 {
  text-align: center;
  color: var(--theme-blue-1);
  margin-bottom: 14px;
}

.review-form input[type="file"] {
  border: 1px dashed #8cb8e6;
  background: linear-gradient(180deg, var(--theme-blue-soft-1), var(--theme-blue-soft-2));
  cursor: pointer;
}

.review-form input[type="file"]::file-selector-button {
  border: none;
  border-radius: 8px;
  margin-right: 12px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--theme-blue-1), var(--theme-blue-2));
  cursor: pointer;
}

.review-form button[type="submit"] {
  display: block;
  margin: 14px auto 8px;
  min-width: 170px;
  text-align: center;
}

@media (max-width: 900px) {
  .navbar,
  .nav-links,
  .nav-links li,
  .hero-content,
  .reviews-actions,
  .actions,
  .form-wrap,
  .add-form {
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .navbar {
    padding: 0.8rem 1rem;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .nav-links > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a,
  .btn.auth-open,
  #authBtn {
    width: min(340px, 100%);
    text-align: center;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  .review-modal-content {
    padding: 18px;
  }
}

/* ===== FINAL OVERRIDES: keep latest feedback authoritative ===== */
.nav-links > li > a,
#authBtn {
  border: 1.5px solid #ffcc00 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.2);
}

.search-bar .search-btn,
.hero .search-btn,
.btn.search-btn {
  background-image: linear-gradient(135deg, #0b5fb8, #003f86) !important;
  color: #fff !important;
}

.listing-form input[type="file"],
.form-wrap input[type="file"],
.add-form input[type="file"] {
  border: 1px dashed #8cb8e6 !important;
  background: linear-gradient(180deg, #dff1ff, #c9e8ff) !important;
}

.listing-form input[type="file"]::file-selector-button,
.form-wrap input[type="file"]::file-selector-button,
.add-form input[type="file"]::file-selector-button {
  border: none;
  border-radius: 8px;
  margin-right: 12px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #003366, #0a4f92) !important;
  cursor: pointer;
}

h1,
h2,
h3 {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.45), 0 0 2px rgba(0, 0, 0, 0.08);
}

/* ===== SCROLL BEHAVIOR FIX: keep vertical scrolling enabled ===== */
html,
body {
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}

/* ===== NAVBAR LAYOUT REFINEMENT: center nav buttons, separate profile button ===== */
.header .navbar {
  position: relative;
}

.nav-links {
  flex: 1;
  justify-content: center;
  padding-right: 170px;
}

.nav-links #userDropdown {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

@media (max-width: 900px) {
  .header .navbar {
    align-items: center;
  }

  .nav-links {
    padding-right: 0;
    width: 100%;
  }

  .nav-links #userDropdown {
    position: static;
    transform: none;
    order: 99;
    margin-top: 8px;
  }
}

/* ===== FINAL UX TWEAKS: footer alignment + auth button position + landlord spacing ===== */
footer .container > p,
footer > p {
  text-align: center;
  width: 100%;
  font-weight: 600;
}

/* Keep sign-in exactly where profile dropdown button appears */
.nav-links #authContainer,
.nav-links #userDropdown {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#authBtn {
  border-radius: 50px !important;
  font-weight: 700 !important;
  padding: 8px 16px;
  min-width: 108px;
  line-height: 1;
}

/* Extra breathing room between landlord cards and footer */
.landlords {
  padding-bottom: 20px;
}

.landlords .listing-grid,
.landlords .landlord-grid,
#landlord-grid {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .nav-links #authContainer,
  .nav-links #userDropdown {
    position: static;
    transform: none;
  }

  #authContainer {
    order: 98;
  }

  #userDropdown {
    order: 99;
  }
}

/* ===== FINAL BUTTON TWEAK: white/silver shiny Sign In button ===== */
#authBtn {
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 38%, #e1e8f2 70%, #ffffff 100%) !important;
  color: #1f3d61 !important;
  border: 1.5px solid #d7dee8 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 8px 18px rgba(8, 29, 58, 0.18),
    0 0 10px rgba(227, 236, 248, 0.7);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

#authBtn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 42%, #e7edf6 75%, #ffffff 100%) !important;
  color: #153556 !important;
  border-color: #cfd8e3 !important;
}

/* ===== FINAL PROFILE BUTTON TWEAK: match Sign In silver style, keep purple icon ===== */
.user-btn,
.profile-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 38%, #e1e8f2 70%, #ffffff 100%) !important;
  color: #1f3d61 !important;
  border: 1.5px solid #d7dee8 !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 8px 18px rgba(8, 29, 58, 0.18),
    0 0 10px rgba(227, 236, 248, 0.7);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.user-btn:hover,
.profile-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 42%, #e7edf6 75%, #ffffff 100%) !important;
  color: #153556 !important;
  border-color: #cfd8e3 !important;
}

/* ===== CLEAN NAV + MOBILE LAYOUT OVERRIDES ===== */
.nav-links > li > a {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 204, 0, 0.75) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.15) !important;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li > a:focus-visible {
  background: #ffcc00 !important;
  color: #003366 !important;
  border-color: #ffcc00 !important;
}

/* remove purple avatar emoji/icon from profile dropdown trigger */
.user-btn-icon {
  display: none !important;
}

#authBtn,
.user-btn {
  min-width: 98px;
  padding: 7px 12px !important;
  font-size: 0.88rem;
  line-height: 1.1;
}

.dropdown-menu #logoutBtn {
  text-align: center !important;
}

.user-btn {
  justify-content: center !important;
}

#username {
  display: block;
  text-align: center;
  width: 100%;
}

/* Keep home hero search block centered */
.hero .search-bar {
  margin-left: auto;
  margin-right: auto;
}

/* Better enquiries spacing from footer */
.enquiries-page {
  padding-bottom: 48px;
}

.enquiries-list {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .header .navbar {
    flex-direction: column;
    align-items: center !important;
    gap: 10px;
    padding: 0.7rem 0.6rem;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }

    /* page links stay in one horizontal row under heading */
  .nav-links {
    width: 100%;
    background: transparent !important;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .nav-links > li {
    width: auto !important;
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
  }

  .nav-links > li:not(#authContainer):not(#userDropdown) {
    order: 1;
  }

  .nav-links > li:not(#authContainer):not(#userDropdown) a {
    width: auto !important;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
    font-size: 0.77rem;
  }

  .nav-links #authContainer,
  .nav-links #userDropdown {
    position: static !important;
    transform: none !important;
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 6px;
    flex-basis: 100%;
  }

  .nav-links #userDropdown {
    order: 3;
  }

  #authBtn,
  .user-btn {
    width: auto !important;
    min-width: 98px;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    font-size: 0.84rem;
  }

  .dropdown-menu {
    top: calc(100% + 8px);
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -8px) !important;
    min-width: 180px;
  }

  .dropdown.is-open .dropdown-menu {
    transform: translate(-50%, 0) !important;
  }

  
  .hero .hero-content {
    width: 100%;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .search-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(92vw, 420px);
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center;
    align-self: center;
    padding: 10px;
  }

  .hero .search-bar input {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero .search-bar select {
    width: 100%;
    min-width: 0;
  }

  .hero .search-bar .search-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* listings + landlords mobile: one card per row */
  .listing-grid,
    #landlord-grid,
  .landlord-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    justify-items: center;
  }

  .card,
  .landlord-card {
    width: 100%;
    max-width: 340px;
  }

 /* slightly wider image area for better visibility */
  .card .img-wrap,
  .landlord-card .img-wrap {
    height: 180px;
  }

  /* center verified badges on landlord/profile cards */
  .card .verified,
  .landlord-card .verified {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
  }
  /* enquiries remove button centered */
  .enquiry-content .delete-enquiry-btn,
  .delete-enquiry-btn {
    align-self: center;
    margin: 14px auto 0;
    display: inline-flex;
    justify-content: center;
  }
}

/* ===== Mobile navbar/footer polish for all pages ===== */
@media (max-width: 768px) {
  .header .navbar {
    align-items: center !important;
  }

  .nav-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    row-gap: 8px;
  }

  .nav-links > li:not(#authContainer):not(#userDropdown) {
    order: 1;
  }

  .nav-links #authContainer,
  .nav-links #userDropdown {
    flex-basis: 100%;
    order: 2;
    justify-content: center;
    margin-top: 2px;
  }

  .nav-links #userDropdown {
    order: 3;
  }

  .footer-column,
  .footer-column h4 {
    text-align: center;
  }
}
/* ===== 2026-02 Mobile/Desktop alignment fixes ===== */

/* Theme-consistent page nav buttons (not auth/profile buttons) */
.nav-links > li > a {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 204, 0, 0.75) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.15);
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li > a:focus-visible {
  background: #ffcc00 !important;
  color: #003366 !important;
  border-color: #ffcc00 !important;
}

/* Keep home hero search block centered */
.hero .search-bar {
  margin-left: auto;
  margin-right: auto;
}

/* Better enquiries spacing from footer */
.enquiries-page {
  padding-bottom: 48px;
}

.enquiries-list {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  /* Navbar page links in one centered row; auth/profile stays below */
  .header .navbar {
    align-items: center !important;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .nav-links > li:not(#authContainer):not(#userDropdown) {
    order: 1;
    width: auto !important;
    flex: 0 0 auto;
  }

  .nav-links > li:not(#authContainer):not(#userDropdown) a {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.38rem 0.62rem;
  }

  .nav-links #authContainer,
  .nav-links #userDropdown {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 6px;
  }

  .nav-links #userDropdown {
    order: 3;
  }

  /* Listings + landlord cards back to one per row on phone */
  .listing-grid,
  #landlord-grid,
  .landlord-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    justify-items: center;
  }

  .card,
  .landlord-card {
    width: 100%;
    max-width: 390px;
  }

  /* Enquiries page: center remove button and add bottom breathing room */
  .enquiry-content .delete-enquiry-btn,
  .delete-enquiry-btn {
    align-self: center;
    margin: 14px auto 0;
    display: inline-flex;
    justify-content: center;
  }
}


/* ===== Uniform navbar page-link widths on phone only ===== */
@media (max-width: 768px) {
  .nav-links > li:not(#authContainer):not(#userDropdown) {
    display: flex;
    justify-content: center;
  }

  .nav-links > li:not(#authContainer):not(#userDropdown) > a {
    width: 156px !important;
    min-width: 156px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
  }
}
