/* ========= GLOBAL RESET ========= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f9fafc;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ========= HERO BANNER (Full Width) ========= */
.hero-banner {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ========= CONTAINER ========= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* ========= HEADER (removed, replaced by hero) ========= */
.header {
  display: none;
}

.page-title {
  display: none;
}

/* ========= OLD INTRO SECTION (removed) ========= */
.intro-section {
  display: none;
}

/* ========= SEARCH FILTERS ========= */
.search-container {
  background: #fff;
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.search-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-input,
.search-select {
  padding: 0.75rem;
  border: 1px solid #d4dbe3;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: 0.2s;
}

.search-input:focus,
.search-select:focus {
  border-color: #001f3f;
  box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.2);
}

.price-inputs {
  display: flex;
  gap: 0.5rem;
}

.segmented-control {
  display: flex;
  background: #f1f3f6;
  border-radius: 10px;
  overflow: hidden;
}

.segmented-control button {
  flex: 1;
  border: none;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  background: transparent;
  cursor: pointer;
  transition: 0.2s;
}

.segmented-control button.active {
  background: #001f3f;
  color: white;
}

.month-chips {
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

.month-chips button {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 999px;
}

.search-actions {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
}

.search-actions .apply-button {
  flex: 1 1 auto;
  width: auto;
}

@media (max-width: 768px) {
  .search-actions {
    flex-direction: row;
  }
}

.apply-button {
  background: linear-gradient(135deg, #001f3f, #093769);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apply-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.apply-button-ghost {
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #d4dbe3;
  box-shadow: none;
}

.apply-button-ghost:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* ========= MINI CART ========= */
#mini-cart-container {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

#mini-cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-card {
  display: flex;
  align-items: center;
  background: #f7f9fc;
  padding: 8px;
  border-radius: 10px;
  position: relative;
}

.mini-thumb {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 10px;
}

.mini-info {
  display: flex;
  flex-direction: column;
}

.mini-address {
  font-size: 0.85rem;
  font-weight: 600;
  color: #002046;
}

.mini-bedbath {
  font-size: 0.75rem;
  color: #666;
}

.remove-mini {
  position: absolute;
  right: 6px;
  top: 6px;
  background: #c0392b;
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ========= LISTINGS GRID ========= */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.listing-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.image-carousel {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.availability-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,31,63,0.9);
  color: white;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
  font-weight: bold;
}

.availability-tag.now {
  background: rgba(46, 125, 50, 0.95);
}

.card-content {
  padding: 1.25rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #001f3f;
}

.property-info {
  font-size: 0.95rem;
  color: #555;
}

.address {
  font-size: 0.9rem;
  color: #777;
}

.card-footer {
  margin-top: 1rem;
}

.card-footer .add-button {
  border: 1px solid #001f3f;
  background: transparent;
  color: #001f3f;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.card-footer .add-button.added {
  background: #1d8348;
  border: none;
  color: white;
}

/* ========= DETAIL MODAL ========= */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* ========= CTA Button ========= */
.cta-row {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.btn-cta-orange {
  --o1: #ff7a18;
  --o2: #ffb347;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  font: 600 16px/1.1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--o1), var(--o2));
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-cta-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 122, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-cta-orange:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(255, 122, 24, 0.35);
}

@media (max-width: 640px) {
  .btn-cta-orange {
    width: 100%;
    text-align: center;
  }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
}