:root {
  --bg: #090806;
  --bg-soft: #12100c;
  --panel: #17140f;
  --panel-2: #211b13;
  --text: #fff8e8;
  --muted: #c9b99a;
  --gold: #cfa75b;
  --gold-light: #f0d28a;
  --gold-dark: #8f6b2f;
  --line: rgba(240, 210, 138, 0.26);
  --white: #fffefa;
  --danger: #c45f4c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
  --header-bg: rgba(9, 8, 6, 0.84);
  --footer-bg: #050403;
  --primary-button-text: #090806;
  --secondary-button-bg: rgba(255, 248, 232, 0.06);
  --secondary-button-hover: rgba(240, 210, 138, 0.14);
  --tabbar-bg: rgba(9, 8, 6, 0.94);
}

html[data-theme="light"] {
  --bg: #f7f1e6;
  --bg-soft: #efe4d4;
  --panel: #fffaf1;
  --panel-2: #ead9bf;
  --text: #18130d;
  --muted: #66533a;
  --gold: #a97827;
  --gold-light: #76531e;
  --gold-dark: #5d3f14;
  --line: rgba(92, 61, 20, 0.24);
  --white: #16110b;
  --danger: #994537;
  --shadow: 0 24px 70px rgba(92, 61, 20, 0.18);
  --header-bg: rgba(247, 241, 230, 0.9);
  --footer-bg: #efe4d4;
  --primary-button-text: #fffaf1;
  --secondary-button-bg: rgba(92, 61, 20, 0.06);
  --secondary-button-hover: rgba(169, 120, 39, 0.15);
  --tabbar-bg: rgba(247, 241, 230, 0.94);
}

html[data-theme="light"] body:not([data-page="admin"]) .site-header,
html[data-theme="light"] body:not([data-page="admin"]) .mobile-tabbar {
  background: var(--tabbar-bg);
  color: var(--text);
}

html[data-theme="light"] body:not([data-page="admin"]) .site-header {
  background: var(--header-bg);
}

html[data-theme="light"] body:not([data-page="admin"]) .section-dark,
html[data-theme="light"] body:not([data-page="admin"]) .rooms-detail-section {
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="light"] body:not([data-page="admin"]) .room-card,
html[data-theme="light"] body:not([data-page="admin"]) .room-detail,
html[data-theme="light"] body:not([data-page="admin"]) .tour-card,
html[data-theme="light"] body:not([data-page="admin"]) .tour-detail-card,
html[data-theme="light"] body:not([data-page="admin"]) .feature-band,
html[data-theme="light"] body:not([data-page="admin"]) .contact-section,
html[data-theme="light"] body:not([data-page="admin"]) .service-item,
html[data-theme="light"] body:not([data-page="admin"]) .rules-grid article,
html[data-theme="light"] body:not([data-page="admin"]) .gallery-item,
html[data-theme="light"] body:not([data-page="admin"]) .interior-item {
  background: var(--panel);
  color: var(--text);
}

html[data-theme="light"] body:not([data-page="admin"]) .room-card-media,
html[data-theme="light"] body:not([data-page="admin"]) .room-detail-media,
html[data-theme="light"] body:not([data-page="admin"]) .tour-card-cover,
html[data-theme="light"] body:not([data-page="admin"]) .tour-detail-media {
  background: var(--panel-2);
}

html[data-theme="light"] body:not([data-page="admin"]) .rooms-filter {
  background: rgba(247, 241, 230, 0.92);
}

html[data-theme="light"] body:not([data-page="admin"]) .rooms-filter a {
  background: var(--panel);
  color: var(--text);
}

html[data-theme="light"] body:not([data-page="admin"]) .hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.64) 0%, rgba(9, 8, 6, 0.28) 48%, rgba(9, 8, 6, 0.08) 100%),
    linear-gradient(0deg, rgba(9, 8, 6, 0.54), rgba(9, 8, 6, 0.08) 45%, rgba(9, 8, 6, 0.42));
}

html[data-theme="light"] body:not([data-page="admin"]) .hero,
html[data-theme="light"] body:not([data-page="admin"]) .hero h1 {
  color: #fff8e8;
}

html[data-theme="light"] body:not([data-page="admin"]) .hero .eyebrow {
  color: #f0d28a;
}

html[data-theme="light"] body:not([data-page="admin"]) .hero p:not(.eyebrow) {
  color: #fff2d8;
}

html[data-theme="light"] body:not([data-page="admin"]) .hero .btn-secondary {
  background: rgba(9, 8, 6, 0.34);
  border-color: rgba(240, 210, 138, 0.34);
  color: #fff8e8;
}

