:root{
  --primary:#702ae1;
  --primary-container:#b28cff;
  --surface:#fef3ff;
  --surface-low:#faecff;
  --surface-high:#edd3ff;
  --surface-card:#ffffff;
  --text:#3a264b;
  --muted:#69537b;
  --outline:#bda3d1;
  --shadow:0 20px 60px rgba(58,38,75,.10);
  --radius:28px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,sans-serif;
  background:var(--surface);
  color:var(--text);
}
h1,h2,h3,h4{
  font-family:"Plus Jakarta Sans",Inter,sans-serif;
  letter-spacing:-.02em;
  margin:0;
}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}

.tl-loading-screen,
.tl-error-card{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:16px;
  padding:40px;
}

.tl-spinner{
  width:42px;
  height:42px;
  border-radius:999px;
  border:4px solid rgba(112,42,225,.15);
  border-top-color:var(--primary);
  animation:tlspin .8s linear infinite;
}
@keyframes tlspin{to{transform:rotate(360deg)}}

/* Onboarding */
.tl-onboarding-page{
  min-height:100vh;
  position:relative;
  overflow:hidden;
}
.tl-onboarding-bg{
  position:fixed;
  inset:0;
  z-index:0;
}
.tl-onboarding-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.05);
}
.tl-onboarding-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(58,38,75,.45), rgba(254,243,255,.2), var(--surface));
}
.tl-onboarding-main{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:48px 24px 96px;
}
.tl-brand-block{
  text-align:center;
  margin-bottom:40px;
}
.tl-brand-block h1{
  font-size:clamp(40px,7vw,64px);
  font-weight:800;
  color:#2e006c;
  line-height:1;
  margin-bottom:16px;
}
.tl-brand-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(12px);
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.tl-onboarding-card{
  width:100%;
  max-width:860px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(20px);
  border-radius:32px;
  padding:32px;
  box-shadow:0 40px 100px rgba(58,38,75,.12);
}
.tl-onboarding-header{margin-bottom:32px}
.tl-onboarding-header h2{
  font-size:clamp(28px,4vw,42px);
  font-weight:800;
  margin-bottom:12px;
}
.tl-onboarding-header p{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.6;
}
.tl-onboarding-form{display:flex;flex-direction:column;gap:28px}
.tl-profile-row{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  align-items:center;
}
.tl-avatar-upload{
  position:relative;
}
.tl-avatar-upload__preview{
  width:132px;
  height:132px;
  border-radius:999px;
  background:var(--surface-high);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:4px solid #fff;
  box-shadow:var(--shadow);
}
.tl-avatar-upload__preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.tl-avatar-upload__preview .material-symbols-outlined{
  font-size:40px;
  color:#856e98;
}
.tl-avatar-upload__btn{
  position:absolute;
  right:0;
  bottom:0;
  width:44px;
  height:44px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(112,42,225,.3);
}
.tl-field-grow{flex:1;min-width:260px}
.tl-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 12px 4px;
}
.tl-input{
  width:calc(100% - 46px);
  min-height:54px;
  border:0;
  border-radius:18px;
  background:#fff;
  padding:16px 18px;
  color:var(--text);
  outline:none;
  box-shadow:inset 0 0 0 1px rgba(133,110,152,.16);
  font-size:12px;
}
textarea.tl-input{
  min-height:120px;
  resize:vertical;
}
.tl-style-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
  gap:14px;
}
.tl-style-card input{display:none}
.tl-style-card__inner{
  min-height:86px;
  border-radius:22px;
  background:var(--surface-high);
  color:var(--muted);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  font-size:13px;
  text-align:center;
  cursor:pointer;
  transition:.25s ease;
  padding:12px;
}
.tl-style-card input:checked + .tl-style-card__inner{
  background:linear-gradient(135deg,var(--primary),var(--primary-container));
  color:#fff;
  box-shadow:0 16px 30px rgba(112,42,225,.22);
}
.tl-check{
  display:flex;
  align-items:flex-start;
  gap:14px;
  color:var(--muted);
  line-height:1.3;
  font-size:14px;
}
.tl-check input{
  margin-top:3px;
}
.tl-primary-btn,
.tl-secondary-btn{
  border:0;
  cursor:pointer;
  transition:.2s ease;
}
.tl-primary-btn{
  min-height:54px;
  border-radius:999px;
  padding:0 24px;
  background:linear-gradient(135deg,var(--primary),var(--primary-container));
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:12px;
  font-weight:800;
  box-shadow:0 14px 34px rgba(112,42,225,.24);
}
.tl-primary-btn.small{
  min-height:38px;
  padding:0 18px;
}
.tl-primary-btn:hover{transform:translateY(-1px)}
.tl-primary-btn:active{transform:scale(.98)}
.tl-secondary-btn{
  min-height:38px;
  border-radius:999px;
  padding:0 18px;
  background:#fff;
  color:var(--primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  box-shadow:inset 0 0 0 2px rgba(112,42,225,.15);
}
.tl-footer-note{
  margin-top:28px;
  color:rgba(58,38,75,.55);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:700;
}

/* Tour page */
.tl-tour-page{
  min-height:100vh;
  background:var(--surface);
  padding-bottom:120px;
}
.tl-topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px 24px;
  background:rgba(250,236,255,.72);
  backdrop-filter:blur(18px);
  box-shadow:0 10px 40px rgba(58,38,75,.06);
}
.tl-topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
}
.tl-topbar-left h1{
  font-size:24px;
  font-weight:800;
  color:var(--primary);
}
.tl-topbar-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid var(--primary-container);
}
.tl-tour-main{
  max-width:1180px;
  margin:0 auto;
  padding:32px 20px;
}
.tl-tour-hero{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px;
}
.tl-eyebrow{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--primary);
  margin-bottom:10px;
}
.tl-tour-hero h2{
  font-size:clamp(34px,5vw,58px);
  font-weight:800;
  font-size: 22px;
}
.tl-tour-location{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
.tl-progress-card{
  position:relative;
  overflow:hidden;
  background:var(--surface-low);
  border-radius:28px;
  padding:26px;
  margin-bottom:24px;
}
.tl-progress-card__top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
  font-size:14px;
}
.tl-progress-card__top span{
  font-size:14px;
  font-weight:700;
}
.tl-progress-card__top strong{
  color:var(--primary);
}
.tl-progressbar{
  height:12px;
  width:100%;
  background:#f0e1fb;
  border-radius:999px;
  overflow:hidden;
}
.tl-progressbar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--primary-container));
  transition:width .4s ease;
}
.tl-cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}
.tl-attraction-card{
  background:var(--surface-card);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(58,38,75,.05);
  display:flex;
  flex-direction:column;
}
.tl-attraction-media{
  position:relative;
  height:175px;
  overflow:hidden;
}
.tl-attraction-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.tl-attraction-placeholder{
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#edd3ff,#fef3ff);
}
.tl-attraction-badge{
  position:absolute;
  top:16px;
  left:16px;
  padding:8px 14px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  background:rgba(255,255,255,.9);
  color:var(--muted);
}
.tl-attraction-badge.is-done{
  background:linear-gradient(135deg,var(--primary),var(--primary-container));
  color:#fff;
}
.tl-attraction-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  flex:1;
  font-size:12px;
}
.tl-attraction-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:10px;
}
.tl-attraction-head h3{
  font-size:28px;
  font-weight:800;
}
.tl-verified{
  color:var(--primary);
}
.tl-attraction-body p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.6;
}
.tl-attraction-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:auto;
}

