.arvs,
.arvs * {
  box-sizing: border-box;
}

.arvs {
  --arvs-primary: #142f39;
  --arvs-primary-soft: #1f4652;
  --arvs-accent: #f9b233;
  --arvs-accent-dark: #d99619;
  --arvs-cream: #fff6e4;
  --arvs-light: #f7f5ef;
  --arvs-border: #e2ded4;
  --arvs-muted: #5f6b70;
  --arvs-white: #ffffff;
  color: var(--arvs-primary);
}

.arvs.is-popover-open {
  position: relative;
  z-index: 2147483000;
}

.arvs-search-card,
.arvs-hero-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 42px;
  background: linear-gradient(145deg, var(--arvs-primary), var(--arvs-primary-soft));
  border: 1px solid rgba(249, 178, 51, 0.52);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(20, 47, 57, 0.22);
}

.arvs-search-card {
  max-width: 480px;
}

.arvs-search-heading {
  margin: 0 0 16px;
  color: var(--arvs-white);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.arvs-main-controls,
.arvs-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.arvs-hero-row {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.arvs-date-control,
.arvs-guest-control {
  position: relative;
  width: 100%;
}

.arvs-pill {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(20, 47, 57, 0.95);
  border-radius: 18px;
  background: var(--arvs-white);
  color: var(--arvs-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
}

.arvs-pill:hover,
.arvs-pill:focus {
  outline: none;
  border-color: var(--arvs-primary);
  box-shadow: 0 0 0 4px rgba(20, 47, 57, 0.14);
}

.arvs-pill [data-arvs-date-label],
.arvs-pill [data-arvs-guest-label] {
  flex: 1;
  text-align: left;
}

.arvs-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  color: var(--arvs-primary);
}

.arvs-calendar-svg {
  color: var(--arvs-primary);
}

.arvs-clear {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
}

.arvs-submit,
.arvs-done {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--arvs-accent);
  color: var(--arvs-primary);
  font-size: 16px;
  font-weight: 900;
  padding: 0 22px;
  cursor: pointer;
}

.arvs-submit:hover,
.arvs-done:hover {
  background: var(--arvs-accent-dark);
}

.arvs-calendar {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 680px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  background: var(--arvs-white);
  border: 1px solid rgba(20, 47, 57, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(20, 47, 57, 0.32);
  z-index: 2147483001;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -50%);
}

.arvs-calendar-header {
  background: var(--arvs-primary);
  color: var(--arvs-white);
  padding: 18px 64px;
  text-align: center;
  border-bottom: 4px solid var(--arvs-accent);
}

.arvs-calendar-header strong,
.arvs-calendar-header span {
  display: block;
}

.arvs-calendar-header strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.arvs-calendar-header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.arvs-calendar-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.arvs-calendar-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--arvs-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.arvs-calendar-nav-btn:hover {
  background: var(--arvs-accent);
  color: var(--arvs-primary);
}

.arvs-calendar-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.arvs-month {
  padding: 20px 18px 18px;
}

.arvs-month + .arvs-month {
  border-left: 1px solid var(--arvs-border);
}

.arvs-month-title {
  text-align: center;
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 16px;
  color: var(--arvs-primary);
}

.arvs-weekdays,
.arvs-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.arvs-days {
  gap: 5px;
}

.arvs-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--arvs-muted);
  padding: 0 0 8px;
}

.arvs-day {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--arvs-white);
  color: var(--arvs-primary);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.arvs-day:hover {
  background: var(--arvs-cream);
  border-color: rgba(249, 178, 51, 0.45);
}

.arvs-day.is-disabled {
  color: #b9b9b9;
  cursor: not-allowed;
}

.arvs-day.is-disabled:hover {
  background: var(--arvs-white);
  border-color: transparent;
}

.arvs-day.is-selected {
  background: var(--arvs-accent);
  color: var(--arvs-primary);
  font-weight: 900;
  border-color: var(--arvs-accent);
}

.arvs-day.is-in-range {
  background: #f7e8be;
  border-color: #f7e8be;
}

