@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg: #060c18;
  --bg-elev: #0d1b2e;
  --bg-elev-2: #12233b;
  --line: rgba(159, 216, 239, 0.14);
  --ice: #eaf6ff;
  --ice-dim: #b7c9da;
  --frost: #8ed1ea;
  --frost-strong: #bdeaf7;
  --frost-dim: #4e7b93;
  --gold: #f0c879;
  --mint: #b9f5df;
  --radius-facet: 18px;
  --facet-sm: 10px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ice);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.lock{ overflow: hidden; height: 100vh; }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; cursor: pointer; }

.facet{
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.facet-sm{
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frost);
}

::selection{ background: var(--frost); color: var(--bg); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------- Loader ---------------- */
#loader{
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: clip-path 0.9s cubic-bezier(.7,0,.2,1), opacity 0.7s ease 0.15s;
}
#loader::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(142,209,234,0.08), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(185,245,223,0.06), transparent 40%);
  pointer-events: none;
}
#loader.melt{
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  opacity: 0;
}
.loader-mark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 54px);
  letter-spacing: 0.01em;
  display: flex;
  gap: 2px;
}
.loader-mark span{
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px);
  animation: frostIn 0.55s cubic-bezier(.2,.8,.3,1) forwards;
  animation-delay: calc(var(--i) * 45ms);
}
.loader-mark .accent{ color: var(--frost); }
@keyframes frostIn{
  to{ opacity: 1; filter: blur(0); transform: translateY(0); }
}
.loader-bar-track{
  width: min(260px, 60vw);
  height: 6px;
  margin-top: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.loader-bar-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--frost-dim), var(--frost) 55%, var(--frost-strong));
  position: relative;
  transition: width 0.25s ease;
}
.loader-bar-fill::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  width: 40px;
  animation: shimmer 1s linear infinite;
}
@keyframes shimmer{
  from{ transform: translateX(-40px); }
  to{ transform: translateX(260px); }
}
.loader-pct{
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ice-dim);
  letter-spacing: 0.08em;
}

/* ---------------- Nav ---------------- */
header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 12, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  max-width: 1180px; margin: 0 auto;
}
.logo{
  display: flex; align-items: center; gap: 10px;
}
.logo-img{
  height: 34px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.logo-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ice);
}
.logo-text .thin{ font-weight: 400; color: var(--ice-dim); }
.nav-links{ display: flex; gap: 32px; align-items: center; }
.nav-links a{ font-size: 14px; color: var(--ice-dim); transition: color 0.2s; }
.nav-links a:hover{ color: var(--ice); }
.nav-cta{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 18px;
  background: var(--ice);
  color: var(--bg);
  border: none;
  font-weight: 500;
}
.nav-toggle{ display: none; }

/* ---------------- Hero ---------------- */
.hero{
  padding: 90px 28px 60px;
  max-width: 1180px; margin: 0 auto;
  position: relative;
}
.hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  max-width: 15ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--frost);
  background: linear-gradient(180deg, var(--frost-strong), var(--frost));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p{
  margin: 22px 0 0;
  max-width: 46ch;
  color: var(--ice-dim);
  font-size: 17px;
}

/* Search widget */
.search-widget{
  margin-top: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 6px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.search-field{
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
}
.search-field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost-dim);
  margin-bottom: 4px;
}
.search-field input{
  width: 100%;
  background: none;
  border: none;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.search-field input::placeholder{ color: var(--ice-dim); }
.search-btn{
  border: none;
  padding: 0 30px;
  background: linear-gradient(135deg, var(--frost), var(--mint));
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  min-width: 130px;
}

/* ---------------- Sections ---------------- */
.section{ padding: 70px 28px; max-width: 1180px; margin: 0 auto; }
.section-head{
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 34px; flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 6px 0 0;
  font-weight: 700;
}
.section-head p{ color: var(--ice-dim); font-size: 14px; margin: 8px 0 0; max-width: 40ch; }

/* ---------------- Hotel Grid / Cards ---------------- */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.card{
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover{ transform: translateY(-4px); border-color: var(--frost-dim); }
.card-media{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img{ transform: scale(1.06); }
.card-tag{
  position: absolute; top: 12px; left: 12px;
  background: rgba(6,12,24,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  color: var(--frost-strong);
}
.card-rating{
  position: absolute; top: 12px; right: 12px;
  background: rgba(6,12,24,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 9px;
  color: var(--gold);
}
.card-body{ padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3{ font-family: var(--font-display); font-size: 18px; margin: 0; font-weight: 600; }
.card-loc{ font-size: 13px; color: var(--ice-dim); }
.card-foot{
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.card-price{ font-family: var(--font-mono); font-size: 15px; color: var(--ice); }
.card-price span{ color: var(--ice-dim); font-size: 12px; }
.card-link{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--frost);
  border-bottom: 1px solid var(--frost-dim);
  padding-bottom: 2px;
}

/* ---------------- Footer ---------------- */
footer{
  border-top: 1px solid var(--line);
  padding: 50px 28px 30px;
}
.footer-inner{
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}
.footer-tag{ color: var(--ice-dim); font-size: 13px; margin-top: 10px; max-width: 28ch; }
.footer-links{ display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--frost-dim); margin: 0 0 12px;
}
.footer-col a{ display: block; font-size: 13px; color: var(--ice-dim); margin-bottom: 8px; }
.footer-col a:hover{ color: var(--ice); }
.footer-bottom{
  max-width: 1180px; margin: 40px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--frost-dim);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 760px){
  .nav-links{
    position: fixed; top: 63px; left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 20px 28px; gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open{ transform: translateY(0); }
  .nav-toggle{
    display: block; background: none; border: none; color: var(--ice);
    font-size: 22px; line-height: 1;
  }
  .search-widget{ flex-direction: column; }
  .search-btn{ padding: 14px; }
}
