/* =====================================================================
   Hotel Kirthikaa Palace — Modern theme (public site only)
   Loaded AFTER style.css, so inner pages (rooms, booking, login,
   payment, invoice) pick up the new look automatically.
   The admin panel does not load this file.
   ===================================================================== */

:root {
  --indigo-950: #0E1030;
  --indigo-900: #14163D;
  --indigo-800: #1E2266;
  --indigo-700: #2A2F8F;
  --indigo-600: #3940B5;
  --indigo-500: #5560D6;
  --indigo-200: #CDD1F6;
  --indigo-100: #E6E8FB;
  --indigo-50:  #F4F5FE;
  --mango:      #FFB627;
  --mango-deep: #E89A00;
  --mango-soft: #FFF3D6;
  --page:       #F7F7FC;
  --ink:        #171A3A;
  --muted:      #5E6285;
  --line:       #E3E4F2;
  --ok:  #12703F; --ok-bg:  #E2F5EA;
  --bad: #B3261E; --bad-bg: #FCE9E7;
  --wait:#8A5A00; --wait-bg:#FFF1D0;

  /* legacy names used inline by older pages -> remapped to new palette */
  --teal-deep: var(--indigo-800);
  --teal-bright: var(--indigo-600);
  --saffron: var(--mango);
  --maroon: var(--bad);
  --forest: var(--indigo-900);
  --ochre: var(--mango);
  --cream: var(--page);
  --cream-dark: var(--indigo-50);
  --sand: var(--line);
  --ink-soft: var(--muted);
  --radius-lg: 22px; --radius-md: 14px; --radius-sm: 10px;
  --shadow-card: 0 18px 40px -22px rgba(30, 34, 102, .35);
  --shadow-soft: 0 6px 18px -8px rgba(30, 34, 102, .22);
  --nav-h: 78px;

  --f-head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --f-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); background: var(--page); color: var(--ink); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; padding-top: var(--nav-h); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--indigo-900); letter-spacing: -.02em; line-height: 1.12; font-weight: 700; }
