/* Offerte in evidenza — scheda hotel senza date.
   2026-09-16 owner: più compatte, e la ricerca per altre date deve vedersi.
   La sezione prende i colori della scheda DOPO la ricerca (card camera
   selezionata): fondo --card-selected-bg, bordo --accent, prezzo --price-amber.
   L'accent segue la veste del portale (lime su HoEscape, ambra su InfoIschia),
   il prezzo no: è ambra ovunque, come nella card camera. */
.hd-stays-wrap { max-width: 1440px; }
.hd-stays { margin: 24px 0 30px; }
.hd-stays__heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.hd-stays__heading h2 { color: var(--primary, #1e3c72); margin: 0; font-size: clamp(21px, 2.4vw, 24px); font-weight: 800; letter-spacing: -.2px; }
.hd-stays__heading p { color: var(--ink3, #6b6b6b); margin: 3px 0 0; font-size: 13px; }
.hd-stays__note { color: var(--ink3, #6b6b6b); font-size: 12.5px; font-weight: 600; padding-bottom: 2px; }

/* auto-fit: quattro colonne da 1440, tre o due quando la sezione si stringe,
   e nessuna cella vuota quando l'hotel ha una o due offerte configurate. */
.hd-stays__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 12px; align-items: stretch; }

.hd-stays__card { display: flex; flex-direction: column; min-width: 0; border: 2px solid var(--accent, #f5a623); border-radius: var(--radius-md, 12px); padding: 11px 14px; color: #1a2235; background: var(--card-selected-bg, #fdf8f0); box-shadow: 0 2px 8px rgba(0,0,0,.04); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hd-stays__card:hover { color: #1a2235; border-color: var(--accent-hover, #e09000); box-shadow: 0 4px 14px rgba(0,0,0,.07); text-decoration: none; }
.hd-stays__card:focus-visible, .hd-stays__search:focus-visible { outline: 3px solid var(--primary, #1e3c72); outline-offset: 3px; }

.hd-stays__date-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
/* Stessa scala del nome camera nella card del post-ricerca. */
.hd-stays__dates { min-width: 0; margin: 0; font-size: 16px; font-weight: 700; color: #1a2235; letter-spacing: -.2px; }
.hd-stays__duration { flex-shrink: 0; white-space: nowrap; padding: .3em .6em; background: #fff7eb; color: var(--price-amber, #e08b1a); border: 1px solid rgba(245,166,35,.35); border-radius: 6px; font-size: 11px; font-weight: 700; }

/* Trattamento e prezzo sulla stessa riga: è questo che tiene bassa la card. */
.hd-stays__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.hd-stays__treatment { min-width: 0; margin: 0; font-size: 13px; font-weight: 600; color: var(--primary, #1e3c72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-stays__buy { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hd-stays__price { display: flex; align-items: baseline; gap: 4px; }
.hd-stays__price > span { font-size: 12.5px; color: var(--ink3, #6b6b6b); font-weight: 600; }
.hd-stays__price strong { font-size: 25px; font-weight: 800; color: var(--price-amber, #e08b1a); line-height: 1.05; letter-spacing: -.02em; }
.hd-stays__go { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--primary, #1e3c72); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* Quarta scheda: la ricerca date. Stessa forma, bordo tratteggiato. */
.hd-stays__search { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; text-align: left; font-family: inherit; cursor: pointer; border: 2px dashed var(--accent, #f5a623); border-radius: var(--radius-md, 12px); padding: 11px 14px; background: #f7faf0; background: color-mix(in srgb, var(--accent, #f5a623) 7%, #fff); transition: border-color .15s, box-shadow .15s; }
.hd-stays__search:hover { border-color: var(--accent-hover, #e09000); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
/* La colonna può scendere a ~285px: senza nowrap l'etichetta andava a capo
   e la tile cresceva, alzando tutte le card della riga. */
.hd-stays__search-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; font-weight: 700; color: var(--primary, #1e3c72); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-stays__search-label .bi { font-size: 17px; }
.hd-stays__search-btn { flex-shrink: 0; display: inline-flex; align-items: center; background: var(--primary, #1e3c72); color: #fff; border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 700; }

.hd-stays__loading { color: var(--ink3, #6b6b6b); font-size: 12px; margin: 14px 0 0; }

@media (max-width: 767.98px) {
    .hd-stays__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .hd-stays__price strong { font-size: 24px; }
    /* Il bottone della tile resta un bersaglio da 44px sul telefono. */
    .hd-stays__search { padding: 8px 8px 8px 13px; }
    .hd-stays__search-btn { min-height: 44px; padding: 0 18px; }
}

/* Reserve the section's compact height while the fragment loads, so the page
   below does not jump when the cards arrive. */
.hd-stays-wrap[aria-busy="true"] { min-height: 190px; }
