/* ── Mikkado Host Pages ── */

/* ─── Reset & base ─── */
.host-page { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); min-height: 100vh; }

/* ─── Minimal header ─── */
.host-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.host-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.host-header-logo img { width: 28px; height: 28px; }
.host-header-logo span { font-size: 18px; font-weight: 800; color: var(--coral); letter-spacing: -0.5px; }

.host-header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
}
.host-header-link:hover { color: var(--dark); }

/* ─── Content wrapper ─── */
.host-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ─── Landing ─── */
.host-landing-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.host-landing-logo img { width: 56px; height: 56px; }

.host-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 12px;
}
.host-subtitle {
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ─── Buttons ─── */
.btn-host-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border-radius: 32px;
  background: var(--turquoise);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 12px;
}
.btn-host-primary:hover { background: #0A9A9F; }

.btn-host-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  border-radius: 32px;
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid var(--dark);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 12px;
}
.btn-host-outline:hover { background: var(--gray-light); }

.btn-host-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 32px;
  background: transparent;
  color: var(--gray);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--gray-light);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  gap: 10px;
}
.btn-host-ghost:hover { background: var(--gray-light); }

.host-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.host-divider::before, .host-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}
.host-divider span { font-size: 12px; color: var(--gray); white-space: nowrap; }

/* ─── Interstitial (role confirmation) ─── */
.host-interstitial {
  max-width: 440px;
  margin: 24px auto 0;
  padding: 48px 32px 40px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.host-interstitial-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.host-interstitial-badge img { width: 40px; height: 40px; }
.host-interstitial .host-page-title { margin-bottom: 12px; }
.host-interstitial .btn-host-primary { margin-bottom: 0; }

.host-link-row {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray);
}
.host-link-row a { color: var(--turquoise); text-decoration: none; font-weight: 600; }
.host-link-row a:hover { text-decoration: underline; }

/* ─── Form styles ─── */
.host-form-section {
  margin-bottom: 28px;
}
.host-form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.host-field {
  margin-bottom: 14px;
}
.host-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.host-label .req { color: var(--coral); margin-left: 2px; }

.host-input,
.host-textarea,
.host-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.host-input:focus,
.host-textarea:focus,
.host-select:focus { border-color: var(--turquoise); }
.host-input::placeholder,
.host-textarea::placeholder { color: var(--gray); }

.host-textarea { resize: vertical; min-height: 100px; }

.host-char-count {
  font-size: 11px;
  color: var(--gray);
  text-align: right;
  margin-top: 4px;
}

.host-geo-autocomplete { position: relative; width: 100%; }
.host-geo-autocomplete .geoapify-autocomplete-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
.host-geo-autocomplete .geoapify-autocomplete-input:focus { border-color: var(--turquoise); }
.host-geo-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-input);
  overflow: hidden;
  margin-top: 10px;
  border: 1.5px solid var(--gray-light);
}

.host-select-wrap { position: relative; }
.host-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gray);
  pointer-events: none;
}

/* ─── Checkboxes ─── */
.host-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.host-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.host-checkbox-label input { display: none; }
.host-checkbox-label.checked {
  border-color: var(--turquoise);
  background: rgba(12,172,177,0.10);
  color: #0A9A9F;
  font-weight: 600;
}

/* A real, visible square checkbox + separate label text — distinct from
   .host-checkbox-label above (a pill-style button with a hidden native
   input), for single standalone toggles like "I can travel" where a
   button-sized clickable box would overstate what's just one option.
   Same 16px/accent-color pattern as .seg-dropdown-checkbox on the
   homepage's age-filter dropdown (assets/style.css). */
.host-checkbox-real {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  user-select: none;
}
.host-checkbox-real input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--turquoise);
  cursor: pointer;
}

.host-location-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.host-location-heading-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.host-location-heading-optional {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}
.host-location-subtext {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

/* ─── Photo upload ─── */
.host-photo-upload {
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-input);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.host-photo-upload:hover { border-color: var(--turquoise); }
.host-photo-upload input { display: none; }
.host-photo-upload-icon { font-size: 28px; margin-bottom: 8px; }
.host-photo-upload-text { font-size: 13px; color: var(--gray); }
.host-photo-upload-text strong { color: var(--turquoise); }

.host-photo-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.host-photo-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

/* ─── Login ─── */
.host-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.host-page-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── Claim search ─── */
.host-search-wrap {
  position: relative;
  margin-bottom: 16px;
}
.host-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}
.host-search-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
}
.host-search-input:focus { border-color: var(--turquoise); }

