:root {
  --nav-height: 80px;
  --navbar-height: 80px;
  --font-label: "Montserrat", sans-serif;
  --text-primary: #332e2c;
  --text-secondary: #7d706c;
  --text-on-dark-primary: #f7f5f4;
  --text-on-dark-secondary: #cbc4c1;
  --text-on-dark-hint: #7d706c;
  --background: #f7f5f4;
  --bg: #f7f5f4;
  --surface: #ffffff;
  --surface-inverse: #332e2c;
  --border: #e8e4e2;
  --border-on-dark: rgba(255, 255, 255, 0.1);
  --brand: #6f423f;
  --brand-hover: #542e2b;
  --warning-bg: #fffcf0;
  --warning-text: #8c5b00;
  --success-bg: #eef8f1;
  --success-text: #237142;
  --progress-bg: #eef5fb;
  --progress-text: #255f86;
  --danger-bg: #fff1ef;
  --danger-text: #9a3b31;
  --radius-s: 10px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 48px;
  --space-xl: 96px;
  --sp-xxs: var(--space-xxs);
  --sp-xs: var(--space-xs);
  --sp-s: var(--space-s);
  --sp-m: var(--space-m);
  --sp-l: var(--space-l);
  --sp-xl: var(--space-xl);
  --content-width: 732px;
  --wide-width: 1280px;
  --shadow-soft: 0 1px 8px rgba(50, 46, 44, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--surface);
}

.site-nav {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  width: min(100%, var(--wide-width));
  height: var(--nav-height);
  align-items: center;
  margin: 0 auto;
  padding: var(--space-s);
}

.site-logo {
  display: block;
  width: 40px;
  height: 40px;
}

.site-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.site-links {
  display: flex;
  justify-content: center;
  gap: var(--space-l);
}

.site-links a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.site-links a:hover {
  color: var(--brand);
}

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--navbar-height);
  background: transparent;
  overflow: visible;
  transition: transform 0.3s ease;
}

.navbar-wrapper.navbar--hidden {
  transform: translateY(calc(-1 * var(--navbar-height)));
}

.navbar-wrapper::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--navbar-height);
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  z-index: -1;
}

.navbar-wrapper.navbar--scrolled::before {
  background: #ffffff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  width: min(100%, var(--wide-width));
  height: var(--navbar-height);
  align-items: center;
  gap: var(--space-s);
  margin: 0 auto;
  padding: var(--space-s);
}

.navbar__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.navbar__logo a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  text-decoration: none;
}

.navbar__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.navbar__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

.navbar__toggle-icon--close {
  display: none;
}

.navbar--open .navbar__toggle-icon--menu {
  display: none;
}

.navbar--open .navbar__toggle-icon--close {
  display: block;
}

.navbar__links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.navbar__links a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.navbar__links a:hover {
  opacity: 0.75;
}

.navbar__lang-wrap {
  position: relative;
  user-select: none;
}

.navbar__lang {
  display: flex;
  height: 48px;
  align-items: center;
  gap: var(--space-s);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: var(--space-xs) var(--space-s);
}

.navbar__lang img {
  width: 24px;
  height: 24px;
}

.lang-chevron {
  transition: transform 0.2s ease;
}

.navbar__lang-wrap.open .lang-chevron {
  transform: rotate(180deg);
}

.navbar__lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 300;
  display: flex;
  min-width: 148px;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.navbar__lang-wrap.open .navbar__lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--space-xs);
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px var(--space-s);
  text-align: left;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--background);
}

.lang-option.active {
  color: var(--brand);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-primary);
}

.language-button {
  gap: var(--space-xs);
  min-width: 56px;
  height: 44px;
  justify-self: end;
  font-size: 14px;
  line-height: 20px;
}

.language-button span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.app-shell {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 52px 0 var(--space-m);
}

.page-section + .page-section {
  margin-top: var(--space-l);
}

.heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
}

h1,
h2,
h3,
.footer-brand-name {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--text-primary);
  font-size: 24px;
  line-height: 32px;
}

h3 {
  font-size: 16px;
  line-height: 24px;
}

.page-section > p,
.heading-row p {
  margin-top: var(--space-xs);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.next-cleaning-card,
.month-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  box-shadow: none;
}

.next-cleaning-card {
  margin-top: var(--space-s);
  overflow: hidden;
}

.next-card__section {
  padding: var(--space-s);
}

.next-card__section + .next-card__section {
  border-top: 1px solid var(--border);
}

.next-card__section--checkin {
  background: transparent;
}

.next-card__section-header {
  margin-bottom: var(--space-s);
}

.next-card__section-header strong {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.next-card__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
}

.date-tile {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  background: var(--background);
  padding: var(--space-s);
  text-align: center;
}