html[data-theme="light"] body:not([data-page="admin"]) .hero .btn-secondary:hover {
  background: rgba(240, 210, 138, 0.16);
  border-color: #f0d28a;
}

html[data-theme="light"] body:not([data-page="admin"]) .hero-strip {
  border-color: rgba(240, 210, 138, 0.22);
  background: rgba(9, 8, 6, 0.64);
}

html[data-theme="light"] body:not([data-page="admin"]) .hero-strip span {
  color: #d8c7a7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

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

[hidden] {
  display: none !important;
}

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--gold-light);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  padding: 7px max(20px, calc((100vw - 1180px) / 2));
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.brand strong,
.footer-brand strong {
  display: block;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.brand small,
.footer-brand span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a,
.phone-link,
.site-footer a,
.admin-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.phone-link:hover,
.site-footer a:hover,
.admin-nav a:hover {
  color: var(--gold-light);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--secondary-button-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--secondary-button-hover);
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-link {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-button-text);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-secondary {
  background: var(--secondary-button-bg);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--secondary-button-hover);
  border-color: var(--gold);
}

.btn-small {
  min-height: 36px;
  padding: 0 17px;
  font-size: 12px;
}

.btn-wide {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px max(20px, calc((100vw - 1180px) / 2)) 92px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.92) 0%, rgba(9, 8, 6, 0.58) 43%, rgba(9, 8, 6, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 8, 6, 0.78), rgba(9, 8, 6, 0.12) 45%, rgba(9, 8, 6, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.room-house {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.92;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  color: #f2e7d0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-strip {
  position: absolute;
  z-index: 2;
  left: max(20px, calc((100vw - 1180px) / 2));
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 8, 6, 0.76);
  backdrop-filter: blur(16px);
}

.hero-strip span {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
}

.hero-strip span + span {
  border-left: 1px solid var(--line);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 86px 0;
}

.section-dark {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: var(--bg-soft);
}

.section-head,
.intro-grid,
.feature-band,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: end;
}

.section-head {
  margin-bottom: 34px;
}

.section h2,
.page-hero h1,
.admin-top h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 0.98;
}

.tour-grid,
.interior-grid {
  display: grid;
  gap: 14px;
}

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

.tour-card {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tour-card h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  text-transform: uppercase;
}

.tour-card p {
  color: var(--muted);
}

.tour-card-footer {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tour-card-footer span {
  color: var(--gold-light);
  font-weight: 700;
}

.tour-promo-section .section-head {
  align-items: start;
}

.tour-promo-section .section-head p {
  max-width: 680px;
  color: var(--muted);
}

.tour-card-media {
  padding: 0;
  overflow: hidden;
}

.tour-card-cover {
  display: block;
  height: 210px;
  background: var(--panel-2);
}

.tour-card-cover img,
.tour-detail-media img,
.tour-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-card-content {
  display: grid;
  align-content: space-between;
  padding: 22px;
}

.tour-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  padding: 130px max(20px, calc((100vw - 1180px) / 2)) 70px;
  overflow: hidden;
  background: var(--bg);
  color: #fff8e8;
}

.tour-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.72), rgba(9, 8, 6, 0.38) 54%, rgba(9, 8, 6, 0.14)),
    linear-gradient(0deg, rgba(9, 8, 6, 0.68), rgba(9, 8, 6, 0.12) 48%, rgba(9, 8, 6, 0.28));
}

.tour-hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.88;
}

.tour-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.tour-hero h1 {
  max-width: 860px;
  margin-bottom: 20px;
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 500;
  line-height: 0.94;
  text-transform: uppercase;
}

.tour-hero p {
  max-width: 680px;
  color: #f2e7d0;
  font-size: 18px;
}

.tour-hero .eyebrow {
  color: #f0d28a;
}

.tour-hero .btn-secondary {
  background: rgba(9, 8, 6, 0.34);
  border-color: rgba(240, 210, 138, 0.34);
  color: #fff8e8;
}

.tour-hero .btn-secondary:hover {
  background: rgba(240, 210, 138, 0.16);
  border-color: #f0d28a;
}

.tour-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 44px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tour-hero-stats div {
  padding: 18px;
  background: rgba(9, 8, 6, 0.58);
  backdrop-filter: blur(6px);
}

