: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); min-height: calc(100vh - 4.5rem); display: flex; align-items: center; transition: min-height .5s ease, padding .5s ease; }
.hero-video-bg { position: fixed; top: 4.5rem; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100vh - 4.5rem); object-fit: cover; z-index: 0; }
.hero-video-overlay { position: fixed; top: 4.5rem; left: 0; right: 0; bottom: 0; height: calc(100vh - 4.5rem); background: rgba(15, 23, 42, .35); z-index: 1; }
.hero-video-loading { position: fixed; top: 4.5rem; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; padding: 1rem 1rem 2rem; transition: opacity .25s ease; }
.hero-video.video-ready .hero-video-loading { opacity: 0; }
.hero-video-loading-track { width: min(70vw, 320px); height: .32rem; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero-video-loading-bar { display: block; width: 40%; height: 100%; border-radius: 999px; background: #fff; animation: hero-video-loading 1.1s linear infinite; }
@keyframes hero-video-loading {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}
.hero-video .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-video .search-card { width: 75%; margin: 0 auto; }
.hero-search-mobile-toggle.btn-primary { display: none; }
.hero h1, .hero p { transition: max-height .4s ease, opacity .3s ease, margin .4s ease; max-height: 12rem; opacity: 1; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .75rem; }
.hero p { margin: 0 0 2rem; opacity: .92; }
.hero-video--compact { min-height: 0; padding: 30px 0; }
.hero-video--compact h1, .hero-video--compact p { max-height: 0; opacity: 0; margin: 0; }
.home-results { position: relative; z-index: 2; background: var(--card); border-radius: 1.5rem 1.5rem 0 0; box-shadow: 0 -20px 40px rgba(15,23,42,.12); }
.home-results > .container.section-lg { padding-top: 30px; }
.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); }
.search-card input[type=number]::-webkit-inner-spin-button,
.search-card input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.search-card input[type=number] { -moz-appearance: textfield; }
.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: 100; }
.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: 3rem; max-height: 3rem; width: auto; object-fit: contain; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.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-lang-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.2rem; text-decoration: none; line-height: 1; flex-shrink: 0; }
.navbar-lang-toggle:hover { background: rgba(0, 0, 0, .06); }
.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); }
.navbar-user-menu > summary { padding: 0; }
.navbar-user-menu > summary::after { content: ''; }
.navbar-avatar-trigger { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: transparent; overflow: hidden; }
.navbar-avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.navbar-avatar-fallback { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.navbar-user-dropdown { left: auto; right: 0; }
.navbar-mobile-toggle, .navbar-mobile-backdrop { display: none; }
.navbar-mobile-toggle { appearance: none; border: 1px solid var(--border); background: #fff; color: var(--text); width: 2.4rem; height: 2.4rem; border-radius: .6rem; font-size: 1.1rem; line-height: 1; align-items: center; justify-content: center; cursor: pointer; }
.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; }
.logo-upload-card { border: 1px dashed var(--border); border-radius: .9rem; padding: .75rem; }
.logo-preview-wrap { margin-top: .75rem; display: flex; align-items: center; gap: .75rem; }
.logo-preview-small { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border); border-radius: .7rem; background: #fff; padding: .25rem; }
.logo-remove-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.logo-remove-chip input { margin: 0; }
.partner-logo-thumb { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--border); border-radius: .5rem; background: #fff; padding: .2rem; flex-shrink: 0; }
.partner-name-cell { display: flex; align-items: center; gap: .65rem; min-width: 0; font-weight: 600; }
.partner-name-label { min-width: 0; overflow-wrap: anywhere; }
.partner-code-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font-weight: 600; }
.partner-table-btn, .action-icon-btn { appearance: none; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; font: inherit; }
.partner-table-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.partner-table-btn-icon { justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; gap: 0; }
.partner-table-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: #fdf2f8; color: var(--brand); font-size: .78rem; }
.action-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .65rem; }
.action-icon-btn.danger { color: var(--red); }
.partner-table-btn:hover, .action-icon-btn:hover, .partner-code-link:hover { border-color: #f9a8d4; background: #fff1f2; }
.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(6, 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; }
.booking-submit-block > * + * { 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; }
.amenities-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.amenities-categories .amenities-category { margin-top: 0; border: 1px solid var(--border); border-radius: .75rem; padding: 1rem 1.1rem; background: #fafafa; }
.amenities-category-title { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.amenities-category-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--brand); color: #fff; flex-shrink: 0; }
.amenities-category-icon svg { width: 1.1rem; height: 1.1rem; }
.amenities-item { font-size: .92rem; color: var(--text); }
.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(3, minmax(0, 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 { 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-row { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.calendar-legend { font-size: .85rem; color: var(--muted); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.calendar-legend-note { font-weight: 600; }
.calendar-view-selection-btn { margin-left: auto; white-space: nowrap; }
.calendar-view-selection-btn[hidden] { display: none; }
.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) + (3 * 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-col-sofa { left: calc(var(--cal-photo-w) + var(--cal-name-w) + (2 * 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 { 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; }
.booking-policy-block { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: .75rem; padding: 1rem 1.25rem; background: #fafafa; }
.booking-policy-block .prose { font-size: .9rem; color: var(--muted); }
.calendar-info-blocks { align-items: start; margin-top: 1.5rem; }
.calendar-info-blocks .booking-policy-block { margin-top: 0; }
.price-info-list { margin: .5rem 0 0; padding-left: 1.1rem; }
.price-info-list li { margin-bottom: .4rem; }

.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-status.cap-ok { color: var(--green); font-weight: 700; }
.multi-cart-capacity-status.cap-warn { color: var(--red); font-weight: 700; }
.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; }
.partners-table { font-size: .92rem; }
.partners-table th, .partners-table td { vertical-align: middle; padding: .75rem .7rem; font-size: inherit; }
.partners-table thead th { white-space: nowrap; }
.partners-table .partners-col-name { width: 24%; }
.partners-table .partners-col-email { width: 12%; }
.partners-table .partners-col-cleaning,
.partners-table .partners-col-tax { width: 7%; }
.partners-table .partners-col-properties,
.partners-table .partners-col-users,
.partners-table .partners-col-actions { width: 1%; }
.partners-table .actions form { display: inline-flex; }
.partner-actions { gap: .5rem; white-space: nowrap; }
.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; height: 18rem; border: 0; background: white; display: block; }
.code-box { border: 1px solid var(--border); border-radius: 1rem; padding: 0 1rem 1rem; margin-bottom: 1rem; }
.code-box summary { padding: .8rem 0; cursor: pointer; font-weight: 700; margin: 0 -1rem; padding-left: 1rem; }
.template-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.btn-sm { padding: .4rem .75rem; font-size: .85rem; border-radius: .6rem; }
.insert-var-dropdown { position: relative; }
.insert-var-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 200; background: white; border: 1px solid var(--border); border-radius: .75rem; box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 320px; max-width: 380px; max-height: 420px; overflow-y: auto; padding: .4rem 0; }
.insert-var-item { display: flex; flex-direction: column; gap: .1rem; width: 100%; text-align: left; border: 0; background: none; padding: .45rem 1rem; cursor: pointer; color: var(--text); }
.insert-var-item:hover { background: #f3f4f6; }
.insert-var-item-name { font-family: monospace; font-size: .85rem; }
.insert-var-item-desc { font-size: .75rem; color: var(--muted); white-space: normal; }
.insert-var-item--restricted .insert-var-item-name { color: #b45309; font-weight: 700; }
.recipient-note { margin: 0 0 .75rem; padding: .5rem .8rem; border-radius: .6rem; font-size: .85rem; }
.recipient-note--client { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.recipient-note--partner { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.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; }
.link-warning:disabled { color: #d1d5db; cursor: not-allowed; }
.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; }
.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); background: #fff; }
.site-footer-inner { min-height: 3.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); padding: .85rem 0; }
.site-footer-inner a { color: var(--text); text-decoration: underline; }
.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: 1200px) {
  .calendar-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .content-with-sidebar, .detail-grid, .two-panel, .search-grid { grid-template-columns: 1fr; }
  .map-board-wrapper, .sticky-card { position: static; }
  .hero-video .search-card { width: 100%; }
}
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4, .stats-grid, .quick-grid { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .navbar-inner { align-items: center; flex-direction: row; flex-wrap: nowrap; }
  .navbar-mobile-toggle { display: inline-flex; margin-left: auto; }
  .navbar-links { position: fixed; top: 4.5rem; right: 0; bottom: 0; width: min(84vw, 320px); max-width: 100%; margin: 0; padding: 1rem; border-left: 1px solid var(--border); background: #fff; box-shadow: -12px 0 24px rgba(15,23,42,.12); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .5rem; flex-wrap: nowrap; overflow-y: auto; z-index: 70; transform: translateX(100%); transition: transform .22s ease; }
  body.mobile-nav-open .navbar-links { transform: translateX(0); }
  .navbar-mobile-backdrop { display: block; position: fixed; top: 4.5rem; left: 0; right: 0; bottom: 0; border: 0; margin: 0; padding: 0; background: rgba(15,23,42,.28); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility 0s linear .22s; z-index: 65; }
  body.mobile-nav-open .navbar-mobile-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease, visibility 0s linear 0s; }
  .navbar-links > a, .navbar-user-info { width: 100%; padding: .35rem 0; }
  .navbar-dropdown { width: 100%; }
  .navbar-dropdown > summary { width: 100%; padding: .5rem 0; }
  .navbar-dropdown-menu { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: .25rem 0 .5rem .5rem; }
  .navbar-dropdown-menu a { width: 100%; }
  .navbar-user-menu > summary { width: auto; }
  .hero-search-mobile-toggle.btn-primary { display: inline-flex; width: 100%; }
  .hero-video .search-card { display: none; width: 100%; margin-top: .75rem; }
  .hero-video.hero-search-open .search-card { display: block; }
  .hero-video.hero-search-open .hero-search-mobile-toggle { display: none; }
  .calendar-legend-row { align-items: flex-start; }
  .calendar-view-selection-btn { margin-left: 0; }
  /* 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; }
}
/* Booking slide-in modal */
.booking-modal-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,0); visibility: hidden; transition: background .3s ease, visibility 0s linear .3s; pointer-events: none; }
.booking-modal-overlay.booking-modal-open { background: rgba(0,0,0,0.2); visibility: visible; pointer-events: auto; transition: background .3s ease, visibility 0s linear 0s; }
.booking-modal-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: #fff; overflow-y: auto; padding: 1.25rem 1.25rem 2rem; box-shadow: -4px 0 24px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; gap: 1rem; }
.booking-modal-overlay.booking-modal-open .booking-modal-panel { transform: translateX(0); }
.booking-modal-hide-btn { align-self: flex-start; font-size: .82rem; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: .5rem; padding: .45rem .85rem; cursor: pointer; font: inherit; }
.booking-modal-hide-btn:hover { filter: brightness(.95); }
.booking-modal-top-row { display: grid; grid-template-columns: 1fr; gap: .75rem; align-items: start; }
.booking-section { border: 1px solid var(--border); border-radius: .9rem; overflow: hidden; }
.booking-section-title { display: block; background: #f9fafb; padding: .85rem 1rem; font-weight: 700; font-size: .95rem; }
.booking-section > .booking-block-body { padding: 1rem; }
.booking-section > .booking-block-body > * + * { margin-top: 1rem; }
.rates-tab-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rates-tab-header .section-title { margin-bottom: 0; }
.rates-clear-dates-btn { font-size: .85rem; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: .5rem; padding: .35rem .75rem; cursor: pointer; font: inherit; white-space: nowrap; }
.rates-clear-dates-btn:hover { background: #f3f4f6; }
.booking-modal-form > * + * { margin-top: 1rem; }
.booking-status-popup { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 1rem; background: rgba(15,23,42,.18); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.booking-status-popup.visible { opacity: 1; pointer-events: auto; }
.booking-status-popup-box { width: min(100%, 28rem); border-radius: 1rem; border: 1px solid var(--border); background: #fff; color: var(--text); padding: 1rem 1.25rem; box-shadow: 0 18px 48px rgba(15,23,42,.2); text-align: center; }
.booking-status-popup-box.success { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.booking-status-popup-box.error { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.booking-status-popup-message { margin: 0; font-weight: 700; }
.booking-status-popup-note { margin: .5rem 0 0; font-size: .85rem; font-weight: 400; opacity: .85; }
.booking-status-popup-close { margin-top: 1rem; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: .5rem; padding: .5rem 1.25rem; font: inherit; font-weight: 700; cursor: pointer; }
.booking-status-popup-close:hover { background: rgba(0,0,0,.06); }
@media (max-width: 480px) {
  .booking-modal-top-row { grid-template-columns: 1fr; }
}
.template-var-modal-overlay { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.45); padding: 1rem; }
.template-var-modal { width: min(420px, 100%); max-height: 80vh; background: #fff; border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.template-var-modal-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); font-weight: 700; }
.template-var-modal-close { border: 0; background: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--muted); }
.template-var-modal-close:hover { color: var(--text); }
.template-var-modal-body { overflow-y: auto; padding: .4rem 0; }
.accordion > summary { cursor: pointer; list-style: none; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::before { content: '▸ '; color: var(--muted); }
.accordion[open] > summary::before { content: '▾ '; }
.template-image-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; max-height: 220px; overflow-y: auto; }
.template-image-gallery-item { border: 2px solid transparent; background: #f9fafb; border-radius: .5rem; padding: .35rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.template-image-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .35rem; }
.template-image-gallery-item span { font-size: .7rem; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-image-gallery-item:hover { border-color: #f3d1e2; }
.template-image-gallery-item.active { border-color: var(--brand); background: #fdf2f8; }
.template-var-modal .input:disabled { background: #f3f4f6; color: var(--muted); cursor: not-allowed; }
.partner-accordion-list .partner-accordion { border-top: 1px solid var(--border); }
.partner-accordion-list .partner-accordion:first-of-type { border-top: 0; }
.partner-accordion-summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; cursor: pointer; list-style: none; }
.partner-accordion-summary::-webkit-details-marker { display: none; }
.partner-accordion-summary::before { content: '▸ '; color: var(--muted); }
.partner-accordion[open] > .partner-accordion-summary::before { content: '▾ '; }
.partner-accordion-summary a { color: inherit; text-decoration: none; flex: 1; }
.partner-accordion-summary.active { background: #fdf2f8; color: var(--brand); font-weight: 700; }
.partner-template-list { padding: .25rem 0 .5rem; background: #fafafa; }
.partner-template-link { display: block; padding: .6rem 1rem .6rem 2rem; font-size: .9rem; }
.partner-template-link.active { background: #fdf2f8; color: var(--brand); font-weight: 700; }
.update-progress { margin-top: .5rem; }
.update-progress-track { width: 100%; height: .6rem; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.update-progress-bar { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .25s ease; }
.update-progress-bar.is-indeterminate { animation: update-progress-pulse 1.4s ease-in-out infinite; }
.update-progress-label { margin: .4rem 0 0; font-size: .85rem; color: var(--text-muted, #6b7280); display: flex; gap: .35rem; }
@keyframes update-progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
