:root {
  --forest: #2d5a27;
  --forest-deep: #183d2e;
  --moss: #6f8b4d;
  --ochre: #c17817;
  --copper: #9a4f25;
  --cream: #f5f0e8;
  --paper: #fffaf2;
  --ink: #26312c;
  --muted: #6b746f;
  --night: #111f32;
  --line: rgba(38, 49, 44, 0.14);
  --shadow: 0 18px 50px rgba(17, 31, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
.hero[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header__inner,
.container,
.footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-deep);
  font-family: "PT Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
}

.logo__image {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 31, 50, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav a,
.text-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.nav a[aria-current="page"],
.text-link {
  color: var(--ochre);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--ochre);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(193, 120, 23, 0.25);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button--small {
  min-height: 40px;
  padding: 9px 14px;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.button--secondary {
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(45, 90, 39, 0.22);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.hero,
.page-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero__media,
.hero__media img,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img,
.page-hero img {
  object-fit: cover;
}

.hero__shade,
.page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 31, 50, 0.84), rgba(17, 31, 50, 0.42) 48%, rgba(17, 31, 50, 0.14));
}

.hero__content,
.page-hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 96px;
  color: #fff;
}

.hero h1,
.page-hero h1,
.thanks-screen h1 {
  margin: 0;
  max-width: 780px;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(46px, 8vw, 84px);
  line-height: 1.02;
}

.hero p,
.page-hero p {
  max-width: 650px;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ochre);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow,
.page-hero .eyebrow,
.thanks-screen .eyebrow {
  color: #ffe7a5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.booking-strip {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 0 16px;
}

.quick-booking,
.filter-bar,
.admin-grid-form {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
}

textarea {
  resize: vertical;
}

.section {
  padding: 84px 0;
}

.section--tint {
  background: #edf1e2;
}

.section--gallery {
  background: var(--night);
  color: #fff;
}

.section--map {
  background: var(--paper);
}

.section__heading {
  margin-bottom: 30px;
}

.section__heading h2,
.text-panel h2,
.detail-main h2,
.admin-section h2,
.admin-header h1 {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  color: var(--forest-deep);
}

.section--gallery .section__heading h2 {
  color: #fff;
}

.section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.feature-grid,
.cards,
.price-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards--three,
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.card,
.text-panel,
.form-card,
.booking-aside__box,
.admin-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 31, 50, 0.08);
}

.feature-card {
  padding: 24px;
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #eaf2df;
  color: var(--forest);
  font-size: 22px;
}

.feature-card h3,
.card h3 {
  margin: 18px 0 8px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1.16;
}

.feature-card p,
.card p,
.text-panel p {
  margin: 0;
  color: var(--muted);
}

.card {
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 22px;
}

.card__meta,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.card__footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #1d2e45;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.map-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: center;
}

