/* ==========================================================================
   UNIT SECTIONS — the styles of the two pieces a unit's details are drawn with, on any page
   that shows them: components/unit-summary.blade.php (title, facts, description, host) and
   components/unit-tabs.blade.php (Specification, Reviews, Location, Terms).

   The unit-detail page and the reservation detail in My account both load this file. What only
   the unit-detail page has (its layout, the photo mosaic, the booking sidebar, the bottom bar,
   the dates sheet, similar units, the full-screen phone layout) stays in pages/unit-detail.css,
   loaded after it.

   Load order: design.css → shared.css → this file → the page's own file
   ========================================================================== */

/* ── Title row ───────────────────────────────────────────────────────────── */
/* The name, share and heart stay on one line at every width this row is shown (576px and up): the
   name takes the space left and wraps onto further lines under itself, the buttons keep their size. */
.ud-title-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  flex-wrap: nowrap; margin-bottom: 10px;
}
.ud-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; line-height: 1.25; margin-bottom: 5px; }

.ud-actions { display: flex; gap: 8px; flex-shrink: 0; margin-top: 2px; }

/* Share button — same visual as btn-ico but with text on desktop */
.ud-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-secondary); border-radius: 50px;
  padding: 7px 14px; font-size: .88rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.ud-share-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Wishlist button (extends .card-wish for use outside gallery) */
.ud-wish-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-secondary); border-radius: 50px;
  padding: 7px 14px; font-size: .88rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.ud-wish-btn:hover,
.ud-wish-btn.active { border-color: #E23B3B; color: #E23B3B; }
.ud-mob-gal-btn.active { color: #E23B3B; }

/* Meta list: rating, location, suitable-for, promo — one list, every entry laid out the same way
   (an icon, then text), wrapping onto the next line as a whole entry, never mid-entry. */
.ud-meta-list {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0px 14px;
}
.ud-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; font-size: .97rem; color: var(--color-text-secondary);
}
.ud-meta-item > i, .ud-meta-item > .chip-icon { font-size: .8rem; }
.ud-meta-item > .chip-icon { color: var(--color-accent); }
/* The rating keeps its pill look as a modifier on the same entry. */
.ud-meta-item--rating {
  font-weight: 700; color: var(--color-text-primary);
}
.ud-meta-item--rating > .fa-star { font-size: .75rem; }
.ud-meta-item--rating .ud-rv-count { font-weight: 400; color: var(--color-text-secondary); }

/* ── Specs strip ─────────────────────────────────────────────────────────── */
.ud-specs {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden;
  margin-bottom: 24px; background: var(--color-surface);
  /* horizontal scroll on small screens */
  overflow-x: auto; scrollbar-width: none;
}
.ud-specs::-webkit-scrollbar { display: none; }

.ud-spec-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 14px 18px; min-width: 112px; flex: 1;
  gap: 4px; border-inline-end: 1px solid var(--color-border);
}
.ud-spec-item:last-child { border-inline-end: none; }

.ud-spec-ic { font-size: 1.1rem; color: var(--color-accent); margin-bottom: 2px; }
.ud-spec-val { font-size: 1.05rem; font-weight: 800; color: var(--color-text-primary); line-height: 1.1; }
.ud-spec-lbl { font-size: .82rem; color: var(--color-text-secondary); font-weight: 500; text-align: center; line-height: 1.25; }

/* ── Description ─────────────────────────────────────────────────────────── */
.ud-desc { margin-bottom: 28px; }
/* Cut to four lines by the shared read-more (.read-more-text); this is only its look. */
.ud-desc-text {
  font-size: 0.95rem; line-height: 1.45rem; color: var(--color-text-secondary);
  transition: all .3s;
}
.ud-desc-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; background: none; border: none;
  color: var(--color-primary); font-weight: 700; font-size: .92rem;
  cursor: pointer; padding: 0; text-decoration: underline;
  transition: color .15s;
}
.ud-desc-toggle:hover { color: var(--color-accent); }

