/* ComfyStay public site — Phase 0/1
   Palette inspired by reference: white, charcoal, coral-red accent */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #e8e8ea;
  --accent: #e8505b;
  --accent-dark: #d13d48;
  --accent-soft: rgba(232, 80, 91, 0.12);
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --header-h: 76px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.brand-location {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-left: 1.7rem;
  line-height: 1.2;
}

.brand-location-switch {
  display: block;
  padding-left: 1.55rem;
  max-width: 100%;
}

.brand-location-select {
  appearance: none;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right center;
  padding: 0 1rem 0 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  cursor: pointer;
  max-width: min(220px, 42vw);
  outline: none;
}

.brand-location-select:hover,
.brand-location-select:focus-visible {
  color: var(--accent);
}

.brand-mark {
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.brand-mark--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-mark--logo img {
  display: block;
  height: 1.55rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
}

.site-footer .brand-mark--logo img {
  height: 1.55rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.85rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: min(72vh, calc(100dvh - var(--header-h)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: mobile-nav-in 0.28s var(--ease);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mobile-nav-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-nav-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mobile-nav-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mobile-nav-chip:hover {
  border-color: var(--line);
  background: #fff;
}

.mobile-nav-chip.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav-links a:last-child {
  border-bottom: 0;
}

.mobile-nav-links a:hover {
  color: var(--accent);
  background: transparent;
}

.mobile-nav-links a.is-active {
  color: var(--accent);
}

.mobile-nav-links a.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mobile-nav-cta {
  padding-top: 0.15rem;
}

.mobile-nav-cta .btn {
  width: 100%;
}

@keyframes mobile-nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 899px) {
  body.nav-open .brand-location {
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .header-actions .btn {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}

/* Author display rules beat the UA [hidden] stylesheet — keep buttons truly hidden */
.btn[hidden] {
  display: none !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding-inline: 1.35rem;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.btn-search {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.btn-search:hover {
  background: var(--accent-dark);
}

.btn-search svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.28) 0%,
    rgba(20, 20, 20, 0.38) 42%,
    rgba(20, 20, 20, 0.68) 100%
  );
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.25rem 0 2.75rem;
}

@media (min-width: 860px) {
  .hero-content {
    padding: 4rem 0 3.5rem;
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0.45rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero-brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.hero-brand--stacked .brand-mark--logo img {
  height: clamp(6.5rem, 18vw, 10rem);
  max-width: min(20rem, 70vw);
  width: auto;
}

.hero-brand-name {
  display: block;
}

.hero-location {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.18s forwards;
}

.hero-brand .brand-mark {
  color: #fff;
  font-size: 1.05em;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 22ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.25s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-note {
  margin: 0 0 1.35rem;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.32s forwards;
}

.search-bar {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.7rem;
  display: grid;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.42s forwards;
}

@media (min-width: 860px) {
  /* Penginapan (default): Tujuan | Masuk | Keluar | Tetamu | btn */
  .search-bar {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
    align-items: end;
    padding: 0.55rem 0.55rem 0.55rem 1rem;
    border-radius: 18px;
  }

  /* + Homestay switcher */
  .search-bar:has(.search-field-homestay) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr) auto;
  }

  /* Majlis: Tujuan | Tarikh | Mula | Tamat | Tetamu | btn */
  .search-bar[data-purpose="majlis"] {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.75fr) auto;
  }

  .search-bar[data-purpose="majlis"]:has(.search-field-homestay) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 0.65fr) minmax(0, 0.65fr) minmax(0, 0.7fr) auto;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.3rem 0.45rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.search-field[hidden],
.date-summary-row[hidden],
.event-hours-row[hidden] {
  display: none !important;
}

@media (min-width: 860px) {
  .search-field {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .search-field:last-of-type {
    border-right: 0;
  }

  .search-bar .btn-search {
    flex-shrink: 0;
    justify-self: end;
  }
}

.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.search-field label svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.search-field input,
.search-field select {
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
  font-weight: 600;
  outline: none;
  width: 100%;
}

.search-field input:focus,
.search-field select:focus {
  color: var(--accent);
}

.search-bar .btn-search {
  width: 100%;
  height: 48px;
}

@media (min-width: 860px) {
  .search-bar .btn-search {
    width: 50px;
    height: 50px;
  }
}

.search-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #fdecee;
  color: #a12832;
  font-size: 0.86rem;
  font-weight: 600;
}

.search-error[hidden] {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- Advantages ---------- */
.adv-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .adv-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.adv-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.adv-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.adv-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.adv-ico svg {
  width: 20px;
  height: 20px;
}

.adv-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.adv-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nearby-section .nearby-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.nearby-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nearby-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 800;
}

.nearby-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.nearby-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .nearby-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 980px) {
  .nearby-grid:has(> :nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nearby-grid--compact {
  margin-top: 0.85rem;
  gap: 0.65rem;
}

.nearby-lokasi-heading {
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
}

.nearby-tile {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  animation: fadeUp 0.7s var(--ease) both;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nearby-tile:nth-child(1) { animation-delay: 0.05s; }
.nearby-tile:nth-child(2) { animation-delay: 0.1s; }
.nearby-tile:nth-child(3) { animation-delay: 0.15s; }
.nearby-tile:nth-child(4) { animation-delay: 0.2s; }
.nearby-tile:nth-child(5) { animation-delay: 0.25s; }
.nearby-tile:nth-child(6) { animation-delay: 0.3s; }

@media (hover: hover) {
  .nearby-tile:hover {
    border-color: rgba(232, 80, 91, 0.35);
    transform: translateY(-2px);
  }
}

.nearby-tile-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.nearby-tile-ico svg {
  width: 20px;
  height: 20px;
}

.nearby-tile-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  line-height: 1;
}

.nearby-tile-value {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.nearby-tile-unit {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nearby-tile-place {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.nearby-grid--compact .nearby-tile {
  padding: 0.9rem 1rem;
  gap: 0.55rem;
}

.nearby-grid--compact .nearby-tile-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nearby-grid--compact .nearby-tile-ico svg {
  width: 17px;
  height: 17px;
}

.nearby-grid--compact .nearby-tile-value {
  font-size: 1.55rem;
}

.nearby-grid--compact .nearby-tile-unit {
  font-size: 0.82rem;
}

.nearby-grid--compact .nearby-tile-place {
  font-size: 0.92rem;
}

.nearby-foot {
  margin: 1.5rem 0 0;
}

.nearby-foot a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.nearby-foot a:hover {
  text-decoration: underline;
}

.adv-actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.adv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.adv-links a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.adv-links a:hover {
  text-decoration: underline;
}

.adv-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

@media (min-width: 900px) {
  .adv-visual {
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }
}

.adv-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ---------- Space cards ---------- */
.spaces-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spaces-head .section-head {
  margin-bottom: 0;
}

.carousel-nav {
  display: none;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel-nav.is-active {
  display: flex;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.icon-btn:hover:not(:disabled) {
  border-color: #ccc;
  background: var(--bg-soft);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Unit capacity band */
.unit-band {
  display: grid;
  gap: 1.75rem;
}

.unit-band-copy {
  max-width: 40rem;
}

.unit-band-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.unit-band-copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 800;
}

.unit-band-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.unit-stat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .unit-stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.unit-stat-row li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  animation: fadeUp 0.7s var(--ease) both;
}

.unit-stat-row li:nth-child(1) { animation-delay: 0.05s; }
.unit-stat-row li:nth-child(2) { animation-delay: 0.12s; }
.unit-stat-row li:nth-child(3) { animation-delay: 0.18s; }
.unit-stat-row li:nth-child(4) { animation-delay: 0.24s; }

.unit-stat-ico {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.unit-stat-ico svg {
  width: 20px;
  height: 20px;
}

.unit-stat-value {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.unit-stat-price {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.unit-stat-label {
  grid-column: 2;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.unit-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.unit-band-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.unit-band-link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .unit-stat-row li {
    animation: none;
  }
}

.space-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.space-meta span:not(:last-child)::after {
  content: "|";
  margin-left: 0.75rem;
  opacity: 0.4;
}

.price-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(232, 80, 91, 0.35);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg-soft);
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
}

.gallery-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-inner {
  position: relative;
  width: min(100%, 1100px);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gallery-lightbox-stage {
  position: relative;
  width: 100%;
  max-height: calc(92vh - 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.gallery-lightbox-stage.is-zoomed {
  cursor: grab;
}

.gallery-lightbox-stage.is-zoomed.is-dragging {
  cursor: grabbing;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform-origin: center center;
  transition: transform 0.2s var(--ease);
  will-change: transform;
}

.gallery-lightbox-stage.is-zoomed .gallery-lightbox-img {
  transition: none;
}

.gallery-lightbox-caption {
  margin: 0;
  max-width: 40rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gallery-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-nav[hidden] {
  display: none;
}

.gallery-lightbox-prev {
  left: 0.75rem;
}

.gallery-lightbox-next {
  right: 0.75rem;
}

.gallery-lightbox-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-lightbox.is-open .gallery-lightbox-hint {
  opacity: 1;
}

.gallery-lightbox.is-open.is-hint-hidden .gallery-lightbox-hint {
  opacity: 0;
}

body.gallery-lightbox-active {
  overflow: hidden;
}

@media (max-width: 700px) {
  .gallery-lightbox {
    padding: 0.5rem;
  }

  .gallery-lightbox-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .gallery-lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .gallery-lightbox-prev {
    left: 0.35rem;
  }

  .gallery-lightbox-next {
    right: 0.35rem;
  }
}

/* ---------- Pricing ---------- */
.price-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .price-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-card h3 {
  margin: 0 0 0.35rem;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.price-card .amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.price-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-right: 0.5rem;
}

/* ---------- FAQ / Rules / Content ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

.rules-box,
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.rules-box ol,
.rules-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row-2 {
  display: grid;
  gap: 0.85rem;
}

.form-row-2[hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row label {
  font-weight: 700;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select {
  border-color: #e8505b;
  box-shadow: 0 0 0 3px rgba(232, 80, 91, 0.12);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.booking-homestay-row select {
  font-weight: 600;
}

.booking-location-static {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f7f7f8;
}

.booking-location-static strong {
  font-size: 1.05rem;
}

.field-error {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a12832;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Alerts ---------- */
.alert {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
}

.alert-success {
  background: #e8f7ef;
  color: #1b6b3a;
}

.alert-error {
  background: #fdecee;
  color: #a12832;
}

.alert-info {
  background: #eef3ff;
  color: #2a4a9b;
}

/* ---------- Admin draft preview ---------- */
.preview-banner {
  background: linear-gradient(90deg, #1f54e0, #2f6bff);
  color: #fff;
  padding: 0.7rem 0;
  font-size: 0.9rem;
}

.preview-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.preview-banner strong {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.preview-banner span {
  flex: 1 1 12rem;
  opacity: 0.95;
}

.preview-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #141414;
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.2fr;
  }
}

.site-footer .brand-text,
.site-footer .brand-mark {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.65);
}

.footer-location {
  margin: 0.35rem 0 0 !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.88rem !important;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.wa-float-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 11.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #128c7e;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(18, 140, 126, 0.18);
  animation: wa-float-prompt-in 0.45s var(--ease) both;
}

.wa-float-prompt-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: #128c7e;
}

.wa-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease);
}

.wa-float:hover .wa-float-btn {
  transform: translateY(-3px) scale(1.04);
}

.wa-float:hover .wa-float-prompt {
  transform: translateY(-2px);
}

@keyframes wa-float-prompt-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .wa-float {
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }

  .wa-float-prompt {
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
    max-width: 9.5rem;
  }

  .wa-float-btn {
    width: 52px;
    height: 52px;
  }
}

/* ---------- Utilities ---------- */
.muted {
  color: var(--muted);
}

.mt-1 {
  margin-top: 0.75rem;
}
.mt-2 {
  margin-top: 1.25rem;
}
.mt-3 {
  margin-top: 2rem;
}

.text-center {
  text-align: center;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 800px) {
  .facility-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.facility-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.facility-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.facility-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Availability calendar (Phase 2) ---------- */
.avail-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .avail-layout {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: start;
  }
}

.cal-card {
  overflow: hidden;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cal-toolbar h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cal-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cal-nav-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  line-height: 1;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}

.cal-nav-today:hover {
  border-color: #ccc;
  background: var(--bg-soft);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.cal-dot.tersedia {
  background: #15803d;
}
.cal-dot.ditempah {
  background: #b91c1c;
}
.cal-dot.majlis {
  background: #2563eb;
}
.cal-dot.majlis_menunggu {
  background: #60a5fa;
}
.cal-dot.menunggu {
  background: #ea580c;
}
.cal-dot.ditutup {
  background: #f87171;
}

.pub-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.pub-cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.35rem 0;
  min-width: 0;
}

.pub-cal-cell {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #f3f4f6;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  border: 2px solid #d1d5db;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pub-cal-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
  /* Keep column alignment without drawing empty day “ghost” squares */
  border: 0;
  aspect-ratio: auto;
  min-height: 0;
}

.pub-cal-cell:disabled {
  cursor: default;
  opacity: 0.72;
}

.pub-cal-cell.tersedia {
  background: #86efac;
  color: #14532d;
  border-color: #16a34a;
}

.pub-cal-cell.ditempah {
  background: #ef4444;
  color: #fff;
  border-color: #991b1b;
}

.pub-cal-cell.majlis {
  background: #2563eb;
  color: #fff;
  border-color: #1e3a8a;
}

.pub-cal-cell.majlis_menunggu {
  background: #93c5fd;
  color: #1e3a8a;
  border-color: #2563eb;
}

.pub-cal-cell.menunggu {
  background: #fdba74;
  color: #7c2d12;
  border-color: #c2410c;
}

.pub-cal-cell.ditutup {
  background: repeating-linear-gradient(
    -45deg,
    #fecaca,
    #fecaca 6px,
    #fca5a5 6px,
    #fca5a5 12px
  );
  color: #7f1d1d;
  font-weight: 800;
  border-color: #b91c1c;
}

.pub-cal-cell.past.tersedia,
.pub-cal-cell.past.ditutup {
  background: #e5e7eb;
  color: #6b7285;
  border-color: #d1d5db;
  opacity: 0.75;
}

.pub-cal-cell.past.ditempah {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  opacity: 0.7;
}

.pub-cal-cell.past.menunggu {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
  opacity: 0.7;
}

.pub-cal-cell.tersedia:not(.past):not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(22, 101, 52, 0.18);
}

.pub-cal-cell.in-range {
  background: #bfdbfe !important;
  color: #1e3a8a !important;
  border-color: #3b82f6 !important;
}

.pub-cal-cell.range-start,
.pub-cal-cell.range-end,
.pub-cal-cell.is-selected {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.cal-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}

.date-summary {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f7f8fc;
  border: 1px solid #e8eaf2;
  margin-bottom: 0.85rem;
}

.date-summary.has-error {
  border-color: #fca5a5;
  background: #fef2f2;
}

.date-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.date-summary-row span {
  color: var(--muted);
  font-weight: 600;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  justify-self: start;
}

.avail-booking-layout {
  align-items: start;
}

@media (min-width: 900px) {
  .avail-booking-layout .cal-card {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.rules-inline {
  background: #fafafa;
}

.booking-side .rules-inline {
  border-style: dashed;
  padding: 1rem 1.15rem;
}

@media (max-width: 800px) {
  .avail-layout {
    grid-template-columns: 1fr;
  }
}

.avail-result {
  margin: 0.25rem 0 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f7f7f8;
  font-size: 0.95rem;
}

.avail-result.ok {
  background: #ecfdf5;
  color: #166534;
}

.avail-result.bad {
  background: #fef2f2;
  color: #991b1b;
}

.avail-result.is-empty {
  color: var(--muted);
}

.avail-result.is-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #374151;
  background: #f3f4f6;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #d1d5db;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
}

.empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Portal (Phase 4) — destination atlas ---------- */
.page-portal {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 80, 91, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(26, 26, 26, 0.04), transparent 50%),
    linear-gradient(180deg, #faf9f8 0%, #ffffff 28%, #f6f5f4 100%);
}

.portal-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
  overflow: hidden;
  color: var(--ink);
}

.portal-hero--brand {
  text-align: center;
}

.portal-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.portal-hero-aura {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(36rem, 100vw);
  height: min(28rem, 70vh);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 80% at 50% 28%, rgba(232, 80, 91, 0.1) 0%, transparent 72%);
}

.portal-hero-content {
  position: relative;
  z-index: 1;
}

.portal-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-brand-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 32rem;
  opacity: 0;
  animation: portalBrandIn 0.9s var(--ease) 0.05s forwards;
}

@keyframes portalBrandIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-brand-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
}

.portal-brand-halo {
  position: absolute;
  width: clamp(12rem, 36vw, 17rem);
  height: clamp(12rem, 36vw, 17rem);
  border-radius: 50%;
}

.portal-brand-halo {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98), rgba(255, 248, 246, 0.82) 55%, rgba(232, 80, 91, 0.07) 100%);
  box-shadow:
    0 24px 60px rgba(232, 80, 91, 0.12),
    0 8px 24px rgba(26, 26, 26, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  animation: portalHaloPulse 8s ease-in-out infinite alternate;
}

@keyframes portalHaloPulse {
  from {
    transform: scale(1);
    box-shadow:
      0 24px 60px rgba(232, 80, 91, 0.12),
      0 8px 24px rgba(26, 26, 26, 0.06),
      inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  }
  to {
    transform: scale(1.03);
    box-shadow:
      0 30px 68px rgba(232, 80, 91, 0.15),
      0 10px 28px rgba(26, 26, 26, 0.07),
      inset 0 0 0 1px rgba(255, 255, 255, 1);
  }
}

.portal-brand-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(12rem, 36vw, 17rem);
  height: clamp(12rem, 36vw, 17rem);
  padding: clamp(1.15rem, 3.2vw, 1.75rem);
}

.portal-brand-mark .brand-mark--logo img {
  height: clamp(6.5rem, 20vw, 10rem);
  max-width: min(16rem, 78vw);
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(26, 26, 26, 0.1));
}

.portal-brand-showcase.has-glyph .portal-brand-mark .brand-mark {
  font-size: clamp(4rem, 14vw, 6rem);
  color: var(--accent);
  line-height: 1;
}

.portal-brand-name {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.portal-hero-copy {
  opacity: 0;
  animation: fadeUp 0.85s var(--ease) 0.2s forwards;
}

.portal-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.25;
}

.portal-lead {
  margin: 0 auto;
  max-width: 26rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.55;
}

.portal-hero.has-search + .portal-listings {
  padding-top: clamp(3.75rem, 8vw, 5rem);
}

.portal-listings {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.portal-listings-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
}

.portal-listings-intro {
  max-width: 36rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

.portal-listings-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.portal-listings-intro h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.portal-listings-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.portal-search-summary {
  margin: 0;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.05);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
}

.portal-search-summary a {
  margin-left: 0.5rem;
  font-weight: 700;
  color: var(--accent);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.85rem;
  }
}

@media (min-width: 1100px) {
  .portal-grid {
    gap: 2.15rem;
  }
}

.portal-card {
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 16px 48px rgba(26, 26, 26, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  height: 100%;
  border: 1px solid rgba(26, 26, 26, 0.04);
  opacity: 0;
  animation: portalCardIn 0.75s var(--ease) calc(0.12s + var(--portal-i, 1) * 0.1s) forwards;
}

@keyframes portalCardIn {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(26, 26, 26, 0.12);
}

.portal-card:focus-within {
  outline: 2px solid rgba(232, 80, 91, 0.45);
  outline-offset: 3px;
}

.portal-card.is-unavailable {
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.05);
}

.portal-card.is-unavailable:hover {
  transform: none;
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.05);
}

