/* ===============================
   FEATURED APARTMENTS SECTION
   Controls the whole featured apartments area
================================ */
.featured-apartments {
  padding: clamp(5px, 8vw, 100px) clamp(16px, 5vw, 60px);
  background:   #D9A796;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: #111;
}

/* Section title and subtitle wrapper */
.section-header {
  text-align: center;
  margin-bottom: 45px;
}

/* Main section heading */
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-family: "Playfair Display", serif;
  color: #111;
}

/* Section subtitle */
.section-header p {
  margin-top: 10px;
  color: #555;
  font-size: 16px;
}

/* Apartment cards layout */
.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Single apartment card */
.apartment-card {
  background: #FAEBD7;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.322);
  width: 100%;
  max-width: 100%;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Card hover animation */
.apartment-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Card press/click effect */
.apartment-card:active {
  transform: scale(0.98);
}

/* Image container */
.apartment-img {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

/* Apartment image */
.apartment-img img {
  width: 100%;
  height: clamp(180px, 25vw, 260px);
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

/* Image zoom on card hover */
.apartment-card:hover .apartment-img img {
  transform: scale(1.08);
}

/* Soft overlay over image */
.apartment-img::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

/* Floating View Details button */
.view-details {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);

  color: #111;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  opacity: 1;
  transition: all 0.3s ease;
}

/* View Details hover */
.view-details:hover {
  background: white;
  transform: translateX(-50%) scale(1.08);
}

/* Apartment text area */
.apartment-info {
  padding: 22px;
  background: #FAEBD7;
  color: #111;
}

/* Apartment title */
.apartment-info h3 {
  font-size: 20px;
  color: #111;
  transition: color 0.3s ease;
}

/* Apartment short description */
.apartment-info p {
  margin: 8px 0 14px;
  color: #666;
}

/* Apartment price */
.apartment-info span {
  font-weight: 700;
  color: #111;
}

/* Title color on card hover */
.apartment-card:hover h3 {
  color: #000;
}

/* View all apartments button container */
.view-all-box {
  margin-top: 45px;
  text-align: center;
}

/* View all apartments button */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: #111;
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 40px;
  font-weight: 700;
  transition: 0.35s ease;
}

/* View all button hover */
.view-all-btn:hover {
  transform: translateY(-4px);
  background: #000;
}

/* Arrow icon animation setup */
.view-all-btn i {
  transition: 0.35s ease;
}

/* Arrow moves right on hover */
.view-all-btn:hover i {
  transform: translateX(6px);
}

/* Mobile layout */
@media (max-width: 600px) {
  .apartment-grid {
    grid-template-columns: 1fr;
  }

  .featured-apartments {
    padding: 50px 16px;
  }
}

/* CSS for favorite + image count */
.favorite-btn {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.45);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.3s ease;
}

.favorite-btn:hover {
  background: white;
  color: black;
  transform: scale(1.08);
}

.image-count {
  position: absolute;
  bottom: 26px;
  right: 26px;
  z-index: 3;

  background: rgba(0, 0, 0, 0.55);
  color: white;

  padding: 7px 12px;
  border-radius: 20px;

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 600;
}

/* CSS for the badge*/
.status {
  position: absolute;
  top: 18px;
  left: 18px;

  padding: 6px 12px;
  border-radius: 20px;

  font-size: 12px;
  font-weight: 700;

  background: white;
  color: black;

  z-index: 3;
}

.available {
  background:  #0f9d58;
  color: white;
}

.reserved {
  background: #ff9800;
  color: white;
}

.occupied {
  background: #d32f2f;
  color: white;
}

.status {
  transition: 0.3s ease;
}

.apartment-card:hover .status {
  transform: scale(1.05);
}

/* ===============================
   APARTMENTS PAGE HERO
   =============================== */
.apartments-hero {
  padding: 150px 20px 80px;
  background: #AD6745;
  text-align: center;
  color: white;
}

.apartments-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-family: "Playfair Display", serif;
}

.apartments-hero p {
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
}


/* ===============================
   LISTING SECTION WRAPPER
   =============================== */
.apartments-listing {
  padding: 30px 0 60px; /* remove side padding completely */
  background: #f7f2ee;
}


/* ===============================
   TOP AREA: TITLE + FILTERS
   =============================== */
