/* ---- Reset / Base ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: #fafafa;
  font-size: 13px;
}
a { text-decoration: none; color: inherit; }

/* ---- Popular Section ---- */
.popular-section {
  background: #fff;
  padding: 40px 5%;
  text-align: center;
}
.popular-section h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.property-card {
  position: relative;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s;
}
.property-card:hover { transform: translateY(-4px); }
.property-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.property-info {
  padding: 12px;
  text-align: left;
  position: relative;
  padding-bottom: 1.5rem; 
}
.property-info h3 {
  margin: 0;
  font-size: 1.1em;
}
.property-info p {
  margin: 4px 0;
  color: #666;
}
.property-info strong {
  color: #0d68ae;
}
.property-info .listing-age {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.8rem;
  color: #666;
  background: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(120deg, #0d68ae, #00b4d8);
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  margin-bottom: 10px;
  font-size: 2em;
}
.hero p {
  font-size: 1.1em;
  margin-bottom: 20px;
}
.search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.search-bar input,
.search-bar select {
  padding: 10px;
  border: none;
  border-radius: 6px;
  min-width: 180px;
}
.search-bar button {
  background: #ffca28;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
}
.search-bar button:hover { background: #ffd54f; }

/* ---- Browse by Region ---- */
.regions {
  padding: 40px 5%;
  background: #fff;
  text-align: center;
}
.region-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.region-grid a {
  background: #f0f0f0;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background .2s;
}
.region-grid a:hover {
  background: #0d68ae;
  color: white;
}

/* ---- CTA ---- */
.landlord-cta {
  background: #0d68ae;
  color: white;
  text-align: center;
  padding: 50px 20px;
}
.cta-box {
  max-width: 600px;
  margin: auto;
}
.cta-box h2 { margin-bottom: 10px; }
.cta-button {
  display: inline-block;
  background: #ffca28;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
}
.cta-button:hover { background: #ffd54f; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.6em; }
  .property-card img { height: 130px; }
}
/* ---- Header ---- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  border-bottom: 1px dotted #0d68ae;
  background-color: #d7e3ec;
}
.logo {
  display: flex;
  font-size: 1.5em;
  color: #0d68ae;
  letter-spacing: -1px;
}
.nav-links a {
  margin: 0 10px;
  color: #333;
  font-weight: 500;
}
.nav-links a.login-btn {
  background: #0d68ae;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
}
.nav-links a.list-btn {
  background: #ffca28;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
}
.nav-links a.logout {
  color: #d32f2f;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4em;
}

/* ---- Mobile Navigation ---- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #ddd;
  position: absolute;
  top: 60px;
  width: 100%;
  left: 0;
  padding: 10px 0;
}
.mobile-nav a {
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
}
body.menu-open .mobile-nav {
  display: flex;
}

/* ---- Footer ---- */
.site-footer {
  background: #f9f9f9;
  text-align: center;
  padding: 20px 5%;
  margin-top: 40px;
  font-size: 0.9em;
  color: #555;
}
.footer-links a {
  margin: 0 8px;
  color: #0d68ae;
}

/* ---- Responsive Header ---- */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
}
/* ---- Favorite Heart ---- */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  color: #888;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.fav-btn:hover {
  color: #d32f2f;
  transform: scale(1.1);
}
.fav-btn.active {
  color: #e53935;
  background: #ffeaea;
}
.property-card {
  position: relative;
}
.star-btn {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 3px;
  padding: 2px 5px;
  cursor: pointer;
  font-size: 16px;
}
.star-btn.active {
  color: gold;
  background: #222;
}
sup { 
  vertical-align:text-top; 
  font-size:75%; 
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.region-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.region-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.region-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.region-info {
  padding: 0.8rem 1rem 1rem;
}

.region-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #007bff;
}

.region-info p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #666;
}