:root{
  --bg: #0f1116;
  --panel: #171a20;
  --panel-2: #1d212a;
  --muted: rgba(255,255,255,.65);
  --muted-2: rgba(255,255,255,.45);
  --text: rgba(255,255,255,.92);
  --primary: #4b4ef5;
  --primary-2: #3438d8;
  --border: rgba(255,255,255,.07);
  --shadow: 0 14px 36px rgba(0,0,0,.55);
  --radius: 18px;
  --radius-lg: 24px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 600px at 40% -10%, rgba(75,78,245,.20), transparent 60%),
              radial-gradient(800px 500px at 90% 0%, rgba(120,200,255,.09), transparent 60%),
              var(--bg);
  color: var(--text);
}

.app{
  min-height: 100vh;
  display:flex;
  flex-direction: column;
  padding-bottom: 86px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 16px 10px;
  background: linear-gradient(to bottom, rgba(15,17,22,.92), rgba(15,17,22,.55) 60%, rgba(15,17,22,0));
  backdrop-filter: blur(12px);
}
.topbar__left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.brand{
  margin:0;
  font-size: 30px;
  letter-spacing: .2px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.95);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  cursor:pointer;
}
.icon-btn svg{ width: 22px; height: 22px; fill: currentColor; opacity:.92; }
.icon-btn:active{ transform: translateY(1px); }
.icon-btn.is-hidden{ visibility: hidden; pointer-events: none; }

.screen{
  padding: 8px 14px 20px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.hero{
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero__media{
  height: 210px;
  background: #111 center/cover no-repeat;
  position: relative;
}
.hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.6));
}
.hero__content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  padding: 18px;
  text-align:center;
}
.hero__title{
  margin:0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
}
.cta{
  appearance: none;
  border: none;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor:pointer;
  box-shadow: 0 16px 36px rgba(75,78,245,.25);
}
.cta:active{ transform: translateY(1px); }

.section{
  margin-top: 18px;
}
.section__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 2px 10px;
}
.section__title{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}
.section__link{
  font-size: 14px;
  color: rgba(255,255,255,.52);
  background: transparent;
  border: none;
  cursor:pointer;
  padding: 6px 10px;
  border-radius: 10px;
}
.section__link:hover{ background: rgba(255,255,255,.04); }

.carousel{
  position: relative;
  margin: 0 0 8px;
}
.carousel__track{
  display:flex;
  gap: 12px;
  overflow-x:auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.carousel__track::-webkit-scrollbar{ height: 8px; }
.carousel__track::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius: 999px; }
.carousel__track::-webkit-scrollbar-track{ background: transparent; }
.carousel__btn{
  position:absolute;
  top: 50%;
  transform: translateY(-55%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.95);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.carousel__btn svg{ width: 22px; height: 22px; fill: currentColor; }
.carousel__btn--prev{ left: -4px; }
.carousel__btn--next{ right: -4px; }
.carousel__btn:active{ transform: translateY(-55%) translateY(1px); }
.carousel__btn.is-hidden{ display:none; }
.carousel__dots{
  display:flex;
  gap: 8px;
  justify-content:center;
  padding: 2px 0 0;
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
}
.dot.is-active{
  width: 22px;
  background: rgba(75,78,245,.75);
  border-color: rgba(75,78,245,.85);
}

.card{
  scroll-snap-align: start;
  width: 250px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow:hidden;
  position: relative;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  cursor:pointer;
}
.card--wide{ width: 320px; }
.card__img{
  height: 230px;
  background: #111 center/cover no-repeat;
  position: relative;
}
.card__img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.82));
}
.badge{
  position:absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
}
.save{
  position:absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.save svg{ width: 20px; height: 20px; fill: rgba(255,255,255,.92); }
.save.is-active{
  background: rgba(75,78,245,.32);
  border-color: rgba(75,78,245,.5);
}

.card__body{
  padding: 12px 12px 14px;
}
.card__title{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}
.meta{
  margin-top: 8px;
  display:flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.meta svg{ width: 16px; height: 16px; fill: rgba(255,255,255,.72); }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tile{
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(75,78,245,.95), rgba(52,56,216,.95));
  border: 1px solid rgba(255,255,255,.1);
  min-height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(75,78,245,.18);
  cursor:pointer;
}
.tile svg{ width: 48px; height: 48px; fill: rgba(255,255,255,.96); }
.tile__label{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}

.empty{
  height: 58vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,.65);
  text-align:center;
  padding: 20px;
}
.empty svg{ width: 70px; height: 70px; fill: rgba(75,78,245,.75); }
.empty__hint{ color: rgba(75,78,245,.75); font-weight: 700; }