.map-card {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-hero {
  min-height: 430px;
}

.page-hero__content {
  padding-bottom: 70px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.detail-layout,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-main > h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 34px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.detail-facts span {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.detail-facts b {
  display: block;
  color: var(--forest-deep);
  font-family: "PT Serif", Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border-radius: 6px;
  background: #edf1e2;
}

.booking-aside {
  position: sticky;
  top: 96px;
}

.booking-aside__box,
.text-panel {
  padding: 24px;
}

.booking-aside__box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest-deep);
  font-size: 28px;
  font-family: "PT Serif", Georgia, serif;
}

.availability {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.availability span {
  min-height: 66px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.availability b {
  display: block;
  font-size: 15px;
}

.availability .free {
  background: #edf6e9;
}

.availability .busy {
  background: #f7e5dc;
  color: #7d2e12;
}

.price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-sheet {
  max-width: 760px;
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--night);
}

.price-sheet img {
  width: 100%;
}

.form-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: auto;
}

.check span {
  margin: 0;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.text-panel--dark {
  background: var(--night);
  color: #fff;
}

.text-panel--dark h2,
.text-panel--dark p {
  color: #fff;
}

.notice,
.flash {
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 700;
}

.notice--warning {
  background: #fff3d9;
  color: #7d4b00;
}

.flash {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 40;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.flash--success {
  background: #e4f4dd;
  color: #1f5722;
}

.flash--error {
  background: #ffe3dc;
  color: #8a2a14;
}

.thanks-screen,
.admin-login {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 80px 16px;
  background: var(--night) url("/assets/img/booking-orion.png") center / cover;
  color: #fff;
  text-align: center;
}

.thanks-screen > div {
  width: min(760px, 100%);
}

.thanks-screen p {
  color: rgba(255, 255, 255, 0.86);
}

.narrow {
  width: min(820px, calc(100% - 32px));
}

.admin-page {
  background: #f0f3ec;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.admin-header,
.admin-stats,
.admin-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-stats,
.admin-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-stats span,
.admin-tabs a,
.tag {
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-decoration: none;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
}

.tag--warn {
  background: #fff3d9;
  color: #7d4b00;
}

.admin-section {
  margin-top: 20px;
  padding: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-kpis span {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.admin-kpis b {
  display: block;
  color: var(--forest-deep);
  font-family: "PT Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.admin-user-card {
  padding: 14px;
  border-radius: 8px;
  background: var(--night);
  color: #fff;
}

.admin-user-card strong,
.admin-user-card span {
  display: block;
}

.admin-user-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.admin-menu {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.admin-menu a {
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.admin-menu a[aria-current="page"] {
  background: var(--forest);
  color: #fff;
}

.admin-content {
  min-width: 0;
}

.admin-content .admin-section:first-child {
  margin-top: 0;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #edf1e2;
  color: var(--muted);
}

.admin-grid-form--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid-form--users {
  grid-template-columns: minmax(160px, 1.15fr) minmax(180px, 1.2fr) minmax(150px, 0.9fr) 120px auto;
  align-items: end;
}

.admin-wide {
  grid-column: span 2;
}

.admin-object-editor {
  background: #fffdf8;
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 31, 50, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.admin-password-form {
  margin-top: 8px;
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.admin-user-editor__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-editor__head strong,
.admin-user-editor__head span {
  display: block;
}

.icon-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 6px;
}

.icon-button--danger {
  background: #9f3421;
}

.admin-grid-form {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 16px;
  box-shadow: none;
}

.admin-list-form {
  display: grid;
  gap: 16px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

legend {
  padding: 0 8px;
  font-weight: 800;
}

.lightbox {
  width: min(1100px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(17, 31, 50, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: 46px 0 24px;
}

.footer a {
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.logo--footer {
  color: #fff;
}

.footer h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.footer__bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 980px) {
  .header__inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav,
  .header__actions {
    display: none;
    width: 100%;
  }

  .nav.is-open,
  .header__actions.is-open {
    display: flex;
  }

  .nav.is-open {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-booking,
  .filter-bar,
  .admin-grid-form,
  .admin-grid-form--users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .cards--three,
  .price-grid,
  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout,
  .form-layout,
  .map-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .booking-aside,
  .admin-sidebar {
    position: static;
  }

  .admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero,
  .page-hero {
    min-height: 560px;
  }

  .hero__content,
  .page-hero__content {
    padding-bottom: 58px;
  }

  .hero h1,
  .page-hero h1,
  .thanks-screen h1 {
    font-size: 42px;
  }

  .section {
    padding: 56px 0;
  }

  .quick-booking,
  .filter-bar,
  .admin-grid-form,
  .admin-grid-form--users,
  .feature-grid,
  .cards--three,
  .price-grid,
  .gallery-grid,
  .form-row,
  .footer__inner,
  .check-list,
  .detail-gallery,
  .detail-facts,
  .admin-dashboard-grid,
  .admin-kpis,
  .admin-menu {
    grid-template-columns: 1fr;
  }

  .admin-wide {
    grid-column: auto;
  }

  .section__heading--row,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