.listing-top {
  width: 100%;
  padding: 0 60px; /* controls how close to edges */
  margin-bottom: 20px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.listing-top h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
}


/* Filter label + filter controls */
.listing-filter-box {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);

  padding: 14px 16px;
  border-radius: 28px;

  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: 0.5s ease;
}

.listing-filter-box:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 55px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.filter-label {
  display: block;
  margin-bottom: 12px;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AD6745;
}

.listing-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.listing-filters select {
  min-width: 145px;
  padding: 13px 18px;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  outline: none;

  background: rgba(255,255,255,0.9);
  color: #111;

  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.listing-filters select:hover {
  transform: translateY(-2px);
  border-color: rgba(173,103,69,0.45);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.listing-filters select:focus {
  border-color: #AD6745;
  box-shadow:
    0 0 0 4px rgba(173,103,69,0.16),
    0 12px 25px rgba(0,0,0,0.1);
}


/* ===============================
   LISTING GRID
   =============================== */
.listing-grid {
  width: 100%;
  padding: 0 60px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}


/* ===============================
   LISTING CARD
   =============================== */
.listing-card {
  background: white;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: 0.35s ease;
}

.listing-card:hover {
  transform: translateY(-8px);
}


/* ===============================
   IMAGE AREA
   =============================== */
.listing-img {
  position: relative;
  padding: 16px;
}

.listing-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}


/* Status badge, favorite button, and image count positioning */
.status,
.favorite-btn,
.image-count {
  position: absolute;
  z-index: 3;
}


/* Availability badge */
.status {
  top: 28px;
  left: 28px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.available {
  background: #e6f9f0;
  color: #0f9d58;
}

.reserved {
  background: #fff4e5;
  color: #ff9800;
}

.occupied {
  background: #fdecea;
  color: #d32f2f;
}


/* Favorite heart button */
.favorite-btn {
  top: 28px;
  right: 28px;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.45);
  color: white;
}


/* Image count badge */
.image-count {
  right: 28px;
  bottom: 28px;

  background: rgba(0,0,0,0.55);
  color: white;

  padding: 7px 12px;
  border-radius: 20px;
}


/* ===============================
   LISTING INFO
   =============================== */
.listing-info {
  padding: 0 18px 18px;
}

.listing-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.listing-info p {
  color: #666;
  margin-bottom: 8px;
  font-size: 13px;
}

.listing-info strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}


/* ===============================
   ACTION BUTTONS
   =============================== */
.listing-actions {
  margin-top: 18px;

  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Main text buttons only */
.details-btn,
.map-btn,.details-apply {
  background: #111;
  color: white;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 30px;
  font-weight: 700;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* Quick contact icons */
.quick-contact {
  display: flex;
  gap: 10px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: white;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-icon:hover {
  background: #111;
  color: white;
  transform: translateY(-3px);
}

/* Button animations */
.details-btn,
.map-btn,
.contact-icon,
.favorite-btn,.details-apply {
  transition: 0.35s ease;
}

.details-btn:hover,
.map-btn:hover,.details-apply:hover {
  transform: translateY(-3px);
  background: white;
  color: black;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.contact-icon:hover,
.favorite-btn:hover,.image-count {
  transform: translateY(-3px) scale(1.08);
  cursor: pointer;
}

/* Image hover zoom */
.listing-img {
  overflow: hidden;
}

.listing-img img {
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-img img {
  transform: scale(1.05);
}


@media (max-width: 1300px) {
  .listing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1000px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listing-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-filter-box{
    width: 100%;
  }

  .listing-filters{
    width: 100%;
    justify-content: flex-start;
  }

  .listing-filters select{
    width: 100%;
  }
}

@media (max-width: 520px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

.apartment-empty-image{
    width:100%;
    height:190px;
    border-radius:18px;
    background:#f4eadf;
    border:2px dashed #d9b99b;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;

    color:#6f6258;
    font-weight:800;
}

.apartment-empty-image i{
    font-size:30px;
    color:#111;
}

/* REMOVE MOBILE TAP HIGHLIGHT */

*{
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
textarea,
select{
    outline:none;
    -webkit-tap-highlight-color: transparent;
}

html{
    -webkit-touch-callout:none;
}