/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg: #FAFAF8;
  --clr-surface: #FFFFFF;
  --clr-text: #1A1A2E;
  --clr-text-muted: #6B6B7B;
  --clr-accent: #2D5A4B;
  --clr-accent-light: #E8F0EC;
  --clr-accent-hover: #23463A;
  --clr-border: #E5E2DD;
  --clr-warm: #F5F2ED;
  --clr-dark-bg: #1A1A2E;
  --clr-dark-text: #EDEBE8;
  --clr-dark-muted: #9B99A8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.08);
  --shadow-lg: 0 12px 40px rgba(26,26,46,0.12);
}

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

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ====== TYPOGRAPHY ====== */
.text-accent { color: var(--clr-accent); }

.section {
  padding: 96px 0;
}
.section--light { background: var(--clr-warm); }
.section--dark {
  background: var(--clr-dark-bg);
  color: var(--clr-dark-text);
}
.section--dark .section__label { color: var(--clr-accent); }
.section--dark .section__subtitle { color: var(--clr-dark-muted); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none !important;
}
.btn--primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--clr-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--nav-h);
  transition: background 0.3s var(--ease);
}
.nav--scrolled {
  background: rgba(250,250,248,0.97);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: -0.01em;
}
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: all 0.2s var(--ease);
  text-decoration: none !important;
}
.nav__link:hover { color: var(--clr-text); background: var(--clr-border); }
.nav__link--cta {
  background: var(--clr-accent);
  color: #fff !important;
  margin-left: 4px;
}
.nav__link--cta:hover { background: var(--clr-accent-hover) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,46,0.75) 0%,
    rgba(26,26,46,0.45) 50%,
    rgba(26,26,46,0.2) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ====== OVERVIEW ====== */
.overview__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.overview__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
}
.overview__text p:last-of-type { margin-bottom: 0; }
.overview__price {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--clr-accent-light);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--clr-accent);
}
.overview__price strong { font-weight: 600; }

.overview__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ====== GALLERY STRIP ====== */
.gallery-strip {
  overflow: hidden;
}
.gallery-strip__inner {
  display: flex;
  gap: 0;
  width: 100%;
}
.gallery-strip__item {
  flex: 1;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  transition: flex 0.5s var(--ease);
}
.gallery-strip__item:hover { flex: 1.3; }

/* ====== AMENITIES ====== */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.amenity-card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--clr-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.amenity-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--clr-accent);
}
.amenity-card__icon svg { width: 100%; height: 100%; }
.amenity-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.amenity-card__text {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ====== BEDROOMS ====== */
.bedrooms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bedroom-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bedroom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.bedroom-card--featured {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 1px var(--clr-accent);
}
.bedroom-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.bedroom-card__body {
  padding: 20px;
  position: relative;
}
.bedroom-card__level {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
}
.bedroom-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.bedroom-card__bed {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}
.bedroom-card__note { color: var(--clr-text-muted); font-size: 0.8rem; }
.bedroom-card__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====== LOCATION ====== */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.location__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
}
.location__map-placeholder {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.location__caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-align: center;
}

/* ====== HOSPITALS ====== */
.hospital-section { margin-top: 56px; }
.hospital-section__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.hospital__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.hospital-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--clr-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  gap: 12px;
}
.hospital-item__name {
  font-size: 0.85rem;
  font-weight: 500;
}
.hospital-item__dist {
  font-size: 0.8rem;
  color: var(--clr-accent);
  font-weight: 500;
  white-space: nowrap;
}
.hospital__note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ====== CONTACT FORM ====== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form .btn--lg {
  width: 100%;
  margin-top: 8px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__group {
  margin-bottom: 20px;
}
.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--clr-dark-muted);
}
.form__input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--clr-dark-text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form__input::placeholder { color: rgba(255,255,255,0.3); }
.form__input:focus {
  outline: none;
  border-color: var(--clr-accent);
  background: rgba(255,255,255,0.1);
}
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='rgba(255,255,255,0.4)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__select option { color: #1A1A2E; background: #fff; }
.form__footnote {
  font-size: 0.8rem;
  color: var(--clr-dark-muted);
  text-align: center;
  margin-top: 12px;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--clr-dark-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-accent);
}
.footer__text {
  font-size: 0.85rem;
  color: var(--clr-dark-muted);
  max-width: 400px;
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__link {
  font-size: 0.85rem;
  color: var(--clr-dark-muted);
  transition: color 0.2s var(--ease);
  text-decoration: underline transparent;
}
.footer__link:hover { color: var(--clr-dark-text); }
.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 8px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .overview__grid { grid-template-columns: 1fr; gap: 32px; }
  .overview__stats { max-width: 400px; }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .bedrooms__grid { grid-template-columns: repeat(2, 1fr); }
  .hospital__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .gallery-strip__inner { flex-wrap: wrap; }
  .gallery-strip__item { flex: 0 0 50%; min-height: 220px; }
  .gallery-strip__item:hover { flex: 0 0 50%; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--clr-bg);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--clr-border);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.35s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav__links.nav__links--open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav__link { width: 100%; }
  .nav__toggle { display: flex; }

  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .location__grid { grid-template-columns: 1fr; }
  .hospital__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .amenities__grid { grid-template-columns: 1fr; }
  .bedrooms__grid { grid-template-columns: 1fr; }
  .gallery-strip__item { flex: 0 0 100%; min-height: 240px; }
  .overview__stats { grid-template-columns: 1fr 1fr; }
}

/* ====== ANIMATIONS ====== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
