:root {
  --content-width: 1360px;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #172124;
  --muted: #617074;
  --line: #d7dfdd;
  --teal: #c9152b;
  --teal-dark: #861827;
  --coral: #c9152b;
  --available-blue: #1f63d8;
  --available-blue-soft: #e8f1ff;
  --soft-blue: #fde7eb;
  --shadow: 0 18px 45px rgba(23, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font-family: Helvetica, Arial, sans-serif;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(215, 223, 221, 0.85);
  background: rgba(247, 248, 246, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.topnav a {
  color: inherit;
  text-decoration: none;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  flex: 0 0 42px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
  max-width: min(650px, 52vw);
}

.brand strong,
.brand small {
  display: block;
}

.brand-tagline {
  color: var(--ink);
  font-weight: 750;
}

.brand-subtitle {
  line-height: 1.25;
}

.brand small,
.eyebrow,
.note {
  color: var(--muted);
}

.note,
.result-box {
  font-weight: 750;
}

.note.status-info,
.note.status-pending,
.note.status-success,
.note.status-error {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fbfcfb;
}

.note.status-pending {
  border-left-color: var(--available-blue);
}

.note.status-success {
  color: var(--ink);
  border-left-color: var(--teal);
  background: #fff6f7;
}

.note.status-error {
  color: var(--teal-dark);
  border-color: rgba(201, 21, 43, 0.38);
  border-left-color: var(--coral);
  background: #fff6f7;
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
}

.topnav a:hover {
  background: var(--soft-blue);
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

main {
  padding: 24px 0 42px;
}

.gallery-panel,
.assistant-panel,
.booking-section,
.contact-section,
.footer-notes {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.assistant-panel,
.section-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assistant-panel,
.section-panel {
  padding: clamp(18px, 3vw, 28px);
}

.gallery-panel {
  margin: 0 auto 24px;
}

.assistant-panel,
.booking-section,
.contact-section {
  margin: 0 auto 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.lead {
  color: #334246;
  font-size: 1.08rem;
}

.language-picker,
.hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-picker button,
.hint-row button,
.chat-form button,
.date-form button,
.prebook-form button,
.contact-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.contact-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.contact-actions a:hover {
  border-color: var(--teal);
  background: var(--soft-blue);
}

.message-field {
  margin-top: 12px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 128px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea:focus {
  outline: 3px solid rgba(201, 21, 43, 0.18);
  border-color: var(--teal);
}

.language-picker button,
.hint-row button {
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
}

.language-picker button.active,
.hint-row button:hover {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.language-picker button {
  min-width: 44px;
  min-height: 36px;
  padding: 7px 10px;
}

.hint-row {
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
}

.hint-row span {
  font-weight: 700;
}

.hint-row button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--teal-dark);
}

.chat-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #e9eeee;
  cursor: default;
}

.messages:empty {
  min-height: 0;
  max-height: none;
  padding: 0;
  border-top: 0;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.message.assistant {
  border-color: #c5cfcc;
  background: #f1f4f3;
}

.message p,
.message ul,
.message ol {
  margin: 0 0 8px;
}

.message p:last-child,
.message ul:last-child,
.message ol:last-child {
  margin-bottom: 0;
}

.message ul,
.message ol {
  padding-left: 20px;
}

.message li + li {
  margin-top: 4px;
}

.message.user {
  align-self: flex-end;
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.message-documents {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.message-documents strong {
  font-size: 0.86rem;
}

.message-documents a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.message-documents a:hover {
  text-decoration: underline;
}

.message small {
  display: block;
  margin-top: 6px;
  color: inherit;
  opacity: 0.74;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  background: #fbfcfb;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(201, 21, 43, 0.18);
  border-color: var(--teal);
}

button:disabled {
  cursor: wait;
  opacity: 0.64;
}

label.field-error,
.agreement-row.field-error {
  color: var(--coral);
}

label.field-error input:not([type="hidden"]),
label.field-error select,
label.field-error textarea,
.birth-date-field.field-error .birth-date-control input,
.agreement-row.field-error input {
  border-color: var(--coral);
  background: #fff6f7;
  box-shadow: 0 0 0 3px rgba(201, 21, 43, 0.12);
}

.agreement-row.field-error {
  padding: 10px;
  border: 1px solid rgba(201, 21, 43, 0.42);
  border-radius: 8px;
  background: #fff6f7;
}

.chat-form button,
.date-form button,
.prebook-form button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-color: var(--coral);
  color: #fff;
  background: var(--coral);
  font-weight: 750;
}

.contact-form button {
  margin-top: 14px;
}

.assistant-email-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfb;
}

.assistant-email-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--coral);
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  cursor: pointer;
  font-weight: 750;
}

.section-heading {
  margin-bottom: 6px;
}

.gallery-view {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
}

.gallery-view figure {
  margin: 0;
}

.gallery-view img {
  width: 100%;
  height: clamp(340px, 62vh, 760px);
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--soft-blue);
  cursor: pointer;
}

.gallery-view figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-weight: 700;
}

.gallery-arrow {
  width: 42px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.gallery-arrow:hover {
  border-color: var(--teal);
  background: var(--soft-blue);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.thumbs button.active {
  border-color: var(--teal);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

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

.contact-grid .car-plate-field {
  grid-column: 1 / -1;
}

.guest-fields {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

.birth-date-field {
  min-width: 0;
}

.birth-date-control {
  display: grid;
  grid-template-columns: 48px 48px minmax(72px, 1fr);
  gap: 6px;
}

.birth-date-control input {
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.birth-date-control input[data-birth-part="year"] {
  text-align: left;
}

.prebook-form button.secondary-action {
  width: fit-content;
  min-height: 36px;
  padding: 7px 10px;
  border-color: var(--line);
  color: var(--teal-dark);
  background: #fff;
  font-size: 0.92rem;
}

.prebook-form button.secondary-action:hover {
  border-color: var(--teal);
  background: var(--soft-blue);
}

label {
  display: grid;
  gap: 6px;
  color: #314145;
  font-weight: 700;
}

.date-picker-field {
  position: relative;
  display: grid;
  gap: 6px;
  color: #314145;
  font-weight: 700;
}

.date-form button,
.prebook-form button {
  align-self: end;
}

.date-form .date-display {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  text-align: left;
}

.date-form .date-display.has-value {
  color: var(--available-blue);
  border-color: var(--available-blue);
  background: var(--available-blue-soft);
}

.calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(330px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 33, 36, 0.18);
}

.calendar-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.date-form .calendar-nav {
  min-height: 34px;
  align-self: stretch;
  padding: 0;
  border-color: var(--line);
  color: var(--teal-dark);
  background: #fff;
  font-size: 1.2rem;
}

.date-form .calendar-nav:disabled {
  cursor: not-allowed;
  color: #a8b3b1;
  background: #f2f4f3;
}

.calendar-title {
  text-align: center;
  font-weight: 800;
  text-transform: capitalize;
}

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

.calendar-weekday {
  min-height: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.date-form .calendar-day {
  width: 100%;
  min-height: 34px;
  align-self: stretch;
  padding: 0;
  border-color: #e3e9e7;
  color: #9aa6a4;
  background: #f5f7f6;
  font-size: 0.9rem;
  font-weight: 750;
}

.date-form .calendar-day.available {
  color: #fff;
  border-color: var(--available-blue);
  background: var(--available-blue);
}

.date-form .calendar-day.selected {
  box-shadow: inset 0 0 0 2px var(--teal-dark);
}

.date-form .calendar-day:disabled {
  cursor: not-allowed;
}

.calendar-empty,
.calendar-loading {
  padding: 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.result-box {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fbfcfb;
}

.result-box.error {
  border-left-color: var(--coral);
}

.result-box.success {
  border-left-color: var(--teal);
}

.prebook-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.agreement-text {
  margin: 0;
  color: var(--ink);
}

.agreement-text label {
  cursor: pointer;
}

.agreement-text a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-text a:hover {
  color: var(--teal);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-notes p {
  margin-bottom: 0;
}

.photo-note {
  font-style: italic;
}

.sale-note {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.sale-note:hover {
  color: var(--teal-dark);
}

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

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

  .topnav {
    justify-content: flex-start;
  }

  .brand-copy {
    max-width: none;
  }

  .gallery-view img {
    height: clamp(300px, 52vh, 560px);
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: stretch;
    gap: 7px;
    padding: 8px 10px;
  }

  .brand {
    align-items: center;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 0.9rem;
  }

  .brand-copy {
    gap: 0;
  }

  .brand strong {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .brand-tagline {
    display: none;
  }

  .brand .brand-tagline {
    display: none;
  }

  .header-controls {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .topnav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    min-height: 30px;
    padding: 5px 7px;
    white-space: nowrap;
    font-size: 0.84rem;
  }

  .language-picker {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .language-picker button {
    min-width: 34px;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 0.78rem;
  }

  main {
    padding: 12px 0 28px;
  }

  .gallery-panel,
  .assistant-panel,
  .booking-section,
  .contact-section,
  .footer-notes {
    width: min(var(--content-width), calc(100% - 20px));
  }

  .assistant-panel,
  .section-panel {
    padding: 14px;
  }

  .footer-notes {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  h1 {
    margin-bottom: 8px;
    font-size: 1.65rem;
  }

  h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
  }

  .chat-form,
  .date-form,
  .form-grid,
  .occupant-row {
    grid-template-columns: 1fr;
  }

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

  .gallery-view {
    position: relative;
    display: block;
  }

  .gallery-view img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 42px;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(23, 33, 36, 0.18);
    transform: translateY(-50%);
  }

  #prevPhoto {
    left: 8px;
  }

  #nextPhoto {
    right: 8px;
  }

  .gallery-view figcaption {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .calendar-popover {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .calendar-header {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

}
