:root {
  --ink: #231f1a;
  --muted: #7b7a72;
  --paper: #fbf8f0;
  --panel: #ffffff;
  --moss: #80784c;
  --moss-dark: #514c31;
  --clay: #ce7c4a;
  --clay-soft: #f5dfd0;
  --linen: #f1eadf;
  --water: #d8eced;
  --border: #ded5c7;
  --danger: #a13f37;
  --success: #3f754b;
  --shadow: 0 18px 48px rgba(36, 48, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav,
.admin-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.admin-header a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a.active,
.site-nav a:hover,
.admin-header a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 1.2rem;
}

main {
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 78px) clamp(18px, 4vw, 56px) 34px;
}

.hero-copy h1,
.page-title h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 0.95;
  font-weight: 500;
}

.hero-copy p:not(.eyebrow),
.page-title p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-image {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.card-bottom,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--moss);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--moss);
  color: #fff;
}

.button.secondary,
.button.small {
  background: transparent;
  color: var(--moss-dark);
}

.button.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

.highlights,
.section,
.page-title,
.room-list,
.service-grid,
.booking-layout,
.contact-layout,
.text-page,
.admin-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.highlights article {
  padding: 26px;
  background: var(--panel);
}

.highlights span {
  color: var(--clay);
  font-weight: 900;
}

.highlights strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.highlights p,
.room-card p,
.service-card p,
.room-detail p,
.panel p,
.text-page p {
  color: var(--muted);
}

.section,
.page-title,
.room-list,
.service-grid,
.booking-layout,
.contact-layout,
.text-page {
  padding: clamp(42px, 7vw, 82px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-heading h2,
.room-detail h2,
.service-card h2,
.panel h1,
.panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 500;
}

.room-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.room-card,
.service-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(36, 48, 43, 0.08);
}

.room-card {
  overflow: hidden;
}

.room-card img,
.service-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.room-card > div,
.service-card {
  padding: 20px;
}

.room-card h3 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.card-bottom {
  justify-content: space-between;
  margin-top: 18px;
  font-weight: 800;
}

.card-bottom a {
  color: var(--clay);
  text-decoration: none;
}

.page-title {
  padding-bottom: 28px;
}

.page-title.compact {
  padding-bottom: 0;
}

.room-list {
  display: grid;
  gap: 28px;
}

.room-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.room-detail img {
  width: 100%;
  border-radius: 8px;
}

.feature-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--clay);
}

.price {
  font-weight: 900;
  color: var(--ink) !important;
}

.booking-layout,
.contact-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 24px;
}

.form {
  display: grid;
  gap: 16px;
}

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

.date-picker-field {
  display: grid;
  gap: 8px;
}

.date-trigger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
  border: 2px solid var(--clay);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.date-trigger span {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 15px 16px;
}

.date-trigger span + span {
  border-left: 1px solid var(--border);
}

.date-trigger strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.date-trigger em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.calendar-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.calendar-modal.open {
  display: flex;
}

.calendar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 48, 43, 0.44);
}

.calendar-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(36, 48, 43, 0.28);
}

.calendar-dialog-head,
.calendar-toolbar,
.calendar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-dialog-head {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.calendar-dialog-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.calendar-close,
.calendar-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.calendar-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.calendar-selected {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 22px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.calendar-selected div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.calendar-selected div + div {
  border-left: 1px solid var(--border);
}

.calendar-selected strong {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.calendar-selected span {
  color: var(--muted);
  font-weight: 800;
}

.calendar-toolbar {
  padding: 18px 22px 12px;
}

.calendar-loading {
  margin: 0 22px 12px;
  border-radius: 8px;
  background: var(--water);
  color: #2b5559;
  padding: 11px 12px;
  font-weight: 800;
}

.calendar-loading[hidden] {
  display: none;
}

.calendar-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 0 22px 18px;
}

.calendar-dow {
  color: #8a938f;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0;
}

.calendar-day:hover:not(:disabled) {
  outline: 2px solid var(--clay);
}

.calendar-day:disabled {
  color: #b9b1aa;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.blocked {
  background: #f4eee7;
}

.calendar-day.selected-edge {
  background: var(--clay);
  color: #fff;
  text-decoration: none;
}

.calendar-day.selected-range {
  border-radius: 8px;
  background: var(--clay-soft);
  color: var(--ink);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--border);
}

.calendar-legend i.selected {
  background: var(--clay);
  border-color: var(--clay);
}

.calendar-legend i.blocked {
  background: #f4eee7;
}

.calendar-summary {
  align-items: center;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-success,
.flash {
  border-radius: 8px;
  padding: 13px 16px;
  font-weight: 750;
}

.flash {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
}

.flash.success,
.form-success {
  background: #e3f1e5;
  color: var(--success);
}

.flash.error {
  background: #f8e3df;
  color: var(--danger);
}

.flash.info {
  background: var(--water);
  color: #2b5559;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.admin-body {
  background: #f4efe6;
}

.admin-main {
  padding: 32px 0 72px;
}

.admin-panel {
  max-width: 620px;
  margin: 32px auto;
}

.admin-grid {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
}

.admin-wide {
  grid-column: 1 / -1;
}

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

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

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--linen);
  font-weight: 900;
}

