/* =========================================================
   circuit.css
   Ordered by use:
   1) Theme tokens
   2) Reset / base
   3) Layout helpers
   4) Accessibility / utilities
   5) Header / nav
   6) Buttons
   7) Breadcrumb
   8) Hero
   9) Facts
   10) Section layout
   11) Amenities
   12) Shops
   13) Video
   14) Gallery
   15) Footer
   16) Responsive
========================================================= */

/* =========================================================
   1) THEME TOKENS
========================================================= */
:root{
  --bg:#ffffff;
  --fg:#111;
  --muted:#6b6b6b;
  --line:#ececec;
  --soft:#f7f7f7;
  --accent:#d62828;

  --max:1200px;
  --tap:36px;
  --shadow:0 10px 26px rgba(0,0,0,.05);
}

/* =========================================================
   2) RESET / BASE
========================================================= */
*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font:14px/1.35 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

a{color:inherit}

/* =========================================================
   3) LAYOUT HELPERS
========================================================= */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}

.main{
  padding:22px 0 28px;
}

/* =========================================================
   4) ACCESSIBILITY / UTILITIES
========================================================= */
.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#fff;
  border:2px solid var(--accent);
  border-radius:12px;
  z-index:50;
}

.muted{color:var(--muted)}
.small{font-size:12px}

/* =========================================================
   5) HEADER
========================================================= */
.header{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header__row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:14px 0;
}

.brand{
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}

.logo{
  font-weight:950;
  letter-spacing:-.02em;
  font-size:18px;
  line-height:1.05;
}

.tag{
  color:var(--muted);
  margin-top:2px;
  font-size:12px;
}

.header__actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}

/* =========================================================
   6) NAV / TRACKS DROPDOWN
========================================================= */
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
}

.nav__item,
.nav__dropdown{
  position:relative;
}

.nav__link{
  height:44px;
  padding:0 18px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.nav__link:hover{
  border-color:#d5d5d5;
}

.nav__chev{
  font-size:12px;
  opacity:.7;
}

.nav__panel{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:320px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:10px;
  z-index:1000;
}

.nav__panel[data-open="true"]{
  display:block;
}

.nav__list{
  list-style:none;
  padding:0;
  margin:0;
  max-height:420px;
  overflow:auto;
}

.nav__list li{
  margin:0;
  list-style:none;
}

.nav__list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  font-weight:800;
}

.nav__list a:hover{
  background:var(--soft);
}

.nav__loading{
  padding:10px;
  color:var(--muted);
  font-weight:700;
}

.nav__divider{
  height:1px;
  background:#eee;
  margin:8px 0;
}

.nav__all{
  font-weight:900;
}

.nav__flag{
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
}

/* =========================================================
   7) BUTTONS
========================================================= */
.btn{
  height:var(--tap);
  padding:0 12px;
  border:1px solid #111;
  background:#111;
  color:#fff;
  border-radius:10px;
  cursor:pointer;
  font-weight:900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn--ghost{
  background:#fff;
  color:#111;
  border-color:var(--line);
}

.btn--ghost:hover{
  border-color:#d5d5d5;
}

/* =========================================================
   8) BREADCRUMB
========================================================= */
.crumb{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
}

.crumb a{
  color:inherit;
  text-decoration:none;
}

.crumb a:hover{
  text-decoration:underline;
}

/* =========================================================
   9) HERO
========================================================= */
.hero{
  padding:6px 0 18px;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  align-items:start;
}

#c-title{
  margin:0;
  font-size:40px;
  line-height:1.05;
  letter-spacing:-.02em;
  text-transform:uppercase;
}

.lead{
  margin:10px 0 14px;
  color:var(--muted);
  max-width:60ch;
}

/* =========================================================
   10) FACTS
========================================================= */
.facts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
  max-width:720px;
}

.fact{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
}

.fact__k{
  font-size:11px;
  color:var(--muted);
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.fact__v{
  margin-top:4px;
  font-weight:900;
}

/* =========================================================
   11) HERO MEDIA CARD
========================================================= */
.hero__card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg,#2a2a2a,#000);
  min-height:260px;
  box-shadow:var(--shadow);
}

