/* ========================================
   APARTMENT PAGE STYLES
   ======================================== */

/* --- APARTMENT HERO --- */
.apt-hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.apt-hero__slider {
  position: absolute;
  inset: 0;
}

.apt-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.apt-hero__slide.active { opacity: 1; }

.apt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.apt-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: var(--w-container);
  margin: 0 auto;
  width: 100%;
  color: var(--c-white);
}

.apt-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  transition: color var(--t-fast);
}

.apt-hero__back:hover { color: var(--c-white); }

.apt-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.apt-hero__meta {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.9;
}

.apt-hero__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Slider controls */
.apt-hero__controls {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.apt-hero__btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--c-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.apt-hero__btn:hover {
  background: rgba(255,255,255,0.3);
}

.apt-hero__counter {
  position: absolute;
  bottom: 58px;
  right: 160px;
  z-index: 2;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* --- APARTMENT DETAILS --- */
.apt-details {
  padding: 80px 0;
}

.apt-details__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.apt-details__desc h2 {
  font-family: var(--f-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--c-dark);
  margin-bottom: 20px;
}

.apt-details__desc p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--c-text);
}

/* --- AMENITIES LIST --- */
.apt-amenities {
  background: var(--c-sand);
  padding: 40px;
  border-radius: 4px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.apt-amenities h3 {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 24px;
}

.apt-amenities__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.apt-amenities__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--c-text);
  padding: 8px 0;
}

.apt-amenities__list li::before {
  content: '✓';
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.apt-amenities__cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- PHOTO GALLERY GRID --- */
.apt-gallery {
  padding: 0 0 80px;
}

.apt-gallery__title {
  font-family: var(--f-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--c-dark);
  margin-bottom: 32px;
  padding: 0 24px;
  max-width: var(--w-container);
  margin-left: auto;
  margin-right: auto;
}

.apt-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.apt-gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

.apt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.apt-gallery__item:hover img {
  transform: scale(1.05);
}

.apt-gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* --- OTHER APARTMENTS --- */
.apt-others {
  background: var(--c-sand);
  padding: 80px 0;
}

.apt-others__title {
  font-family: var(--f-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--c-dark);
  margin-bottom: 32px;
}

.apt-others__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.apt-others__card {
  background: var(--c-white);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.apt-others__card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.apt-others__card-img {
  height: 160px;
  overflow: hidden;
}

.apt-others__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.apt-others__card:hover .apt-others__card-img img {
  transform: scale(1.05);
}

.apt-others__card-body {
  padding: 16px;
}

.apt-others__card-body h4 {
  font-family: var(--f-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 4px;
}

.apt-others__card-body span {
  font-size: 0.8rem;
  color: var(--c-text-light);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .apt-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .apt-others__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .apt-hero { height: 50vh; min-height: 350px; }
  .apt-hero__content { padding: 24px; }
  .apt-hero__controls { bottom: 24px; right: 24px; }
  .apt-hero__counter { bottom: 34px; right: 130px; }

  .apt-details__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .apt-amenities {
    position: static;
    padding: 24px;
  }

  .apt-amenities__list {
    grid-template-columns: 1fr;
  }

  .apt-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apt-gallery__item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .apt-others__grid {
    grid-template-columns: 1fr;
  }
}
