:root {
  --brand: #E61E4D;
  --bg: #f7f7f8;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #ca8a04;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.page-shell { padding-top: 4.5rem; }
.section-lg { padding: 2rem 0 3rem; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.narrow-wide { width: min(920px, calc(100% - 2rem)); }
.hero { color: white; padding: 3.5rem 0; }
.hero-inner { text-align: center; }
.hero-video { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand), #14b8a6); }
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .35); z-index: 1; }
.hero-video .hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .75rem; }
.hero p { margin: 0 0 2rem; opacity: .92; }
.search-card, .card { background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.search-card { padding: 1rem; color: var(--text); }
.card-body { padding: 1.25rem; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 700; }
.navbar { position: fixed; inset: 0 0 auto; height: 4.5rem; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 50; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand-name { font-weight: 700; font-size: 1.25rem; }
.brand-logo { height: 2rem; width: auto; }
.navbar-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.navbar-user-info { font-size: .85rem; color: var(--text-muted, #6b7280); text-decoration: none; }
.navbar-user-info:hover { text-decoration: underline; }
.navbar-dropdown { position: relative; }
.navbar-dropdown > summary { cursor: pointer; list-style: none; padding: .5rem 0; }
.navbar-dropdown > summary::-webkit-details-marker { display: none; }
.navbar-dropdown > summary::after { content: ' ▾'; font-size: .75em; }
.navbar-dropdown[open] > summary::after { content: ' ▴'; }
.navbar-dropdown-menu { position: absolute; top: 100%; left: 0; display: flex; flex-direction: column; gap: .25rem; background: var(--card, #fff); border: 1px solid var(--border); border-radius: .8rem; box-shadow: 0 10px 30px rgba(15,23,42,.08); padding: .5rem; min-width: 10rem; z-index: 60; }
.navbar-dropdown-menu a { white-space: nowrap; padding: .35rem .5rem; border-radius: .5rem; }
.navbar-dropdown-menu a:hover { background: var(--bg, #f3f4f6); }
.btn-primary, .btn-secondary, button.link-danger, button.link-warning { appearance: none; border: 0; cursor: pointer; font: inherit; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1rem; border-radius: .8rem; font-weight: 700; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: white; }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-icon { appearance: none; border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: white; font-size: 1.1rem; text-decoration: none; flex-shrink: 0; }
.danger { color: var(--red); border-color: #fecaca; }
.input, textarea, select { width: 100%; border: 1px solid #d1d5db; border-radius: .8rem; padding: .72rem .85rem; font: inherit; background: white; color: var(--text); }
.input:focus, textarea:focus, select:focus { outline: 2px solid rgba(230,30,77,.18); border-color: var(--brand); }
label { display: block; }
label span, .label-inline { display: block; font-size: .92rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.form-grid { display: grid; gap: 1rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }
.search-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.search-button { height: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.guest-count-list { display: flex; flex-direction: column; gap: .65rem; }
.guest-count-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.guest-count-label { font-size: .88rem; color: var(--text); }
.guest-count-controls { display: flex; align-items: center; gap: .35rem; flex: none; }
.guest-count-controls .guest-stepper-input { width: 3rem; border: 1px solid #d1d5db; border-radius: .5rem; padding: .4rem 0; text-align: center; }
.guest-count-controls .guest-stepper-input:focus { outline: none; border-color: var(--brand); }
.guest-capacity-note { color: var(--brand); }
.stepper-btn { flex: none; width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid #d1d5db; background: white; font-size: 1rem; line-height: 1; cursor: pointer; }
.stepper-btn:hover { background: #f3f4f6; border-color: var(--brand); }
.stepper-btn:disabled { opacity: .4; cursor: not-allowed; background: white; border-color: #d1d5db; }
.booking-dates-always-visible { border: 1px solid var(--border); border-radius: .9rem; padding: 1rem; }
.booking-block { border: 1px solid var(--border); border-radius: .9rem; overflow: hidden; }
.booking-block-header { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: #f9fafb; padding: .85rem 1rem; font-weight: 700; font-size: .95rem; cursor: pointer; appearance: none; font: inherit; color: var(--text); }
.booking-block-chevron { transition: transform .2s ease; color: var(--muted); }
.booking-block-header.open .booking-block-chevron { transform: rotate(180deg); }
.booking-block-body { padding: 1rem; }
.booking-block-body > * + * { margin-top: 1rem; }
.booking-block[data-booking-block="summary"] { border: 0; padding: 0; }
.booking-block[data-booking-block="summary"] > * + * { margin-top: 1rem; }
.quote-recap { font-size: .8rem; margin: .15rem 0 0; }
.booking-dates-summary p { margin: 0; font-size: .95rem; }
.booking-dates-summary p + p { margin-top: .2rem; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; }
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.property-card-image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.25rem 1.25rem 0 0; }
.property-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.property-card:hover img { transform: scale(1.05); }
.property-meta, .subtitle, .muted, small { color: var(--muted); }
.section-title { margin: 0 0 1rem; font-size: 1.2rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-header.center { flex-direction: column; text-align: center; }
.map-board-wrapper { position: sticky; top: 5.5rem; align-self: start; width: 100%; }
.map-board { position: relative; width: 100%; min-height: 24rem; height: 24rem; border-radius: 1.25rem; border: 1px solid var(--border); overflow: hidden; background: #dbeafe; z-index: 0; }
.map-legend { margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.map-popup { width: 200px; }
.map-popup-image { width: 100%; height: 7.5rem; object-fit: cover; border-radius: .6rem; margin-bottom: .5rem; }
.map-popup-title { margin: 0 0 .35rem; font-size: .95rem; }
.map-popup-meta { display: flex; gap: .35rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.map-popup-link { display: block; text-align: center; text-decoration: none; padding: .5rem .75rem; font-size: .85rem; }
.property-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.property-detail-header h1 { margin: 0 0 .35rem; }
.property-detail-header p { margin: 0; }
.gallery-main { position: relative; border-radius: 1.25rem; overflow: hidden; aspect-ratio: 16/9; background: #e5e7eb; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-share { position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.gallery-share-toast { background: rgba(17, 24, 39, 0.85); color: #fff; font-size: 0.85rem; padding: 0.35rem 0.75rem; border-radius: 999px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; white-space: nowrap; }
.gallery-share-toast.visible { opacity: 1; transform: translateY(0); }
.gallery-share-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #111827; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: background 0.2s ease, transform 0.2s ease; }
.gallery-share-btn:hover { background: #fff; transform: scale(1.05); }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .75rem; }
.gallery-thumb { border: 2px solid transparent; border-radius: .8rem; padding: 0; overflow: hidden; width: 5rem; height: 5rem; background: transparent; cursor: pointer; flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-carousel { position: relative; margin-top: .75rem; }
.gallery-carousel-track { display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; scroll-behavior: auto; scrollbar-width: thin; min-width: 0; }
.gallery-carousel-track .gallery-thumb { width: 5rem; height: 5rem; }
.amenities-category + .amenities-category { margin-top: 1.25rem; }
.detail-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.tab-btn { appearance: none; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font: inherit; font-weight: 700; color: var(--muted); padding: .75rem .25rem; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.detail-grid-single { grid-template-columns: minmax(0, 1fr); }
.sticky-card { position: sticky; top: 5.5rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .75rem; }
.price-big { font-size: 2rem; font-weight: 800; margin: 0; }
.price-big span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.quote-box { border: 1px solid var(--border); border-radius: .75rem; padding: .9rem 1rem; }
.quote-line { display: flex; justify-content: space-between; font-size: .95rem; padding: .25rem 0; }
.quote-total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: .35rem; padding-top: .5rem; }
.quote-tax-note { font-size: .82rem; margin-top: .5rem; }
.amenities-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.spinner { width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid #d1d5db; border-top-color: var(--brand); animation: spinner-spin .7s linear infinite; display: inline-block; }
@keyframes spinner-spin { to { transform: rotate(360deg); } }
.calendar-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.calendar-grid.header div { text-align: center; font-size: .8rem; color: var(--muted); font-weight: 700; }
.calendar-cell { padding: .4rem 0 .5rem; border-radius: .7rem; text-align: center; background: #f3f4f6; display: flex; flex-direction: column; align-items: center; gap: .1rem; touch-action: manipulation; }
.calendar-cell.available { background: #dcfce7; color: #166534; cursor: pointer; }
.calendar-cell.restricted { background: #f3f4f6; color: #6b7280; cursor: default; }
.calendar-cell.selected { outline: 2px solid var(--brand); background: var(--brand); color: white; }
.calendar-cell.in-range { background: var(--brand); color: white; }
.calendar-cell.unavailable { background: #fee2e2; color: #b91c1c; cursor: pointer; }
.calendar-cell.unavailable .calendar-day { text-decoration: line-through; }
.calendar-cell.single-night { background: #fef9c3; color: #854d0e; cursor: pointer; }
.calendar-cell.past { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; opacity: .7; }
/* :hover is scoped to devices that actually support hovering (mouse/trackpad).
   Without this, iOS Safari treats a div with a plain :hover rule as needing a
   first tap to enter the "hover" state and only a second tap to register the
   click, so arrival/departure dates silently failed to select on iPhone. */
@media (hover: hover) and (pointer: fine) {
  .calendar-cell.available:hover { outline: 2px solid var(--brand); }
  .calendar-cell.single-night:hover { outline: 2px solid var(--brand); }
}
.calendar-cell.past .calendar-day { text-decoration: none; }
.calendar-day { font-size: .85rem; }
.calendar-price { font-size: .7rem; font-weight: 700; opacity: .85; }
.calendar-legend { margin-top: 1rem; font-size: .85rem; color: var(--muted); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dot { width: .8rem; height: .8rem; display: inline-block; border-radius: 999px; margin-right: .25rem; }
.dot-green { background: #dcfce7; border: 1px solid #86efac; }
.dot-red { background: #fee2e2; border: 1px solid #fecaca; }
.dot-yellow { background: #fef9c3; border: 1px solid #fde047; }
.dot-gray { background: #f3f4f6; border: 1px solid #d1d5db; }

/* Calendrier board: one row per property, dates scroll horizontally. */
.calendar-board { --cal-day-w: 46px; --cal-photo-w: 56px; --cal-name-w: 200px; --cal-num-w: 70px; overflow-x: auto; overflow-y: hidden; margin-top: 1.25rem; border: 1px solid var(--border, #e5e7eb); border-radius: .8rem; max-width: 100%; width: calc(var(--cal-photo-w) + var(--cal-name-w) + (2 * var(--cal-num-w)) + (var(--cal-visible-days, 31) * var(--cal-day-w))); }
.calendar-board-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .8rem; font-weight: 600; line-height: 1.15; }
.calendar-board-table th, .calendar-board-table td { border-bottom: 1px solid var(--border, #e5e7eb); border-right: 1px solid var(--border, #e5e7eb); font-size: inherit; font-weight: inherit; }
.calendar-board-table thead th { position: sticky; top: 0; z-index: 3; background: #f9fafb; }
.calendar-board-table .cal-fixed { position: sticky; z-index: 2; background: #fff; }
.calendar-board-table thead .cal-fixed { z-index: 4; background: #f9fafb; }
.cal-col-photo { left: 0; width: var(--cal-photo-w); min-width: var(--cal-photo-w); }
.cal-col-name { left: var(--cal-photo-w); width: var(--cal-name-w); min-width: var(--cal-name-w); text-align: left; padding: 0 .5rem; }
.cal-col-num { width: var(--cal-num-w); min-width: var(--cal-num-w); text-align: center; }
.cal-col-capacity { left: calc(var(--cal-photo-w) + var(--cal-name-w)); }
.cal-col-rooms { left: calc(var(--cal-photo-w) + var(--cal-name-w) + var(--cal-num-w)); }
.cal-icon { font-size: 1.1rem; line-height: 1; }
.cal-col-name.cal-fixed { left: var(--cal-photo-w); }
.calendar-board-table tbody tr { height: 40px; }
.calendar-board-table tbody td { height: 40px; }
.cal-thumb { width: var(--cal-photo-w); height: 40px; object-fit: cover; display: block; }
.cal-day-head { width: var(--cal-day-w); min-width: var(--cal-day-w); padding: .2rem 0; text-align: center; line-height: 1.05; color: var(--muted); }
.cal-day-head .cal-day-dow, .cal-day-head .cal-day-mon { display: block; font-size: .72rem; }
.cal-day-head .cal-day-num { display: block; color: var(--text, #111827); }
.cal-day-head.cal-weekend { background: #eef2ff; }
.cal-cell { width: var(--cal-day-w); min-width: var(--cal-day-w); text-align: center; padding: 0; touch-action: manipulation; }
.cal-available { background: #dcfce7; color: #166534; }
.cal-unavailable { background: #fee2e2; color: #b91c1c; }
.cal-single-night { background: #fef9c3; color: #854d0e; }
.cal-unknown { background: #f3f4f6; color: #6b7280; }
.cal-past { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; opacity: .7; }
.cal-cell.cal-clickable { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .cal-cell.cal-clickable:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
}
.cal-cell.selected { outline: 2px solid var(--brand); background: var(--brand); color: #fff; }
.cal-cell.in-range { background: var(--brand); color: #fff; }
.cal-capacity-note { margin: .15rem 0 0; font-size: .72rem; color: #b91c1c; }
.cal-capacity-note .cal-warning-icon { margin-right: .25rem; }
.cal-cell.cal-restricted { width: auto; min-width: 0; text-align: left; padding: .5rem .75rem; background: #f3f4f6; cursor: default; }
.cal-restricted-note { margin: 0; font-size: .8rem; color: var(--muted); }

/* The "Bien" (property name) column is hidden by default (see the
   data-calendar-name-toggle checkbox, unchecked by default) to leave more
   horizontal room for the date columns, which is the scarce resource on
   narrow/portrait phone screens. --cal-name-w is overridden to 0 here so
   both the column itself and the left offsets of the columns sticky after
   it (capacity, rooms) collapse accordingly; the property thumbnail (with
   its link to the property page) stays visible either way. */
.calendar-name-toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; margin-top: 1rem; cursor: pointer; }
.calendar-board.cal-name-hidden { --cal-name-w: 0px; }
.calendar-board.cal-name-hidden .cal-col-name { display: none; }

.calendar-filter { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.calendar-filter-section { display: flex; flex-direction: column; gap: .5rem; }
.calendar-filter-label { font-weight: 700; font-size: .9rem; }
.calendar-filter-dates { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.calendar-filter-date { display: inline-flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.calendar-filter-date .input { padding: .4rem .5rem; font-size: .9rem; }
.calendar-guest-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Sliding guest fields: only one item is expanded (input visible) at a
   time, the others collapse to a compact icon + count button. See
   initCalendarGuestSlider() in app.js. */
.guest-slide-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.guest-slide-item { display: flex; align-items: center; }
.guest-slide-summary { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #d1d5db; border-radius: .6rem; background: white; padding: .4rem .65rem; font-size: .9rem; cursor: pointer; appearance: none; font: inherit; color: var(--text); }
.guest-slide-summary:hover { border-color: var(--brand); }
.guest-slide-item.active .guest-slide-summary { display: none; }
.guest-slide-item:not(.active) .guest-slide-input-wrap { display: none; }
.guest-slide-icon { font-size: 1.1rem; line-height: 1; }
.guest-slide-count { font-weight: 700; font-size: .9rem; }
.guest-slide-input-wrap { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; border: 1px solid #d1d5db; border-radius: .6rem; padding: .35rem .6rem; background: white; }
.guest-slide-field-label { white-space: nowrap; }
.guest-slide-input { width: 3.5rem; padding: .3rem .4rem; border: 0; font-size: .9rem; }
.guest-slide-input:focus { outline: none; }

.calendar-filter-actions { display: inline-flex; align-items: center; gap: .75rem; }
.calendar-filter-submit { padding: .45rem .9rem; border-radius: .6rem; font-size: .9rem; }
.calendar-guest-required-hint { margin-top: 1rem; font-size: .85rem; }
.calendar-loading-message { margin-top: 1rem; display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.calendar-loading-message[hidden] { display: none; }
.calendar-price-note { margin-top: 1rem; font-size: .85rem; }

.calendar-help-btn { padding: .5rem .9rem; border-radius: .6rem; font-size: .9rem; flex-shrink: 0; }
.help-dialog { max-width: 32rem; width: calc(100% - 2rem); border: 1px solid var(--border, #e5e7eb); border-radius: .9rem; padding: 1.25rem; }
.help-dialog::backdrop { background: rgba(17, 24, 39, .45); }
.help-dialog form { display: flex; justify-content: flex-end; margin: -.5rem -.5rem .5rem 0; }
.help-dialog-close { appearance: none; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .25rem .5rem; }
.help-dialog p + p { margin-top: .75rem; }
.assoc-dialog { max-width: 40rem; max-height: 85vh; overflow-y: auto; }
.assoc-property-list { display: flex; flex-direction: column; gap: .5rem; max-height: 50vh; overflow-y: auto; }
.assoc-property-row { display: flex; align-items: center; gap: .75rem; padding: .5rem; border: 1px solid var(--border, #e5e7eb); border-radius: .6rem; }
.assoc-property-photo { width: 56px; height: 40px; object-fit: cover; border-radius: .4rem; flex-shrink: 0; }
.assoc-property-name { flex: 1; font-size: .9rem; }
.assoc-property-options { display: flex; gap: .75rem; font-size: .8rem; white-space: nowrap; }
.assoc-property-options label { display: flex; align-items: center; gap: .25rem; cursor: pointer; }

.multi-booking-cart { margin-top: 1.25rem; border: 1px solid var(--border, #e5e7eb); border-radius: .9rem; padding: 1rem; background: #f9fafb; }
.multi-cart-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.multi-cart-header .section-title { margin: 0; }
.multi-cart-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.multi-cart-item { display: flex; align-items: center; gap: .6rem; background: #fee2e2; border: 1px solid #fca5a5; border-radius: .6rem; padding: .4rem .5rem; font-size: .9rem; color: #7f1d1d; }
.multi-cart-item.cap-ok { background: #dcfce7; border-color: #86efac; color: #14532d; }
.multi-cart-item.cap-warn { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
.multi-cart-item-thumb { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: .4rem; flex-shrink: 0; }
.multi-cart-item-info { display: flex; flex-direction: column; gap: .1rem; }
.multi-cart-item-name { font-weight: 700; }
.multi-cart-item-dates { font-size: .85rem; }
.multi-cart-remove { border: 0; background: rgba(0, 0, 0, .12); color: inherit; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: .95rem; line-height: 1; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.multi-cart-remove:hover { background: rgba(0, 0, 0, .22); }
.multi-cart-summary { margin: 0 0 .75rem; padding: .6rem .75rem; border-radius: .6rem; background: #fff; border: 1px solid var(--border, #e5e7eb); font-size: .9rem; }
.multi-cart-summary p { margin: .2rem 0; }
.multi-cart-summary-body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.multi-cart-summary-dates { flex: 1 1 16rem; min-width: 0; }
.multi-cart-summary-total { flex-shrink: 0; padding: .5rem .75rem; border-radius: .5rem; background: #f3f4f6; border: 1px solid var(--border, #e5e7eb); font-weight: 700; text-align: right; }
.multi-cart-capacity-table { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.multi-cart-capacity-row { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.multi-cart-capacity-icon { flex-shrink: 0; font-weight: 700; }
.multi-cart-capacity-row.cap-ok .multi-cart-capacity-icon { color: var(--green); }
.multi-cart-capacity-row.cap-warn .multi-cart-capacity-icon { color: var(--red); }
.multi-cart-capacity-row.cap-warn { color: var(--red); }
.multi-cart-checkout { margin-top: .75rem; }



.badge { display: inline-flex; align-items: center; padding: .25rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-fresh { background: #dcfce7; color: #166534; }
.badge-stale { background: #fee2e2; color: #991b1b; }
.lodgify-thumb { width: 3.5rem; height: 2.5rem; object-fit: cover; border-radius: .5rem; }
.stats-grid, .quick-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-grid .card-body, .center { text-align: center; }
.quick-grid span { display: block; margin-top: .35rem; }
.list-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-tabs a { padding: .55rem .9rem; border-radius: 999px; background: white; border: 1px solid var(--border); }
.filter-tabs a.active { background: var(--brand); color: white; border-color: var(--brand); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .85rem 1rem; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.table thead th { background: #f9fafb; border-top: 0; color: var(--muted); font-size: .9rem; }
.empty-row { text-align: center; color: var(--muted); padding: 2rem !important; }
.two-panel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; }
.side-list a { display: block; padding: .9rem 1rem; border-top: 1px solid var(--border); }
.side-list a:first-child { border-top: 0; }
.side-list a.active { background: #fdf2f8; color: var(--brand); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 0; background: #f3f4f6; padding: .35rem .55rem; border-radius: .6rem; cursor: pointer; font-family: monospace; }
.codearea { min-height: 18rem; font-family: monospace; }
.preview-box { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
.preview-box summary { padding: .8rem 1rem; cursor: pointer; font-weight: 700; }
.preview-frame { width: 100%; min-height: 18rem; border: 0; background: white; }
.form-feedback { min-height: 1rem; color: var(--red); margin: 0; }
.form-feedback.success { color: var(--green); }
.inline-check { display: flex; align-items: center; gap: .5rem; }
.inline-check label { margin: 0; }
.hidden { display: none !important; }
.color-row { display: flex; gap: .75rem; align-items: center; }
.color-row input[type=color] { width: 4rem; height: 3rem; border: 0; padding: 0; background: transparent; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: .75rem; align-items: center; }
.actions form { margin: 0; }
.text-link { color: var(--brand); }
.link-danger, .link-warning { background: transparent; padding: 0; }
.link-danger { color: var(--red); }
.link-warning { color: #ea580c; }
.accent-ok { color: var(--green); }
.accent-warn { color: var(--yellow); }
.alert { padding: .9rem 1rem; border-radius: .9rem; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1d4ed8; }
.empty-state { padding: 3rem 0; text-align: center; color: var(--muted); }
.message-box { background: #f3f4f6; padding: 1rem; border-radius: .9rem; overflow: auto; }
.auth-wrap { display: flex; justify-content: center; }
.emoji-xl { font-size: 3rem; }
.diag-row { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.diag-step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--brand); color: white; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.diag-step-header { display: flex; align-items: center; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.diag-step-title { font-weight: 700; font-size: 1.05rem; flex: 1; }
.prose { line-height: 1.6; }
@media (max-width: 980px) {
  .content-with-sidebar, .detail-grid, .two-panel, .search-grid { grid-template-columns: 1fr; }
  .map-board-wrapper, .sticky-card { position: static; }
}
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4, .stats-grid, .quick-grid { grid-template-columns: 1fr; }
  .navbar-inner, .section-header { align-items: flex-start; flex-direction: column; }
  .navbar-links { width: 100%; justify-content: flex-start; }
  /* Larger, easier-to-tap arrival/departure calendar cells on phones (Apple's
     minimum recommended touch target is ~44px); desktop sizing is untouched. */
  .calendar-months { grid-template-columns: 1fr; gap: 1rem; }
  .calendar-grid { gap: .3rem; }
  .calendar-cell { min-height: 44px; padding: .55rem 0 .6rem; border-radius: .6rem; justify-content: center; }
  .calendar-day { font-size: .95rem; }
  .calendar-price { font-size: .68rem; }
}