.tour-hero-stats dt {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.tour-hero-stats dd {
  margin: 8px 0 0;
  color: #e6d8bc;
  font-size: 13px;
}

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

.tour-detail-list {
  display: grid;
  gap: 18px;
}

.tour-detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.tour-detail-media {
  position: relative;
  min-height: 460px;
  background: var(--panel-2);
}

.tour-detail-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 8, 6, 0.78);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tour-detail-body {
  padding: 28px;
}

.tour-detail-body h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 0.98;
  text-transform: uppercase;
}

.tour-detail-body p,
.tour-info-block li,
.tour-note {
  color: var(--muted);
}

.tour-meta {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 1px;
  margin: 22px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.tour-meta div {
  padding: 14px;
  background: rgba(255, 248, 232, 0.04);
}

.tour-meta dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tour-meta dd {
  margin: 5px 0 0;
  color: var(--gold-light);
  font-weight: 700;
}

.tour-info-block {
  margin-top: 20px;
}

.tour-info-block h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
}

.tour-info-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.tour-note {
  margin-top: 20px;
  padding: 14px;
  border-left: 2px solid var(--gold);
  background: rgba(207, 167, 91, 0.1);
}

.interior-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}

.interior-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
}

.interior-item-wide {
  grid-column: span 2;
  grid-row: span 2;
}

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

.interior-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 8, 6, 0.76);
  color: var(--text);
  font-size: 12px;
}

.intro-copy {
  color: var(--muted);
  font-size: 16px;
}

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

.facts div,
.service-item,
.rules-grid article,
.admin-section,
.settings-grid article,
.security-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.04);
}

.facts div {
  padding: 18px;
}

.facts dt {
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 700;
}

.facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.room-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.76fr) 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.room-card-media,
.room-detail-media {
  min-height: 100%;
  background: var(--panel-2);
}

.room-card-media img,
.room-detail-media > img,
.gallery-item img,
.admin-room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.room-card h3,
.room-detail h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
}

.room-card p,
.room-detail p,
.service-item p,
.rules-grid,
.contact-section p,
.settings-grid p,
.security-list p,
.admin-lock-panel p {
  color: var(--muted);
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.amenity-list li,
.rooms-filter a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.room-card-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.room-card-footer span {
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 700;
}

.feature-band {
  align-items: start;
}

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

.service-item,
.rules-grid article {
  padding: 24px;
}

.line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
}

.service-item h3,
.rules-grid h3,
.settings-grid h3,
.security-list h3 {
  color: var(--white);
  font-size: 20px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.rules-grid ul,
.detail-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.rules-grid li + li,
.detail-list li + li {
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
}

.gallery-item-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 8, 6, 0.76);
  color: var(--text);
  font-size: 12px;
}

.contact-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 34px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 860px) {
  body:not([data-page="admin"]) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--tabbar-bg);
    backdrop-filter: blur(18px);
  }

  .modal-open .mobile-tabbar {
    display: none;
  }

  .mobile-tabbar-item {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .mobile-tabbar-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tabbar-item.is-active,
  .mobile-tabbar-item:focus-visible,
  .mobile-tabbar-item:hover {
    color: var(--gold-light);
  }

  .mobile-tabbar-booking {
    color: var(--gold-light);
  }
}

.page-hero {
  width: var(--container);
  min-height: 58svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin: 0 auto;
  padding: 150px 0 70px;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.rooms-detail-section {
  padding-top: 10px;
}

.rooms-filter {
  position: sticky;
  z-index: 8;
  top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 8, 6, 0.9);
  backdrop-filter: blur(16px);
}

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

.room-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.room-detail-media {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
}

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

.room-thumbs img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.room-detail-body {
  padding: 34px;
}

.room-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.room-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.room-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.room-meta dd {
  margin: 4px 0 0;
  color: var(--gold-light);
  font-weight: 700;
}

.detail-actions {
  margin-top: 28px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(860px, calc(100svh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.modal-head {
  padding-right: 52px;
}

.modal-head h2 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  text-transform: uppercase;
}

.widget-container {
  min-height: 320px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(207, 167, 91, 0.16), transparent 38%),
    #0e0b07;
}

.widget-container.is-fast-booking {
  min-height: 0;
  background: var(--panel);
}

.booking-context {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(240, 210, 138, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(207, 167, 91, 0.18), transparent 46%),
    #120f0a;
}

html[data-theme="light"] .booking-context {
  background:
    linear-gradient(135deg, rgba(169, 120, 39, 0.12), transparent 46%),
    var(--panel);
}

.booking-context img {
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 210, 138, 0.28);
}

.booking-context h3 {
  margin: 2px 0 6px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.booking-context p {
  margin: 0;
  color: var(--muted);
}

.booking-context span {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(207, 167, 91, 0.34);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(207, 167, 91, 0.09);
  font-size: 12px;
  line-height: 1.35;
}

.bnovo-widget-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.bnovo-widget-actions strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
}

