/**
 * StayWorld hosted pages -shared brand stylesheet
 * Used by Firebase Hosting static pages (not listing share).
 */
@import url('/assets/stayworld-wordmark.css');

:root {
  --sw-primary: #FF6B35;
  --sw-primary-dark: #E35A26;
  --sw-secondary: #1A2634;
  --sw-navy: #0D1B2A;
  --sw-world: #1A2634;
  --sw-accent: #3B82F6;
  --sw-success: #059669;
  --sw-danger: #DC2626;
  --sw-bg: #F4F7FB;
  --sw-surface: #FFFFFF;
  --sw-text: #0F172A;
  --sw-text-muted: #475569;
  --sw-border: #E2E8F0;
  --sw-radius: 14px;
  --sw-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --sw-logo: url('/assets/hosting/LOGO.png');
  --sw-hosted-content-max: 820px;
  --sw-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--sw-font-sans);
  background: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  font-size: 11pt;
}
a { color: var(--sw-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Branded wordmark -see stayworld-wordmark.css */
.platform-slogan {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sw-text-muted);
  letter-spacing: 0.01em;
}
.page-banner .platform-slogan {
  color: rgba(255,255,255,0.95);
}
.header-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin: 4px 0 0 0;
  max-width: 520px;
  line-height: 1.5;
}
.footer-slogan {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.footer-wordmark { margin-bottom: 6px; }
.footer-wordmark .sw-brand-wordmark { font-size: 1.5rem; font-weight: 700; }

/* Hero band -photo layer, dark scrim, then text (photo never paints over copy) */
.page-banner {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  min-height: 220px;
  max-height: min(48vh, 340px);
  overflow: hidden;
  background-color: var(--sw-navy);
  color: #fff;
}
.page-banner .page-banner-title,
.page-banner .page-banner-sub,
.page-banner .platform-slogan,
.page-banner .header-tagline {
  color: #fff !important;
}
.page-banner .sw-brand-stayworld {
  color: #3b82f6 !important;
}
.page-banner .sw-brand-bookings {
  color: #cbd5e1 !important;
}
.page-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--sw-navy);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;
  pointer-events: none;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Light scrim behind text (left); minimal tint on the right so the photo stays visible */
  background:
    linear-gradient(
      100deg,
      rgba(13, 27, 42, 0.58) 0%,
      rgba(13, 27, 42, 0.42) 38%,
      rgba(13, 27, 42, 0.18) 58%,
      rgba(13, 27, 42, 0.08) 78%,
      rgba(13, 27, 42, 0.22) 100%
    ),
    linear-gradient(to bottom, rgba(13, 27, 42, 0.04) 0%, rgba(13, 27, 42, 0.28) 100%);
}
.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: min(1100px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 28px) 28px;
  box-sizing: border-box;
}
.page-banner-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 100%;
}
.page-banner-brand-lockup {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.page-banner-brand-lockup:hover {
  text-decoration: none;
  color: inherit;
}
.page-banner-brand-lockup .sw-brand-wordmark {
  display: inline-flex;
  flex-wrap: nowrap;
  margin-bottom: 0;
  max-width: 100%;
  min-width: 0;
}
.page-banner-brand-text {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.page-banner-brand .platform-slogan {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 600;
}
.page-banner-brand .header-tagline {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.5;
}
.page-banner-page {
  padding-top: 0;
  width: 100%;
  text-align: center;
}
.page-banner-title {
  margin: 16px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  max-width: 640px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.page-banner-sub {
  margin: 0;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page-banner-brand-text,
.page-banner-page {
  position: relative;
  z-index: 1;
}
.page-banner .platform-slogan,
.page-banner .header-tagline {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Fixed home control -visible on every hosted screen */
.sw-home-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.88);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.35);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.sw-home-fab:hover {
  background: var(--sw-primary);
  border-color: var(--sw-primary);
  text-decoration: none;
  transform: scale(1.04);
}
.sw-home-fab svg { display: block; }

.page-main {
  flex: 1;
  width: 100%;
  max-width: min(var(--sw-hosted-content-max), 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 24px) 40px;
  box-sizing: border-box;
}
.page-main--with-sidebar { max-width: min(980px, 100%); }
.page-main--wide { max-width: min(var(--sw-hosted-content-max), 100%); }
.page-main--booking { max-width: min(980px, 100%); }

/* Long-form policy / legal article column (matches cancellation-policy .doc) */
.doc {
  max-width: var(--sw-hosted-content-max);
  margin: 0 auto;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}
.page-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .page-grid--split { grid-template-columns: 1fr 320px; align-items: start; }
}

.card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  padding: clamp(20px, 4vw, 28px) clamp(16px, 4vw, 24px);
  margin-bottom: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card h1 { margin: 0 0 8px; font-size: 1.8rem; font-weight: 700; }
.card h2 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 700; }
.card .lead, .card p.help { margin: 0 0 18px; color: var(--sw-text-muted); font-size: 1.1rem; font-weight: 400; }

.status-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 2.5rem; font-weight: 700;
}
.status-icon--success { background: #ecfdf5; color: var(--sw-success); }
.status-icon--error { background: #fef2f2; color: var(--sw-danger); }
.status-icon--warn { background: #fffbeb; color: #d97706; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px; border: none;
  font-weight: 600; font-size: 1.15rem; cursor: pointer;
  text-decoration: none; transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--sw-primary); color: #fff; }
.btn-secondary { background: var(--sw-secondary); color: #fff; }
.btn-danger { background: var(--sw-danger); color: #fff; }
.btn-outline { background: #fff; color: var(--sw-text); border: 1px solid var(--sw-border); }
.btn-block { width: 100%; }
.text-center { text-align: center; }

label.f, .form-group label {
  display: block; font-weight: 600; font-size: 1.05rem;
  margin-bottom: 6px; color: var(--sw-text);
}
input.t, select.t, textarea.t,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 12px; font-size: 1.1rem; font-weight: 400; color: var(--sw-text);
  border: 1px solid var(--sw-border); border-radius: 10px;
  background: #f8fafc; transition: border-color 0.15s, background 0.15s;
  min-height: 46px;
}
input.t:focus, select.t:focus, textarea.t:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--sw-accent); background: #fff;
}
textarea.t, .form-group textarea { min-height: 140px; resize: vertical; }
.field, .form-group { margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

.alert { padding: 14px 16px; border-radius: 10px; font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-ok { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.hint { font-size: 1rem; font-weight: 400; color: var(--sw-text-muted); margin-top: 4px; }

.tabs { display: flex; gap: 0; margin-bottom: 0; border-radius: var(--sw-radius) var(--sw-radius) 0 0; overflow: hidden; }
.tabs button {
  flex: 1; padding: 12px; border: none; background: #e2e8f0;
  font-weight: 600; cursor: pointer; font-size: 1.1rem; color: var(--sw-text-muted);
}
.tabs button.active { background: var(--sw-surface); color: var(--sw-secondary); box-shadow: inset 0 -3px 0 var(--sw-primary); }
.card--tabs { border-radius: 0 0 var(--sw-radius) var(--sw-radius); margin-top: 0; }

.property-preview {
  display: flex; gap: 14px; align-items: flex-start;
  background: #f8fafc; border: 1px solid var(--sw-border);
  border-radius: 12px; padding: 14px; margin-bottom: 18px;
}
.property-preview img {
  width: 96px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.property-preview h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; }
.property-preview p { margin: 0; font-size: 1.05rem; font-weight: 400; color: var(--sw-text-muted); }

.site-footer {
  background: #f8fafc;
  color: #334155;
  padding: 32px clamp(16px, 4vw, 24px) 28px;
  margin: 24px auto 0;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  max-width: min(var(--sw-hosted-content-max), 100%);
  box-sizing: border-box;
}
.site-footer-inner {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}
.footer-section-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  text-align: center;
}
.footer-policy-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  max-width: 100%;
  margin: 18px auto 0;
  text-align: center;
  justify-content: center;
}
.footer-policy-links__col {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-policy-links__col li {
  margin: 0;
  padding: 0;
}
.footer-policy-links a {
  display: block;
  padding: 7px 0;
  margin: 0;
  color: #2563eb;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.footer-policy-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.site-footer a {
  color: #2563eb;
  margin: 0 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-footer a:hover { color: #1d4ed8; text-decoration: underline; }
.site-footer p { margin: 10px 0 0; font-size: 0.92rem; font-weight: 400; color: #64748b; }
@media (max-width: 520px) {
  .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 100%;
    grid-template-columns: unset;
    text-align: center;
  }
  .footer-policy-links__col {
    display: contents;
  }
  .footer-policy-links__col li {
    display: inline-flex;
    align-items: center;
  }
  .footer-policy-links__col li + li::before {
    content: ' · ';
    color: #94a3b8;
    font-weight: 400;
    pointer-events: none;
  }
  .footer-policy-links a {
    display: inline;
    padding: 4px 0;
    white-space: nowrap;
  }
}
.site-footer .footer-slogan {
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-legal-entity {
  margin-top: 22px;
  padding: 18px 20px;
  border-top: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.footer-legal-entity__lead,
.footer-legal-entity__meta,
.footer-legal-entity__notice,
.footer-legal-entity__copy {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 12px;
}
.footer-legal-entity strong {
  font-weight: 700;
  color: #1e293b;
}
.footer-legal-entity__meta {
  color: #64748b;
  font-size: 0.78rem;
}
.footer-legal-entity__notice a {
  color: #2563eb;
  font-weight: 600;
}
.footer-legal-entity__copy {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0;
}
.site-footer--compact { padding: 20px clamp(16px, 4vw, 24px) 28px; margin: 24px auto 0; background: #f8fafc; border-top: 1px solid #e2e8f0; width: 100%; max-width: min(var(--sw-hosted-content-max), 100%); box-sizing: border-box; }
.site-footer--compact .site-footer-inner { max-width: 100%; margin: 0 auto; }
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.store-badges img { height: 40px; width: auto; }

/* App preview gallery */
.app-gallery { margin-top: 4px; }
.app-gallery-head { margin-bottom: 16px; }
.section-title { margin: 0 0 6px; font-size: 1.4rem; font-weight: 700; }
.section-lead { margin: 0 0 16px; font-size: 1.1rem; font-weight: 400; color: var(--sw-text-muted); line-height: 1.5; }
.app-gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.app-gallery-grid--sidebar { grid-template-columns: 1fr; }
.app-screen-card { margin: 0; }
.app-screen-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 18px;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.app-screen-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.app-screen-frame {
  background: var(--sw-navy); border-radius: 18px; padding: 8px;
  box-shadow: var(--sw-shadow);
}
.app-screen-frame img {
  width: 100%; border-radius: 12px; aspect-ratio: 9/19; object-fit: cover; object-position: top center;
}
.app-screen-card figcaption {
  display: block; margin-top: 10px; font-size: 1.05rem; font-weight: 400; color: var(--sw-text-muted);
}
.app-screen-card figcaption strong {
  display: block; color: var(--sw-text); font-size: 1.15rem; font-weight: 600; margin-bottom: 2px;
}

.trust-panel {
  background: #f8fafc; border: 1px solid var(--sw-border);
  border-radius: 12px; padding: 16px 18px; margin-top: 16px;
}
.trust-panel h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.trust-list { margin: 0; padding-left: 18px; color: var(--sw-text-muted); font-size: 1.05rem; font-weight: 400; }
.trust-list li { margin-bottom: 6px; }

/* Legal / long-form -light article body; hero + footer keep dark-band contrast */
.legal-doc {
  color-scheme: light only;
  background: #f4f7fb !important;
}
.legal-doc .page-main {
  color: #0f172a;
  max-width: min(var(--sw-hosted-content-max), 100%);
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 24px) 48px;
  box-sizing: border-box;
}
.legal-doc .section,
.legal-doc .section.sw-legal-doc {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: var(--sw-radius);
  padding: 24px;
  margin-bottom: 16px;
  color: #0f172a;
  box-shadow: var(--sw-shadow);
}
.legal-doc .page-main .section h2,
.legal-doc .page-main .sw-legal-doc h2 {
  color: #0d1b2a;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 18px 0 10px;
}
.legal-doc .page-main .section h2:first-of-type,
.legal-doc .page-main .sw-legal-doc h2:first-of-type {
  margin-top: 0;
}
.legal-doc .page-main .section h3,
.legal-doc .page-main .sw-legal-doc h3 {
  color: #1e293b;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 16px 0 8px;
}
.legal-doc .page-main .section p,
.legal-doc .page-main .section li,
.legal-doc .page-main .sw-legal-doc p,
.legal-doc .page-main .sw-legal-doc li {
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 400;
}
.legal-doc .page-main .section p,
.legal-doc .page-main .sw-legal-doc p { margin: 0 0 12px; }
.legal-doc .page-main .section ul,
.legal-doc .page-main .sw-legal-doc ul {
  margin: 10px 0 14px;
  padding-left: 22px;
}
.legal-doc .page-main .section li,
.legal-doc .page-main .sw-legal-doc li { margin-bottom: 8px; color: #0f172a; }
.legal-doc .page-main .section strong,
.legal-doc .page-main .sw-legal-doc strong {
  color: #0d1b2a;
  font-weight: bold;
}
.legal-doc .page-main .section .muted,
.legal-doc .page-main .sw-legal-doc .muted {
  color: #475569;
  font-size: 1.15rem;
}
.legal-doc .page-main .section a,
.legal-doc .page-main .sw-legal-doc a {
  color: var(--sw-accent);
  font-weight: 600;
}
.legal-doc .page-main .section a:hover,
.legal-doc .page-main .sw-legal-doc a:hover {
  color: var(--sw-accent);
  text-decoration: underline;
}

/* Hero + footer on legal pages -always light text on dark bands */
.legal-doc .page-banner {
  color: #fff;
}
.legal-doc .page-banner .platform-slogan,
.legal-doc .page-banner .header-tagline,
.legal-doc .page-banner-title,
.legal-doc .page-banner-sub {
  color: rgba(255, 255, 255, 0.95);
}
.legal-doc .page-banner .sw-brand-stayworld {
  color: #3b82f6 !important;
}
.legal-doc .page-banner .sw-brand-bookings {
  color: #cbd5e1 !important;
}
/* Wordmark in footer — brand colors on light background */
.site-footer .sw-brand-stayworld {
  color: #3b82f6 !important;
}
.site-footer .sw-brand-bookings {
  color: #64748b !important;
}
.legal-doc .site-footer {
  background: #f8fafc;
  color: #334155;
  border-top: 1px solid #e2e8f0;
  max-width: min(var(--sw-hosted-content-max), 100%);
  margin-left: auto;
  margin-right: auto;
}
.legal-doc .site-footer .footer-slogan,
.legal-doc .site-footer p {
  color: #64748b;
}
.legal-doc .site-footer a {
  color: #2563eb;
  font-weight: 600;
}
.legal-doc .site-footer a:hover {
  color: #1d4ed8;
}
.legal-doc .site-footer > .site-footer-inner > p:last-child {
  color: #94a3b8;
}

.spinner {
  border: 3px solid #e2e8f0;
  border-top-color: var(--sw-primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: sw-spin 0.9s linear infinite;
  margin: 0 auto 16px;
}
@keyframes sw-spin { to { transform: rotate(360deg); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.char-count { text-align: right; color: #94a3b8; font-size: 1rem; font-weight: 400; margin-top: 4px; }
.divider { text-align: center; color: #94a3b8; font-size: 1.1rem; font-weight: 400; margin: 14px 0; }
.footer-note { text-align: center; color: var(--sw-text-muted); font-size: 1.05rem; font-weight: 400; padding: 12px 0; }