a { color: var(--indigo-700); }
a:hover { color: var(--indigo-500); text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.block { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: var(--nav-h); }
.block.tint { background: var(--indigo-50); }
.block.dark { background: var(--indigo-900); color: #C9CCF0; }
.block.dark h2, .block.dark h3 { color: #fff; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.section-title { max-width: 640px; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 12px; }
.section-title.center { margin-inline: auto; text-align: center; }
.section-title.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--f-body); font-weight: 700; border-radius: 999px; padding: 12px 26px; border: 2px solid transparent; letter-spacing: 0; text-transform: none; transition: transform .18s, box-shadow .18s, background .18s, color .18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn-primary { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; box-shadow: 0 10px 22px -10px rgba(42, 47, 143, .7); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; }
.btn-warning { background: var(--mango); border-color: var(--mango); color: var(--indigo-950); box-shadow: 0 10px 22px -10px rgba(232, 154, 0, .8); }
.btn-warning:hover, .btn-warning:focus, .btn-warning:not(:disabled):not(.disabled):active { background: #FFC24F; border-color: #FFC24F; color: var(--indigo-950); }
.btn-info { background: var(--indigo-100); border-color: var(--indigo-100); color: var(--indigo-800); }
.btn-info:hover, .btn-info:focus { background: var(--indigo-200); border-color: var(--indigo-200); color: var(--indigo-900); }
.btn-outline-primary { background: transparent; border-color: var(--indigo-700); color: var(--indigo-700); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--indigo-700); color: #fff; border-color: var(--indigo-700); }
.btn-outline-danger { background: transparent; border-color: #E9B5B1; color: var(--bad); }
.btn-outline-danger:hover, .btn-outline-danger:focus { background: var(--bad); border-color: var(--bad); color: #fff; }
.block.dark .btn-outline-primary { border-color: rgba(255,255,255,.4); color: #fff; }
.block.dark .btn-outline-primary:hover { background: #fff; color: var(--indigo-900); }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .86rem; color: var(--indigo-900); margin-bottom: 6px; }
.form-control { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; height: auto; font-size: .98rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--indigo-500); box-shadow: 0 0 0 4px rgba(85, 96, 214, .16); outline: 0; }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.form-group { margin-bottom: 16px; }

/* ---------- Full-width fixed navigation ---------- */
.hk-nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  padding: 0;
  margin-top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(30,34,102,.08);
  box-shadow: 0 8px 28px -18px rgba(30,34,102,.35);
  transition: background .2s, box-shadow .2s;
}
.hk-nav {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 clamp(18px, 4vw, 56px);
}
.hk-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; color: var(--indigo-900); letter-spacing: -.02em; white-space: nowrap; }
.hk-brand:hover { color: var(--indigo-900); }
.hk-brand b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 12px 12px; background: var(--indigo-700); color: var(--mango); font-size: .9rem; }
.hk-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hk-links a { display: block; padding: 8px 15px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; }
.hk-links a i { margin-right: 6px; font-size: .92em; }
.hk-actions .hk-link-quiet i { margin-right: 5px; }
.hk-links a:hover { background: var(--indigo-50); color: var(--indigo-700); }
.hk-links a.active { background: var(--indigo-700); color: #fff; }
.hk-actions { display: flex; align-items: center; gap: 8px; }
.hk-link-quiet { font-weight: 700; font-size: .93rem; padding: 8px 12px; color: var(--indigo-800); border-radius: 999px; }
.hk-link-quiet:hover { background: var(--indigo-50); }
.hk-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--indigo-50); color: var(--indigo-800); font-size: 1.4rem; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hk-hero { padding: 40px 0 0; position: relative; }
.hk-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 130px; }
.hk-hero h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); margin: 0 0 20px; letter-spacing: -.035em; }
.hk-hero .lede { font-size: 1.14rem; margin-bottom: 30px; }
.hk-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hk-facts { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.hk-facts li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: .96rem; }
.hk-facts i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mango-soft); color: var(--mango-deep); flex: none; }
.hk-visual { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
.hk-visual::before { content: ''; position: absolute; inset: -14px -14px 14px 14px; border: 2px solid var(--indigo-200); border-radius: 999px 999px 26px 26px; }
.hk-arch { position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--indigo-100); }
.hk-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-bubble { position: absolute; left: -46px; bottom: 34px; width: 150px; height: 150px; border-radius: 50%; border: 6px solid var(--page); overflow: hidden; box-shadow: var(--shadow-soft); }
.hk-bubble img { width: 100%; height: 100%; object-fit: cover; }
.hk-rate { position: absolute; right: -14px; top: 46px; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 10px; }
.hk-rate strong { font-family: var(--f-head); font-size: 1.5rem; color: var(--indigo-900); line-height: 1; }
.hk-rate small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.2; }
.hk-rate i { color: var(--mango-deep); font-size: 1.3rem; }
.hk-hero-load { animation: hk-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hk-hero-load.d2 { animation-delay: .15s; }
@keyframes hk-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* availability bar */
.hk-search { position: relative; z-index: 5; margin-top: -78px; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px -28px rgba(30,34,102,.5); display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; border: 1px solid var(--line); }
.hk-search label { display: flex; align-items: center; gap: 6px; }
.hk-search label i { color: var(--indigo-500); }
.hk-search .form-control { background: var(--indigo-50); border-color: transparent; }
.hk-search .btn { height: 50px; padding-inline: 28px; }
.hk-search-outer { margin-bottom: -36px; position: relative; z-index: 5; }

/* ---------- Rooms ---------- */
.hk-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.hk-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 8px 20px; border-radius: 999px; cursor: pointer; transition: all .15s; font-family: var(--f-body); }
.hk-chip:hover { border-color: var(--indigo-500); }
.hk-chip.on { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; }
.hk-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.room-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: none; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.room-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room-card:hover .room-card-img img { transform: scale(1.05); }
.room-card-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--indigo-800); font-weight: 800; font-size: .76rem; padding: 5px 12px; border-radius: 999px; }
.room-card-price { position: absolute; right: 12px; bottom: 12px; background: var(--mango); color: var(--indigo-950); font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; padding: 6px 14px; border-radius: 14px; line-height: 1.1; text-align: right; }
.room-card-price small { display: block; font-family: var(--f-body); font-size: .68rem; font-weight: 600; opacity: .75; }
.room-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.room-card-body h3 { font-size: 1.18rem; margin: 0 0 8px; }
.room-card-body p { color: var(--muted); font-size: .93rem; margin: 0 0 14px; flex: 1; }
.room-card-body .btn { margin-top: auto; }
.hk-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hk-perks span { font-size: .74rem; font-weight: 700; background: var(--indigo-50); color: var(--indigo-700); padding: 3px 10px; border-radius: 999px; }
.hk-note { margin-top: 26px; color: var(--muted); font-size: .92rem; }