.tl-final-map-block,
.tl-review-block{
  margin-top:32px;
  background:#fff;
  border-radius:28px;
  padding:24px;
  box-shadow:0 10px 40px rgba(58,38,75,.05);
  font-size:14px;
}
.tl-final-map-block h3,
.tl-review-block h3{
  font-size:18px;
  font-weight:800;
  margin-bottom:16px;
}
.tl-map{
  width:100%;
  border-radius:22px;
}
.tl-stars{
  display:flex;
  gap:8px;
  margin-bottom:14px;
}
.tl-star{
  border:0;
  background:none;
  font-size:34px;
  cursor:pointer;
  color:#d0bfdc;
}
.tl-star.is-active{
  color:var(--primary);
}

.tl-sticky-progress{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  z-index:30;
  width:min(92vw,540px);
}
.tl-sticky-progress__content{
  background:rgba(112,42,225,.95);
  color:#fff;
  border-radius:999px;
  padding:10px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  backdrop-filter:blur(16px);
  box-shadow:0 18px 40px rgba(112,42,225,.28);
}
.tl-sticky-progress__left{
  display:flex;
  align-items:center;
  gap:12px;
}
.tl-sticky-progress__icon{
  width:42px;
  height:42px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  justify-content:center;
}
.tl-sticky-progress__left p{
  margin:0;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.82;
  font-weight:800;
}
.tl-sticky-progress__left strong{
  font-size:10px;
}
.tl-chip-btn{
  min-height:40px;
  border:0;
  border-radius:999px;
  padding:0 14px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  font-size: 10px;
}