.status.pending {
  background: #fff0cf;
}

.status.confirmed {
  background: #dff1e4;
}

.status.declined,
.status.cancelled {
  background: #f1ded3;
}

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

.block-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.classic-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(680px, calc(100vh - 72px));
  place-items: end start;
  margin: 0;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 56px);
  background-position: center;
  background-size: cover;
}

.classic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 27, 22, 0.7), rgba(24, 27, 22, 0.34) 48%, rgba(24, 27, 22, 0.08)),
    linear-gradient(180deg, rgba(24, 27, 22, 0.06), rgba(24, 27, 22, 0.48));
}

.classic-hero-content {
  display: grid;
  gap: 16px;
  width: min(650px, 100%);
  color: #fff;
}

.classic-hero-content .eyebrow {
  color: #f2c2a0;
}

.classic-hero-content h1,
.split-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.08;
}

.classic-hero-content h1 {
  font-size: 4.7rem;
  line-height: 0.98;
}

.classic-hero-content p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.button.light {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.button.olive {
  min-width: 152px;
  border-color: var(--moss);
  background: var(--moss);
  color: #fff;
}

.split-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.split-heading h2 {
  max-width: 780px;
  color: var(--ink);
  text-align: left;
}

.services-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.6fr);
  gap: 38px;
  align-items: stretch;
}

.services-showcase.reverse {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.84fr);
}

.services-showcase.reverse .services-media {
  order: 2;
}

.services-media {
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.services-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-grid.refined {
  width: auto;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-tile {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.76);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--clay);
}

.service-tile h2,
.service-tile h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.room-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(35, 31, 26, 0.13);
}

.room-card img {
  aspect-ratio: 1.25 / 1;
}

.room-detail {
  box-shadow: 0 18px 42px rgba(35, 31, 26, 0.07);
}

.room-detail img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 71px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .room-detail,
  .booking-layout,
  .contact-layout,
  .admin-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .hero-image {
    min-height: 280px;
  }

  .highlights,
  .room-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .date-trigger,
  .calendar-selected,
  .calendar-summary {
    grid-template-columns: 1fr;
  }

  .date-trigger span + span,
  .calendar-selected div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .calendar-summary {
    display: grid;
  }

  .hero-copy h1,
  .page-title h1 {
    font-size: 3.1rem;
  }

  .section-heading h2,
  .room-detail h2,
  .service-card h2,
  .panel h1,
  .panel h2 {
    font-size: 2rem;
  }

  .classic-hero {
    min-height: 620px;
    place-items: end start;
  }

  .classic-hero-content h1 {
    font-size: 2.35rem;
  }

  .split-heading h2 {
    font-size: 2rem;
  }

  .classic-hero-content p:not(.eyebrow) {
    font-size: 1rem;
  }

  .split-heading,
  .services-showcase,
  .services-showcase.reverse {
    grid-template-columns: 1fr;
  }

  .split-heading {
    display: grid;
  }

  .services-showcase.reverse .services-media {
    order: 0;
  }

  .services-media {
    min-height: 320px;
  }

  .service-grid.refined {
    grid-template-columns: 1fr;
  }
}