.footer-links{
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  color: rgba(255,255,255,.55);
}
.social{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.social svg{ width: 22px; height: 22px; fill: rgba(255,255,255,.72); }

.legal{
  margin-top: 16px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
}
.legal button{
  width: 100%;
  padding: 16px 14px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  background: transparent;
  border: none;
  cursor:pointer;
}
.legal button + button{ border-top: 1px solid var(--border); }

.bottom-nav{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(560px, calc(100% - 28px));
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 10px 10px;
  display:flex;
  gap: 6px;
  z-index: 50;
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}
.bottom-nav__item{
  flex: 1 1 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.bottom-nav__icon svg{ width: 20px; height: 20px; fill: currentColor; }
.bottom-nav__label{ font-size: 12.5px; font-weight: 800; }
.bottom-nav__item.is-active{
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.95);
}

.sheet-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 80;
}
.sheet{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(560px, calc(100% - 20px));
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  z-index: 90;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0,0,0,.60);
  padding: 10px 10px 16px;
}
.sheet__handle{
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 6px auto 12px;
}
.sheet__content{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}
.sheet-item{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}
.sheet-item svg{ width: 20px; height: 20px; fill: rgba(255,255,255,.92); }
.sheet-item__label{ font-weight: 900; letter-spacing: .2px; }

.modal{
  padding: 6px 8px 2px;
}
.modal h2{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}
.modal p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  font-size: 14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.85);
}

.is-hidden{ display:none !important; }

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  z-index: 120;
}
.modal-card{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 18px));
  max-height: calc(100% - 18px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,17,22,.92);
  z-index: 130;
  backdrop-filter: blur(14px);
  box-shadow: 0 34px 90px rgba(0,0,0,.68);
}
.modal-card__close{
  position: sticky;
  top: 10px;
  margin-left: auto;
  margin-right: 10px;
  margin-top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index: 2;
}
.modal-card__close svg{ width: 22px; height: 22px; fill: currentColor; }
.modal-card__content{
  padding: 10px 14px 16px;
}
.map-layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.map-panel{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.map-panel__head{
  padding: 12px 12px 0;
}
.map-panel__title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.map-panel__sub{
  margin: 6px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  line-height: 1.5;
}
.map-svg{
  width: 100%;
  height: auto;
  display:block;
  background: radial-gradient(700px 400px at 50% 35%, rgba(75,78,245,.16), transparent 70%),
              rgba(0,0,0,.30);
}
.map-pin{
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.6));
}
.preview{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(0,0,0,.25);
}
.preview__img{
  height: 240px;
  background: #111 center/cover no-repeat;
  position: relative;
}
.preview__img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.82));
}
.preview__body{
  padding: 12px 12px 14px;
}
.preview__title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.preview__meta{
  margin-top: 8px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.45;
  display:flex;
  align-items:flex-start;
  gap: 8px;
}
.preview__meta svg{ width: 16px; height: 16px; fill: rgba(255,255,255,.72); margin-top: 2px; }

.map-embed{
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  display:block;
}

@media (min-width: 720px){
  .hero__media{ height: 270px; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .tile{ min-height: 170px; }
  .map-layout{ grid-template-columns: 1.2fr .8fr; align-items: start; }
  .preview__img{ height: 320px; }
  .map-embed{ aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}