/* ── Host inline row ─────────────────────────────────────────────────────── */
.ud-host {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 16px 20px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 16px; margin-bottom: 28px;
}
.ud-host-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--color-border); flex-shrink: 0; margin: 0 auto;
}
/* Who the host is and the phone, kept on one line together: the phone never drops on its own. */
.ud-host-who { display: flex; align-items: center; gap: 14px; flex: 1 1 180px; min-width: 0; }
.ud-host-info { flex: 1 1 auto; min-width: 0; }
.ud-host-name  { font-weight: 800; font-size: 1.05rem; }
.ud-host-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .78rem; color: var(--color-good); font-weight: 600; margin-top: 3px;
}
.ud-host-badge .fa-circle-check { font-size: .72rem; }
.ud-host-since { font-size: .8rem; color: var(--color-text-secondary); margin-top: 2px; }
/* Calling the host, when the page gives their phone (the reservation detail): a round button
   beside the rating. */
.ud-host-call {
  display: grid; place-items: center; flex-shrink: 0; margin-inline-start: auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-surface-2); color: var(--color-accent); text-decoration: none; transition: background .14s, color .14s;
}
.ud-host-call:hover, .ud-host-call:focus-visible { background: var(--color-accent); color: #fff; }

/* The rating, as a compact pill at the far end of the row; it drops under the name on phones. */
.ud-host-rating {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--color-surface-2); border-radius: 12px; padding: 9px 14px;
  font-size: .9rem; color: var(--color-text-secondary);
}
.ud-host-rating strong { font-size: 1.05rem; color: var(--color-text-primary); }
@media (max-width: 575.98px) {
  .ud-host-rating { flex: 1 1 100%; justify-content: center; }
}
/* Below 420px the name block and the phone move under the picture, still side by side. */
@media (max-width: 419.98px) {
  .ud-host-avatar { width: 44px; height: 44px; }
  .ud-host-name  { font-size: .9rem; }
  .ud-host-badge { font-size: .78rem; }
  .ud-host-rating { font-size: .8rem; }
}

/* ── Guarantee banner ────────────────────────────────────────────────────── */

