/* DRVX Car Rental — Airbnb-inspired homepage */

:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --text: #222222;
  --text-muted: #717171;
  --border: #dddddd;
  --bg: #ffffff;
  --bg-subtle: #f7f7f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-pill: 40px;
  --header-height: 96px;
  --header-bar-height: 96px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1280px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.api-offline-banner {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 12px 24px;
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.5;
}

.api-offline-banner code {
  font-size: 0.8125rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

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

/* Header bar — fixed on top; expand panel is a sibling and scrolls away */
#header.header.header__bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 300;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 360px) 1fr;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
  height: var(--header-bar-height, 80px);
  min-height: var(--header-bar-height, 80px);
  box-sizing: border-box;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header--scrolled.header__bar,
.header--scrolled#header {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header__bar-start {
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
}

.header__bar-center {
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.header__bar-end {
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

#header .logo__img {
  height: 72px;
  width: auto;
  display: block;
  background: #ffffff;
}

#header .logo__img--rentyx {
  height: 117px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.header--legal .logo__img--rentyx {
  height: 107px;
}

.logo__tagline {
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--border);
  line-height: 1.2;
}

/* Compact pill: always in bar, fades in (Airbnb) — never display:none */
.header__search--compact {
  display: flex;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#header.header--scrolled .header__search--compact {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.compact-search {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  transition: box-shadow var(--transition);
}

.compact-search:hover {
  box-shadow: var(--shadow-lg);
}

.compact-search__label--muted {
  color: var(--text-muted);
}

.compact-search__dot {
  color: var(--text-muted);
}

.compact-search__icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__become-agency {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.header__become-agency:hover {
  background: var(--bg-subtle);
  color: var(--brand, #f97316);
}

.header__lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.header__lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.header__lang-option:hover {
  background: var(--bg-subtle);
}

.header__lang-option--active {
  background: #e5e5e5;
  box-shadow: none;
}

.header__lang-flag {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.header__currency {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.header__currency-option {
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.header__currency-option:hover {
  color: var(--text);
}

.header__currency-option--active {
  background: #e5e5e5;
  color: var(--text);
}

.header__nav--legal {
  display: flex;
  align-items: center;
  gap: 16px;
}


/* Large search — below fixed bar, scrolls away */
.header__expand {
  padding-top: var(--header-bar-height, 80px);
  background: var(--bg);
}

.header__expand-inner {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.header__expand-inner .search-bar {
  margin-bottom: 0;
}

.search-fleet-available {
  margin: 0;
  max-width: 850px;
  width: 100%;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-dark);
}

@media (prefers-reduced-motion: reduce) {
  .header__search--compact {
    transition: none;
  }
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  max-width: 850px;
  width: 100%;
  transition: box-shadow var(--transition);
}

.search-bar:hover,
.search-bar:focus-within {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-field {
  flex: 1;
  padding: 14px 24px;
  min-width: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}

.search-field:hover,
.search-field:focus-within {
  background: var(--bg-subtle);
}

.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-field input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.search-field__select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
}

.search-field__select:invalid,
.search-field__select option[value=""] {
  color: var(--text-muted);
}

.search-field__select option:not([value=""]) {
  color: var(--text);
}

.search-field--wide {
  flex: 1.2;
}

.search-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 7px 7px 0;
  padding: 14px 24px;
  background: var(--brand);
  color: white;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition), transform 0.1s;
}

.search-btn:hover {
  background: var(--brand-dark);
}

.search-btn:active {
  transform: scale(0.98);
}

/* Categories */
.categories {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  background: var(--bg);
  z-index: 50;
}

.categories--hidden {
  display: none !important;
}

.categories__scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding-bottom: 4px;
}

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

.category {
  display: inline-flex;
  align-items: center;
  min-width: auto;
  padding: 8px 2px 12px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition), color var(--transition);
}

.category:hover {
  opacity: 1;
  color: var(--text);
}

.category--active {
  opacity: 1;
  color: var(--text);
  border-bottom-color: var(--text);
}

.category__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.categories__filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}

.categories__filter-btn:hover {
  background: var(--bg-subtle);
}

.categories__filter-btn--active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.categories__filter-btn--active:hover {
  background: #27272a;
}

.categories__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: var(--radius);
  background: #fff;
}