.bnovo-widget-actions span {
  display: block;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bnovo-widget-actions em {
  display: block;
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.bnovo-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.widget-container.has-fallback .bnovo-widget-actions {
  border-color: rgba(207, 167, 91, 0.55);
}

.widget-container.has-fallback {
  min-height: 0;
}

.widget-container.has-fallback .bnovo-widget-shell {
  display: none;
}

.bnovo-widget-shell {
  position: relative;
  min-height: 580px;
  padding-bottom: 30px;
  background: #ffffff;
}

.bnovo-widget-shell iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 580px;
}

.bnovo-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 10;
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
}

.bnovo-credit a {
  color: #808080;
  background: #ffffff;
}

.booking-form {
  display: grid;
  gap: 12px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: #18120a;
}

input,
select {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 16px;
}

textarea {
  min-height: 112px;
  border-radius: 18px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.consent input {
  width: 18px;
  min-height: 18px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-light);
  font-size: 13px;
}

.admin-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #050403;
}

.admin-brand img {
  width: 52px;
  height: 52px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-nav a {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}

.admin-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 248, 232, 0.04);
}

.admin-main {
  width: 100%;
  min-width: 0;
}

.admin-lock {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-lock-panel {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-lock-panel img {
  border-radius: var(--radius);
}

.admin-lock-panel h1,
.admin-top h1 {
  margin: 18px 0 10px;
}

.admin-content {
  padding: 34px 34px 124px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-bottom-nav {
  position: fixed;
  z-index: 170;
  right: 18px;
  bottom: 12px;
  left: 298px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 8, 6, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-bottom-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.admin-bottom-nav a:hover,
.admin-bottom-nav a:focus-visible {
  border-color: var(--gold);
  background: rgba(240, 210, 138, 0.14);
  color: var(--gold-light);
}

.admin-section {
  padding: 24px;
  margin-bottom: 22px;
}

.admin-subhead {
  margin-top: 30px;
}

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

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

.admin-table th,
.admin-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

.admin-table th {
  color: var(--gold-light);
}

.admin-room-grid,
.admin-tour-list,
.settings-grid,
.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-room-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.03);
  color: inherit;
  text-align: left;
}

.admin-room-card.is-active,
.admin-tour-card.is-active {
  border-color: var(--gold);
  background: rgba(207, 167, 91, 0.13);
}

.admin-room-card img {
  height: 88px;
  border-radius: var(--radius);
}

.admin-room-card p,
.admin-room-card h3 {
  margin-bottom: 4px;
}

.admin-room-card small,
.admin-tour-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-room-card strong,
.admin-tour-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.admin-room-card em,
.admin-tour-card em {
  display: block;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 700;
}

.settings-grid article,
.security-list article {
  padding: 18px;
}

.editor-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-note {
  max-width: 860px;
  color: var(--muted);
}

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

.editor-gallery-item {
  position: relative;
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.editor-gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.editor-gallery-item figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}

.editor-gallery-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 8, 6, 0.78);
  color: var(--text);
}

.admin-tour-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.03);
  color: inherit;
  text-align: left;
}

.admin-tour-card img {
  width: 96px;
  height: 78px;
  border-radius: var(--radius);
  object-fit: cover;
}

