/* Page: Ferienhaus (Holiday House Rental)
 * Base styles from /src/base/index.css.
 */

:root {
  --bg: #f5f5f5;
  --accent: #0066cc;
  --shadow: 0 4px 12px rgba(0, 0, 0, .08);
  --radius: 8px;
  --text: #333333;
  --text-light: #666666;
  --maxw: 1000px;
  --dur: 420ms;
}

/* --- Layout ----------------------------------------------------------- */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.nav-modern {
  width: 100%;
  margin: 0 0 16px;
}

/* --- Listing container ------------------------------------------------ */

.listing-container {
  width: min(100%, var(--maxw));
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .listing-container {
    flex-direction: row;
  }
}

/* --- Image slider ----------------------------------------------------- */

.gallery-section {
  flex: 1 1 50%;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid #ebebeb;
}

.slider {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  user-select: none;
  touch-action: pan-y;
}

.layer {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
}

.layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: #333;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: #fff;
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  padding: 0;
}

.dot[aria-current="true"] {
  background: rgba(255, 255, 255, 1);
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.thumb.active {
  opacity: 1;
  border: 2px solid var(--accent);
}

/* --- Info section ----------------------------------------------------- */

.info-section {
  flex: 1 1 50%;
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.listing-badge {
  display: inline-block;
  background: #e6f0ff;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}

.listing-title {
  margin: 0 0 10px 0;
  font-size: 2.4rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.listing-address {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-section {
  margin-bottom: 24px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.price-label {
  font-size: 14px;
  color: var(--text-light);
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 30px;
}

/* --- Contact card ----------------------------------------------------- */

.contact-card {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #ebebeb;
  margin-top: auto;
}

.contact-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-description {
  margin-top: 0;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.contact-info {
  font-size: 15px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
  }
}
