/* Rental Extras — guest portal design system
   Clean, modern, minimal. One consistent look across every host. */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #18181b;
  --color-text-muted: #71717a;
  --color-text-faint: #a1a1aa;
  --color-border: #e4e4e7;
  --color-border-strong: #d4d4d8;
  --color-accent: #18181b;
  --color-accent-hover: #27272a;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info-bg: #f4f4f5;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

/* --- Top bar --- */
.topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand i { font-size: 1.1rem; }
a.brand:hover { opacity: 0.75; }

.brand-row { display: flex; align-items: center; gap: 14px; min-width: 0; }

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--color-border-strong);
}

/* Wide wordmarks (Proper Rents is ~7:1) need the width to stay legible. */
.host-logo {
  display: block;
  height: 34px;
  max-width: 240px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .brand-row { gap: 10px; }
  .host-logo { height: 26px; max-width: 120px; }
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* --- Language toggle (EN / ES) --- */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-toggle a {
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.lang-toggle a.active { background: var(--color-accent); color: #fff; }
.lang-toggle a:not(.active):hover { background: var(--color-info-bg); color: var(--color-text); }

/* --- Page shell --- */
.page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 36px 20px 64px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--color-accent-hover); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--color-info-bg); }

.btn-success {
  background: var(--color-success);
  color: #fff;
}
.btn-success:hover:not(:disabled) { background: #15803d; }

.btn-danger-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
  padding: 8px 12px;
}
.btn-danger-ghost:hover:not(:disabled) { background: var(--color-danger-bg); color: var(--color-danger); border-color: #fecaca; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-pad { padding: 24px; }

/* --- Alerts / messages --- */
.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-error, .alert-danger { background: var(--color-danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-success { background: var(--color-success-bg); color: #166534; border-color: #bbf7d0; }
.alert-info { background: var(--color-info-bg); color: var(--color-text); border-color: var(--color-border); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-close {
  background: none; border: none; cursor: pointer; font-size: 1.1rem;
  line-height: 1; color: inherit; opacity: 0.5; padding: 0;
}
.alert-close:hover { opacity: 1; }

/* --- Verify form --- */
.auth-shell {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-info-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--color-text);
}
.field-hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}
input[readonly] { background: var(--color-info-bg); color: var(--color-text-muted); }
input.otp-input {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 600;
}

/* --- Greeting row --- */
.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.greeting {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.guest-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-info-bg);
  flex-shrink: 0;
}

/* --- Reservation card (hero photo + details) --- */
.res-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
/* Kept short so the extras start close to the top of the screen. */
.res-hero {
  position: relative;
  height: 170px;
  background: var(--color-info-bg);
}
.res-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.res-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
  color: #fff;
}
.res-hero-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.res-hero-address {
  font-size: 0.85rem;
  opacity: 0.92;
  line-height: 1.45;
}
.res-hero-address a { color: #fff; text-decoration: none; }
.res-hero-address a:hover { text-decoration: underline; }

.res-body { padding: 20px; }

.res-code {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.res-code a { color: var(--color-text); font-weight: 600; text-decoration: underline; }
.res-code strong { color: var(--color-text); font-weight: 600; }

/* Which site the stay was booked on, in each brand's own colour. */
.platform-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: 1px;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.5;
}
.platform-airbnb  { background: #ff385c; }
.platform-vrbo    { background: #1e3a8a; }
.platform-booking { background: #003580; }

.res-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.res-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--color-text);
}
.res-stat i { color: var(--color-text-muted); font-size: 1rem; }

.res-dates {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.res-date-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}
.res-date-value { font-size: 0.92rem; font-weight: 600; }
.res-date-time { font-size: 0.82rem; color: var(--color-text-muted); font-weight: 400; }

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-badge {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
/* display:inline-flex would otherwise beat the hidden attribute. */
.cart-badge[hidden] { display: none; }

/* --- Product groups / grid --- */
.group-title {
  font-size: 1.05rem;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-title:first-of-type { margin-top: 0; }
.group-title-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-info-bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.product-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-info-bg);
  display: block;
}
.product-card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 6px; }
/* Four lines on every card, so a row of cards reads evenly. Anything
   longer is cut here and continues on the product's own page.
   It must not flex-grow: a grid stretches every card to the tallest, and a
   grown box renders past the clamp, slicing the overflowing line through
   the middle. .product-footer's margin-top:auto already pins the price and
   button to the bottom. */
.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-more:hover { color: var(--color-text-muted); }
.product-more[hidden] { display: none; }
/* Price row above a full-width button, as the legacy site had it. Side by
   side, a discounted price plus its badge overflows a grid-width card. */
.product-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
}
.product-price { font-weight: 700; font-size: 1.05rem; }

/* --- Discounted pricing (stay extensions) --- */
.product-pricing { display: flex; align-items: center; gap: 10px; }

.product-pricing.is-discounted { gap: 9px; }

.price-was {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-faint);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-now {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-danger);
  letter-spacing: -0.02em;
}

