/**
 * "Enhance your stay" booking-box section + explainer modal.
 * Styled to the gnarlyhost.com brand system (Space Grotesk / Inter, the
 * cyan→purple→magenta gradient, lavender accents, 18px radius).
 *
 * File: assets/css/hostapi-checkin-addons.css
 */

.hostapi-addons {
  --gh-grad: linear-gradient(135deg, #1EC3FA 0%, #B43DC5 50%, #DD00FF 100%);
  --gh-purple: #B43DC5;
  --gh-lav: #D7B8F1;
  --gh-lav-bg: #E9D9F8;
  --gh-ink: #3C4145;
  --gh-ink-soft: #5d6469;
  margin: 18px 0 6px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(130, 0, 255, .12);
  border-radius: 18px;
  background: #FBF7FE;
  box-shadow: 0 8px 24px rgba(130, 0, 255, .06);
}

.hostapi-addons-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #241a2b;
  margin-bottom: 12px;
}

.hostapi-addons-info-trigger {
  appearance: none;
  background: var(--gh-lav-bg);
  color: var(--gh-purple);
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease;
}
.hostapi-addons-info-trigger:hover { filter: brightness(.96); }

.hostapi-addons-list { display: flex; flex-direction: column; gap: 4px; }

.hostapi-addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--gh-ink);
  cursor: pointer;
  border-bottom: 1px solid rgba(60, 65, 69, .07);
}
.hostapi-addon-item:last-child { border-bottom: 0; }
.hostapi-addon-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gh-purple);
  flex-shrink: 0; cursor: pointer;
}
.hostapi-addon-label { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.hostapi-addon-label small { color: var(--gh-ink-soft); font-size: 12px; margin-top: 2px; }
.hostapi-addon-price { font-weight: 600; white-space: nowrap; }
.hostapi-addon-price small { color: var(--gh-ink-soft); font-weight: 400; }

.hostapi-addon-qty-wrap {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gh-ink-soft); font-size: 13px;
}
.hostapi-addon-qty {
  width: 52px; padding: 5px 7px;
  border: 1px solid var(--gh-lav);
  border-radius: 9px; font: inherit; font-size: 13px; text-align: center;
}
.hostapi-addon-qty:disabled { opacity: .45; }

.hostapi-addons-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(130, 0, 255, .22);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600; font-size: 14px; color: #241a2b;
}

.hostapi-addons-note {
  margin: 10px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px; line-height: 1.55; color: var(--gh-ink-soft);
}

.hostapi-addons-poweredby {
  display: inline-block; margin-top: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px; color: #9aa0a8; text-decoration: none;
}
.hostapi-addons-poweredby strong {
  background: var(--gh-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}
.hostapi-addons-poweredby:hover { text-decoration: underline; }

/* ---------------------------------------------------------- Explainer modal */

.hostapi-addons-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hostapi-addons-modal[hidden] { display: none; }
.hostapi-addons-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(36, 20, 44, .55); backdrop-filter: blur(2px);
}
.hostapi-addons-modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 18px 50px rgba(130, 0, 255, .25);
  font-family: 'Inter', system-ui, sans-serif;
}
.hostapi-addons-modal__close {
  position: absolute; top: 12px; right: 14px;
  appearance: none; background: none; border: 0;
  font-size: 26px; line-height: 1; color: #9aa0a8; cursor: pointer;
}
.hostapi-addons-modal__close:hover { color: var(--gh-purple, #B43DC5); }
.hostapi-addons-modal__title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 19px; font-weight: 600; color: #241a2b;
  margin: 0 28px 14px 0; line-height: 1.2;
}
.hostapi-addons-modal__list { margin: 0; padding: 0; list-style: none; }
.hostapi-addons-modal__list li {
  position: relative; padding: 0 0 12px 26px;
  font-size: 13.5px; line-height: 1.55; color: #3C4145;
}
.hostapi-addons-modal__list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, #1EC3FA 0%, #B43DC5 50%, #DD00FF 100%);
}
.hostapi-addons-modal__list li strong { color: #241a2b; }
.hostapi-addons-modal__brand {
  display: inline-block; margin-top: 8px;
  font-size: 11.5px; color: #9aa0a8; text-decoration: none;
}
.hostapi-addons-modal__brand:hover { text-decoration: underline; }

body.hostapi-addons-modal-open { overflow: hidden; }
