* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f4f6f9;
  color: #1f2937;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: linear-gradient(90deg, #0b3d5c, #1b6ca8);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 16px;
  flex-wrap: wrap;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  font-weight: 500;
}

.navbar nav a {
  margin-left: 0;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.navbar nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.navbar nav a.active-nav {
  background: rgba(255, 213, 79, 0.2);
  color: #ffd54f;
  box-shadow: inset 0 0 0 1px rgba(255, 213, 79, 0.35);
}

.logo a {
  color: white;
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 22px;
  height: 18px;
}

.brand-stripe {
  display: inline-block;
  width: 5px;
  border-radius: 3px;
}

.brand-black {
  height: 12px;
  background: #111111;
}

.brand-red {
  height: 15px;
  background: #c62828;
}

.brand-green {
  height: 18px;
  background: #2e7d32;
}

.auth-link.login-link {
  font-weight: 500;
}

.auth-link.signup-link {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.footer {
  background: #0b3d5c;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

.hero {
  min-height: 520px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('https://images.unsplash.com/photo-1560185127-6ed189bf02f4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 30px;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.search-bar,
.filter-bar {
  background: white;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-bar input,
.search-bar select,
.filter-bar input,
.filter-bar select,
.form-section input,
.form-section textarea,
.form-section select {
  border: 1px solid #d8dee6;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  min-width: 160px;
}

.search-bar button,
.filter-bar button,
.form-section button,
.btn {
  background: #1b6ca8;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.search-bar button:hover,
.filter-bar button:hover,
.form-section button:hover,
.btn:hover {
  opacity: 0.92;
}

.featured,
.section-wrap {
  padding: 50px 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 25px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.property-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.property-image {
  position: relative;
  height: 220px;
  background: #e5e7eb;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2e7d32;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-approved {
  background: #2e7d32;
}

.status-pending {
  background: #f57c00;
}

.status-rejected {
  background: #d32f2f;
}

.property-info {
  padding: 16px;
}

.property-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.property-info p {
  margin: 6px 0;
  color: #555;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
  margin-top: 10px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.view-btn,
.edit-btn,
.delete-btn,
.approve-btn,
.reject-btn,
.secondary-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.view-btn {
  background: #1b6ca8;
  color: white;
}

.edit-btn {
  background: #ffa000;
  color: white;
}

.delete-btn,
.reject-btn {
  background: #d32f2f;
  color: white;
}

.approve-btn {
  background: #2e7d32;
  color: white;
}

.secondary-btn {
  background: #eef2f7;
  color: #1f2937;
}

.city-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0 20px;
  flex-wrap: wrap;
}

.city-card {
  background: #2e7d32;
  color: white;
  padding: 18px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.city-card:hover {
  transform: scale(1.05);
}

.form-section {
  max-width: 520px;
  margin: 40px auto;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.form-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-subtext {
  color: #555;
  margin-bottom: 18px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
}

.form-section textarea {
  min-height: 120px;
  resize: vertical;
}

.password-group {
  position: relative;
}

.password-group input {
  width: 100%;
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #eef2f7;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  width: auto !important;
  margin-top: 0 !important;
}

.form-btn {
  width: 100%;
  margin-top: 8px;
}

.form-message {
  margin-top: 14px;
  min-height: 22px;
  font-weight: 600;
}

.form-link-text {
  margin-top: 18px;
  text-align: center;
  color: #555;
}

.form-link-text a {
  color: #1b6ca8;
  font-weight: 600;
}

.small-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
}

.back-home {
  display: inline-block;
  margin-bottom: 18px;
  color: #1b6ca8;
  font-weight: 600;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.empty-state {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  color: #6b7280;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.message {
  margin-top: 15px;
  font-weight: 600;
}

.property-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.property-detail-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.property-detail-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #e5e7eb;
}

.property-detail-content {
  padding: 24px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.map-box {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe3ec;
}

.map-box iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.stat-card {
  flex: 1;
  min-width: 200px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #6b7280;
}

.stat-card p {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }

  .navbar nav {
    width: 100%;
    justify-content: flex-start;
  }

  .featured,
  .section-wrap {
    padding: 35px 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .property-detail-image {
    height: 280px;
  }

  .user-chip {
    order: 99;
  }
}

.filter-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  max-width: 1120px;
  margin: 0 auto;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 48px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  font-size: 15px;
  color: #1f2937;
  outline: none;
  transition: 0.2s ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: #1b6ca8;
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.12);
}

.filter-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f4f7fb;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  color: #1f2937;
}

.toggle-pill input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-soft,
.btn-outline {
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #1b6ca8;
  color: white;
}

.btn-soft {
  background: #eef3f8;
  color: #1f2937;
}

.btn-outline {
  background: white;
  color: #1b6ca8;
  border: 1px solid #1b6ca8;
}

.btn-primary:hover,
.btn-soft:hover,
.btn-outline:hover {
  opacity: 0.95;
}

@media (max-width: 992px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions-row {
    align-items: stretch;
  }

  .filter-buttons {
    width: 100%;
  }

  .filter-buttons button {
    flex: 1;
  }
}

/* Browse filter panel refinement */
.filter-panel {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  max-width: 1120px;
  margin: 0 auto;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-width: 0;
  height: 46px;
}

.filter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.approved-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  padding-left: 2px;
}

.approved-inline input {
  width: 16px;
  height: 16px;
  min-width: auto;
  margin: 0;
  accent-color: #1b6ca8;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-buttons button {
  height: 46px;
}

/* Make Map Search same as primary button */
#mapSearchBtn {
  background: #1b6ca8;
  color: white;
  border: none;
}

#mapSearchBtn:hover {
  opacity: 0.92;
}

@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .filter-panel {
    padding: 18px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions-row {
    align-items: flex-start;
  }

  .filter-buttons {
    width: 100%;
  }

  .filter-buttons button {
    flex: 1 1 auto;
  }
}

/* Uniform browse action buttons */
.filter-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-buttons button,
.filter-buttons .secondary-btn,
.filter-buttons #mapSearchBtn {
  height: 46px;
  min-width: 128px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

/* Primary blue buttons */
.filter-buttons button[type="submit"],
.filter-buttons #mapSearchBtn {
  background: #1b6ca8;
  color: white;
}

/* Secondary button */
.filter-buttons .secondary-btn {
  background: #eef2f7;
  color: #1f2937;
}

/* Hover states */
.filter-buttons button[type="submit"]:hover,
.filter-buttons #mapSearchBtn:hover,
.filter-buttons .secondary-btn:hover {
  opacity: 0.92;
}

/* Keep clear button from shrinking oddly */
#clearFiltersBtn {
  min-width: 96px;
}

.filter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.approved-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  padding-left: 2px;
  min-height: 46px;
}

.approved-inline input {
  width: 16px;
  height: 16px;
  min-width: auto;
  margin: 0;
  accent-color: #1b6ca8;
}

/* ===== BUTTON UNIFORM FIX ===== */
.filter-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-buttons button,
.filter-buttons .secondary-btn {
  height: 46px;
  min-width: 120px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Primary (Apply Filters) */
.filter-buttons button[type="submit"] {
  background: #1b6ca8;
  color: white;
}

/* Clear button (FIXED VISIBILITY) */
.filter-buttons .secondary-btn {
  background: #dbe3ec;   /* stronger than before */
  color: #1f2937;
}

/* Hover */
.filter-buttons button:hover,
.filter-buttons .secondary-btn:hover {
  opacity: 0.92;
}

.filter-buttons button,
.filter-buttons .secondary-btn {
  transition: all 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons .secondary-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links a {
  color: white;
  font-weight: 600;
  opacity: 0.95;
}

.footer-disclaimer {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.9;
}

.legal-page {
  max-width: 1100px;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.legal-section p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-notice-card {
  background: #fff8e1;
  border: 1px solid #f1d48a;
  color: #6b4f00;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.compact-note {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.hero-warning {
  margin-top: 18px;
  background: rgba(255, 248, 225, 0.96);
  color: #6b4f00;
  border: 1px solid rgba(241, 212, 138, 0.95);
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-block;
  max-width: 760px;
}

.listing-alert-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff8e1;
  color: #8a6500;
  font-size: 12px;
  font-weight: 700;
}

/* --- SAFETY NOTICE (SUBTLE VERSION) --- */
.safety-notice {
  max-width: 900px;
  margin: 20px auto;
  padding: 10px 16px;
  background: #f5f7fa;
  color: #555;
  font-size: 13px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* optional: softer highlight */
.safety-notice strong {
  color: #1b6ca8;
  font-weight: 600;
}
#contactNotice {
  margin-top: 10px;
}

.whatsapp-btn[aria-disabled="true"] {
  opacity: 0.75;
  pointer-events: none;
}

.property-image-viewer {
  position: relative;
  background: #e5e7eb;
}

.property-safety-note {
  background: #f5f7fa;
  border: 1px solid #e3e8ef;
  color: #5f6b7a;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  line-height: 1.5;
  font-size: 13px;
}

.property-safety-note strong {
  color: #1b6ca8;
  font-weight: 600;
}

.gallery-section {
  margin-top: 18px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gallery-header h3 {
  margin: 0;
  font-size: 18px;
}

.gallery-hint {
  font-size: 13px;
  color: #6b7280;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.gallery-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.22s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.gallery-thumb.active-thumb {
  border-color: #1b6ca8;
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.12);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 61, 92, 0.78);
  color: white;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: 0.22s ease;
  z-index: 2;
}

.gallery-nav:hover {
  background: rgba(11, 61, 92, 0.92);
}

.gallery-nav-left {
  left: 16px;
}

.gallery-nav-right {
  right: 16px;
}

.photo-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(17, 24, 39, 0.72);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .gallery-thumb img {
    height: 78px;
  }

  .photo-counter {
    right: 12px;
    bottom: 12px;
  }
}