/* Luxury desert hotel — inspired layout, original implementation */

:root {
  --color-bg: #faf9f7;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-sand: #c4a882;
  --color-footer: #0a0a0a;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;
  --header-h: 72px;
  --property-h: 0px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: min(1200px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  border: 1px solid #000;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Property bar */
.property-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--property-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-bar__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
}

.property-bar__list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.property-bar__list a {
  display: block;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-bar__list a:hover,
.property-bar__list a.is-active {
  background: #f5f3ef;
}

/* Header */
.site-header {
  position: fixed;
  top: var(--property-h);
  left: 0;
  right: 0;
  z-index: 150;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header.is-over-hero .nav-main a,
.site-header.is-over-hero .logo__text,
.site-header.is-over-hero .menu-btn span {
  color: #fff;
}

.site-header.is-over-hero.is-scrolled .nav-main a,
.site-header.is-over-hero.is-scrolled .logo__text,
.site-header.is-over-hero.is-scrolled .menu-btn span {
  color: var(--color-text);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 48px);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.logo__text {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.45vw, 15px);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-main {
  display: none;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav-main a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-main a:hover,
.nav-main a.is-active {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions__more {
  display: none;
  font-size: 18px;
  letter-spacing: 2px;
  opacity: 0.6;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
  }
  .header-actions__more {
    display: block;
  }
  .menu-btn {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn--book {
  background: var(--color-text);
  color: #fff;
  padding: 12px 22px;
}

.btn--book:hover {
  background: #333;
}

.btn--outline {
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: #fff;
}

.btn--light {
  border-color: #fff;
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--color-text);
}

.link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.link-arrow:hover {
  opacity: 0.6;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-inline: 24px;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__subtitle {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-heading--center {
  text-align: center;
  margin-bottom: 48px;
}

.section-text {
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

/* Intro */
.intro__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .intro__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
  }
}

.intro__location {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Rooms carousel */
.villas {
  background: #fff;
  overflow: hidden;
}

.carousel {
  position: relative;
  margin-top: 8px;
}

.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 clamp(16px, 4vw, calc((100vw - var(--container)) / 2 + 16px)) 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.villa-card {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}

.villa-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
}

.villa-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.villa-card:hover .villa-card__image img {
  transform: scale(1.04);
}

.villa-card__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.villa-card__text {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.carousel__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-text);
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}

.carousel__btn:hover {
  background: var(--color-text);
  color: #fff;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Feature blocks */
.feature {
  display: grid;
  min-height: 70vh;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature--reverse .feature__media {
    order: 2;
  }
}

.feature__media {
  position: relative;
  min-height: 320px;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
}

.feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 80px);
  background: var(--color-bg);
}

/* Notice */
.notice {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  padding-bottom: 48px;
  letter-spacing: 0.02em;
}

/* Nearby */
.nearby {
  background: #fff;
}

.nearby__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 600px) {
  .nearby__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nearby-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.nearby-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.nearby-card:hover img {
  transform: scale(1.05);
}

.nearby-card__label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Book CTA */
.book-cta {
  background: var(--color-sand);
  color: #fff;
  text-align: center;
}

.book-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.book-cta .section-heading {
  color: #fff;
}
.section-text--light {
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  margin-bottom: 0;
}

.booking-widget {
  width: min(100%, 980px);
}

.booking-widget__status {
  width: min(100%, 1100px);
  margin: 0 auto 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.booking-widget__status.is-error {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.booking-widget--spaced {
  margin-top: 10px;
}

.booking-page {
  background: #0a0a0a;
  color: #fff;
}

.booking-page__main {
  min-height: 100vh;
  padding: 56px 0 80px;
}

.booking-page__header {
  text-align: center;
  margin-bottom: 36px;
}

.booking-page__header .section-text {
  color: rgba(255, 255, 255, 0.78);
}

.booking-page .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

.booking-page .btn--outline:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.booking-page__title {
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  color: #fff;
  margin-bottom: 8px;
}

.booking-page__section .booking-widget {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 40px;
  font-size: 13px;
}

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

.site-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-address {
  margin-top: 8px;
  line-height: 1.5;
}

.footer-newsletter__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
}

.footer-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-newsletter__form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 12px 0;
  font: inherit;
  outline: none;
}

.footer-newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
}

.social {
  display: flex;
  gap: 20px;
}

.social a {
  font-size: 10px;
  letter-spacing: 0.15em;
}

.privacy {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  padding: 80px 32px 32px;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  line-height: 1;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-menu .btn {
  margin-top: 24px;
  align-self: flex-start;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