.date-tile span,
.month-title-cell {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.footer-label,
.footer-info span {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: uppercase;
}

.date-tile strong {
  margin-top: var(--space-xs);
  font-family: var(--font-label);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.date-tile small {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.next-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-s);
}

.meta-line,
.footer-booking-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-xs);
}

.meta-line img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.meta-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 24px;
}

.month-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-top: var(--space-s);
}

.month-section {
  overflow: hidden;
}

.month-header,
.month-titles,
.cleaning-row {
  min-width: 0;
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: var(--space-s);
}

.month-header span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.month-titles,
.cleaning-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 88px 88px 88px;
  align-items: center;
}

.month-titles {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.month-title-cell {
  padding: var(--space-xs) var(--space-s);
  white-space: nowrap;
}

.cleaning-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.cleaning-row:last-child {
  border-bottom: 0;
}

.cleaning-row:hover,
.cleaning-row.is-active {
  background: #fbfaf9;
}

.cleaning-row.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.row-cell {
  min-width: 0;
  padding: var(--space-s);
}

.row-cell strong,
.row-cell span {
  display: block;
  overflow-wrap: anywhere;
}

.row-cell .row-cell__label {
  display: none;
}

.row-cell strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.row-cell span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.row-cell--icon {
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}

.row-cell--icon img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.row-cell--icon strong {
  flex: 1 1 auto;
}

.detail-empty {
  display: grid;
  min-height: 160px;
  gap: var(--space-xs);
  place-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.detail-empty strong,
.empty-state strong {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
}

.detail-empty span,
.empty-state span {
  max-width: 560px;
  overflow-wrap: anywhere;
}

.detail-empty--error,
.empty-state--error {
  color: var(--danger-text);
}

.empty-state {
  display: grid;
  min-height: 220px;
  gap: var(--space-xs);
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-secondary);
  padding: var(--space-m);
  text-align: center;
}

.footer {
  display: flex;
  gap: var(--space-l);
  margin-top: var(--space-l);
  background: var(--surface-inverse);
  padding: var(--space-xl) max(var(--space-s), calc((100vw - var(--wide-width)) / 2 + var(--space-s)));
}

.footer-col {
  flex: 1;
  min-width: 0;
}

.footer-brand-name {
  color: var(--text-on-dark-primary);
  font-size: 24px;
  line-height: 32px;
}

.footer-brand-desc {
  margin-top: 4px;
  margin-bottom: var(--space-s);
  color: var(--text-on-dark-secondary);
  font-size: 16px;
  line-height: 24px;
}

.footer-info-label,
.footer-legal-title,
.footer-booking-title {
  color: var(--text-on-dark-hint);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 20px;
  text-transform: uppercase;
}

.footer-legal-title,
.footer-booking-title {
  margin-bottom: var(--space-s);
}

.footer-info-value {
  margin-bottom: var(--space-s);
  color: var(--text-on-dark-secondary);
  font-size: 16px;
  line-height: 24px;
}

.footer-info-value a {
  color: inherit;
  text-decoration: none;
}

.footer-info-value a:hover {
  text-decoration: underline;
}

.booking-link {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-s);
  color: var(--text-on-dark-secondary);
  font-size: 16px;
  margin-bottom: var(--space-xs);
  padding: var(--space-s);
  text-decoration: none;
  transition: background 0.2s;
}

.booking-link:last-child {
  margin-bottom: 0;
}

.booking-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.booking-link .dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.booking-link span.label {
  flex: 1;
}

.booking-link img.arrow {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(25%) sepia(7%) saturate(401%) hue-rotate(336deg) brightness(95%) contrast(88%);
}

.dot-airbnb {
  background: #ff5a5f;
}

.dot-booking {
  background: #003580;
}

.dot-vrbo {
  background: #1b4ec8;
}

.dot-direct {
  background: var(--brand);
}