.host-result-list { display: flex; flex-direction: column; gap: 8px; }
.host-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s;
}
.host-result-card:hover { border-color: var(--turquoise); }
.host-result-card.selected { border-color: var(--turquoise); background: rgba(12,172,177,0.08); }
.host-result-emoji { font-size: 24px; flex-shrink: 0; }
.host-result-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.host-result-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ─── Selected listing badge ─── */
.host-selected-listing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(12,172,177,0.08);
  border: 1.5px solid var(--turquoise);
  margin-bottom: 24px;
}
.host-selected-listing-info { flex: 1; }
.host-selected-listing-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.host-selected-listing-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }
.host-selected-change {
  font-size: 12px;
  font-weight: 600;
  color: var(--turquoise);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ─── Pending page ─── */
.host-pending-icon { font-size: 56px; text-align: center; margin-bottom: 20px; }
.host-pending-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}
.host-pending-text {
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ─── Dashboard ─── */
.host-dashboard-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
}
.host-dashboard-status.verified { background: #E6F4EA; color: #2E7D32; }
.host-dashboard-status.pending  { background: #FFF8E1; color: #F57F17; }

.host-placeholder-section {
  padding: 28px 20px;
  background: rgba(12,172,177,0.08);
  border: 1.5px solid var(--turquoise);
  border-radius: 12px;
  text-align: center;
}
.host-placeholder-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.host-placeholder-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.host-placeholder-subtitle {
  font-size: 13px;
  color: var(--gray);
}

/* ─── Error / success messages ─── */
.host-error {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
  /* .host-header is position: sticky, height 64px — without this,
     scrollIntoView({block:'start'}) lands the banner exactly under it. */
  scroll-margin-top: 84px;
}
.host-error.visible { display: block; }

/* ─── Claim owner banner ─── */
.host-owner-banner {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  text-align: center;
}
.host-owner-banner p { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.host-owner-banner a {
  font-size: 13px;
  font-weight: 600;
  color: var(--turquoise);
  text-decoration: none;
}
.host-owner-banner a:hover { text-decoration: underline; }

/* ─── Loading spinner ─── */
.host-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .host-content { padding: 56px 20px 80px; }
  .host-title { font-size: 30px; }
}

/* ─── Cover photo upload ─── */
.host-cover-upload {
  position: relative;
  aspect-ratio: 4/3;
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-input);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  flex-direction: column;
  gap: 8px;
}
.host-cover-upload:hover { border-color: var(--turquoise); }
.host-cover-upload input { display: none; }
.host-cover-preview-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.host-cover-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.host-cover-upload:hover .host-cover-preview-overlay { opacity: 1; }

/* ─── Additional photos grid ─── */
.host-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.host-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}
.host-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.host-photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}
.host-photo-add {
  aspect-ratio: 1;
  border: 2px dashed var(--gray-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
  background: var(--bg);
}
.host-photo-add:hover { border-color: var(--turquoise); }
.host-photo-add input { display: none; }
.host-photo-add-icon { font-size: 28px; color: var(--gray); font-weight: 300; line-height: 1; }

/* ─── Form helpers ─── */
.host-field-hint { font-size: 11px; color: var(--gray); margin-top: 4px; }
.host-form-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
}

/* ─── Status cards ─── */
.host-status-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid;
  margin-bottom: 28px;
}
.host-status-card.pending {
  background: rgba(250,192,45,0.08);
  border-color: #FAC02D;
  color: #7A5500;
}
.host-status-card.verified {
  background: rgba(52,168,83,0.08);
  border-color: #34A853;
  color: #1B5E20;
}
.host-status-card-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.host-status-card-subtitle { font-size: 13px; opacity: 0.85; }

/* ─── Danger zone ─── */
.host-danger-zone {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  text-align: center;
}
.btn-host-danger {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #DC2626;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.btn-host-danger:hover { color: #B91C1C; }

/* ─── Save success ─── */
.host-success {
  background: rgba(52,168,83,0.10);
  border: 1px solid #34A853;
  color: #1B5E20;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ─── View listing button (outline turquoise) ─── */
.btn-host-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--turquoise);
  background: none;
  border: 1.5px solid var(--turquoise);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 10px;
}
.btn-host-view:hover { background: rgba(12,172,177,0.08); }