.ud-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 576px) {
  .ud-guarantee-grid { grid-template-columns: repeat(4, 1fr); }
}
.ud-guarantee-card {
  border-radius: 14px; padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.ud-guarantee-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.ud-guarantee-card--green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.ud-guarantee-card--blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.ud-guarantee-card--orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.ud-guarantee-card--purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #ddd6fe; }

.ud-guarantee-ic {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.ud-guarantee-card--green  .ud-guarantee-ic { background: #16a34a; color: #fff; }
.ud-guarantee-card--blue   .ud-guarantee-ic { background: #2563eb; color: #fff; }
.ud-guarantee-card--orange .ud-guarantee-ic { background: var(--color-accent); color: #fff; }
.ud-guarantee-card--purple .ud-guarantee-ic { background: #7c3aed; color: #fff; }

.ud-guarantee-title { font-size: .9rem; font-weight: 700; color: var(--color-text-primary); line-height: 1.3; }
.ud-guarantee-sub   { font-size: .82rem; color: var(--color-text-secondary); line-height: 1.4; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.ud-tabs { margin-bottom: 32px; }

/* CSS sticky — glues to top of viewport just below the navbar. No JS needed.
   Works because the navbar itself is position:sticky on this page.            */
.ud-nav-tabs {
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  margin-bottom: 0;
}
.ud-tabs--sticky .ud-nav-tabs {
  position: sticky;
  top: var(--tnav-h, 64px);
  z-index: 100;
}
.ud-nav-tabs::-webkit-scrollbar { display: none; }

/* Show all / Hide all control */
.ud-spec-controls { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.ud-spec-show-all {
  background: none; border: 1px solid var(--color-border); border-radius: 50px;
  padding: 5px 14px; font-size: .82rem; font-weight: 700; cursor: pointer;
  color: var(--color-accent); font-family: inherit;
  transition: background .15s, border-color .15s;
}
.ud-spec-show-all:hover { background: rgba(233,90,44,.06); border-color: var(--color-accent); }

/* Specification tab — always single column, stacked sections */
.ud-spec-tab-grid { display: flex; flex-direction: column; gap: 12px; }

/* Each section: plain card, no colored border */
.ud-spec-tab-section:not(:last-child) {
  border-bottom: 1px solid var(--color-border); 
}

/* Per-section icon accent colors (headings only) */
.ud-spec-tab-section--beds    { --ud-sec-color: #3B82F6; }
.ud-spec-tab-section--living  { --ud-sec-color: #10B981; }
.ud-spec-tab-section--bath    { --ud-sec-color: #06B6D4; }
.ud-spec-tab-section--kitchen { --ud-sec-color: var(--color-accent); }
.ud-spec-tab-section--pool    { --ud-sec-color: #0EA5E9; }
.ud-spec-tab-section--amen    { --ud-sec-color: #8B5CF6; }

/* Section heading — the whole heading is Bootstrap's collapse button. Below 992px it opens and
   closes the section; from 992px every section is held open (below) and the button does nothing. */
.ud-spec-sec-head { margin: 0; font-size: 1rem; font-weight: 700; color: var(--color-text-primary); }
.ud-spec-sec-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 0; background: none; border: 0; font: inherit; color: inherit;
  text-align: start; cursor: pointer;
}
/* Icon takes the section's accent colour */
.ud-spec-sec-toggle > i:first-child {
  color: var(--ud-sec-color, var(--color-text-secondary));
  font-size: 1.2rem; flex-shrink: 0; width: 23px;
}
.ud-spec-sec-arrow {
  margin-inline-start: auto; flex-shrink: 0; font-size: .8rem;
  color: var(--color-text-secondary); transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.ud-spec-sec-toggle[aria-expanded="false"] .ud-spec-sec-arrow { transform: rotate(180deg); }
@media (max-width: 991.98px) {
  .ud-spec-tab-section { border-bottom: 0px !important; }
  .ud-spec-body { padding: 10px 27px; }
}
@media (min-width: 992px) {
  .ud-spec-collapse.collapse:not(.show) { display: block; }
  .ud-spec-sec-toggle { pointer-events: none; cursor: default; }
  .ud-spec-sec-arrow { display: none; }
}

/* Body (collapsible content) */
.ud-spec-body { padding-block: 10px; padding-inline-start: 32px; padding-inline-end: 10px; }

/* Colored chips for bathroom / kitchen / amenities sections */
.ud-spec-tab-section--bath    .ud-feat-chip { color: #06B6D4; border-color: #06B6D4; background: rgba(6,182,212,.07); }
.ud-spec-tab-section--bath    .ud-feat-chip i { color: #06B6D4; }
.ud-spec-tab-section--kitchen .ud-feat-chip { color: var(--color-accent); border-color: var(--color-accent); background: rgba(233,90,44,.07); }
.ud-spec-tab-section--kitchen .ud-feat-chip i { color: var(--color-accent); }
.ud-spec-tab-section--amen    .ud-feat-chip { color: #8B5CF6; border-color: #8B5CF6; background: rgba(139,92,246,.07); }
.ud-spec-tab-section--amen    .ud-feat-chip i { color: #8B5CF6; }

.ud-spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 2px;
  gap: 12px;
}
.ud-spec-row:last-child { border-bottom: none; }
.ud-spec-row-lbl { font-size: .95rem; color: var(--color-text-secondary); }
.ud-spec-row-val { font-size: .95rem; font-weight: 700; color: var(--color-text-primary); text-align: end; }

/* Amenities chip grid */

/* Feature list for spec sections (kitchen items, bathroom items, etc.) */

.ud-feat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; color: var(--color-text-primary);
  background: var(--color-surface-2); border-radius: 8px; padding: 6px 12px;
  font-weight: 500; text-transform: capitalize;
}
.ud-feat-chip i { color: var(--color-primary); font-size: .74rem; }

/* Spec deposit badge */
.ud-spec-deposit {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFF3CD; color: #9A7015; border-radius: 10px;
  padding: 10px 14px; font-size: .88rem; font-weight: 700; margin-bottom: 16px;
}

/* Reviews: overall score header */
.ud-rv-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.ud-rv-header-left  { display: flex; flex-direction: column; gap: 6px; }
.ud-rv-big-num      { font-size: 3.8rem; font-weight: 900; line-height: 1; color: var(--color-primary); }
.ud-rv-header-stars { color: #F0A63A; font-size: 1.05rem; display: flex; gap: 3px; }
.ud-rv-header-count { font-size: .92rem; color: var(--color-text-secondary); }
.ud-rv-header-badge {
  background: var(--color-accent); color: #fff;
  border-radius: 12px; padding: 10px 22px;
  font-size: 1rem; font-weight: 700; align-self: center; flex-shrink: 0;
}

/* Reviews: category rating bars */
.ud-rv-cats { display: flex; flex-direction: column; gap: 13px; margin-bottom: 8px; }
.ud-rv-cat-row { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.ud-rv-cat-lbl {
  font-size: .88rem; color: var(--color-text-secondary);
  text-align: end;
  /* fixed width so all bars are identical width */
  flex: 0 0 180px; max-width: 180px;
  line-height: 1.3;
}
.ud-rv-cat-bar {
  flex: 1; min-width: 80px; height: 7px; background: var(--color-surface-2); border-radius: 4px; overflow: hidden;
}
.ud-rv-cat-fill { height: 100%; background: var(--color-accent); border-radius: 4px; }
.ud-rv-cat-num {
  font-size: .92rem; font-weight: 700; color: var(--color-primary);
  flex-shrink: 0; min-width: 30px;
}
/* Below 480px: the label takes its own line; the bar and its count sit together underneath */
@media (max-width: 479.98px) {
  .ud-rv-cat-row { flex-wrap: wrap; row-gap: 6px; }
  .ud-rv-cat-lbl { flex: 1 0 100%; max-width: none; text-align: start; }
}
.ud-rv-divider { border: none; border-top: 1px solid var(--color-border); margin-block: 24px; }

/* Conditions / Policies tab */
/* Terms: three sections built the same way — a <section>, one title, then its content. */
.ud-terms-block + .ud-terms-block { margin-top: 24px; }
.ud-terms-section-title {
  font-size: 1rem; font-weight: 800; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--color-border);
}
.ud-terms-section-title > i:first-child { margin-inline-end: 4px; }
/* A title with a badge (the cancellation policy): the badge stays in the far corner, at its own
   size, and the title wraps beside it. */
.ud-terms-section-title--badge { display: flex; align-items: flex-start; gap: 10px; }
.ud-terms-section-title--badge > .ud-terms-title-text { flex: 1 1 auto; min-width: 0; }
.ud-terms-section-title--badge > .ud-policy-badge { flex-shrink: 0; margin-inline-start: auto; white-space: nowrap; }
.ud-terms-extra { font-size: .92rem; line-height: 1.7; color: var(--color-text-secondary); }
.ud-terms-rows { list-style: none; margin: 0; padding: 0; }

/* ── Reviews tab ─────────────────────────────────────────────────────────── */

.ud-rv-card {
  border: 1px solid var(--color-border); border-radius: 14px;
  padding: 18px; margin-bottom: 14px;
  background: var(--color-surface);
}
.ud-rv-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ud-rv-card-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ud-rv-card-meta  { flex: 1; min-width: 0; }
.ud-rv-card-name  { font-weight: 700; font-size: 1rem; }
.ud-rv-card-date  { font-size: .84rem; color: var(--color-text-secondary); margin-top: 2px; }
.ud-rv-card-stars { display: flex; gap: 3px; color: #F0A63A; font-size: .85rem; }
.ud-rv-card-text  { font-size: 1rem; color: var(--color-text-secondary); line-height: 1.7; }
.ud-rv-owner-reply {
  margin-top: 12px; padding: 12px 14px;
  background: var(--color-surface-2); border-radius: 10px;
  border-inline-start: 3px solid var(--color-accent);
}
.ud-rv-owner-reply p { font-size: .88rem; color: var(--color-text-secondary); margin: 0; line-height: 1.6; }
.ud-rv-owner-reply strong { font-size: .8rem; display: block; margin-bottom: 4px; color: var(--color-primary); }

.ud-rv-load-more {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: 6px;
  border: 1.5px solid var(--color-border); border-radius: 50px;
  padding: 10px 24px; font-weight: 700; font-size: .9rem;
  color: var(--color-text-primary); background: none; cursor: pointer; width: 100%;
  transition: border-color .15s, color .15s;
}
.ud-rv-load-more:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ── Map tab ─────────────────────────────────────────────────────────────── */
.ud-map-wrap {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-border);
  height: 400px; width: 100%;
}
.ud-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.ud-map-note {
  margin-top: 14px; display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--color-surface-2); border-radius: 10px;
  font-size: .88rem; color: var(--color-text-secondary); line-height: 1.1rem;
}

/* ── Terms tab ───────────────────────────────────────────────────────────── */

.ud-terms-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding-block: 14px; border-bottom: 1px solid var(--color-border);
}
.ud-terms-row:last-child { border-bottom: none; }
.ud-terms-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--color-accent); display: grid; place-items: center;
  font-size: .88rem; color: var(--color-surface);
}
.ud-terms-label { font-size: .9rem; color: var(--color-text-secondary); margin-bottom: 2px; }
.ud-terms-val   { font-size: .97rem; font-weight: 600; }

/* ── Bootstrap nav-tabs override — match custom .ud-nav-tabs design ─────── */
.ud-tabs .nav-tabs {
  border-bottom: 1px solid var(--color-border);
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  position: relative; z-index: 10; background: var(--color-surface);
}
.ud-tabs .nav-tabs::-webkit-scrollbar { display: none; }
.ud-tabs .nav-tabs .nav-link {
  flex-shrink: 0; padding: 14px 20px 16px;
  font-size: .95rem; font-weight: 600; color: var(--color-text-secondary);
  background: none; border: none; border-radius: 0; white-space: nowrap;
  position: relative; transition: color .15s;
}
.ud-tabs .nav-tabs .nav-link::after {
  content: ''; position: absolute; bottom: 2px; inset-inline: 0;
  height: 2px; background: var(--color-accent);
  transform: scaleX(0); transition: transform .2s ease;
}
.ud-tabs .nav-tabs .nav-link:hover { color: var(--color-accent); }
.ud-tabs .nav-tabs .nav-link.active {
  color: var(--color-accent); font-weight: 700; background: none;
  border: none;
}
.ud-tabs .nav-tabs .nav-link.active::after { transform: scaleX(1); }
.ud-tabs .tab-content { padding-top: 0; }
/* Each pane renders as a card directly below the tab bar */
.ud-tabs .tab-pane {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 28px 24px;
}

/* ── Guarantee banner — plain text, content column ──────────────────────── */
.ud-guarantee-banner {
  background: #FFE8E3; border-radius: 14px;
  overflow: hidden; margin-bottom: 8px;
}
.ud-guar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.ud-guar-icon {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #22C55E; font-size: 1.2rem; box-shadow: 0 2px 6px rgba(0,0,0,.09);
}
.ud-guar-title { font-weight: 800; color: #1a1a1a; flex: 1; min-width: 0; }

.ud-guar-sub  { color: #5a4040; line-height: 1.45; }

/* ── BNPL banner (Tabby + Tamara) — content column ──────────────────────── */
.ud-bnpl-banner {
  display: flex; align-items: center; gap: 16px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 20px;
}
.ud-bnpl-logos {
  display: flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 10px 14px; padding-inline-start: 0px; flex-shrink: 0;
}
.ud-bnpl-logos img { height: 20px; width: auto; }
.ud-bnpl-banner-text { font-size: .92rem; font-weight: 600; color: var(--color-text-primary); line-height: 1.45; }


/* Below 480px the tab buttons take less room. */
@media (max-width: 480px) {
  .ud-tabs .nav-tabs .nav-link { padding: 14px 10px 11px; }
}

/* ==========================================================================
   Unit code, heart buttons, choice badge, stars and gallery buttons
   ========================================================================== */

/* Unit code under the title. */
.ud-unit-code { color: var(--color-text-secondary); margin-top: 2px; margin-bottom: 14px; }

/* Heart buttons that show Http's loading spinner while a favourite request is in flight: the
   label (icon + text) becomes one flex item so the absolutely-positioned spinner can overlay it. */
.ud-wish-btn .btn-label { display: inline-flex; align-items: center; gap: 6px; }
.ud-mob-gal-btn.is-loading { position: relative; }
/* The spinner is red whether the heart is being filled or emptied, like the heart itself. */
.ud-wish .btn-spinner { color: #E23B3B; }

.ud-choice-badge {
  background: var(--color-surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 20px;
}
.ud-choice-badge strong { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ud-choice-badge p { margin: 0; color: var(--color-text-secondary); font-size: .92rem; line-height: 1.6; }

/* A star drawn filled in proportion to a percentage the server worked out (--fill). The grey
   star sits underneath; the gold one is clipped to the fill width from the reading-direction
   start, so it fills from the right in Arabic and from the left in English. */
.ud-star { position: relative; display: inline-block; line-height: 1; }
.ud-star > .fa-regular { color: #D4D8DD; }
.ud-star-fill {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: var(--fill, 0%); overflow: hidden; white-space: nowrap; color: #F0A63A;
}
.ud-rv-card-stars { align-items: center; gap: 6px; }
.ud-rv-card-stars .ud-rv-card-num { font-weight: 700; font-size: .9rem; color: var(--color-text-primary); }

/* The hidden attribute alone would lose to the button's own display rule. */
.ud-rv-load-more[hidden] { display: none !important; }

/* The card text keeps the reviewer's own line breaks. */
.ud-rv-card-text { white-space: pre-line; }

/* The map fills its wrapper; Google's script creates the child element. */
.ud-map-wrap > div { width: 100%; height: 100%; }

/* Check-mark on the plain specification chips. */
.ud-feat-chip .fa-check { font-size: .7rem; }

.ud-feat-chip .chip-icon { font-size: 1rem; }

/* ── Chip lists use the shared 3-row pill list; this sets how tall one chip row is ───────── */
.ud-pill-list { --pill-row-h: 36px; --pill-gap: 8px; margin-top: 8px; }

/* ── Pools: type as a title, then width and height each on their own line ────────────────── */
.ud-spec-pool + .ud-spec-pool { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--color-border); }
.ud-spec-pool-type { font-weight: 700; margin-bottom: 4px; color: var(--color-text-primary); }

/* ── Share menu ─────────────────────────────────────────────────────────────────────────── */
.ud-share-menu { min-width: 190px; border-radius: 12px; padding: 6px; border-color: var(--color-border); box-shadow: 0 10px 28px rgba(2,40,50,.14); }
.ud-share-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 9px 12px; font-weight: 600; }
.ud-share-menu .dropdown-item i { width: 18px; text-align: center; color: var(--color-text-secondary); }
.ud-share-menu .dropdown-item:hover,
.ud-share-menu .dropdown-item:focus,
.ud-share-menu .dropdown-item:focus-visible,
.ud-share-menu .dropdown-item:active { background: var(--color-accent); color: #fff; }
.ud-share-menu .dropdown-item:hover i,
.ud-share-menu .dropdown-item:focus i,
.ud-share-menu .dropdown-item:focus-visible i,
.ud-share-menu .dropdown-item:active i { color: #fff; }
.ud-mob-gal-end .dropdown { position: relative; }

/* ── Cancellation policies: one colour set each; the badge, the guarantee card and the icon all
      read these. Background and border change per policy; the icon is chosen by the server. ── */
.ud-policy--free     { --pol-bg: #ede9fe; --pol-border: #ddd6fe; --pol-fg: #7c3aed; }
.ud-policy--flexible { --pol-bg: #E3F6F8; --pol-border: #6CC4CF; --pol-fg: #0F6F7A; }
.ud-policy--moderate { --pol-bg: #F8F7C7; --pol-border: #F0C36B; --pol-fg: #ac7d0d; }
.ud-policy--strict   { --pol-bg: #FDE9E9; --pol-border: #E88A8A; --pol-fg: #B42323; }
.ud-policy-badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  margin-inline-start: 10px;
  background: var(--pol-bg); color: var(--pol-fg); border: 1px solid var(--pol-border);
  border-radius: 100px; padding: 3px 12px; font-size: .8rem; font-weight: 700; line-height: 1.5;
}


/* ── Below 480px: the payment banner's two logos stack ──────────────────────────────────── */
@media (max-width: 480px) {
  .ud-bnpl-banner { gap: 10px; }
  .ud-bnpl-logos { flex-direction: column; }
}