/* ---------- About ---------- */
.hk-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hk-collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.hk-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }
.hk-collage img:first-child { grid-row: 1 / 3; border-radius: 999px 999px 20px 20px; }
.hk-about h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 16px; }
.hk-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.hk-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.4; }
.hk-list i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--indigo-100); color: var(--indigo-700); font-size: 1.05rem; }
.hk-list b { display: block; color: var(--indigo-900); font-size: .98rem; }
.hk-list span { color: var(--muted); font-size: .86rem; }

/* ---------- 3D showcase (index page) ---------- */
.hk-3d {
  position: relative;
  width: 100%;
  height: min(80vh, 660px);
  min-height: 460px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, #232a7a 0%, transparent 60%),
    linear-gradient(180deg, var(--indigo-950), #0a0c26 100%);
}
.hk-3d-copy { position: relative; z-index: 2; padding-top: clamp(30px, 5vw, 56px); pointer-events: none; }
.hk-3d-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 8px 0 8px; max-width: 22ch; }
.hk-3d-copy .lede { max-width: 46ch; margin: 0; }
.hk-3d-stage { position: absolute; inset: 0; cursor: grab; }
.hk-3d-stage:active { cursor: grabbing; }
.hk-3d-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.hk-3d-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  color: #B4B8E6; font-size: .8rem; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 7px 16px; border-radius: 999px; backdrop-filter: blur(6px);
  animation: hk-hint-fade 3.4s ease-in-out infinite;
}
@keyframes hk-hint-fade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (max-width: 700px) {
  .hk-3d { height: 68vh; min-height: 380px; }
  .hk-3d-copy .lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-3d-hint { animation: none; }
}

/* ---------- Places — animated travel-map trail ---------- */
.hk-places { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.hk-places aside { position: sticky; top: calc(var(--nav-h) + 30px); }
.hk-places aside h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.7rem); margin: 0 0 14px; }
.hk-trail { position: relative; display: grid; gap: 14px; padding-left: 4px; }
.hk-trail::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 30px;
  bottom: 30px;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--mango) 0 9px, rgba(255,182,39,.15) 9px 20px);
  background-size: 3px 40px;
  animation: hk-trail-flow 1.1s linear infinite;
  border-radius: 3px;
  z-index: 0;
}
@keyframes hk-trail-flow { from { background-position-y: 0; } to { background-position-y: -40px; } }

.hk-trail-marker {
  position: absolute;
  left: 39px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,182,39,.35), 0 0 18px 4px rgba(255,182,39,.55);
  z-index: 2;
  animation: hk-trail-travel 7s cubic-bezier(.45,0,.55,1) infinite;
  pointer-events: none;
}
@keyframes hk-trail-travel {
  0%   { top: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hk-stop {
  position: relative;
  z-index: 1;
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px 20px;
  transition: background .2s, border-color .2s, opacity .6s ease, transform .6s ease;
  transition-delay: 0s, 0s, calc(var(--i, 0) * .09s), calc(var(--i, 0) * .09s);
  opacity: 0;
  transform: translateX(-22px);
}
.hk-stop.in-view { opacity: 1; transform: none; }
.hk-stop:hover { background: rgba(255,255,255,.11); border-color: rgba(255,182,39,.6); }
.hk-stop > i {
  position: relative;
  width: 52px; height: 52px; border-radius: 16px; background: var(--mango); color: var(--indigo-950);
  display: grid; place-items: center; font-size: 1.3rem;
}
.hk-stop > i::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255,182,39,.55);
  animation: hk-pin-pulse 2.6s ease-out infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}