.portal-card.is-unavailable .portal-card-media {
  filter: grayscale(0.4) brightness(0.94);
}

.portal-card.is-unavailable:hover .portal-card-media img {
  transform: none;
}

.portal-card.is-available {
  box-shadow: 0 16px 48px rgba(232, 80, 91, 0.14);
}

.portal-card-media {
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #1a1a1a;
}

.portal-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 14, 0.45));
  pointer-events: none;
  z-index: 1;
}

.portal-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.portal-card:hover .portal-card-media img {
  transform: scale(1.06);
}

.portal-card-index {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.portal-card-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(232, 80, 91, 0.28), transparent 55%),
    linear-gradient(160deg, #2a2222, #1a1514);
}

.portal-card-body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.portal-card-body h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.portal-card-brand {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.portal-card-price {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.portal-card-price.is-full {
  background: #ececef;
  color: #6b6b73;
}

.portal-card-body h2 a:hover {
  color: var(--accent);
}

.portal-card-city {
  margin: 0.1rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.portal-card-city svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.85;
}

.portal-card-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.portal-card-avail-note {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #15803d;
}

.portal-card-avail-note.is-no {
  color: #b45309;
  font-weight: 600;
}

.portal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.portal-card-meta span {
  position: relative;
}

.portal-card-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 1rem;
  margin-bottom: 0.2rem;
  border-radius: 50%;
  background: #c4c4c8;
  vertical-align: middle;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  background: #ececef;
  color: #8a8a92;
  font-weight: 700;
  cursor: not-allowed;
  border: 0;
}

/* Portal search bar — floats below brand hero */
.portal-hero.has-search {
  padding-bottom: clamp(2.75rem, 6vw, 4rem);
}

.portal-search-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: calc(-1 * clamp(1.5rem, 3.5vw, 2.25rem));
  opacity: 0;
  animation: fadeUp 0.85s var(--ease) 0.28s forwards;
}