.hero__card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  background:var(--accent);
  opacity:.95;
  z-index:2;
}

.hero__image{
  position:absolute;
  inset:0;
  background:#111;
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.05);
}

.hero__overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:14px;
  z-index:3;
}

.trackmark{
  width:110px;
  height:70px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  opacity:.95;
}

.trackmark svg{
  width:110px;
  height:70px;
  display:block;
}

.hero__meta{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}

.pill{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(255,255,255,.2);
  font-weight:950;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.pill--ghost{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.18);
}

/* =========================================================
   12) SECTION LAYOUT
========================================================= */
.section{
  padding:14px 0;
}

.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 10px;
}

.section__head h2{
  margin:0;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.card{
  background:transparent;
  border:0;
}

.card__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding:10px 0 8px;
  border-bottom:1px solid var(--line);
  margin-bottom:10px;
}

.card__head h2{
  margin:0;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:950;
  position:relative;
  padding-left:14px;
}

.card__head h2::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:14px;
  background:var(--accent);
  border-radius:3px;
}

.card__body{
  padding:0;
}

#c-history{
  margin:0;
  max-width:70ch;
}

/* =========================================================
   13) AMENITIES
========================================================= */
.amenities{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-top:6px;
}

.amenity{
  position:relative;
  display:grid;
  grid-template-columns:64px 1fr;
  gap:14px;
  align-items:center;
  padding:18px 0;
  border-top:1px solid #eee;
}

.amenity:first-child{
  border-top:0;
}

.amenity__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  color:#111;
}

.amenity__icon .ico,
.amenity__icon svg{
  width:34px;
  height:34px;
  display:block;
  stroke-width:2.2;
}

.amenity__title{
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:16px;
  line-height:1.1;
  margin-bottom:6px;
}

.amenity__desc{
  color:var(--muted);
  font-size:18px;
  line-height:1.3;
}

.amenity--disabled{
  opacity:.55;
}

.amenity--disabled::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:3px;
  background:#d11b1b;
  transform:translateY(-50%);
  border-radius:999px;
  pointer-events:none;
}

/* =========================================================
   14) SHOPS
========================================================= */
.shops{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.shop{
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.shop:last-child{
  border-bottom:0;
}

.shop__name{
  font-weight:950;
}

.shop__meta{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.shop a{
  color:inherit;
  font-weight:900;
}

.shop a:hover{
  text-decoration:underline;
}

/* =========================================================
   15) VIDEO
========================================================= */
.video{
  border-radius:16px;
  overflow:hidden;
  background:#111;
  box-shadow:var(--shadow);
}

.video iframe{
  width:100%;
  height:320px;
  border:0;
  display:block;
}

/* =========================================================
   16) GALLERY
========================================================= */
.gallery{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px;
}

.gallery__item{
  border-radius:14px;
  overflow:hidden;
  background:var(--soft);
  box-shadow:var(--shadow);
}

.gallery__item img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}

/* =========================================================
   17) FOOTER
========================================================= */
.foot{
  border-top:1px solid var(--line);
  margin-top:18px;
  padding-top:14px;
}

/* =========================================================
   18) RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .header__row{
    grid-template-columns:1fr;
    justify-items:start;
  }

  .nav{
    justify-content:flex-start;
  }

  .header__actions{
    justify-content:flex-start;
  }

  .nav__panel{
    position:absolute;
    left:0;
    min-width:280px;
  }

  .hero__grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .facts{
    grid-template-columns:1fr;
    max-width:none;
  }

  #c-title{
    font-size:34px;
  }

  .grid2{
    grid-template-columns:1fr;
  }

  .gallery{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .video iframe{
    height:240px;
  }
}

@media (max-width: 520px){
  #c-title{
    font-size:28px;
  }

  .gallery{
    grid-template-columns:1fr;
  }

  .amenity{
    grid-template-columns:52px 1fr;
    gap:12px;
  }

  .amenity__icon{
    width:52px;
    height:52px;
  }

  .amenity__title{
    font-size:14px;
  }

  .amenity__desc{
    font-size:15px;
  }
}