
/*========================= 
   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; }
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:hover,
.profile-btn:hover {
  background: #ffcc00;
  color: #003366;
}

/* ===== DROPDOWN PANEL ===== */
.dropdown-menu,
.dropdown-content {
  display: none;
  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;
}

/* ===== SHOW ON HOVER ===== */
.dropdown:hover .dropdown-menu,
.profile-dropdown:hover .dropdown-content {
  display: block;
}

/* ===== 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; }
.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;
}

/* --------------------------- Search + Add Button --------------------------- */
.listing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.listing-actions .search-box {
  flex: 1;
  max-width: 400px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.listing-actions .search-box:focus {
  border-color: #0077ff;
}

.listing-actions .add-btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  background-color: #e0a800;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.listing-actions .add-btn:hover {
  background-color: #e0a800;
}

/* --------------------------- 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;
}

/* --------------------------- Responsive --------------------------- */
@media (max-width: 600px) {
  .listing-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .listing-actions .search-box,
  .listing-actions .add-btn {
    width: 100%;
  }
}

/* ===== 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);
    }

    .search-bar .btn-add {
      background: #002077;
      color: #fff;
      border: none;
      border-radius: 30px;
      padding: 12px 20px;
      font-size: 16px;
      cursor: pointer;
      transition: 0.3s;
    }

    .search-bar .btn-add:hover {
      background: #ffe600;
      color: #000;
    }

    /* ===== Landlord Info Styling ===== */

    .landlord-info.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .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);
    }

    .landlord-info h2 {
      margin: 0 0 10px 0;
      font-size: 28px;
      color: #333;
    }

    .landlord-info p {
      margin: 4px 0;
      font-size: 16px;
      color: #666;
    }

    .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; }

    .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:18px 0; text-align:center; margin-top:28px; }

/* 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; }
.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 ===== */
.listing-details {
  padding: 60px 0;
  background: linear-gradient(to bottom right, #fdfcfb, #e2d1c3);
  font-family: "Poppins", sans-serif;
}

/* ===== Main Hero Image ===== */
.main-listing-image {
  display: block;
  margin: 0 auto 40px auto;
  max-width: 90%;
  height: 420px;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Listing Info Card ===== */
.listing-info {
  text-align: center;
  margin-bottom: 40px;
  background: #fff8e1;
  border-radius: 16px;
  padding: 30px;
  width: 85%;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.listing-info h1 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 10px;
}

.listing-info p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ===== Image Gallery ===== */
.image-gallery {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 85%;
  margin: 0 auto 50px auto;
  padding: 30px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
}

.image-gallery img.gallery-image {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  height: 350px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
}

/* ===== Gallery Arrows ===== */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 204, 0, 0.9);
  color: #333;
  border: none;
  font-size: 1.5rem;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
  background-color: #e0a800;
  transform: translateY(-50%) scale(1.05);
}

.gallery-btn.left {
  left: 20px;
}

.gallery-btn.right {
  right: 20px;
}

/* ===== Landlord Info Section ===== */
.landlord-info {
  text-align: center;
  margin-bottom: 60px;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 40px 30px;
  width: 85%;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.landlord-info img.landlord-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #ffcc00;
}

.landlord-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #333;
}

.landlord-info p {
  font-size: 1rem;
  color: #666;
}

/* ===== Landlord Contact Buttons ===== */
.landlord-contact {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.landlord-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background-color: #ffcc00;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.landlord-contact a:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.landlord-contact a i {
  font-size: 1.2rem;
}

/* ===== Enquiry Form ===== */
.enquiry-form {
  max-width: 600px;
  margin: 0 auto 60px auto;
  text-align: left;
  padding: 35px;
  background: #fff8e1;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.enquiry-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 1.5rem;
}

.enquiry-form label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-weight: 500;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fff;
  transition: border 0.3s ease;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: #ffcc00;
  outline: none;
}

.enquiry-form button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background-color: #ffcc00;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.enquiry-form button:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

/* ===== Map Section ===== */
.listing-map {
  text-align: center;
  padding: 30px;
  border-radius: 16px;
  width: 85%;
  margin: 0 auto 50px auto;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.listing-map iframe {
  border-radius: 12px;
  width: 100%;
  height: 350px;
  border: none;
}

.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 */
}

/* Mobile size */
@media (max-width: 768px) {
  .logo img {
    height: 34px;
    width: 34px;
  }
}

  #userNameTop {
    font-size: 20px; /* adjust size */
  }