.arvs-day.is-today {
  box-shadow: inset 0 0 0 2px var(--arvs-primary);
}

.arvs-guests {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 36px);
  background: var(--arvs-white);
  border: 1px solid var(--arvs-border);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(20, 47, 57, 0.24);
  padding: 22px;
  z-index: 99999;
}

.arvs-guests-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 14px;
}

.arvs-counter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--arvs-border);
}

.arvs-counter-row strong,
.arvs-counter-row span {
  display: block;
}

.arvs-counter-row span {
  color: var(--arvs-muted);
  font-size: 13px;
  margin-top: 3px;
}

.arvs-counter {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.arvs-counter button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #ccd3d8;
  background: var(--arvs-white);
  color: var(--arvs-primary);
  font-size: 20px;
  cursor: pointer;
}

.arvs-toggle-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  font-weight: 800;
}

.arvs-toggle-row input {
  position: absolute;
  opacity: 0;
}

.arvs-toggle-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #c8d0da;
  position: relative;
}

.arvs-toggle-ui:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  background: var(--arvs-white);
  transition: transform 0.18s ease;
}

.arvs-toggle-row input:checked + .arvs-toggle-ui {
  background: var(--arvs-accent);
}

.arvs-toggle-row input:checked + .arvs-toggle-ui:before {
  transform: translateX(20px);
}

.arvs-guests-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.arvs-link-button {
  border: 0;
  background: transparent;
  color: var(--arvs-muted);
  font-weight: 800;
  cursor: pointer;
}

.arvs-listings {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 70px;
}

.arvs-listings-header {
  text-align: center;
  margin: 0 0 24px;
}

.arvs-listings-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

.arvs-toolbar {
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) 220px;
  gap: 18px;
  align-items: end;
  margin: 0 0 24px;
  background: var(--arvs-light);
  border: 1px solid var(--arvs-border);
  border-radius: 18px;
  padding: 16px;
}

.arvs-guest-filter {
  width: 190px;
  max-width: 100%;
}

.arvs-control-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.arvs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arvs-chip {
  min-height: 40px;
  border: 1px solid var(--arvs-border);
  border-radius: 999px;
  background: var(--arvs-white);
  color: var(--arvs-primary);
  font-size: 14px;
  font-weight: 900;
  padding: 0 15px;
  cursor: pointer;
}

.arvs-chip.is-active {
  background: var(--arvs-primary);
  color: var(--arvs-white);
  border-color: var(--arvs-primary);
}

.arvs-guest-filter .arvs-pill {
  min-height: 42px;
  border-width: 1px;
  border-radius: 999px;
  font-size: 14px;
  padding: 0 12px;
  box-shadow: none;
}

.arvs-guest-filter .arvs-icon {
  font-size: 16px;
}

.arvs-sort-filter select {
  width: 220px;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--arvs-border);
  border-radius: 9px;
  background: var(--arvs-white);
  color: var(--arvs-primary);
  font-size: 14px;
  font-weight: 800;
  padding: 0 12px;
}

.arvs-status {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--arvs-muted);
  font-weight: 800;
  text-align: center;
}

.arvs-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.arvs-card {
  background: var(--arvs-white);
  border: 1px solid var(--arvs-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 47, 57, 0.10);
  display: flex;
  flex-direction: column;
}

.arvs-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  object-fit: cover;
}

.arvs-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.arvs-card-title {
  margin: 0 0 12px;
  color: var(--arvs-primary);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}