.portal-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 20px 56px rgba(26, 26, 26, 0.1);
  border: 1px solid rgba(26, 26, 26, 0.06);
  color: var(--ink);
}

@media (min-width: 860px) {
  .portal-search {
    grid-template-columns: 1.2fr 1.2fr 0.85fr auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.9rem 0.9rem 0.9rem 1.2rem;
  }
}

.portal-search-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-search-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.portal-search-control:focus-within {
  border-color: rgba(232, 80, 91, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}

.portal-search-ico {
  display: inline-flex;
  color: #9a9aa3;
  flex-shrink: 0;
}

.portal-search-control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  padding: 0.55rem 0;
}

.portal-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  min-width: 52px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 10px 24px rgba(232, 80, 91, 0.28);
}

.portal-search-submit:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(209, 61, 72, 0.35);
}

.portal-search-submit:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.portal-search-submit:active {
  transform: scale(0.98);
}

@media (max-width: 859px) {
  .portal-search-submit {
    width: 100%;
  }
}

.portal-search-error {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  color: #9f1239;
  font-weight: 600;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .portal-brand-showcase,
  .portal-brand-halo,
  .portal-hero-copy,
  .portal-search-wrap,
  .portal-listings-intro,
  .portal-card {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .portal-card:hover .portal-card-media img {
    transform: none;
  }
}

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Star rating display ---------- */
.stars {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
  line-height: 1;
}

.stars .star {
  width: 1.05rem;
  height: 1.05rem;
  fill: #ddd;
}

.stars .star.is-filled {
  fill: #f5a623;
}

.stars-sm .star {
  width: 0.9rem;
  height: 0.9rem;
}

.stars-lg .star {
  width: 1.35rem;
  height: 1.35rem;
}

/* ---------- Feedback form star picker ---------- */
.page-ulasan-hero {
  padding-bottom: 1rem;
}

.page-ulasan-section {
  padding-top: 0;
}

.ulasan-shell {
  width: min(100%, 36rem);
  margin-inline: auto;
}

.page-ulasan-hero .ulasan-shell h1 {
  margin: 0 0 0.6rem;
}

.page-ulasan-hero .ulasan-shell p {
  margin: 0;
  max-width: none;
}

.star-picker {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.star-picker legend {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 0.45rem;
}

.star-picker-row {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
  width: max-content;
  max-width: 100%;
}

.star-picker-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.star-picker-row label {
  cursor: pointer;
  padding: 0.15rem;
  line-height: 0;
  margin: 0;
  font-weight: 400;
}

.star-picker-icon {
  width: 2.1rem;
  height: 2.1rem;
  fill: #ddd;
  transition: fill 0.15s var(--ease), transform 0.15s var(--ease);
}

.star-picker-row label:hover .star-picker-icon,
.star-picker-row label:hover ~ label .star-picker-icon,
.star-picker-row input:checked + label .star-picker-icon,
.star-picker-row input:checked ~ label .star-picker-icon,
.star-picker-row input:focus-visible + label .star-picker-icon {
  fill: #f5a623;
}

.star-picker-row label:hover .star-picker-icon {
  transform: scale(1.08);
}

.star-picker-row input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.feedback-form {
  margin-top: 0;
  padding: 1.75rem 1.85rem;
}

.feedback-form-note {
  font-size: 0.85rem;
  margin: 0;
}

@media (min-width: 720px) {
  .feedback-form {
    padding: 2rem 2.15rem;
  }
}

/* ---------- Home feedback slider ---------- */
.feedback-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(26, 26, 26, 0.03), transparent 55%),
    var(--bg);
  border-block: 1px solid var(--line);
}