@keyframes hk-pin-pulse {
  0%   { transform: scale(.82); opacity: .9; }
  70%  { opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.hk-stop h4 { color: #fff; font-size: 1.05rem; margin: 0 0 2px; }
.hk-stop p { margin: 0; font-size: .88rem; color: #B4B8E6; line-height: 1.45; }
.hk-km { text-align: right; font-family: var(--f-head); color: var(--mango); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.hk-km small { display: block; font-family: var(--f-body); font-size: .72rem; color: #B4B8E6; font-weight: 600; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .hk-trail::before, .hk-trail-marker, .hk-stop > i::after { animation: none !important; }
}

/* ---------- FAQ ---------- */
.hk-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.hk-faq details { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.hk-faq details[open] { border-color: var(--indigo-500); box-shadow: var(--shadow-soft); }
.hk-faq summary { list-style: none; cursor: pointer; padding: 18px 24px; font-weight: 700; color: var(--indigo-900); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hk-faq summary::-webkit-details-marker { display: none; }
.hk-faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-100); color: var(--indigo-700); display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; line-height: 1; transition: transform .25s, background .2s; }
.hk-faq details[open] summary::after { transform: rotate(45deg); background: var(--mango); color: var(--indigo-950); }
.hk-faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); max-width: 68ch; }

/* ---------- Contact ---------- */
.hk-contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.hk-panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 38px); }
.hk-panel h3 { font-size: 1.5rem; margin: 0 0 20px; }
.hk-info { background: var(--indigo-800); color: #C9CCF0; border: 0; }
.hk-info h3 { color: #fff; }
.hk-info ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.hk-info li { display: flex; gap: 14px; align-items: flex-start; font-size: .96rem; }
.hk-info li i { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--mango); display: grid; place-items: center; }
.hk-info a { color: #fff; font-weight: 600; }
.hk-info a:hover { color: var(--mango); }
.hk-map { border-radius: 18px; overflow: hidden; height: 220px; }
.hk-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.hk-footer { background: var(--indigo-950); color: #A9ADDB; padding: 56px 0 0; margin-top: 0; }
.hk-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.hk-footer .hk-brand { color: #fff; margin-bottom: 14px; }
.hk-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.hk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.hk-footer ul li a i { width: 16px; margin-right: 6px; text-align: center; color: var(--brand-400); }
.hk-footer a { color: #A9ADDB; }
.hk-footer a:hover { color: var(--mango); }
.hk-footer p { font-size: .93rem; max-width: 36ch; }
.hk-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Back to top (progress ring) ---------- */
.hk-top { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--indigo-700); color: #fff; font-size: 1.25rem; display: grid; place-items: center; cursor: pointer; z-index: 70; box-shadow: 0 12px 26px -10px rgba(42,47,143,.8); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s, transform .25s, visibility .25s, background .15s; }
.hk-top.show { opacity: 1; visibility: visible; transform: none; }
.hk-top:hover { background: var(--indigo-600); }
.hk-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.hk-top circle { fill: none; stroke-width: 3; }
.hk-top .track { stroke: rgba(255,255,255,.2); }
.hk-top .bar { stroke: var(--mango); stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: 145; }

/* ---------- Auth (login / register) ---------- */
.auth-shell { background: var(--indigo-50); min-height: calc(100vh - 340px); display: flex; align-items: center; padding: 56px 20px; }
.auth-frame { width: min(940px, 100%); margin: 0 auto; background: #fff; border-radius: 30px; box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; }

.auth-aside { background: var(--indigo-900); color: #C9CCF0; padding: 48px 42px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-aside::before { content: ''; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,182,39,.3), transparent 70%); }
.auth-aside::after { content: ''; position: absolute; left: -60px; bottom: -80px; width: 220px; height: 220px; border: 2px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-aside .hk-brand { color: #fff; margin-bottom: auto; position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 1.9rem; margin: 20px 0 10px; position: relative; z-index: 1; }
.auth-aside p { color: #B4B8E6; font-size: .96rem; max-width: 30ch; position: relative; z-index: 1; }
.auth-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #DEE0F5; }
.auth-points i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--mango); }
.auth-quote { margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); position: relative; z-index: 1; font-size: .84rem; color: #9FA4DE; }

.auth-box { padding: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.auth-back { position: absolute; top: 22px; right: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 1.3rem; line-height: 1; background: var(--indigo-50); }
.auth-back:hover { background: var(--indigo-100); color: var(--indigo-800); }
.auth-box .eyebrow { display: block; margin-bottom: 8px; }
.auth-box h1 { font-size: 1.9rem; margin: 0 0 6px; }
.auth-box .lede { margin: 0 0 26px; font-size: .95rem; }
.auth-field { position: relative; margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 6px; }
.auth-field .form-control { padding-left: 44px; }
.auth-field > i { position: absolute; left: 15px; top: 41px; color: var(--muted); font-size: 1.05rem; }
.auth-toggle { position: absolute; right: 14px; top: 41px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; padding: 4px; }
.auth-toggle:hover { color: var(--indigo-700); }
.auth-submit { margin-top: 6px; height: 50px; font-size: 1rem; }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.auth-switch a { font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 860px) {
  .auth-frame { grid-template-columns: 1fr; }
  .auth-aside { padding: 34px 30px; }
  .auth-aside .auth-quote, .auth-points li:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .auth-shell { padding: 30px 14px; }
  .auth-box { padding: 30px 22px; }
}

/* ---------- Inner-page hero, cards, alerts (legacy pages) ---------- */
.page-hero { background: var(--indigo-900); color: #C9CCF0; padding: 56px 0 76px; position: relative; overflow: hidden; border-radius: 0 0 44px 44px; }
.page-hero::before { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,182,39,.28), transparent 68%); }
.page-hero::after { display: none; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 8px 0 10px; }
.page-hero p { color: #C9CCF0; max-width: 56ch; margin: 0; }
.breadcrumb { background: none; padding: 0; margin: 0; color: #9FA4DE; font-size: .88rem; }
.breadcrumb a { color: #fff; }
.roofline-alt, .roofline { display: none; }
.section { padding: 56px 0; }
.section-sand, .section-alt { background: var(--indigo-50); }
.card, .summary-card, .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: none; padding: 26px; }
.auth-card { box-shadow: var(--shadow-card); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary-row.total { border-bottom: 0; font-family: var(--f-head); font-size: 1.2rem; color: var(--indigo-900); font-weight: 700; }
.alert { border-radius: 14px; border: 0; padding: 14px 18px; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-danger { background: var(--bad-bg); color: var(--bad); }
.text-muted { color: var(--muted) !important; }
.eyebrow { color: var(--indigo-600); font-weight: 700; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.eyebrow::before { display: none; }
.amenity-chip { background: var(--indigo-50); color: var(--indigo-700); border-radius: 999px; font-weight: 700; }

/* ---------- Badges & pills ---------- */
.badge { font-family: var(--f-body); font-weight: 700; font-size: .76rem; padding: 5px 12px; border-radius: 999px; text-transform: capitalize; letter-spacing: 0; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-danger { background: var(--bad-bg); color: var(--bad); }
.badge-warning { background: var(--wait-bg); color: var(--wait); }
.badge-info, .badge-primary { background: var(--indigo-100); color: var(--indigo-700); }
.badge-secondary { background: #ECECF3; color: #545775; }

/* ---------- My Bookings ---------- */
.hk-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hk-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 20px; min-width: 130px; }
.hk-stat strong { display: block; font-family: var(--f-head); color: #fff; font-size: 1.6rem; line-height: 1.1; }
.hk-stat span { font-size: .82rem; color: #B4B8E6; }
.hk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hk-tabs a { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; }
.hk-tabs a em { font-style: normal; background: var(--indigo-100); color: var(--indigo-700); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.hk-tabs a:hover { border-color: var(--indigo-500); }
.hk-tabs a.on { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; }
.hk-tabs a.on em { background: rgba(255,255,255,.2); color: #fff; }
.hk-table-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); }
.hk-table-scroll { overflow-x: auto; }
.hk-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: .93rem; margin: 0; }
.hk-table th { background: var(--indigo-50); color: var(--indigo-800); font-weight: 700; font-size: .8rem; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hk-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hk-table tbody tr:last-child td { border-bottom: 0; }
.hk-table tbody tr:hover td { background: #FAFAFF; }
.hk-table .num { text-align: right; }
.hk-table .code { font-family: var(--f-head); font-weight: 700; color: var(--indigo-800); white-space: nowrap; }
.hk-table .sub { display: block; color: var(--muted); font-size: .8rem; }
.hk-table .amt { font-family: var(--f-head); font-weight: 700; color: var(--indigo-900); white-space: nowrap; }
.hk-table .acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.hk-table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; }
.hk-table-foot .info { color: var(--muted); font-size: .88rem; }
.hk-table-foot .pagination { margin: 0; }
.hk-empty { text-align: center; padding: 56px 20px; }
.hk-empty i { font-size: 2.6rem; color: var(--indigo-500); }

/* pagination (bootstrap markup from render_pagination) */
.pagination { gap: 6px; }
.page-link { border: 0; border-radius: 12px !important; min-width: 40px; height: 40px; display: grid; place-items: center; color: var(--indigo-800); font-weight: 700; background: var(--indigo-50); margin: 0; padding: 0 12px; }
.page-link:hover { background: var(--indigo-100); color: var(--indigo-700); }
.page-item.active .page-link { background: var(--indigo-700); color: #fff; box-shadow: 0 8px 16px -8px rgba(42,47,143,.8); }
.page-item.disabled .page-link { background: transparent; color: #B5B8D6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hk-links { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column; background: #fff; border-radius: 26px; padding: 12px; box-shadow: 0 24px 48px -20px rgba(30,34,102,.5); }
  .hk-links.open { display: flex; }
  .hk-links a { padding: 13px 18px; }
  .hk-burger { display: inline-flex; }
  .hk-nav { position: relative; }
  .hk-hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 110px; }
  .hk-visual { margin: 0 auto; max-width: 380px; }
  .hk-bubble { left: -18px; width: 120px; height: 120px; }
  .hk-search { grid-template-columns: 1fr 1fr; }
  .hk-search .btn { grid-column: 1 / -1; }
  .hk-about, .hk-places, .hk-contact { grid-template-columns: 1fr; gap: 36px; }
  .hk-places aside { position: static; }
  .hk-collage { height: 400px; }
  .hk-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hk-actions .hk-link-quiet, .hk-actions .btn span { display: none; }
  .hk-search { grid-template-columns: 1fr; padding: 18px; }
  .hk-list, .form-row { grid-template-columns: 1fr; }
  .hk-stop { grid-template-columns: 44px 1fr; }
  .hk-stop > i { width: 44px; height: 44px; }
  .hk-trail::before { left: 41px; }
  .hk-trail-marker { left: 35px; }
  .hk-km { grid-column: 2; text-align: left; font-size: 1.1rem; }
  .hk-km small { display: inline; margin-left: 4px; }
  .hk-foot-grid { grid-template-columns: 1fr; }
  .hk-rate { right: 6px; }
  .hk-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