.toast {
  position: fixed;
  right: var(--space-s);
  bottom: var(--space-s);
  z-index: 200;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateY(16px);
  border-radius: var(--radius-s);
  background: var(--surface-inverse);
  color: var(--text-on-dark-primary);
  opacity: 0;
  padding: 12px var(--space-s);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.navbar__lang:focus-visible,
.lang-option:focus-visible,
.cleaning-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  :root {
    --nav-height: 80px;
    --navbar-height: 80px;
    --space-l: 32px;
    --space-xl: 64px;
  }

  .navbar-wrapper {
    height: 0;
    background: transparent;
    overflow: visible;
  }

  .navbar-wrapper::before,
  .navbar-wrapper.navbar--scrolled::before {
    display: none;
  }

  body.navbar-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(51, 46, 44, 0.42);
    backdrop-filter: blur(16px) saturate(0.85);
    -webkit-backdrop-filter: blur(16px) saturate(0.85);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.36s ease;
    animation: navbarBackdropIn 0.36s ease both;
  }

  body.navbar-menu-closing::before {
    animation: none;
    opacity: 0;
  }

  .navbar-wrapper.navbar--open {
    z-index: 220;
  }

  .navbar-wrapper.navbar--closing {
    z-index: 100;
  }

  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 220;
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: var(--navbar-height);
    max-width: none;
    padding: var(--space-s);
    background: transparent;
    box-shadow: none;
    max-height: var(--navbar-height);
    overflow: hidden;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .navbar--scrolled .navbar {
    background: #ffffff;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  }

  .navbar--open .navbar {
    top: 8px;
    left: 8px;
    right: 8px;
    height: auto;
    width: auto;
    margin: 0;
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 8px 0 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(51, 46, 44, 0.18);
    max-height: calc(100dvh - 16px);
    animation: overlayPanelIn 0.22s ease both;
  }

  .navbar--open .navbar:has(.navbar__lang-wrap.open) {
    padding-bottom: 112px;
  }

  .navbar--closing .navbar {
    pointer-events: none;
    transition: none;
    animation: none;
  }

  .navbar__logo {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
  }

  .navbar__toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 24px;
    height: 24px;
    padding: 2px;
  }

  .navbar--open .navbar__logo {
    display: none;
  }

  .navbar--open .navbar__toggle {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: 48px;
    height: 48px;
    margin: 0 8px 8px 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .navbar__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 0;
    margin-top: var(--space-s);
    background: #ffffff;
    color: var(--text-primary);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0s linear 0.42s;
    white-space: normal;
  }

  .navbar--open .navbar__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0.08s, 0.08s, 0s;
  }

  .navbar--closing .navbar__links {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: visible;
    transition-delay: 0s;
  }

  .navbar__links a {
    display: block;
    width: 100%;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: var(--space-xs) var(--space-s);
  }

  .navbar__links a:hover {
    background: var(--background);
    opacity: 1;
  }

  .navbar__lang-wrap {
    display: inline-flex;
    position: relative;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    width: fit-content;
    min-width: 0;
    height: 48px;
    margin: var(--space-xs) var(--space-s) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: #ffffff;
    box-shadow: none;
    color: var(--text-primary);
    opacity: 0;
    overflow: visible;
    padding: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0s linear 0.42s,
      border-color 0.18s ease;
  }

  .navbar__lang {
    width: auto;
    min-width: 0;
    height: 48px;
    border: 0;
    color: inherit;
    padding: 12px var(--space-s);
  }

  .navbar--open .navbar__lang-wrap {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0.12s, 0.12s, 0s, 0s;
  }

  .navbar--closing .navbar__lang-wrap {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: visible;
    transition-delay: 0s;
  }

  .navbar__lang-wrap.open {
    width: fit-content;
    min-width: 0;
    height: 48px;
  }

  .navbar__lang-dropdown {
    display: none;
    top: calc(100% + var(--space-xs));
    left: 0;
    right: auto;
    width: max-content;
    min-width: 100%;
    margin-top: 0;
    box-shadow: none;
    transform: translateY(-4px);
  }

  .navbar__lang-wrap.open .navbar__lang-dropdown {
    display: flex;
    transform: translateY(0);
  }

  .app-shell {
    width: min(100% - 48px, var(--content-width));
    padding-top: calc(var(--navbar-height) + 40px);
  }

  .heading-row {
    flex-direction: column;
  }

  .next-card__dates,
  .next-card__meta {
    grid-template-columns: 1fr;
  }

  .month-section {
    overflow: hidden;
  }

  .month-header,
  .month-titles,
  .cleaning-row {
    min-width: 0;
  }

  .month-titles {
    display: none;
  }

  .cleaning-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
  }

  .row-cell {
    padding: 12px;
  }

  .cleaning-row .row-cell:nth-child(1) {
    grid-column: 1 / 4;
  }

  .cleaning-row .row-cell:nth-child(2) {
    grid-column: 4 / 7;
  }

  .cleaning-row .row-cell:nth-child(n + 3) {
    grid-column: span 2;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
    padding-top: var(--space-s);
  }

  .row-cell .row-cell__label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 16px;
    text-transform: uppercase;
  }

  .footer {
    flex-direction: column;
    padding: var(--space-xl) var(--space-m);
  }

  @keyframes navbarBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes overlayPanelIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 480px) {
  .navbar__lang {
    height: 40px;
    padding: 6px 10px;
  }

  .navbar__lang img {
    width: 20px;
    height: 20px;
  }

  .app-shell {
    width: min(100% - 48px, var(--content-width));
  }
}
