/* === Apartment Hero === */
.apt-hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.apt-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-bottom: 4rem;
}

.apt-hero-content .hero-script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.apt-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.apt-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--rose);
  border-radius: 50%;
}

/* === Detail Section === */
.apt-detail {
  padding: 5rem 3rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.apt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.apt-description h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.apt-description > p {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.apt-amenities h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.amenities-list li {
  font-size: 0.92rem;
  color: var(--dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.amenities-list li::before {
  content: '❧ ';
  color: var(--accent);
  font-weight: 400;
}

/* Gallery */
.apt-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.apt-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s;
  cursor: pointer;
}

.apt-gallery img:first-child {
  grid-column: 1 / -1;
  height: 280px;
}

.apt-gallery img:hover {
  transform: scale(1.02);
}

/* === CTA === */
.apt-cta {
  background: var(--dark);
  color: var(--white);
  padding: 4.5rem 3rem;
}

.apt-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.apt-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.apt-cta .script-heading {
  color: var(--rose);
}

.apt-cta-right {
  text-align: right;
}

.apt-cta-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.apt-cta .btn-hero {
  background: var(--white);
  color: var(--dark);
}

.btn-booking {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.2s, border-color 0.2s;
}

.btn-booking:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* === Testimonials === */
.apt-testimonials {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.testimonial-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '«';
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--rose);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-source {
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-top: 0.2rem;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}

/* === Potsdam Info / Distances === */
.potsdam-info {
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.potsdam-info-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.potsdam-distances {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.distance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.distance-place {
  font-weight: 500;
  font-size: 0.95rem;
  min-width: 200px;
}

.distance-line {
  flex: 1;
  height: 1px;
  background: #ddd;
}

.distance-value {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* === Other Apartments === */
.apt-others {
  padding: 6rem 3rem;
  background: var(--light);
}

.apt-others-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.other-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s, box-shadow 0.3s;
}

.other-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.other-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.other-card-body {
  padding: 1.8rem;
}

.other-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.other-card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.other-card-body .link-arrow {
  font-size: 0.9rem;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

.lightbox-close {
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.5rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* === Responsive === */
@media (max-width: 900px) {
  .apt-detail-grid { grid-template-columns: 1fr; }
  .apt-others-grid { grid-template-columns: 1fr; }
  .apt-cta-inner { flex-direction: column; text-align: center; }
  .apt-cta-right { text-align: center; }
  .apt-cta-buttons { justify-content: center; flex-wrap: wrap; }
  .apt-hero-content h1 { font-size: 2.5rem; }
  .apt-detail, .apt-others, .apt-testimonials { padding-left: 1.5rem; padding-right: 1.5rem; }
  .potsdam-info { padding-left: 1.5rem; padding-right: 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .amenities-list { grid-template-columns: 1fr; }
  .other-card { flex-direction: column; }
  .other-card img { width: 100%; height: 220px; }
  .apt-hero-content h1 { font-size: 2rem; }
  .apt-hero-meta { flex-wrap: wrap; justify-content: center; }
  .distance-place { min-width: auto; }
  .apt-cta-buttons { flex-direction: column; }
}