/* Modal / story */
.tl-modal{
  position:fixed;
  inset:0;
  z-index:100;
}
.tl-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(24,4,41,.72);
  backdrop-filter:blur(10px);
}
.tl-modal-dialog{
  position:relative;
  z-index:2;
  width:min(92vw,620px);
  margin:4vh auto;
}
.tl-generate-sheet,
.tl-map-modal-box{
  background:rgba(255,255,255,.96);
  border-radius:32px;
  padding:16px;
  box-shadow:0 30px 80px rgba(58,38,75,.18);
  font-size:14px;
}
.tl-generate-sheet__eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary);
  margin-bottom:12px;
}
.tl-generate-sheet h3{
  font-size:22px;
  font-weight:800;
  margin-bottom:10px;
}
#tl-discover-tour{
  font-size: 12px;
  line-height: 1.2;
}
.tl-index-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #702ae1, #b28cff);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -22px;
  margin-top: -22px;
  border-top-left-radius: 0px;
}
.tl-generation-meta{
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.tl-primary-btn.is-disabled,
.tl-primary-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}
.tl-generate-sheet p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.6;
}
.tl-generating-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:26px 0 10px;
}
.tl-story-modal{
  position:relative;
  z-index:2;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.tl-story-shell{
  position:relative;
  width:min(92vw,430px);
  aspect-ratio:9/16;
  border-radius:32px;
  overflow:hidden;
  background:#180429;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.tl-story-bg{
  position:absolute;
  inset:0;
}
.tl-story-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.tl-story-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(58,38,75,.9) 0%, rgba(58,38,75,.35) 34%, transparent 64%);
}
.tl-story-top{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.tl-story-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.tl-story-brand img{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.7);
}
.tl-story-brand h3{
  margin:0;
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.tl-story-brand p{
  margin:0;
  color:rgba(255,255,255,.75);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.tl-story-close{
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:24px;
  cursor:pointer;
  backdrop-filter:blur(10px);
}
.tl-story-bottom{
  position:absolute;
  left:0;
  right:0;
  bottom:24px;
  z-index:3;
  padding:0 24px;
}
.tl-story-caption p{
  margin:0 0 20px;
  color:#fff;
  font-size:15px;
  line-height:1.6;
  font-weight:600;
}
.tl-story-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.tl-story-actions__left{
  display:flex;
  gap:12px;
}
.tl-story-icon-btn{
  width:54px;
  height:54px;
  border-radius:999px;
  border:0;
  text-decoration:none;
  background:rgba(255,255,255,.14);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(14px);
  cursor:pointer;
}
.tl-map-modal-box h3{
  font-size:22px;
  font-weight:800;
  margin-bottom:14px;
}
.tl-live-map{
  width:100%;
  height:420px;
  border-radius:24px;
  overflow:hidden;
}

@media (max-width: 768px){
  .tl-onboarding-card{padding:24px}
  .tl-tour-main{padding:24px 16px 140px}
  .tl-attraction-head h3{font-size:18px}
  .tl-story-shell{width:min(94vw,420px)}
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}
.tl-profile-trigger{
  border:0;
  background:none;
  padding:0;
  cursor:pointer;
}