code {
  color: var(--gold-light);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 8px;
    padding: 12px 0;
  }

  .nav-open .header-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
  }

  .hero {
    min-height: 86svh;
  }

  .room-grid,
  .service-grid,
  .rules-grid,
  .gallery-grid,
  .tour-grid,
  .tour-service-grid,
  .interior-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-wide,
  .interior-item-wide {
    grid-row: span 1;
  }

  .section-head,
  .intro-grid,
  .feature-band,
  .contact-section,
  .page-hero,
  .room-detail,
  .tour-detail-card {
    grid-template-columns: 1fr;
  }

  .tour-detail-media {
    min-height: 340px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 16px;
    padding: 16px 20px;
    overflow: hidden;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-nav a {
    white-space: nowrap;
  }

  .admin-bottom-nav {
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 680px);
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 9px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 106px;
    padding-bottom: 136px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(9, 8, 6, 0.88), rgba(9, 8, 6, 0.42)),
      linear-gradient(90deg, rgba(9, 8, 6, 0.86), rgba(9, 8, 6, 0.28));
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    bottom: 14px;
  }

  .hero-strip span {
    padding: 12px 14px;
  }

  .hero-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 62px 0;
  }

  .section-dark {
    padding-inline: 14px;
  }

  .facts,
  .room-grid,
    .service-grid,
    .rules-grid,
    .gallery-grid,
    .tour-grid,
    .tour-service-grid,
    .tour-hero-stats,
    .tour-meta,
    .interior-grid,
    .room-meta,
    .form-row,
    .admin-room-grid,
    .admin-tour-list,
    .settings-grid,
    .security-list,
    .editor-gallery {
    grid-template-columns: 1fr;
  }

  .room-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .room-card-media {
    height: 320px;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .interior-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item-wide,
  .interior-item-wide {
    grid-column: span 1;
  }

  .site-footer,
  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    min-height: 0;
    padding: 118px 0 46px;
  }

  .tour-hero {
    min-height: 780px;
    padding: 112px 14px 54px;
  }

  .tour-hero h1 {
    font-size: clamp(35px, 12vw, 58px);
  }

  .tour-hero p {
    font-size: 16px;
  }

  .tour-detail-body {
    padding: 20px;
  }

  .room-detail-media {
    grid-template-rows: 360px auto;
  }

  .room-detail-body,
  .modal-panel,
  .admin-content {
    padding: 20px;
  }

  .admin-content {
    padding-bottom: 124px;
  }

  .booking-context {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .booking-context img {
    width: 104px;
    height: 86px;
  }

  .booking-context h3 {
    font-size: 23px;
  }
}

@media (max-width: 430px) {
  :root {
    --container: calc(100vw - 24px);
  }

  .site-header {
    min-height: 56px;
    padding: 7px 12px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    max-width: 190px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-open .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .phone-link,
  .theme-toggle,
  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 100svh;
    padding: 96px 12px 168px;
  }

  .hero h1 {
    font-size: clamp(31px, 10.8vw, 42px);
    line-height: 0.96;
  }

  .hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions,
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .admin-actions .btn {
    width: 100%;
  }

  .hero-strip {
    left: 12px;
    right: 12px;
  }

  .section h2,
  .page-hero h1,
  .tour-hero h1,
  .admin-top h1,
  .modal-head h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .room-card-media {
    height: 250px;
  }

  .room-card-body,
  .tour-card-content,
  .service-item,
  .rules-grid article,
  .tour-card,
  .admin-section,
  .admin-lock-panel {
    padding: 18px;
  }

  .room-card h3,
  .room-detail h2,
  .tour-detail-body h2 {
    font-size: 27px;
  }

  .tour-hero {
    min-height: 760px;
    padding: 96px 12px 44px;
  }

  .tour-hero-stats div {
    padding: 14px;
  }

  .tour-card-cover {
    height: 190px;
  }

  .tour-detail-media {
    min-height: 260px;
  }

  .tour-meta div {
    padding: 12px;
  }

  .btn {
    min-height: 46px;
    padding-inline: 16px;
    white-space: normal;
    text-align: center;
  }

  .rooms-filter {
    top: 64px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .rooms-filter a {
    white-space: nowrap;
  }

  .room-detail-media {
    grid-template-rows: 280px auto;
  }

  .room-thumbs {
    grid-template-columns: repeat(5, 1fr);
  }

  .room-thumbs img {
    height: 76px;
  }

  .modal {
    padding: 8px;
    place-items: stretch;
  }

  .modal-panel {
    max-height: calc(100svh - 16px);
  }

  .booking-context {
    grid-template-columns: 1fr;
  }

  .booking-context img {
    width: 100%;
    height: 170px;
  }

  .booking-context span {
    width: 100%;
    border-radius: var(--radius);
  }

  .bnovo-widget-shell {
    min-height: 540px;
  }

  .bnovo-widget-shell iframe {
    min-height: 540px;
  }

  .bnovo-widget-actions {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .bnovo-action-buttons {
    justify-content: stretch;
  }

  .bnovo-action-buttons .btn {
    width: 100%;
  }

  .admin-sidebar {
    padding: 12px;
  }

  .admin-content {
    padding: 14px;
    padding-bottom: 120px;
  }

  .admin-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    border-radius: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .admin-bottom-nav a {
    min-height: 46px;
    padding: 0 4px;
    font-size: 9px;
  }

  .admin-table {
    min-width: 680px;
  }

  .admin-room-card {
    grid-template-columns: 82px 1fr;
  }

  .admin-tour-card {
    grid-template-columns: 82px 1fr;
  }

  .admin-room-card img,
  .admin-tour-card img {
    width: 82px;
    height: 74px;
  }
}