/* Starburst badge, matching the legacy site's call to attention. */
.price-badge {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  clip-path: polygon(
    50% 0%, 61% 11%, 76% 6%, 81% 21%, 96% 25%, 93% 41%, 104% 50%,
    93% 59%, 96% 75%, 81% 79%, 76% 94%, 61% 89%, 50% 100%, 39% 89%,
    24% 94%, 19% 79%, 4% 75%, 7% 59%, -4% 50%, 7% 41%, 4% 25%,
    19% 21%, 24% 6%, 39% 11%
  );
}

@media (max-width: 420px) {
  .price-badge { width: 46px; height: 46px; font-size: 0.62rem; }
  .price-now { font-size: 1.12rem; }
}

/* --- Cart --- */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}
.cart-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 1.2rem;
}
.cart-item-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
/* Extension line: was / now / percent off, under the item name. */
.cart-item-deal { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; flex-wrap: wrap; }
.deal-was { color: var(--color-text-faint); text-decoration: line-through; font-weight: 600; }
.deal-now { color: var(--color-danger); font-weight: 700; }
.deal-off {
  background: var(--color-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item-right { width: 100%; justify-content: flex-end; }
}
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-qty { font-size: 0.82rem; color: var(--color-text-muted); }
.cart-item-right { display: flex; align-items: center; gap: 18px; }
.cart-item-price { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.cart-summary-label { color: var(--color-text-muted); font-size: 0.9rem; }
.cart-summary-total { font-size: 1.3rem; font-weight: 700; }

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-actions-pay { display: flex; gap: 10px; flex-wrap: wrap; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
.empty-state i { font-size: 2rem; display: block; margin-bottom: 12px; color: var(--color-text-faint); }

/* --- Success page --- */
.result-shell { display: flex; justify-content: center; padding-top: 40px; }
.result-card { width: 100%; max-width: 460px; text-align: center; padding: 48px 32px; }
.result-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.result-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.result-card .order-ref { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.result-summary {
  background: var(--color-info-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 0.9rem;
  text-align: left;
}
.result-summary strong { display: block; margin-bottom: 4px; }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .page { padding: 24px 16px 48px; }
  .res-hero { height: 130px; }
  .res-dates { gap: 20px; }
  .res-stats { gap: 16px; }
  .greeting { font-size: 1.15rem; }
  .cart-actions { flex-direction: column; align-items: stretch; }
  .cart-actions > a.btn { width: 100%; }
  .cart-actions-pay { width: 100%; }
  .cart-actions-pay .btn { flex: 1; }
  .cart-item { flex-wrap: wrap; }
}

/* --- Product detail page --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.back-link:hover { color: var(--color-text); }

.detail-card { max-width: 760px; margin: 0 auto; overflow: hidden; }

.detail-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  background: var(--color-info-bg);
}

.detail-body { padding: 28px; }

.detail-group {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 8px;
}

.detail-name {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.detail-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.detail-desc p { margin: 0 0 12px; }
.detail-desc p:last-child { margin-bottom: 0; }

.detail-price { font-size: 1.4rem; }

.detail-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 560px) {
  .detail-body { padding: 20px; }
  .detail-name { font-size: 1.3rem; }
  .detail-buy { flex-direction: column; align-items: stretch; }
  .detail-buy .btn { width: 100%; }
}

/* --- Cart notices (e.g. an extension replaced by a whole day) --- */
.cart-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  width: min(560px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #18181b;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.cart-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* hidden must win over the grid/card display rules */
.product-card[hidden], .product-grid[hidden] { display: none; }

/* --- Staff sign-in --- */
.staff-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 3px 10px;
}
/* Word-style sign-in code: roomy and centred, but not letter-spaced like a
   digit box — the words should stay readable. */
.word-code {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.word-code::placeholder { font-weight: 400; color: var(--color-text-faint); }

.host-choices { display: flex; flex-direction: column; gap: 8px; }
.host-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}
.host-choice:hover { background: var(--color-info-bg); }
.host-choice:has(input:checked) { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(24,24,27,0.08); }

/* --- Nothing left to offer ------------------------------------------- */
.portal-empty {
  text-align: center;
  padding: 48px 24px;
  max-width: 520px;
  margin: 8px auto 0;
}
.portal-empty-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--color-info-bg);
  color: var(--color-text-muted);
}
.portal-empty-icon.is-done { background: var(--color-success-bg); color: var(--color-success); }
.portal-empty h3 { font-size: 1.1rem; margin-bottom: 8px; }
.portal-empty p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
}
.portal-empty[hidden] { display: none; }

/* --- What an extension means for these dates ------------------------- */
/* Coloured text, not a pill: the line often wraps, and a rounded box
   around two wrapped lines looks broken. Teal by default, amber when the
   extension stretches a weekend. Kept clear of the red used for discounts
   so a date never reads as a price. */
.product-when {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f766e;
  margin-bottom: 10px;
}
.product-when i { font-size: 0.85rem; margin-right: 5px; opacity: 0.85; }
.product-when.is-weekend { color: #b45309; }
.when-tag {
  display: inline-block;
  margin-left: 6px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: 1px;
}
.detail-body .product-when { margin: -6px 0 16px; font-size: 0.92rem; }
a:hover .host-logo { opacity: 0.8; }

/* --- Field tooltips --------------------------------------------------- */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font: 600 0.68rem/1 var(--font-sans);
  cursor: help;
  position: relative;
  vertical-align: 1px;
}
.tip:hover, .tip:focus-visible, .tip.is-open {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  outline: none;
}

/* The bubble itself */
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: #18181b;
  color: #fff;
  font: 500 0.78rem/1.45 var(--font-sans);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 60;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
/* Little arrow under the bubble */
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #18181b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 60;
}
.tip:hover::after, .tip:focus-visible::after, .tip.is-open::after,
.tip:hover::before, .tip:focus-visible::before, .tip.is-open::before {
  opacity: 1;
  visibility: visible;
}

