h1, h2, h3, h4, h5, h6, .logo { font-family: 'Montserrat', sans-serif; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #f4f6f9;
  color: #333;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 60px;
  background: #f0f8ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: padding 0.3s, box-shadow 0.3s;
}

header.header-scrolled {
  padding: 4px 60px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { 
  color: #3498DB;
  border-bottom: 2px solid #3498DB; 
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(37, 99, 235, 0.1);
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #3498DB;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  header {
    padding: 12px 16px;
    justify-content: space-between;
    width: 100%;
  }


  nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f0f8ff;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 99;
  }

  nav.nav-open a {
    margin: 8px 20px;
    padding: 12px 20px;
    text-align: center;
    border-bottom: none;
    border-radius: 8px;
    color: #555;
  }

  nav.nav-open a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #3498DB;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
  }

  .nav-backdrop.active {
    display: block;
  }
}

/* PROPERTY PAGE HEADER */
.prop-page-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 40px;
}

.prop-page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.prop-page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0D1B2A;
  margin: 4px 0 0;
}

.prop-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prop-filter-input {
  padding: 10px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  width: 200px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.prop-filter-input:focus { border-color: #4A90D9; }

.prop-filter-select {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  color: #333;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.prop-filter-select:focus { border-color: #4A90D9; }

.prop-filter-btn {
  padding: 10px 22px;
  background: #4A90D9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.prop-filter-btn:hover { background: #2C6FAC; }

@media (max-width: 768px) {
  .prop-page-header { padding: 20px; }
  .prop-page-header-inner { flex-direction: column; align-items: flex-start; }
  .prop-filters { width: 100%; }
  .prop-filter-input { width: 100%; }
  .prop-filter-select, .prop-filter-btn { flex: 1; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 30%, #3498DB 70%, #2980B9 100%);
  color: #fff;
  text-align: center;
  padding: 70px 20px 50px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 35px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  max-width: 620px;
  margin: 0 auto 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.search-bar input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
}

.search-bar button {
  padding: 18px 32px;
  background: #fff;
  color: #2980B9;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar button:hover {
  background: #3498DB;
  color: #fff;
}

/* FILTERS */
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters select {
  padding: 10px 18px;
  border-radius: 25px;
  border: none;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(4px);
}

.filters select option { color: #333; background: #fff; }

/* RESULTS INFO */
.results-info {
  max-width: 1200px;
  margin: 30px auto 10px;
  padding: 0 30px;
  font-size: 0.95rem;
  color: #666;
}

/* LISTINGS GRID */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 30px;
}

/* PROPERTY CARD */
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-badge {
  display: inline-block;
  background: #3498DB;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-body { padding: 18px; }

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card-location {
  color: #888;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3498DB;
  margin-bottom: 12px;
}

.card-features {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.card-features span { display: flex; align-items: center; gap: 4px; }

.btn-view {
  display: block;
  margin-top: 14px;
  text-align: center;
  padding: 10px;
  background: #3498DB;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-view:hover { background: #2980B9; }

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: #888;
}

/* FOOTER */
footer {
  background: #000000;
  color: #7F8C8D;
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

/* COMMUNITIES */
.communities {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 30px;
  text-align: center;
}

.communities h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #3498DB;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.community-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.community-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.community-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.community-body h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #3498DB;
}

.community-body p {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 6px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.features span {
  background: #f0f0f0;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #333;
}

.btn-view {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  padding: 10px;
  background: #3498DB;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-view:hover { background: #2980B9; }

/* FOOTER */
.lw-footer {
  background: #000000;
  color: #7F8C8D;
  border-top: 3px solid #3498DB;
}

.lw-footer-top {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr 1.2fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 24px;
}

.lw-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lw-footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.lw-footer-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.lw-footer-about {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #7F8C8D;
}

.lw-footer-socials {
  display: flex;
  gap: 8px;
}

.lw-footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #000000;
  color: #7F8C8D;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.lw-footer-socials a:hover {
  background: #3498DB;
  color: #fff;
}

.lw-footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000000;
}

.lw-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lw-footer-col ul li {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #7F8C8D;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lw-footer-col ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #3498DB;
}

.lw-footer-col ul li a {
  color: #7F8C8D;
  text-decoration: none;
  transition: color 0.2s;
}

.lw-footer-col ul li a:hover { color: #AEE1E1; }

.lw-footer-bottom {
  border-top: 1px solid #000000;
  padding: 18px 40px;
  text-align: center;
  font-size: 0.78rem;
  color: #334155;
}

@media (max-width: 900px) {
  .lw-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 24px 36px;
  }
}

@media (max-width: 560px) {
  .lw-footer-top { grid-template-columns: 1fr; }
  .lw-footer-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
}


/* PROPERTY MODAL */
.prop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.prop-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.prop-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}

.prop-modal-overlay.active .prop-modal {
  transform: translateY(0);
}

.prop-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.prop-modal-img {`n  width: 100%;`n  height: auto;`n  max-height: 380px;`n  object-fit: contain;`n  background: #000;`n  border-radius: 14px 14px 0 0;`n  display: block;`n  flex-shrink: 0;`n}

.prop-modal-slideshow { position: relative; }

.prop-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.prop-slide-btn:hover { background: rgba(0,0,0,0.7); }
.prop-slide-btn--prev { left: 12px; }
.prop-slide-btn--next { right: 12px; }

.prop-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.prop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.prop-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.prop-modal-body { padding: 24px; }

.prop-modal-location {
  font-size: 0.82rem;
  color: #7F8C8D;
  margin-bottom: 6px;
}

.prop-modal-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 12px;
}

.prop-modal-desc {
  font-size: 0.9rem;
  color: #7F8C8D;
  line-height: 1.7;
  margin-bottom: 16px;
}

.prop-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.prop-modal-tags span {
  background: #f0f8ff;
  color: #3498DB;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.prop-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  flex-wrap: wrap;
}

.prop-modal-footer .lw-btn-primary {
  background: #3498DB;
  color: #fff;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.prop-modal-footer .lw-btn-primary:hover { background: #2980B9; }

.lw-dev-price-label {
  font-size: 0.75rem;
  color: #7F8C8D;
  margin: 0 0 2px 0;
}

.lw-dev-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #3498DB;
  margin: 0;
}

.prop-plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.prop-plans-table th {
  background: #3498DB;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
}

.prop-plans-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #333;
}

.prop-plans-table tr:last-child td { border-bottom: none; }
.prop-plans-table tr:nth-child(even) td { background: #f8fafc; }

#propModalPlans { margin-top: 20px; margin-bottom: 20px; }

/* BOOKING MODAL */
.booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.booking-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.booking-overlay.active .booking-modal { transform: translateY(0); }

.booking-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-close:hover { background: #e2e8f0; }

.booking-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.booking-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0D1B2A;
}

.booking-sub {
  font-size: 0.85rem;
  color: #7F8C8D;
  margin-bottom: 20px;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.booking-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.booking-group input,
.booking-group select,
.booking-group textarea {
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.booking-group input:focus,
.booking-group select:focus,
.booking-group textarea:focus { border-color: #3498DB; }

.booking-group input[readonly] { background: #f8fafc; color: #555; cursor: default; }

.booking-group textarea { resize: none; }

.booking-error {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 3px;
  min-height: 16px;
}

.booking-submit {
  width: 100%;
  padding: 12px;
  background: #3498DB;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 4px;
}

.booking-submit:hover { background: #2980B9; }
.booking-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.booking-success {
  display: none;
  text-align: center;
  color: #27ae60;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .booking-row { grid-template-columns: 1fr; }
}

.prop-clear-btn {
  padding: 10px 16px;
  background: transparent;
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, color 0.2s;
}

.prop-clear-btn:hover {
  background: #e74c3c;
  color: #fff;
}

.prop-plans-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 8px;
}

/* SKELETON LOADER */
.lw-skeleton { pointer-events: none; cursor: default; }
.sk-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-body { padding: 22px; }
.sk-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-line--title { height: 20px; width: 70%; }
.sk-line--short { width: 40%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: #2C6FAC;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

