: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-secondary-bg: #fbf3ea;
  --warning-text: #8c5b00;
  --success-bg: #eef8f1;
  --success-secondary-bg: #e9f6ed;
  --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);
  --motion-duration-sheet: 0.38s;
  --motion-ease-sheet: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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%;
}

.navbar-wrapper {
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: var(--navbar-height);
  background: #ffffff;
}

.navbar-wrapper::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
  pointer-events: none;
}

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

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

.navbar__logo a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: var(--space-s);
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__logo img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar__logo span {
  min-width: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

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

.page-section + .page-section {
  border-top: 1px solid var(--border);
  margin-top: var(--space-l);
  padding-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 img,
.row-cell--icon img,
.timeline-rail img,
.detail-chip img,
.cleaning-detail-row__icon {
  filter: brightness(0) saturate(100%) invert(45%) sepia(8%) saturate(507%) hue-rotate(335deg) brightness(93%) contrast(86%);
}

.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);
}

.cleaning-row--unavailable {
  color: var(--progress-text);
}

.unavailable-row-content {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-s);
}

.unavailable-row-text {
  min-width: 0;
}

.unavailable-row-text span,
.unavailable-row-text strong,
.unavailable-row-text small {
  display: block;
  overflow-wrap: anywhere;
}

.unavailable-row-text span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.unavailable-row-text strong {
  margin-top: var(--space-xxs);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

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

.unavailable-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-xxs);
  border-radius: 999px;
  background: var(--progress-bg);
  color: var(--progress-text);
  padding: var(--space-xxs) var(--space-xs);
  white-space: nowrap;
}

.unavailable-chip svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.unavailable-chip span {
  font-size: 14px;
  line-height: 20px;
}

.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;
}

.mobile-cleaning-card {
  display: none;
}

.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;
}

.cleaning-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(51, 46, 44, 0.42);
  backdrop-filter: blur(16px) saturate(0.85);
  -webkit-backdrop-filter: blur(16px) saturate(0.85);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--motion-duration-sheet) ease,
    visibility 0s linear var(--motion-duration-sheet);
  visibility: hidden;
}

body.cleaning-detail-open .cleaning-detail-backdrop {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}

.cleaning-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1210;
  width: min(402px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(51, 46, 44, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px));
  transition:
    opacity var(--motion-duration-sheet) ease,
    transform var(--motion-duration-sheet) var(--motion-ease-sheet),
    visibility 0s linear var(--motion-duration-sheet);
  visibility: hidden;
}

.cleaning-detail-modal[hidden] {
  display: none;
}

body.cleaning-detail-open .cleaning-detail-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition-delay: 0s;
  visibility: visible;
}

.cleaning-detail-modal__nav {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  padding: var(--space-xs);
}

.cleaning-detail-modal__close {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0;
}

.cleaning-detail-modal__close img {
  width: 24px;
  height: 24px;
}

.cleaning-detail-modal__title {
  padding: 0 var(--space-m);
}

.cleaning-detail-modal__title h2 {
  font-family: var(--font-label);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 32px;
}

.cleaning-detail-modal__title p {
  margin-top: var(--space-xxs);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.cleaning-detail-modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: var(--space-m);
}

.cleaning-detail-list {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.cleaning-detail-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--space-s);
}

.cleaning-detail-row__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.cleaning-detail-row__content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-xxs);
  border-bottom: 1px solid var(--border);
  padding: var(--space-s) 0;
}

.cleaning-detail-row__content span,
.cleaning-detail-row__content strong {
  display: block;
  overflow-wrap: anywhere;
}

.cleaning-detail-row__content span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.cleaning-detail-row__content strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
}

.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 {
    width: 100%;
    height: var(--navbar-height);
    background: #ffffff;
    overflow: visible;
  }

  .cleaning-detail-modal {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100dvh - 16px);
    transform: translateY(calc(100% + 16px));
  }

  body.cleaning-detail-open .cleaning-detail-modal {
    transform: translateY(0);
  }

  .navbar {
    position: relative;
    display: flex;
    width: min(100%, var(--wide-width));
    height: var(--navbar-height);
    max-width: var(--wide-width);
    align-items: center;
    background: #ffffff;
  }

  .navbar__logo {
    min-width: 0;
    width: auto;
    height: 48px;
  }

  .navbar__logo span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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

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

  .month-section {
    border: 0;
    border-radius: 0;
    background: transparent;
    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;
  }

  .month-list {
    gap: var(--space-s);
  }

  .month-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    overflow: visible;
  }

  .month-section + .month-section {
    margin-top: var(--space-xs);
  }

  .month-header {
    border: 0;
    background: transparent;
    padding: 0;
  }

  .month-header h3 {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 24px;
  }

  .month-header span {
    font-size: 14px;
    line-height: 20px;
  }

  .cleaning-row {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: var(--surface);
    overflow: hidden;
    padding: var(--space-s);
  }

  .cleaning-row:last-child {
    border-bottom: 1px solid var(--border);
  }

  .cleaning-row:hover,
  .cleaning-row.is-active {
    background: var(--surface);
  }

  .cleaning-row.is-active {
    border-color: #d8d2cf;
    box-shadow: none;
  }

  .cleaning-row > .row-cell {
    display: none;
  }

  .cleaning-row--unavailable .unavailable-row-content {
    display: none;
  }

  .mobile-cleaning-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
  }

  .mobile-cleaning-card__timeline {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-height: 126px;
  }

  .timeline-rail {
    display: flex;
    width: 28px;
    flex: 0 0 28px;
    flex-direction: column;
    align-items: center;
  }

  .timeline-rail img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin: 6px 0;
  }

  .timeline-rail span {
    width: 1px;
    flex: 1 1 auto;
    min-height: 38px;
    border-left: 1px dashed #d8d2cf;
  }

  .timeline-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-event {
    min-width: 0;
    width: 100%;
  }

  .timeline-event strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
  }

  .timeline-event span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 16px;
  }

  .availability-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xxs);
    margin: var(--space-xs) 0;
    border-radius: 999px;
    padding: var(--space-xxs) var(--space-xs);
    white-space: nowrap;
  }

  .availability-chip--warning {
    background: var(--warning-secondary-bg);
    color: var(--warning-text);
  }

  .availability-chip--success {
    background: var(--success-secondary-bg);
    color: var(--success-text);
  }

  .availability-chip--progress {
    background: var(--progress-bg);
    color: var(--progress-text);
  }

  .availability-chip__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: currentColor;
  }

  .availability-chip span {
    color: currentColor;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
  }

  .mobile-cleaning-card__chips {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .detail-chip {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-xxs);
    border-radius: 999px;
    background: var(--background);
    padding: var(--space-xxs) var(--space-xs);
  }

  .detail-chip img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .detail-chip span {
    min-width: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
    white-space: nowrap;
  }

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

}

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

@media (prefers-reduced-motion: reduce) {
  .cleaning-detail-modal,
  .cleaning-detail-backdrop {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