/* Cart totals, with tax shown either added or included */
.cart-summary { flex-direction: column; align-items: stretch; gap: 6px; }
.cart-summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cart-summary-final { padding-top: 6px; }
.cart-summary-note { text-align: right; font-size: 0.82rem; opacity: 0.75; }

/* The resort's arrival pass, for the guest */
.arrival {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin: 18px 0 24px; padding: 18px 20px;
  border-radius: 16px; border: 1px solid #fde68a; background: #fffbeb;
}
.arrival-text { flex: 1; min-width: 200px; }
.arrival-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: #92400e; }
.arrival-code {
  font-size: 2rem; font-weight: 700; letter-spacing: 0.22em; color: #92400e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.arrival-note { margin: 8px 0 0; font-size: 0.9rem; color: #92400e; }
.arrival-expires { font-size: 0.82rem; opacity: 0.85; }
.arrival-img { width: 190px; border-radius: 12px; display: block;
  border: 1px solid #fde68a; background: #fff; }
.arrival-img-link:hover .arrival-img { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
@media (max-width: 560px) { .arrival-img { width: 100%; } }

/* Documents a guest is given to read */
.docs { margin: 10px 0 26px; }
.docs-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 10px; }
.docs-list { display: flex; flex-wrap: wrap; gap: 10px; }
.doc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text);
}
.doc:hover { border-color: var(--color-accent); }
.doc i { color: #b91c1c; font-size: 1.05rem; }

/* A host's own address: their mark leads, ours follows in smaller type. */
.host-logo-lead { max-height: 40px; }
.brand-second { font-size: 0.95rem; font-weight: 600; opacity: 0.75; }
.brand-second:hover { opacity: 1; }
