:root {
  --bg: #f3efe6;
  --paper: #fffcf7;
  --ink: #1b2822;
  --muted: #5d675f;
  --green: #1e4a38;
  --green-2: #2c6a50;
  --line: #e3d9cc;
  --sand: #e8d5bc;
  --wood: #8a6844;
  --header: 72px;
  --shadow: 0 20px 50px rgba(27, 40, 34, 0.08);
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3, .logo, .price span, .contact__phone, .stats strong {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(calc(-100% - 20px));
  background: var(--green);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  transform: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--sand);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(255, 252, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 10px 28px rgba(27, 40, 34, 0.08);
}

.logo {
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
}

.logo span {
  color: var(--green-2);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
}

.lang {
  position: relative;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #e7efe9;
  color: var(--green);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.lang__toggle svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.lang.is-open .lang__toggle svg {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 72px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.lang.is-open .lang__menu {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lang__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.lang__menu a[aria-current="page"] {
  color: var(--green);
  background: #e7efe9;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.header__phone svg,
.amenity-grid svg,
.lightbox button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e7efe9;
  color: var(--green);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars {
  margin: 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  align-items: stretch;
  height: calc(100vh - var(--header));
  min-height: 640px;
  background: var(--bg);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 48px 56px max(28px, calc((100vw - 1120px) / 2));
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 650;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero__address {
  margin-top: 14px;
  font-weight: 600;
}

.hero__actions,
.location__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__media {
  position: relative;
  margin: 20px 20px 20px 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 220px 220px 28px 28px;
  background: #d7e3dc;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1.5px solid transparent;
}

.btn--green {
  background: var(--green);
  color: var(--paper);
}

.btn--green:hover,
.btn--green:focus-visible {
  background: var(--green-2);
}

.btn--line {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn--line:hover,
.btn--line:focus-visible {
  background: #e7f0ea;
}

.btn--sand {
  background: var(--sand);
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(255, 252, 247, 0.55);
  color: var(--paper);
}

#haqqimizda,
#nomreler,
#qalereya,
#imkanlar,
#unvan,
#elaqe {
  scroll-margin-top: 12px;
}

.about,
.rooms,
.gallery,
.amenities,
.location {
  padding: 80px max(24px, calc((100% - 1120px) / 2));
}

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about h2,
.section-head h2,
.location h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.about__text p + p {
  margin-top: 14px;
}

.about__text p:not(.eyebrow) {
  color: var(--muted);
  max-width: 40rem;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.stats li {
  padding: 22px 24px;
  border-radius: 20px;
  background: #f7f3eb;
}

.stats strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green);
}

.stats span {
  color: var(--muted);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 32px;
}

.rooms {
  background: var(--paper);
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.room {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
}

.room__photos {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 8px;
  padding: 8px;
}

.room__main,
.room__thumbs button,
.gallery__item {
  border: 0;
  padding: 0;
  background: #d9d1c4;
  cursor: zoom-in;
  overflow: hidden;
}

.room__main {
  border-radius: 20px;
  min-height: 360px;
}

.room__main img,
.room__thumbs img,
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room__thumbs {
  display: grid;
  gap: 8px;
}

.room__thumbs button {
  border-radius: 20px;
  min-height: 0;
}

.room__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 8px 22px 26px;
}

.room__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.room__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room h3 {
  font-size: 1.8rem;
}

.room ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price span {
  font-size: 2.4rem;
  color: var(--green);
}

.price small,
.rooms__note {
  color: var(--muted);
}

.rooms__note {
  margin-top: 18px;
}

.gallery {
  background:
    radial-gradient(circle at top left, rgba(44, 106, 80, 0.08), transparent 32%),
    var(--bg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery__item {
  aspect-ratio: 3 / 4;
  min-width: 0;
  min-height: 0;
  border-radius: 20px;
}

.gallery__item:has(img[src*="gallery-sea"]) {
  position: relative;
}

.gallery__item img[src*="gallery-sea"] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 168%;
  object-position: center bottom;
}

.gallery__item:focus-visible,
.room__main:focus-visible,
.room__thumbs button:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.header__phone:focus-visible,
.nav-toggle:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 3px;
}

.amenity-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.amenity-grid li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 140px;
  padding: 22px;
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid var(--line);
}

.amenity-grid svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.amenity-grid span {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.location {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
  background: var(--paper);
}

.location__copy p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.map-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.map {
  width: 100%;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: #e7efe9;
  box-shadow: var(--shadow);
}

.map__switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
}

.map__switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.map__switch button[aria-selected="true"] {
  background: var(--green);
  color: var(--paper);
}

.map iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.map iframe[hidden] {
  display: none;
}

.contact {
  padding: 96px max(24px, calc((100% - 1120px) / 2)) 104px;
  background-color: var(--green);
  background-image:
    radial-gradient(ellipse at center, rgba(18, 42, 32, 0.78) 0%, rgba(18, 42, 32, 0.52) 72%),
    url("../images/gallery-garden.jpg");
  background-size: cover;
  background-position: center 68%;
  color: var(--paper);
  text-align: center;
}

.contact__phone {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-decoration: none;
}

.contact__actions {
  justify-content: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding: 28px 0 36px;
  color: var(--muted);
}

.footer a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(18, 24, 21, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  justify-self: center;
  max-width: min(920px, 100%);
}

.lightbox img {
  max-height: calc(100vh - 120px);
  width: auto;
  margin: 0 auto;
  border-radius: 16px;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #f3efe6;
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  border: 0;
  background: rgba(255, 252, 247, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.lightbox__prev,
.lightbox__next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.lightbox__prev svg,
.lightbox__next svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1100px) {
  .header {
    gap: 16px;
    padding: 0 16px;
  }

  .header__tools {
    margin-left: auto;
    gap: 6px;
  }

  .logo {
    white-space: nowrap;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 8px;
  }

  .nav a + a {
    border-top: 1px solid var(--line);
  }

  .header__phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .header__phone {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .hero,
  .about,
  .room-grid,
  .location {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero__media {
    order: -1;
    height: 62vh;
    margin: 0;
    border-radius: 0 0 28px 28px;
  }

  .hero__copy {
    justify-content: flex-start;
    padding: 32px 22px 48px;
  }

  .about,
  .rooms,
  .gallery,
  .amenities,
  .location {
    padding: 64px 22px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item,
  .gallery__item:first-child {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room__main {
    min-height: 280px;
  }

  .contact {
    padding: 72px 22px 80px;
    background-position: center 70%;
  }

  .footer {
    width: auto;
    margin: 0;
    padding: 28px 22px 36px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 72px 12px 24px;
  }

  .lightbox__prev,
  .lightbox__next {
    position: absolute;
    bottom: 18px;
  }

  .lightbox__prev { left: 18px; }
  .lightbox__next { right: 18px; }
}

@media (max-width: 640px) {
  .header {
    padding: 0 14px;
  }

  .room__photos {
    grid-template-columns: 1fr;
  }

  .room__thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .room__thumbs button {
    aspect-ratio: 1;
  }

  .room__foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header {
    transition: none;
  }

  .lang__toggle svg,
  .lang__menu {
    transition: none;
  }
}
