@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-primary: #78824f;
  --color-primary-dark: #5a613b;
  --color-primary-light: #aeb495;
  --color-primary-bg: #f1f2ed;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-warm: #f9f9f7;
  --color-border: #e0e0e0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 380px;
  max-height: 600px;
  overflow: hidden;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

/* ========== LOGO ========== */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.logo {
  width: 120px;
  height: 120px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding: 8px;
}

/* ========== HEADER TEXT ========== */
.header-text {
  text-align: center;
  padding: 28px 20px 0;
  max-width: 720px;
  margin: 0 auto;
}

.header-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header-text .subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-primary);
  margin-top: 8px;
}

.header-text .desc {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== DATE PICKER (Airbnb-Style) ========== */
.booking-bar {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.booking-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  overflow: hidden;
}

.booking-field {
  flex: 1 1 200px;
  padding: 18px 24px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.booking-field:hover {
  background: var(--color-bg-warm);
}

.booking-field + .booking-field::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

.booking-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.booking-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-light);
  outline: none;
  cursor: pointer;
  padding: 0;
}

.booking-btn {
  flex: 0 0 auto;
  padding: 12px;
  display: flex;
  align-items: center;
}

.booking-btn button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.booking-btn button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Calendar popup mock */
.calendar-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 20px;
  width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.calendar-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.calendar-popup::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.8rem;
}

.cal-grid .day-label {
  color: var(--color-text-light);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 0;
}

.cal-grid .day {
  padding: 8px 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}

.cal-grid .day:hover {
  background: var(--color-primary-bg);
}

.cal-grid .day.selected {
  background: var(--color-primary);
  color: #fff;
}

.cal-grid .day.in-range {
  background: var(--color-primary-light);
  color: var(--color-text);
  border-radius: 0;
}

.cal-grid .day.disabled {
  color: #ccc;
  cursor: default;
}

/* ========== DETAILS SECTION ========== */
.details {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .booking-card {
    flex-direction: column;
  }
  .booking-field + .booking-field::before {
    display: none;
  }
  .booking-field {
    border-bottom: 1px solid var(--color-border);
  }
  .booking-btn {
    width: 100%;
    justify-content: center;
  }
}

.details h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid #f0f0f0;
}

.features-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.info-box {
  background: var(--color-primary-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.info-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.info-box p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========== PRICE TAG ========== */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}

.price-tag .amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.price-tag .period {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ========== APARTMENT SWITCHER ========== */
.switcher {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.switcher-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.switcher-img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.switcher-info {
  flex: 1;
}

.switcher-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.switcher-info p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.switcher-link {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.switcher-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 64px;
  background: var(--color-text);
  color: #fff;
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-primary-light);
}

.footer p, .footer a {
  font-size: 0.9rem;
  color: #bbb;
  text-decoration: none;
  line-height: 1.8;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* Smooth fade-in on load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-text, .booking-bar, .details, .switcher {
  animation: fadeIn 0.8s ease-out both;
}

.booking-bar { animation-delay: 0.15s; }
.details      { animation-delay: 0.3s; }
.switcher     { animation-delay: 0.45s; }