.feedback-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .feedback-layout {
    grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.35fr);
    gap: 3.5rem 4rem;
  }

  .feedback-intro {
    padding-top: 0.35rem;
    max-width: 22rem;
  }
}

.feedback-intro {
  position: relative;
  z-index: 1;
  max-width: none;
}

.feedback-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.feedback-intro h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 5.5vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 800;
}

.feedback-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36rem;
}

@media (min-width: 900px) {
  .feedback-eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
  }

  .feedback-lede {
    font-size: 1.02rem;
    line-height: 1.55;
  }
}

.feedback-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
}

.feedback-count-sep {
  color: var(--muted);
  font-weight: 600;
}

.feedback-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
}

.feedback-quote-mark {
  position: absolute;
  top: -0.15rem;
  left: -0.05rem;
  font-size: clamp(3.75rem, 18vw, 8.5rem);
  line-height: 0.7;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}

.feedback-track {
  position: relative;
  min-height: 0;
  padding-top: 1.1rem;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.feedback-track.is-holding {
  cursor: grabbing;
}

.feedback-slide {
  margin: 0;
  text-align: left;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  padding-top: 1.1rem;
}

.feedback-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.feedback-slide[hidden] {
  display: block !important;
  visibility: hidden;
}

.feedback-slide.is-active[hidden] {
  visibility: visible;
}

.feedback-slide .stars {
  margin-bottom: 0.75rem;
}

.feedback-quote {
  margin: 0 0 1rem;
  max-width: 34rem;
  font-size: clamp(1.12rem, 4.2vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.feedback-autoplay-bar {
  position: relative;
  max-width: 34rem;
  height: 3px;
  margin: 0 0 0.9rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.feedback-autoplay-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
}

.feedback-slide.is-active.is-autoplaying .feedback-autoplay-fill {
  animation: feedbackAutoplayFill 5s linear forwards;
}

.feedback-slide.is-active.is-autoplaying.is-paused .feedback-autoplay-fill {
  animation-play-state: paused;
}

@keyframes feedbackAutoplayFill {
  from { width: 0%; }
  to { width: 100%; }
}

.feedback-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-top: 0;
  border-top: 0;
  max-width: 34rem;
  font-style: normal;
}

.feedback-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feedback-author-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feedback-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  max-width: 34rem;
}

.feedback-progress {
  display: flex;
  flex: 1 1 auto;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.feedback-progress-btn {
  flex: 1 1 0;
  height: 3px;
  max-width: 2.5rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #d8d8dc;
  cursor: pointer;
  transition: background 0.25s var(--ease), max-width 0.35s var(--ease);
}

.feedback-progress-btn.is-active {
  background: var(--accent);
  max-width: 3.25rem;
}

.feedback-progress-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.feedback-nav {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}

.feedback-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feedback-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.feedback-nav-btn:active {
  transform: scale(0.96);
}

.feedback-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .feedback-track,
  .feedback-slide {
    padding-top: 1.75rem;
  }

  .feedback-quote-mark {
    top: -0.55rem;
    left: -0.15rem;
  }

  .feedback-controls {
    margin-top: 1.75rem;
    gap: 0.85rem;
  }

  .feedback-count {
    font-size: 0.9rem;
    min-width: 2.85rem;
  }

  .feedback-nav-btn {
    width: 44px;
    height: 44px;
  }

  .feedback-progress-btn {
    max-width: 3.25rem;
  }

  .feedback-progress-btn.is-active {
    max-width: 4.5rem;
  }

  .feedback-autoplay-bar {
    height: 2px;
  }
}

@media (max-width: 899px) {
  .feedback-section.section {
    padding-block: 2.5rem;
  }

  .feedback-progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-slide {
    transition: none;
    transform: none;
  }

  .feedback-slide.is-active.is-autoplaying .feedback-autoplay-fill {
    animation: none;
    width: 100%;
  }

  .feedback-progress-btn {
    transition: background 0.2s;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.cal-nav-today:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.nav-desktop a:focus-visible,
.mobile-nav-links a:focus-visible,
.mobile-nav-chip:focus-visible {
  outline-offset: 4px;
}


