/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8f9fa;
  color: #333;
  padding-bottom: 80px; /* so browser bar doesn't cover content */
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #0A4D68;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-left { display: flex; align-items: center; gap: 1rem; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.logo .future { color: #D4AF37; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  font-weight: 600;
  flex: 1;
  justify-content: center;
}
.nav-menu li a { color: #fff; transition: 0.3s; }
.nav-menu li a:hover { color: #D4AF37; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.search-bar { display: flex; background: #fff; border-radius: 20px; overflow: hidden; }
.search-bar input { border: none; padding: 6px 12px; outline: none; }
.search-bar button { background: #D4AF37; border: none; padding: 6px 12px; cursor: pointer; color: #0A4D68; }

.login-btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: 0.3s;
}
.login-btn:hover { background: #fff; color: #0A4D68; }

/* POST BUTTON */
.post-btn {
  background: #D4AF37; 
  color: #0A4D68 !important; 
  padding: 8px 18px; 
  border-radius: 25px; 
  font-weight: 700; 
  transition: 0.3s;
}
.post-btn:hover { background: #fff; color: #0A4D68 !important; }

.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mobile-show { display: none; }

/* ===== SEARCH SECTION ===== */
.search-section { background:#0A4D68; padding:2rem; margin:2rem; border-radius:10px; }
.search-form { display:flex; gap:10px; flex-wrap:wrap; max-width:1200px; margin:auto; }
.search-form input, .search-form select { flex:1; min-width:150px; padding:12px; border-radius:5px; border:none; }
.search-form .search-btn { padding:12px 20px; background:#D4AF37; color:#0A4D68; border:none; border-radius:5px; cursor:pointer; font-weight:bold; font-size:1rem; }

/* ===== SECTIONS ===== */
.properties, .choice-wrap {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}
.properties h2 {
  text-align: center;
  color: #0A4D68;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* ===== CARDS ===== */
.card-grid, .roommate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.property-card, .profile-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.property-card:hover, .profile-card:hover { transform: translateY(-5px); }
.property-card img, .profile-card img { width:100%; height:200px; object-fit:cover; }
.card-content { padding:15px; text-align: left; }
.profile-card { text-align: center; padding: 1.5rem; }
.profile-card img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #D4AF37; margin-bottom: 1rem; }

.price { color:#0A4D68; font-weight:bold; font-size:1.2rem; }
.budget { font-size: 1.2rem; color: #D4AF37; font-weight: 700; margin: 0.5rem 0; }
.tag { display: inline-block; background: #eee; color: #0A4D68; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; margin: 0.3rem 0.2rem; }
.verified-badge { background:#28a745; color:#fff; padding:3px 8px; border-radius:20px; font-size:11px; margin-left:5px; }
.tenant-box { background:#FFF8E1; padding:10px; border-radius:5px; margin:10px 0; border-left:3px solid #D4AF37; text-align: left; }
.tenant-box p { font-size:12px; margin:0; }
.contact-box { margin-top:10px; padding-top:10px; border-top:1px solid #eee; text-align: left; }
.contact-box a { color:#0A4D68; font-weight:bold; text-decoration:none; }
.empty-state { text-align:center; padding:4rem 2rem; color: #555; grid-column: 1 / -1; }

.roommates-section { background:#fff; }

/* ===== FOOTER ===== */
footer { background: #0A4D68; color: #fff; padding: 2rem; text-align: center; margin-top: 3rem; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #0A4D68; list-style: none; padding: 10px 0;
  min-width: 180px; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 8px 20px; color: #fff; }
.dropdown-menu li a:hover { background: #D4AF37; color: #0A4D68; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .navbar {
    padding: 0.8rem 1rem;
    justify-content: space-between;
  }
  
  .nav-menu {
    display: none; /* HIDDEN BY DEFAULT */
    flex-direction: column;
    width: 100%;
    background: #0A4D68;
    padding: 1rem 0;
    text-align: center;
    position: absolute;
    top: 65px; /* drops below navbar */
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }
  .nav-menu.active { display: flex; } /* SHOW WHEN CLICKED */
  
  .nav-menu li { padding: 10px 0; }
  
  .hamburger { display: block; }
  .mobile-show { display: block; }
  .search-bar { display: none; }
  .nav-right { display: none; } /* HIDE DESKTOP BUTTONS ON MOBILE */
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #084258;
    width: 100%;
  }
  .dropdown:hover .dropdown-menu { display: none; } /* disable hover on mobile */
  .dropdown.active .dropdown-menu { display: block; } /* show on tap */
}

@media (max-width: 768px) {
  .search-section { margin: 1rem !important; padding: 1rem !important; }
  .search-form { flex-direction: column !important; }
  .search-form input, .search-form select, .search-form .search-btn { 
    width: 100% !important; 
    flex: 1 1 100% !important; 
    min-width: unset !important; 
  }
  .card-grid, .roommate-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .properties h2 { font-size: 1.5rem; }
  .properties, .choice-wrap { padding: 2rem 1rem; }
}


/* ===== HERO SLIDESHOW ===== */
.hero-slideshow { position: relative; height: 500px; overflow: hidden; }
.slide { display: none; height: 500px; position: relative; }
.slide.active { display: block; }
.slide-content { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center; 
  color: #fff; 
  z-index: 2;
  padding: 0 1rem;
}
.slide-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.slide-content p { font-size: 1.2rem; margin-bottom: 2rem; }
.hero-btn { 
  background: #D4AF37; 
  color: #0A4D68; 
  padding: 12px 30px; 
  border-radius: 25px; 
  font-weight: 700; 
  font-size: 1.1rem;
  display: inline-block;
}
.prev,.next { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(0,0,0,0.5); 
  color: #fff; 
  border: none; 
  padding: 16px; 
  cursor: pointer; 
  font-size: 1.5rem;
  z-index: 3;
}
.prev { left: 20px; }.next { right: 20px; }
.dots { text-align: center; position: absolute; bottom: 20px; width: 100%; z-index: 3; }
.dot { cursor: pointer; height: 15px; width: 15px; margin: 0 5px; background: #bbb; border-radius: 50%; display: inline-block; }
.dot.active { background: #D4AF37; }

/* MOBILE SLIDESHOW */
@media (max-width: 768px) {
 .hero-slideshow,.slide { height: 350px; }
 .slide-content h1 { font-size: 1.8rem; }
 .slide-content p { font-size: 1rem; }
 .prev,.next { padding: 10px; font-size: 1.2rem; }
 .hero-btn { padding: 10px 20px; font-size: 1rem; }
}
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0A4D68;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 15px;
}
.form-row .form-group {
  flex: 1;
}

.form-container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: auto;
}

.form-row {
  display: flex;
  gap: 15px;
}
.form-row .form-group {
  flex: 1;
}
.form-section {
  padding: 3rem 1rem;
  background: #F5F7FA;
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 230px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  top: 100%;
  right: 0;
  list-style: none;
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown.active .dropdown-menu { display: block; } /* for mobile click */
.dropdown-menu li a {
  color: #0A4D68;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
}
.dropdown-menu li a:hover { background: #F5F7FA; }
.nav-right .dropdown { display: inline-block; }
.card-footer{gap:8px;}
.contact-btn{flex:1;text-align:center;}