﻿:root {
  color-scheme: light;
  --ink: #24211f;
  --muted: #716961;
  --line: #e6ded7;
  --paper: #fffaf6;
  --soft: #f4eee8;
  --brand: #d94662;
  --brand-dark: #b42e4a;
  --forest: #24433b;
  --gold: #ae7a32;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(39, 31, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body[data-settings-loading] .topbar,
body[data-settings-loading] main,
body[data-settings-loading] footer {
  visibility: hidden;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 246, 0.94);
  border-bottom: 1px solid rgba(230, 222, 215, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

nav a:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.language-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button.active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vw, 72px);
  background-image: url("https://images.unsplash.com/photo-1617103996702-96ff29b1c467auto=format&fit=crop&w=1800&q=84");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0), var(--paper));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 19, 16, 0.7), rgba(22, 19, 16, 0.22) 62%, rgba(22, 19, 16, 0.46));
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
  margin-bottom: 44px;
}

.hero-content {
  width: min(760px, 100%);
  color: var(--white);
}

.hero-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.94);
  box-shadow: var(--shadow);
}

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

.hero-card strong {
  font-size: 1.25rem;
}

#heroNightPrice {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
}

.hero-card span {
  margin: 8px 0 18px;
  color: var(--muted);
}

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

.hero .eyebrow {
  color: #ffd890;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.6rem, 13vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.34rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-actions,
.signature-box,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--brand);
  color: var(--white);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  background: var(--forest);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.64);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-intro {
  width: min(820px, 100%);
  margin-bottom: 30px;
}

.section-intro p,
.mini-text {
  color: var(--muted);
}

.section-intro.compact {
  margin-bottom: 22px;
}

.listing-section {
  padding-top: clamp(64px, 9vw, 116px);
}

.gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.gallery-main-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.gallery-main {
  width: 100%;
  height: clamp(260px, 40vw, 520px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  display: block;
  height: 92px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: var(--brand);
}

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

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 72px clamp(16px, 5vw, 72px);
  background: rgba(23, 21, 19, 0.92);
}

.gallery-modal img {
  max-width: min(1180px, 100%);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.gallery-close,
.gallery-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
}

.gallery-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
}

.gallery-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2.5rem;
  transform: translateY(-50%);
}

.gallery-nav.prev {
  left: 22px;
}

.gallery-nav.next {
  right: 22px;
}

.gallery-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 800;
  transform: translateX(-50%);
}

.floating-chat-button {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 60;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(71, 31, 22, 0.24);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.floating-chat-button:hover {
  background: var(--brand-dark);
}

.chat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 21, 19, 0.56);
}

.site-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 21, 19, 0.58);
  backdrop-filter: blur(6px);
}

.site-dialog-card {
  display: grid;
  width: min(520px, 100%);
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.site-dialog-card h3,
.site-dialog-card p {
  margin: 0;
}

.site-dialog-card h3 {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}

.site-dialog-card p {
  color: var(--muted);
  line-height: 1.55;
}

.site-dialog-input {
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.site-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.button.danger {
  background: #b4233f;
}

.contact-dialog {
  position: relative;
  display: grid;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  gap: 14px;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.prebooking-chat-messages {
  display: grid;
  max-height: 260px;
  gap: 10px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f0;
}

.prebooking-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4eee8;
}

.prebooking-message.user {
  justify-self: end;
  background: #fde8ed;
}

.prebooking-message strong,
.prebooking-message p,
.chat-message-body {
  margin: 0;
}

.prebooking-message p,
.chat-message-body {
  margin-top: 4px;
}

.chat-message-body a {
  color: var(--brand);
  font-weight: 850;
}

.prebooking-chat-form {
  display: grid;
  gap: 10px;
}

.contact-name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-name-fields label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.contact-name-fields input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 520px) {
  .contact-name-fields {
    grid-template-columns: 1fr;
  }
}

.contact-dialog h2,
.contact-dialog p {
  margin: 0;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.feature-grid article,
.info-strip article,
.summary-card,
.booking-form,
.panel,
.admin-form fieldset,
.owner-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(36, 28, 22, 0.07);
}

.feature-grid article {
  min-height: 0;
  padding: 16px 18px;
}

.feature-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.2;
}

.feature-grid strong,
.feature-grid span,
.info-strip strong,
.info-strip span {
  display: block;
}

.feature-icon {
  display: inline-grid !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-dark);
}

