/* =========================
   APARTMENT PAGE
========================= */

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #fff9f0; /* very light cream */
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.apartment-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 0;
}

/* ================= GALLERY ================= */

.apartment-gallery {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
}

.gallery-track {
  display: flex;
  gap: 10px;
}

.gallery-track img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.gallery-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ================= DETAILS ================= */

.apartment-details h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
}

.apartment-details p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #444;
}

.amenities-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.amenities-list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #c9a227;
}

.btn-gold {
  display: inline-block;
  background: #c9a227;
  color: #000;
  padding: 14px 26px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-book:hover {
  opacity: 0.85;
}

/* =========================
   DATE PICKER
========================= */

.booking-dates {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.date-group {
  display: flex;
  flex-direction: column;
}

.date-group label {
  font-weight: 600;
  margin-bottom: 6px;
}

.date-group input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
}

/* =========================
   LUXURY BOOKING SECTION
========================= */

.booking-dates {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.date-group {
  display: flex;
  flex-direction: column;
}

.date-group label {
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.date-group input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 15px;
  transition: all 0.3s ease;
}

.date-group input:focus {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
  outline: none;
  background: #fff;
}

/* Booking summary */
.booking-summary {
  background: #fff9f0;
  border: 1px solid #f0e4c8;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* ================= GALLERY SLIDER ================= */

.apartment-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-track img {
  width: 100%;
  height: auto;          /* maintain original ratio */
  object-fit: contain;   /* show full image, no crop */
  flex-shrink: 0;
  border-radius: 12px;
}

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: 0.3s;
}

.gallery-arrow:hover {
  background: rgba(0,0,0,0.8);
}

.gallery-arrow.left {
  left: 15px;
}

.gallery-arrow.right {
  right: 15px;
}

/* Counter */
.gallery-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* Desktop layout */
@media (min-width: 768px) {
  .booking-dates {
    flex-direction: row;
    gap: 20px;
  }

  .date-group {
    flex: 1;
  }
}

/* Desktop layout */
@media (min-width: 768px) {
  .booking-dates {
    flex-direction: row;
    gap: 20px;
  }

  .date-group {
    flex: 1;
  }
}

/* ================= DESKTOP ================= */

@media(min-width:1024px){
  .apartment-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .apartment-gallery,
  .apartment-details {
    flex: 1;
  }

  .gallery-track img {
    width: 100%;
  }
}
/* DESKTOP: keep existing fixed height and cover */
@media(min-width: 768px) {
  .gallery-track img {
    height: 500px;      /* fixed height for desktop */
    object-fit: cover;  /* crop nicely for slider */
  }
}