.categories__filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.categories__filter-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand, #f97316);
  cursor: pointer;
}

/* Listings grid */
.listings {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.listings__service-filters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: var(--radius);
  background: var(--bg-subtle, #f7f7f7);
}

.listings__filters-left {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.listings__filters-status {
  grid-column: 2;
  margin: 0;
  min-width: 0;
  max-width: min(100%, 36rem);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--brand-dark);
}
}

.listings__filters-status:empty {
  display: none;
}

.listings__filters-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.listings__filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.listings__filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.listings__filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--border, #d4d4d8);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.listings__filter-btn:hover {
  border-color: var(--text);
  background: var(--bg-subtle, #f4f4f5);
}

.listings__filter-btn--active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.listings__filter-btn--active:hover {
  background: #27272a;
  border-color: #27272a;
}

.listings__filter-agency {
  display: inline-flex;
  align-items: center;
}

.listings__filter-select {
  min-width: 10.5rem;
  max-width: 16rem;
  padding: 10px 32px 10px 16px;
  border: 1px solid var(--border, #d4d4d8);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  appearance: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.listings__filter-select:hover {
  border-color: var(--text);
  background-color: var(--bg-subtle, #f4f4f5);
}

.listings__filter-select--active {
  background-color: var(--text);
  color: #fff;
  border-color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
}

.listings__filter-select--active:hover {
  background-color: #27272a;
  border-color: #27272a;
}

.listings__filter-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand, #f97316);
  cursor: pointer;
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 24px;
}

.listings__clear-btn {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.listings__clear-btn[hidden] {
  display: none;
}

.listings__clear-btn:hover {
  background: var(--bg-subtle, #f4f4f5);
  border-color: var(--text-muted, #a1a1aa);
}

.listings__toolbar {
  display: none;
}

.listings__results {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted, #52525b);
}

.listings__empty-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
}

.listings__empty {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.listings__empty-contact {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.listings__empty-chat {
  justify-content: center;
}

/* Card */
.card {
  position: relative;
}

.card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 20 / 19;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  text-align: left;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card__media:hover img {
  transform: scale(1.03);
}

.card__photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.card__favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s;
}

.card__favorite:hover {
  transform: scale(1.1);
}

.card__favorite.is-active {
  color: var(--brand);
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.card__title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.card__rating svg {
  width: 12px;
  height: 12px;
}

.card__meta,
.card__price {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.card__price strong {
  color: var(--text);
  font-weight: 600;
}

.card__first-available {
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.card__services {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e4e4e7);
}

.card__vendor {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.card__service-line {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted, #52525b);
}

.card__service-line--yes span:last-child {
  color: #166534;
  font-weight: 500;
}

.card__service-line--no span:last-child {
  color: var(--text-muted, #71717a);
}

.card__service-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #71717a);
  margin-bottom: 2px;
}

.card__service-address {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.4;
}

.card__service-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand, #f97316);
  text-decoration: none;
}

.card__service-link:hover {
  text-decoration: underline;
}

.listing-car-services__grid {
  display: grid;
  gap: 20px;
}

.listing-car-services > h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .listing-car-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-car-services__block {
  padding: 16px;
  background: var(--bg-subtle, #fafafa);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 12px;
}

.listing-car-services__eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #71717a);
}

.listing-car-services__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.listing-car-services__address {
  margin: 0 0 10px;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted, #52525b);
}

.listing-car-services__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand, #f97316);
  text-decoration: none;
}

.listing-car-services__link:hover {
  text-decoration: underline;
}

.listing-car-services__status {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.listing-car-services__status--yes {
  color: #166534;
}

.listing-car-services__status--no {
  color: var(--text-muted, #71717a);
}

.listing-car-services__detail {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted, #52525b);
}

.listing-car-services__prices {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-car-services__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted, #52525b);
}

.listing-car-services__price {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.listing-book__first-available {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.listing-book__snap-dates {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  cursor: pointer;
}

.listing-book__snap-dates:hover {
  background: #ffedd5;
}

/* Host CTA */
/* Pick-up office */
.pickup-office {
  margin: 64px auto;
}

.pickup-office__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: var(--max-width);
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pickup-office__photo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pickup-office__photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.pickup-office__photo .pickup-office__actions {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.pickup-office__photo .pickup-office__actions .btn--brand {
  width: 100%;
  max-width: 280px;
  justify-content: center;
  text-align: center;
}

.pickup-office__photo .pickup-office__phone {
  font-size: 1rem;
}

.pickup-office__photo .pickup-office__chat-apps {
  justify-content: center;
  gap: 10px;
}

.pickup-office__info {
  padding: 0;
}

.pickup-office__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.pickup-office__info h2 {
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
}

.pickup-office__lead {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 400px;
}

.pickup-office__address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.pickup-office__address strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.pickup-office__email {
  margin: 12px 0 0;
  font-size: 0.9375rem;
}

.pickup-office__contact-label {
  font-weight: 600;
  color: var(--text);
}

.pickup-office__email a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pickup-office__email a:hover {
  color: var(--brand-dark);
}

.pickup-office__hours-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pickup-office__hours-list {
  list-style: none;
  margin-bottom: 28px;
}

.pickup-office__hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.pickup-office__hours-list li span:last-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.pickup-office__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.pickup-office__actions .btn--brand {
  width: auto;
  padding: 12px 24px;
}

.pickup-office__phone {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pickup-office__phone:hover {
  color: var(--brand-dark);
}

.pickup-office__chat-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chat-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: filter var(--transition), transform var(--transition);
}

.chat-app-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.chat-app-btn--whatsapp {
  background: #25d366;
}

.chat-app-btn--viber {
  background: #7360f2;
}

.chat-app-btn--telegram {
  background: #229ed9;
}

.pickup-office--reverse .pickup-office__photo {
  order: 2;
}

.pickup-office--reverse .pickup-office__info {
  order: 1;
  padding: 0;
}

.pickup-office__fee {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: -12px 0 20px;
}

.pickup-office__notes {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.pickup-office__notes li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pickup-office__notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  width: calc(100% - 48px);
  margin: 64px auto;
  padding: 48px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.promo__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.promo__content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.25;
  max-width: 420px;
}

.promo__content > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 440px;
  line-height: 1.6;
}

.promo__features {
  list-style: none;
  margin-bottom: 28px;
}

.promo__features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}

.promo__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.promo__cta {
  display: inline-flex;
  width: auto;
  padding: 14px 28px;
}

.promo__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform 0.1s;
}

.btn--primary {
  background: var(--text);
  color: white;
}

.btn--primary:hover {
  background: #000;
}

/* Footer */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer a:hover {
  text-decoration: underline;
  color: var(--text);
}

.footer__trustpilot {
  max-width: var(--max-width);
  margin: 0 auto 20px;
}

.footer__trustpilot .trustpilot-widget {
  display: block;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 0;
  border-top: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 16px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal__panel {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal__panel h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.modal__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal__option {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.9375rem;
  transition: border-color var(--transition), background var(--transition);
}

.modal__option:hover {
  border-color: var(--text);
}

.modal__option--selected {
  border-color: var(--text);
  background: var(--bg-subtle);
}

.modal__close {
  width: 100%;
}

.btn--brand {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.btn--brand:hover {
  filter: brightness(1.05);
}

/* Listing detail page (Airbnb-style) — sits below fixed site header */
body.listing-open {
  overflow: hidden;
}

body.listing-open #header {
  z-index: 530;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

body.listing-open .header__bar-end,
body.listing-open .header__currency,
body.listing-open .header__currency-option,
body.listing-open .header__lang,
body.listing-open .header__lang-option {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

body.listing-open .header__listing-back,
body.booking-summary-open .header__listing-back {
  display: flex;
}

body.booking-summary-open #header {
  z-index: 530;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

body.booking-summary-open .header__search--compact {
  opacity: 0;
  pointer-events: none;
}

.booking-summary-page {
  position: fixed;
  top: var(--header-bar-height, 80px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 525;
  background: var(--bg);
  overflow-y: auto;
}

.booking-summary-page[hidden] {
  display: none;
}

.booking-summary-page__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.booking-summary-page__hero {
  margin-bottom: 28px;
  text-align: center;
}

.booking-summary-page__eyebrow {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-summary-page__hero h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.booking-summary-page__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.booking-summary-page__spam-hint {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-muted, #f4f4f5);
  border: 1px solid var(--border, #e4e4e7);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.booking-summary-page__ref {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.booking-summary-page__card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.booking-summary-page__section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.booking-summary-page__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.booking-summary-page__vehicle-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.booking-summary-page__none {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.booking-summary-page__section-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.booking-summary-page__dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.booking-summary-page__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) 1fr;
  gap: 8px 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.booking-summary-page__row dt {
  margin: 0;
  font-weight: 500;
  color: var(--text-muted);
}

.booking-summary-page__row dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.booking-summary-page__row--multiline dd {
  white-space: pre-wrap;
}

.booking-summary-page__pricing .listing-book__summary-row {
  margin-bottom: 8px;
}

.booking-summary-page__pricing .listing-book__summary-row--total {
  margin-top: 8px;
}

.booking-summary-page__refuel {
  margin: 20px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.booking-summary-page__actions {
  margin-top: 28px;
  text-align: center;
}

.booking-summary-page__actions .btn {
  min-width: 220px;
}

body.listing-open .header__search--compact {
  opacity: 0;
  pointer-events: none;
}

.header__listing-back {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.header__listing-back:hover {
  background: var(--bg-subtle);
}

.listing-page {
  position: fixed;
  top: var(--header-bar-height, 80px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 520;
  background: var(--bg);
  overflow-y: auto;
}

.listing-page[hidden] {
  display: none;
}

.listing-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.listing-photos-wrap {
  position: relative;
  margin-bottom: 24px;
}

.listing-photos-wrap--maintenance .listing-photos__cell img,
.card--maintenance .card__media img,
.photo-lightbox--maintenance .photo-lightbox__image {
  filter: grayscale(1) brightness(0.72) contrast(0.92);
  transition: filter 0.3s ease;
}

.card--maintenance .card__media img {
  opacity: 0.9;
}

.listing-maintenance-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(63, 63, 70, 0.92);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.card__badge--maintenance {
  background: #3f3f46;
  color: #fff;
}

.listing-photos {
  display: grid;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
}

.listing-photos--1 {
  grid-template-columns: 1fr;
}

.listing-photos--2 {
  grid-template-columns: 1fr 1fr;
}

.listing-photos--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.listing-photos--3 .listing-photos__cell:first-child {
  grid-row: span 2;
}

.listing-photos--4plus {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.listing-photos--4plus .listing-photos__cell:first-child {
  grid-row: span 2;
}

.listing-photos__cell {
  position: relative;
  padding: 0;
  border: none;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
  min-height: 0;
}

.listing-photos__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.listing-photos__cell:hover img {
  transform: scale(1.02);
}

.listing-photos__show-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--text);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.listing-photos__show-all:hover {
  background: var(--bg-subtle);
}

.listing-page__content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.listing-header h1 {
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}

.listing-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.listing-header__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 500;
}

.listing-header__rating svg {
  width: 12px;
  height: 12px;
}

.listing-host {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding-bottom: 24px;
}

.listing-host__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.listing-host__title {
  font-weight: 600;
}

.listing-host__agency-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand, #f97316);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listing-host__agency-link:hover {
  color: var(--brand-dark, #ea580c);
}

.listing-host__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.listing-agency-contact {
  margin: -8px 0 24px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.listing-agency-contact[hidden] {
  display: none !important;
}

.listing-agency-contact__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.listing-agency-contact__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-agency-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.9375rem;
}

.listing-agency-contact__label {
  color: var(--text-muted);
  min-width: 3.5rem;
}

.listing-agency-contact__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.listing-agency-contact__link:hover {
  text-decoration: underline;
}

.listing-agency-contact__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.listing-agency-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}

.listing-agency-contact__btn:hover {
  background: var(--bg-subtle);
  border-color: #bbb;
}

.listing-agency-contact__btn--whatsapp {
  border-color: #25d366;
  color: #128c7e;
}

.listing-agency-contact__btn--telegram {
  border-color: #229ed9;
  color: #229ed9;
}

.listing-agency-contact__btn--viber {
  border-color: #7360f2;
  color: #7360f2;
}

.listing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.listing-specs h2,
.listing-about h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.listing-specs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.listing-spec-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.listing-spec-item__icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.85;
}

.listing-spec-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.listing-spec-item__value {
  font-weight: 500;
  font-size: 0.9375rem;
}

.listing-about p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.listing-book__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  /* Sticky keeps price/dates visible while scrolling car details; no inner scroll — one page scroll */
  position: sticky;
  top: calc(var(--header-bar-height, 80px) + 12px);
  align-self: start;
}

.listing-book__price {
  margin-bottom: 20px;
  font-size: 1.375rem;
}

.listing-book__unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.listing-book__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.listing-book__field {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-book__field + .listing-book__field {
  border-left: 1px solid var(--border);
}

.listing-book__label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.listing-book__field input {
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-family: inherit;
  background: transparent;
  width: 100%;
}

.listing-book__field input:focus {
  outline: none;
}

.listing-book__extras {
  margin: 16px 0 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-book__extras-heading {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.listing-book__extras-heading--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.listing-book__extras-divider {
  margin: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.listing-book__extras-divider--summary {
  margin: 16px 0 0;
}

[hidden] {
  display: none !important;
}

.listing-book__seat-row--addon {
  margin-top: 0;
}

.listing-book__extras .booking-modal__check {
  margin: 0;
}

.listing-book__extras .booking-modal__check--sub {
  margin-top: 0;
}

.listing-book__check {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0;
}

.listing-book__check-label {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.listing-book__check-price {
  flex-shrink: 0;
  font-weight: 500;
  color: var(--text);
}

.listing-book__check--sub {
  margin-left: 4px;
  margin-bottom: 0;
}

.listing-book__check--seat {
  margin-bottom: 0;
}

.listing-book__check-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.listing-book__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.listing-book__info-btn:hover,
.listing-book__info-btn[aria-expanded="true"] {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--bg-subtle);
}

.listing-book__info-panel {
  margin: 0 0 10px 28px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.listing-book__info-panel[hidden] {
  display: none;
}

.listing-book__info-panel--multiline {
  white-space: pre-line;
}

.listing-book__seat-row {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.listing-book__seat-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px 28px;
}

.listing-book__seat-qty[hidden] {
  display: none;
}

.listing-book__seat-qty-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 1.75rem;
}

.listing-book__seat-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.listing-book__seat-qty-btn:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.listing-book__seat-qty-input {
  width: 2.5rem;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  -moz-appearance: textfield;
}

.listing-book__seat-qty-input::-webkit-outer-spin-button,
.listing-book__seat-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.listing-book__extras-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.listing-book__extras-hint[hidden] {
  display: none;
}

.listing-book__summary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.listing-book__summary-detail {
  display: block;
  margin-top: 4px;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

.listing-book__summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text);
}

.listing-book__summary-row--note,
.listing-book__summary-row--deposit {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.4;
  margin-top: 12px;
  margin-bottom: 0;
}

.listing-book__refuel-note,
.booking-modal__refuel-note {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
}

.booking-modal__refuel-note {
  margin-top: -8px;
  margin-bottom: 18px;
}

.listing-book__summary-row--total {
  font-weight: 600;
  color: var(--text);
  padding-top: 12px;
  margin-top: 4px;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
}

.listing-book__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.listing-book__availability {
  font-size: 0.8125rem;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.listing-book__availability--ok {
  background: #ecfdf5;
  color: #047857;
}

.listing-book__availability--warn {
  background: #fff7ed;
  color: #c2410c;
}

.listing-book__availability--error {
  background: #fef2f2;
  color: #b91c1c;
}

.listing-book__availability--info {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.listing-book__availability-title {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e40af;
}

.listing-book__availability-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.listing-book__availability-list li {
  margin-bottom: 6px;
}

.listing-book__availability-list li:last-child {
  margin-bottom: 0;
}

.listing-book__reserve:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.listing-book__field input.input--unavailable:invalid {
  border-color: #dc2626;
}

.listing-book__date-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.listing-book__summary-range {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.listing-book__date-value--empty {
  color: var(--text-muted);
  font-weight: 400;
}

.availability-calendar {
  margin-bottom: 16px;
}

.availability-calendar[hidden] {
  display: none;
}

.avail-cal__nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.avail-cal__nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}

.avail-cal__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.avail-cal__months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.avail-cal__month-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.avail-cal__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.avail-cal__weekday {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 4px;
}

.avail-cal__pad {
  height: 40px;
}

.avail-cal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 0 auto;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.avail-cal__day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}

/* Airbnb-style: struck-through unavailable days */
.avail-cal__day--blocked {
  cursor: not-allowed;
  background: transparent !important;
}

.avail-cal__day--partial .avail-cal__day-num {
  text-decoration: none;
  opacity: 1;
  position: relative;
}

.avail-cal__day--partial .avail-cal__day-num::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 1px;
  background: var(--color-text-muted, #717171);
  transform: rotate(-12deg);
}

.avail-cal__day--blocked .avail-cal__day-num {
  color: #717171;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.avail-cal__day--past {
  cursor: default;
  pointer-events: none;
}

.avail-cal__day--past .avail-cal__day-num {
  color: #d1d1d1;
}

.avail-cal__day--in-range {
  background: #f3f4f6 !important;
  border-radius: 0;
}

.avail-cal__day--start,
.avail-cal__day--end {
  background: transparent !important;
}

.avail-cal__day--start .avail-cal__day-num,
.avail-cal__day--end .avail-cal__day-num {
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.avail-cal__day:not(:disabled):not(.avail-cal__day--blocked):not(.avail-cal__day--start):not(.avail-cal__day--end):hover
  .avail-cal__day-num {
  background: #f3f4f6;
}

.listing-book__overlap {
  margin-top: 12px;
  margin-bottom: 0;
}

.listing-book__overlap + .avail-cal__hint {
  margin-top: 8px;
}

.avail-cal__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.avail-cal__hint-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: #717171;
  text-decoration: line-through;
  font-weight: 500;
}

@media (max-width: 900px) {
  .avail-cal__months {
    grid-template-columns: 1fr;
  }
}

/* Above listing page (300) and fixed header (500) */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.booking-modal-open {
  overflow: hidden;
}

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

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.booking-modal__panel {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-subtle);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.booking-modal__panel h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  padding-right: 2rem;
}

.booking-modal__trip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.booking-modal__trip-dates {
  color: var(--text-muted);
}

.booking-modal__trip-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.booking-modal__trip-label {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  min-width: 3.75rem;
}

.booking-modal__trip-value {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brand);
}

.booking-modal__phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.booking-modal__phone-code {
  flex: 0 0 auto;
  min-width: 7.5rem;
  max-width: 9.5rem;
}

.booking-modal__phone-local {
  flex: 1 1 auto;
  min-width: 0;
}

.booking-modal__phone-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #71717a;
  line-height: 1.35;
}

.booking-modal__form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.booking-modal__form input,
.booking-modal__form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.booking-modal__form textarea {
  min-height: 96px;
  line-height: 1.45;
}

.booking-modal__special-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
}

.booking-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.booking-modal__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.booking-modal__check--sub {
  margin-top: 12px;
}

.booking-modal__airport {
  margin: 0 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-modal__airport[hidden] {
  display: none;
}

.booking-modal__car-seat {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-subtle);
}

.booking-modal__car-seat[hidden] {
  display: none;
}

.booking-modal__car-seat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-modal__car-seat-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.booking-modal__car-seat-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.booking-modal__car-seat-option input {
  margin-top: 4px;
  flex-shrink: 0;
}

.booking-modal__car-seat-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.booking-modal__car-seat-option-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.booking-modal__car-seat-option-desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.booking-modal__airport-lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.booking-modal__airport-return {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-modal__airport-return[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .booking-modal__airport-return {
    grid-template-columns: 1fr;
  }
}

.booking-modal__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.booking-modal__error {
  font-size: 0.875rem;
  color: #b91c1c;
  margin-bottom: 12px;
}

.booking-modal__submit {
  width: 100%;
}

.booking-modal__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Fullscreen photo viewer (above listing page and booking modal) */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
}

.photo-lightbox__image {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.photo-lightbox__close {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  font-size: 1.75rem;
  color: var(--text);
}

.photo-lightbox__nav--prev {
  left: 24px;
}

.photo-lightbox__nav--next {
  right: 24px;
}

.photo-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  font-size: 0.875rem;
}

/* Legal pages */
.header--legal .logo__img {
  height: 64px;
}

.header--legal .logo__tagline {
  display: none;
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-page__content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.legal-page__updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal-page__intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.legal-page__content section {
  margin-bottom: 32px;
}

.legal-page__content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.legal-page__content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}

.legal-page__content p,
.legal-page__content li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page__content ul {
  margin: 0 0 16px 1.25rem;
}

.legal-page__content a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__content a:hover {
  color: var(--brand);
}

.legal-page__disclaimer {
  font-size: 0.875rem;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  margin-top: 32px;
}

.legal-page__nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.footer--legal {
  margin-top: 0;
  padding-top: 24px;
}

.footer--legal .footer__bottom {
  border-top: none;
  padding-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .search-bar {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 8px;
  }

  .search-divider {
    display: none;
  }

  .search-field {
    width: calc(50% - 8px);
    border-radius: var(--radius);
  }

  .search-btn {
    width: 100%;
    margin: 8px 0 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #header.header.header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
  }

  .header__bar-start:has(.logo__img--rentyx) {
    max-width: none;
    overflow: visible;
  }

  .header__bar-start {
    max-width: 120px;
    overflow: hidden;
    z-index: 2;
  }

  .header__bar-center {
    min-width: 0;
    z-index: 1;
  }

  #header .logo__img--rentyx {
    height: 107px;
    max-width: none;
  }

  #header.header--scrolled .logo__img--rentyx {
    height: 88px;
    max-width: none;
  }

  #header .logo__img {
    height: 48px;
    width: auto;
    max-width: 92px;
    object-fit: contain;
    object-position: left center;
  }

  #header.header--scrolled .logo__img {
    height: 40px;
    max-width: 76px;
  }

  .logo__tagline {
    display: none;
  }

  .compact-search {
    min-width: 0;
    padding: 8px 10px;
    gap: 2px;
    font-size: 0.8125rem;
  }

  .compact-search__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 5.5rem;
  }

  /* Single-line pill on narrow screens — avoids overlapping the logo */
  .compact-search__dot,
  .compact-search__label:nth-of-type(2) {
    display: none;
  }

  .pickup-office__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .pickup-office__photo img {
    height: 220px;
  }

  .pickup-office__info {
    padding: 0;
  }

  .pickup-office--reverse .pickup-office__info {
    padding: 0;
  }

  .pickup-office--reverse .pickup-office__photo {
    order: unset;
  }

  .pickup-office--reverse .pickup-office__info {
    order: unset;
  }

  .promo {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .promo__image {
    order: -1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .categories__filter-btn span {
    display: none;
  }

  .listing-photos {
    height: 280px;
  }

  .listing-page__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .listing-book__card {
    position: static;
    top: auto;
  }

  .listing-specs__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #header.header.header__bar {
    padding: 0 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header__bar-start:has(.logo__img--rentyx) {
    max-width: none;
    overflow: visible;
  }

  .header__bar-start {
    max-width: 96px;
  }

  #header .logo__img--rentyx {
    height: 68px;
    max-width: none;
  }

  #header.header--scrolled .logo__img--rentyx {
    height: 62px;
    max-width: none;
  }

  #header .logo__img {
    max-width: 72px;
    height: 40px;
  }

  #header.header--scrolled .logo__img {
    height: 36px;
    max-width: 64px;
  }

  .compact-search__label {
    max-width: 4.25rem;
  }

  .header__expand-inner {
    padding: 0 16px 4px;
  }

  .listings {
    padding: 16px;
  }

  .listings__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .search-field {
    width: 100%;
  }
}

/* Public agency registration */
.agency-register-page {
  max-width: 36rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem 3rem;
}

.agency-register-card {
  background: #fff;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: var(--radius, 12px);
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.agency-register-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand, #f97316);
}

.agency-register-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.agency-register-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted, #71717a);
  line-height: 1.5;
}

.agency-register-form {
  display: grid;
  gap: 1rem;
}

.agency-register-field {
  display: grid;
  gap: 0.35rem;
}

.agency-register-field span {
  font-size: 0.875rem;
  font-weight: 600;
}

.agency-register-field small {
  font-size: 0.8125rem;
  color: var(--text-muted, #71717a);
  line-height: 1.4;
}

.agency-register-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d4d4d8);
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.agency-register-turnstile {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
}

.agency-register-turnstile .cf-turnstile {
  transform: scale(0.95);
  transform-origin: center;
}

.agency-register-actions {
  margin-top: 0.5rem;
}

.agency-register-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.agency-register-status--error {
  color: #dc2626;
}

.agency-register-status--ok {
  color: #16a34a;
  font-weight: 600;
}

.agency-register-back {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.agency-register-back a {
  color: var(--text);
}

@media (max-width: 640px) {
  .header__become-agency {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}