.arvs-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.arvs-card-meta span {
  background: var(--arvs-cream);
  color: var(--arvs-primary);
  border: 1px solid rgba(249, 178, 51, 0.35);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.arvs-card-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.arvs-price-main {
  color: var(--arvs-primary);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.arvs-price-sub {
  color: var(--arvs-muted);
  font-size: 15px;
  font-weight: 800;
}

.arvs-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  background: var(--arvs-accent);
  color: var(--arvs-primary) !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
  padding: 0 16px;
}

.arvs-book:hover {
  background: var(--arvs-accent-dark);
}

.arvs-empty,
.arvs-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 20px;
  border: 1px solid var(--arvs-border);
  background: var(--arvs-light);
  border-radius: 14px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .arvs-toolbar {
    grid-template-columns: 190px 1fr;
  }
  .arvs-sort-filter {
    grid-column: 1 / -1;
  }
  .arvs-sort-filter select {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .arvs-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arvs-hero-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .arvs-toolbar {
    grid-template-columns: 1fr;
  }
  .arvs-guest-filter {
    width: 100%;
  }
  .arvs-guest-filter .arvs-pill {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .arvs-search-card,
  .arvs-hero-card {
    padding: 16px;
    border-radius: 18px;
  }
  .arvs-search-heading {
    font-size: 21px;
  }
  .arvs-results {
    grid-template-columns: 1fr;
  }
  .arvs-calendar {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
  }
  .arvs-calendar-header {
    padding-left: 52px;
    padding-right: 52px;
  }
  .arvs-calendar-months {
    grid-template-columns: 1fr;
  }
  .arvs-month + .arvs-month {
    border-left: 0;
    border-top: 1px solid var(--arvs-border);
  }
}


/* Hero availability search overrides */
.arvs-hero .arvs-hero-card {
  max-width: 640px;
  background: var(--arvs-white);
  border: 1px solid var(--arvs-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(20, 47, 57, 0.18);
}

.arvs-hero .arvs-search-heading {
  color: var(--arvs-primary);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
}

.arvs-hero .arvs-hero-row {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, auto);
  gap: 16px;
}

.arvs-hero .arvs-pill {
  border: 1px solid var(--arvs-border);
  border-radius: 8px;
  min-height: 58px;
  font-weight: 400;
  box-shadow: none;
}

.arvs-hero .arvs-pill [data-arvs-date-label] {
  font-weight: 400;
}

.arvs-hero .arvs-icon,
.arvs-hero .arvs-calendar-svg {
  color: var(--arvs-primary);
}

.arvs-hero .arvs-pill:hover,
.arvs-hero .arvs-pill:focus {
  border-color: var(--arvs-primary);
  box-shadow: 0 0 0 3px rgba(20, 47, 57, 0.10);
}

.arvs-hero .arvs-submit {
  min-height: 58px;
  border-radius: 8px;
  background: var(--arvs-primary);
  color: var(--arvs-white);
  font-weight: 700;
}

.arvs-hero .arvs-submit:hover {
  background: var(--arvs-primary-soft);
}

.arvs-status.is-warning {
  color: #9a5a00;
  background: #fff6e4;
  border: 1px solid rgba(249, 178, 51, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  .arvs-hero .arvs-hero-row {
    grid-template-columns: 1fr;
  }
}

/* Calendar overlay hardening - v0.1.8 */
.arvs-calendar {
  --arvs-primary: #142f39;
  --arvs-primary-soft: #1f4652;
  --arvs-accent: #f9b233;
  --arvs-accent-dark: #d99619;
  --arvs-cream: #fff6e4;
  --arvs-light: #f7f5ef;
  --arvs-border: #e2ded4;
  --arvs-muted: #5f6b70;
  --arvs-white: #ffffff;
  width: min(820px, calc(100vw - 32px));
  box-sizing: border-box;
  overflow-x: hidden;
}

.arvs-calendar,
.arvs-calendar * {
  box-sizing: border-box;
}

.arvs-calendar-months {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  width: 100%;
}

.arvs-month {
  min-width: 0;
  overflow: hidden;
  padding: 22px 24px 20px;
}

.arvs-weekdays,
.arvs-days {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  width: 100%;
}

.arvs-weekday,
.arvs-day {
  min-width: 0;
}

.arvs-day {
  width: 100%;
  padding: 0;
  line-height: 1;
}

@media (max-width: 760px) {
  .arvs-calendar {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    top: 12px;
    transform: translateX(-50%);
  }

  .arvs-calendar-months {
    grid-template-columns: 1fr !important;
  }

  .arvs-month {
    padding: 18px 16px 16px;
  }

  .arvs-month + .arvs-month {
    border-left: 0;
    border-top: 1px solid var(--arvs-border);
  }
}