.feature-icon svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.feature-grid span,
.info-strip span {
  color: var(--muted);
}

.feature-grid strong,
.info-strip strong {
  line-height: 1.2;
}

.feature-grid article > span:not(.feature-icon),
.info-strip article > span:not(.feature-icon) {
  margin-top: 8px;
}

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

.info-strip article {
  padding: 18px;
  background: #fff7e9;
  border-color: #f0d4a4;
}

.booking-section,
.contract-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: var(--soft);
}

.calendar-panel {
  min-width: 0;
}

.calendar-actions {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}

.calendar-actions h3 {
  margin: 0;
  text-align: center;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  gap: 6px;
}

.calendar-day {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 76px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.day-number,
.day-price,
.day-tax {
  display: block;
  line-height: 1.05;
}

.day-price {
  color: var(--muted);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  font-weight: 850;
}

.day-tax {
  color: #897d73;
  font-size: clamp(0.54rem, 0.96vw, 0.68rem);
  font-weight: 750;
}

.calendar-day:hover:not(:disabled) {
  border-color: var(--brand);
}

.calendar-day.outside {
  color: #b7ada6;
  background: #f7f1eb;
}

.calendar-day.blocked,
.calendar-day:disabled {
  color: #a79d95;
  background: #eee5dc;
  cursor: not-allowed;
}

.calendar-day.selected-edge {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.calendar-day.selected-edge .day-price,
.calendar-day.selected-edge .day-tax {
  color: var(--white);
}

.calendar-day.selected-range {
  border-color: #f4c4cd;
  background: #fde8ed;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.dot.selected {
  border-color: var(--brand);
  background: var(--brand);
}

.dot.blocked {
  background: #eee5dc;
}

.summary-card,
.booking-form,
.panel {
  padding: clamp(18px, 3vw, 30px);
}

.summary-card {
  position: sticky;
  top: 92px;
}

.calendar-guest-controls {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.summary-card dl div,
.panel-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-card dt,
.summary-card dd {
  margin: 0;
}

.summary-card dd {
  font-weight: 850;
}

.summary-card .total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.assistant-section {
  background: #fbf7f0;
}

.assistant-shell {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.assistant-messages {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(36, 28, 22, 0.07);
}

.assistant-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4eee8;
}

.assistant-message.user {
  justify-self: end;
  background: #fde8ed;
}

.assistant-message strong,
.assistant-message p {
  margin: 0;
}

.assistant-message p {
  margin-top: 5px;
  color: var(--muted);
}

.assistant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.assistant-links a,
.assistant-links button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #f0c0ca;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.assistant-input-label {
  margin-bottom: 0;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assistant-suggestions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.assistant-suggestions button:hover {
  border-color: var(--brand);
}

.assistant-suggestions .contact-owner-button {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
  font-weight: 900;
}

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

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

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

textarea {
  resize: vertical;
}

.mail-editor-source {
  display: none;
}

.mail-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.mail-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f7f4ee;
}

.mail-editor-toolbar button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.mail-editor-toolbar button:hover,
.mail-editor-toolbar button:focus-visible {
  border-color: var(--brand);
  outline: 3px solid rgba(217, 70, 98, 0.14);
}

.mail-editor-toolbar .mail-test-button,
.mail-test-button {
  width: max-content;
  min-width: 0;
  padding-inline: 12px;
  background: var(--forest);
  color: var(--white);
}

.mail-editor-toolbar .mail-test-button:hover,
.mail-editor-toolbar .mail-test-button:focus-visible,
.mail-test-button:hover,
.mail-test-button:focus-visible {
  border-color: var(--forest);
  outline-color: rgba(36, 50, 56, 0.18);
}

.mail-editor-toolbar .underlined {
  text-decoration: underline;
}

.mail-font-size-control {
  display: inline-flex;
  width: auto;
  min-width: 96px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mail-font-size-control select {
  width: 56px;
  min-height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

.mail-editor-canvas {
  min-height: 150px;
  padding: 12px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
  outline: none;
}

.access-editor-canvas {
  min-height: 190px;
}

.contract-editor-canvas {
  min-height: 420px;
}

.mail-editor-canvas:focus {
  box-shadow: inset 0 0 0 3px rgba(217, 70, 98, 0.12);
}

.mail-editor-canvas p {
  margin: 0 0 10px;
}

.mail-editor-canvas ul,
.mail-editor-canvas ol {
  margin: 0 0 10px 20px;
  padding: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(217, 70, 98, 0.18);
  border-color: var(--brand);
}

.checkline {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 650;
}

.checkline input {
  min-height: auto;
  margin-top: 4px;
}

.contract-layout {
  background: #fbf7f0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eee5dc;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.badge.signed {
  background: #deefe7;
  color: #1f6a4a;
}

.document-preview {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.document-preview p {
  margin: 0 0 12px;
}

.signature-box label {
  flex: 1 1 260px;
  margin-bottom: 0;
}

.signature-pad {
  display: none;
}

.signature-consent-line {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.traveler-identities {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
}

.traveler-identities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.traveler-identities-header span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.traveler-identity-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

#travelerIdentities {
  scroll-margin-top: 24px;
}

.traveler-identity-card legend {
  padding: 0 8px;
  color: var(--forest);
  font-weight: 900;
}

.primary-address-field input {
  border-color: #d7c5b5;
  background: #fffaf3;
}

.nationality-search {
  position: relative;
}

.nationality-search input {
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    #fffdfb;
}

.nationality-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 270px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #d8c9bc;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(48, 38, 30, 0.14);
}

.nationality-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.nationality-results button:hover,
.nationality-results button:focus {
  outline: none;
  background: #fbf1e8;
}

.nationality-results small,
.nationality-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nationality-empty {
  display: block;
  padding: 10px;
}

.signature-pad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.signature-pad canvas {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  touch-action: none;
  cursor: crosshair;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.contract-signature {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contract-signature img {
  max-width: 320px;
  max-height: 120px;
}

.police-section {
  background: #eef4f2;
}

.police-form {
  max-width: 960px;
}

.traveler-section {
  background: #fffdfb;
}

.traveler-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.traveler-lookup,
.traveler-card,
.empty-state {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(36, 28, 22, 0.06);
}

.traveler-card {
  display: grid;
  gap: 18px;
}

.thank-you-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #9fcdb8;
  border-radius: 8px;
  background: #f1faf5;
  box-shadow: 0 12px 28px rgba(36, 28, 22, 0.06);
}

.thank-you-panel h2 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.empty-state {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

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

.progress-steps span {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f1eb;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.progress-steps span.done {
  border-color: #9fcdb8;
  background: #e7f4ee;
  color: #1f6a4a;
}

.progress-steps span.blocked {
  border-color: #f0c0ca;
  background: #fde8ed;
  color: var(--brand-dark);
}

.traveler-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.traveler-summary div,
.access-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f0;
}

.traveler-summary dt,
.traveler-summary dd {
  margin: 0;
}

.traveler-summary dd {
  color: var(--ink);
  font-weight: 900;
}

.traveler-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.access-box {
  display: grid;
  gap: 6px;
}

.access-box.ready {
  border-color: #9fcdb8;
  background: #e7f4ee;
}

.police-form-inline {
  display: grid;
  gap: 14px;
}

.police-document {
  color: var(--ink);
}

.police-sheet {
  margin: 16px 0;
  padding: 14px;
  border-top: 3px solid var(--accent);
  background: #fff;
}

.police-signature {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f2;
}

.police-signature p:last-child {
  overflow-wrap: anywhere;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-preview.compact {
  max-height: 360px;
  overflow: auto;
}

.invoice-document {
  color: var(--ink);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid #243238;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.invoice-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
}

.invoice-status {
  align-self: flex-start;
  background: #e7f4ee;
  color: #16613f;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.invoice-parties,
.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.invoice-parties section,
.invoice-meta-grid,
.invoice-notes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f2;
  padding: 14px;
}

.invoice-parties h4 {
  margin: 0 0 8px;
}

.invoice-lines {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.invoice-lines td,
.invoice-lines th {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.invoice-lines td:not(:first-child),
.invoice-lines th:not(:first-child) {
  text-align: right;
}

.invoice-totals {
  width: 42%;
  min-width: 320px;
  margin: -1px 0 18px auto;
}

.invoice-totals p {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) max-content;
  align-items: baseline;
  gap: 18px;
  margin: 6px 0;
}

.invoice-totals strong {
  text-align: right;
  white-space: nowrap;
}

.invoice-totals .grand-total {
  border-top: 2px solid #243238;
  padding-top: 10px;
  font-size: 1.08rem;
}

.invoice-notes {
  margin-top: 18px;
  font-size: .92rem;
}

@media (max-width: 640px) {
  .invoice-header,
  .invoice-parties,
  .invoice-meta-grid {
    display: block;
  }

  .invoice-parties section + section,
  .invoice-meta-grid p + p {
    margin-top: 12px;
  }
}

.owner-section {
  padding-top: 34px;
  background: #f7f4ee;
}

.admin-page nav a:not(:first-child):not([data-admin-nav]),
.admin-page main > section:not(.owner-section),
.admin-page .floating-chat-button,
.admin-page .contact-modal,
.admin-page .gallery-modal,
.admin-page footer {
  display: none !important;
}

.admin-page .owner-section {
  min-height: calc(100vh - 76px);
  padding-top: 48px;
}

.owner-details {
  max-width: 1120px;
  margin: 0 auto;
  overflow: visible;
}

.owner-details summary {
  cursor: pointer;
  padding: 22px 26px;
  color: var(--forest);
  font-weight: 900;
}

.owner-shell {
  padding: 0 26px 26px;
}

.owner-login-form {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.admin-login-anchor {
  position: relative;
  top: -92px;
}

.owner-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  font-weight: 850;
}

.admin-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.admin-guide button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: left;
}

.admin-guide button.active {
  border-color: rgba(219, 65, 99, 0.36);
  background: #fff2f4;
  color: var(--ink);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.admin-tabs button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

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

.admin-form fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
}

.admin-block {
  align-self: start;
  background: #fffdfb;
}

.admin-requests,
.admin-pricing,
.admin-blocked,
.admin-actions {
  grid-column: 1 / -1;
}

.admin-requests {
  order: 1;
}

.admin-pricing {
  order: 2;
}

.admin-blocked {
  order: 3;
}

.admin-content {
  order: 4;
}

.admin-media {
  order: 5;
}

.photo-upload-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-features {
  order: 6;
}

.admin-contract {
  order: 7;
}

.admin-nuki {
  order: 8;
}

.admin-assistant {
  order: 9;
}

.admin-form > .admin-actions,
.admin-form > .mini-text {
  grid-column: 1 / -1;
  order: 20;
}

.admin-form legend {
  padding: 0 8px;
  color: var(--forest);
  font-weight: 900;
}

.request-list {
  display: grid;
  gap: 12px;
}

.push-admin-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.external-booking-box {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
}

.external-booking-box summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--forest);
}

.external-booking-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-dashboard {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 8px;
}

.dashboard-metrics div,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.dashboard-metrics div {
  display: grid;
  gap: 2px;
  min-height: 74px;
  align-content: center;
  padding: 10px;
}

.dashboard-metrics span {
  color: var(--forest);
  font-size: 1.25rem;
  font-weight: 900;
}

.dashboard-metrics strong {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

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

.dashboard-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.dashboard-panel h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1rem;
}

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

.dashboard-list li {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dashboard-list strong {
  font-size: 0.9rem;
}

.dashboard-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-rate-calendar {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-calendar-grid .calendar-day {
  min-height: 78px;
  user-select: none;
  touch-action: none;
}

.admin-calendar-grid .calendar-day.custom-rate {
  border-color: var(--line);
  background: #fffaf4;
}

.admin-calendar-grid .calendar-day.blocked {
  border-color: var(--line);
  background: #f0ece7;
}

.admin-calendar-grid .calendar-day.selected-edge {
  border-color: var(--brand);
}

.admin-calendar-grid .calendar-day:disabled {
  opacity: 0.62;
}

.rate-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f0;
}

.admin-actions.compact {
  margin-top: 4px;
}

.request-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.request-item.is-paid {
  padding: 16px;
  background: #f8fbf7;
  border-color: #b8d8c2;
}

.request-content {
  display: grid;
  gap: 10px;
}

.request-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.request-heading strong,
.request-heading small {
  display: block;
}

.request-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.request-summary {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.35fr)
    minmax(70px, .55fr)
    minmax(170px, 1.25fr)
    minmax(95px, .7fr)
    minmax(115px, .8fr);
  gap: 10px 16px;
  margin: 0;
}

.request-summary div {
  min-width: 0;
}

.request-summary dt,
.request-summary dd {
  margin: 0;
}

.request-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.request-summary dd {
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.request-summary .summary-total dd {
  font-weight: 800;
  white-space: nowrap;
}

.request-summary .summary-nuki-hours {
  grid-column: span 2;
}

.request-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(104px, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.request-timeline li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 10px 10px 10px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.request-timeline li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 15px;
  bottom: 14px;
  width: 2px;
  background: var(--line);
}

.timeline-dot {
  position: absolute;
  top: 15px;
  left: 10px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.request-timeline strong {
  font-size: 0.86rem;
}

.request-timeline small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.request-timeline .done {
  border-color: #b8d8c2;
  background: #f8fbf7;
}

.request-timeline .done .timeline-dot {
  border-color: #2f7a4d;
  background: #2f7a4d;
}

.request-timeline .waiting {
  border-color: #e5c172;
  background: #fff9e9;
}

.request-timeline .waiting .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.request-timeline .blocked {
  border-color: #f0c0ca;
  background: #fff4f6;
}

.request-timeline .blocked .timeline-dot {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.payment-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.request-item .payment-error {
  color: var(--brand-dark);
  font-weight: 800;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.request-actions button,
.request-actions a,
.document-menu-panel button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.request-actions button:hover,
.request-actions a:hover,
.document-menu-panel button:hover {
  border-color: var(--brand);
}

.request-actions button[data-delete-request] {
  border-color: #f0c0ca;
  color: var(--brand-dark);
}

.document-menu {
  position: relative;
  display: inline-flex;
  z-index: 2;
}

.document-menu-trigger::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.78em;
}

.document-menu.is-open .document-menu-trigger {
  border-color: var(--brand);
  background: #fff4f6;
}

.document-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  width: max-content;
  min-width: 230px;
  max-width: min(78vw, 320px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(30, 20, 15, 0.16);
}

.document-menu.is-open .document-menu-panel {
  display: grid;
  gap: 6px;
}

.document-menu-panel button,
.document-menu-panel a {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  background: #fffdfb;
  color: var(--ink);
  text-align: left;
}

.request-actions > a.admin-chat-link,
.request-actions > button[data-action],
.request-actions > button[data-cancel-request],
.request-actions > button[data-nuki-create],
.request-actions > button[data-reminder],
.request-actions > button[data-delete-request],
.request-actions > button[data-refund] {
  display: none;
}

.traveler-actions .document-menu-panel button {
  font-size: 0.92rem;
}

.request-actions .document-menu-panel button {
  font-size: 0.84rem;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

.hidden {
  display: none !important;
}

footer {
  min-height: 82px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-link {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(620px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: 0 18px 46px rgba(36, 28, 22, 0.18);
}

.cookie-notice strong,
.cookie-notice p {
  margin: 0;
}

.cookie-notice p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-page {
  min-height: 100vh;
  background: #f7f4ee;
}

.chat-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px);
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
}

.chat-header h1,
.chat-header p {
  margin: 0;
}

.chat-header h1 {
  margin-top: 4px;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.button.ghost-dark {
  border-color: var(--line);
  color: var(--ink);
}

.chat-messages {
  display: flex;
  min-height: 420px;
  max-height: calc(100vh - 230px);
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.chat-message {
  max-width: min(76%, 620px);
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4eee8;
}

.chat-message.mine {
  align-self: flex-end;
  background: #fde8ed;
}

.chat-message.system {
  max-width: 100%;
  align-self: stretch;
  background: #eef4f2;
}

.chat-message strong,
.chat-message p {
  margin: 0;
}

.chat-message p {
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.5;
}

.chat-message time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 14px;
}

.chat-composer textarea {
  min-height: 58px;
  resize: vertical;
}

@media (max-width: 980px) {
  .hero,
  .booking-section,
  .contract-layout,
  .request-section,
  .traveler-layout,
  .admin-form,
  .assistant-form {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

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

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

  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
  }

  .language-switch {
    align-self: flex-end;
  }

  .hero {
    min-height: 760px;
  }

  .hero-card {
    margin-bottom: 28px;
  }

  .form-row,
  .feature-grid,
  .admin-guide,
  .traveler-summary,
  .progress-steps {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 66px;
    padding-inline: 2px;
  }

  .gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gallery-thumb {
    flex: 0 0 112px;
  }

  .day-tax {
    display: none;
  }

  .request-summary {
    grid-template-columns: 1fr;
  }

  .request-summary .summary-nuki-hours {
    grid-column: auto;
  }

  .dashboard-metrics,
  .dashboard-panels,
  .request-timeline {
    grid-template-columns: 1fr;
  }

  .assistant-message {
    max-width: 100%;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
  }

  .cookie-notice .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
