﻿@import url('front-tokens.css');

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-rd-sub.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--hk-font-family);
  font-size: 16px;
  line-height: var(--hk-line-height-body);
  background-color: var(--hk-bg);
  color: var(--hk-ink);
  direction: rtl;
  text-align: start;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--hk-bg);
  color: var(--hk-ink);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--hk-brand);
  text-decoration: none;
  transition: color var(--hk-dur-fast) var(--hk-ease);
}
a:hover {
  color: var(--hk-brand-600);
}

:focus-visible {
  outline: 2px solid var(--hk-brand);
  outline-offset: 2px;
}

/* 1. BUTTONS */
.hk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hk-space-2);
  min-height: 44px;
  min-width: 44px;
  padding-block: var(--hk-space-2);
  padding-inline: var(--hk-space-4);
  font-family: inherit;
  font-size: var(--hk-font-body);
  font-weight: 600;
  border-radius: var(--hk-r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--hk-dur-fast) var(--hk-ease);
  user-select: none;
  text-decoration: none;
  background: transparent;
  color: var(--hk-ink);
}

.hk-btn-primary {
  background-color: var(--hk-brand);
  color: #ffffff;
}
.hk-btn-primary:hover {
  background-color: var(--hk-brand-600);
  color: #ffffff;
}

.hk-btn-secondary {
  background-color: var(--hk-surface-2);
  color: var(--hk-ink);
  border-color: var(--hk-border);
}
.hk-btn-secondary:hover {
  background-color: var(--hk-border);
}

.hk-btn-ghost {
  background: transparent;
  color: var(--hk-ink);
}
.hk-btn-ghost:hover {
  background-color: var(--hk-surface-2);
}

.hk-btn-icon {
  padding: var(--hk-space-2);
  border-radius: var(--hk-r-pill);
}

.hk-btn-fab {
  min-height: 56px;
  min-width: 56px;
  border-radius: var(--hk-r-pill);
  box-shadow: var(--hk-shadow-3);
  background-color: var(--hk-brand);
  color: #ffffff;
}

.hk-btn-sm {
  min-height: 36px;
  padding-block: var(--hk-space-1);
  padding-inline: var(--hk-space-3);
  font-size: var(--hk-font-small);
  border-radius: var(--hk-r-sm);
}

.hk-btn-lg {
  min-height: 52px;
  padding-block: var(--hk-space-3);
  padding-inline: var(--hk-space-6);
  font-size: 1.05rem;
}

.hk-btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.92;
}
.hk-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-block-start-color: transparent;
  border-radius: 50%;
  animation: hk-spin 0.6s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes hk-spin {
  to { transform: rotate(360deg); }
}

/* 2. CHIPS & BADGES */
.hk-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--hk-space-1);
  min-height: 36px;
  padding-block: var(--hk-space-1);
  padding-inline: var(--hk-space-3);
  border-radius: var(--hk-r-pill);
  background-color: var(--hk-surface-2);
  color: var(--hk-ink-2);
  font-size: var(--hk-font-small);
  font-weight: 500;
  border: 1px solid var(--hk-border);
  cursor: pointer;
  transition: all var(--hk-dur-fast) var(--hk-ease);
  user-select: none;
}
.hk-chip:hover {
  background-color: var(--hk-border);
}
.hk-chip.is-selected {
  background-color: var(--hk-brand-50);
  color: var(--hk-brand);
  border-color: var(--hk-brand-400);
  font-weight: 700;
}

.hk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 2px;
  padding-inline: 8px;
  border-radius: var(--hk-r-sm);
  font-size: var(--hk-font-caption);
  font-weight: 700;
}
.hk-badge-story {
  background-color: var(--hk-accent-50);
  color: var(--hk-accent);
  border: 1px solid var(--hk-accent);
}
.hk-badge-360,
.hk-badge-primary {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(0, 106, 13, 0.94));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding-block: 4px;
  padding-inline: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hk-badge-new {
  background-color: var(--hk-brand-50);
  color: var(--hk-badge-new-text);
  border: 1px solid var(--hk-badge-new-border);
}

/* 3. HERO SEARCH */
.hk-search-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--hk-surface);
  border: 2px solid var(--hk-border);
  border-radius: var(--hk-r-lg);
  padding-block: var(--hk-space-2);
  padding-inline: var(--hk-space-3);
  box-shadow: var(--hk-shadow-2);
  transition: border-color var(--hk-dur-fast) var(--hk-ease);
}
.hk-search-hero:focus-within {
  border-color: var(--hk-brand);
}
.hk-search-hero input {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  border: none;
  background: transparent;
  padding-block: var(--hk-space-2);
  padding-inline: var(--hk-space-2);
  font-family: inherit;
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  outline: none;
}
.hk-search-hero input::placeholder {
  color: var(--hk-muted);
}
.hk-search-actions {
  display: flex;
  align-items: center;
  gap: var(--hk-space-1);
  flex-shrink: 0;
}

/* 4. PLACE CARDS */
.hk-place-card {
  display: flex;
  flex-direction: column;
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  overflow: hidden;
  box-shadow: var(--hk-shadow-1);
  transition: transform var(--hk-dur-fast) var(--hk-ease), box-shadow var(--hk-dur-fast) var(--hk-ease);
  position: relative;
}
.hk-place-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hk-shadow-2);
}
.hk-place-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--hk-surface-2);
  overflow: hidden;
}
.hk-place-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hk-place-card-fav {
  position: absolute;
  inset-block-start: var(--hk-space-2);
  inset-inline-end: var(--hk-space-2);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--hk-ink-2);
  border: none;
  border-radius: var(--hk-r-pill);
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--hk-shadow-1);
  transition: color var(--hk-dur-fast) var(--hk-ease), transform var(--hk-dur-fast) var(--hk-ease);
}
.hk-place-card-fav.is-saved {
  color: var(--hk-danger);
}
.hk-place-card-fav.is-saved svg {
  fill: currentColor;
}
.hk-place-card-body {
  padding: var(--hk-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
}
.hk-place-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--hk-ink);
}
.hk-place-card-meta {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
}

/* Compact list-row version */
.hk-place-card-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--hk-space-3);
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  padding: var(--hk-space-2);
  box-shadow: var(--hk-shadow-1);
}
.hk-place-card-row .hk-place-card-media {
  width: 90px;
  height: 90px;
  aspect-ratio: 1 / 1;
  border-radius: var(--hk-r-sm);
  flex-shrink: 0;
}
.hk-place-card-row .hk-place-card-body {
  flex: 1;
  padding: 0;
}

/* 5. SECTION HEADERS & HORIZONTAL RAIL */
.hk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: var(--hk-space-4) var(--hk-space-2);
}
.hk-section-title {
  font-size: var(--hk-font-h2);
  font-weight: 700;
  margin: 0;
}
.hk-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--hk-space-2);
  font-size: var(--hk-font-small);
  font-weight: 600;
}

.hk-scroll-rail {
  display: flex;
  gap: var(--hk-space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: var(--hk-space-1) var(--hk-space-3);
  -webkit-overflow-scrolling: touch;
}
.hk-scroll-rail > * {
  scroll-snap-align: start;
  flex: 0 0 260px;
}

/* 6. TABS / SEGMENTED CONTROL */
.hk-tabs {
  display: flex;
  background-color: var(--hk-surface-2);
  border-radius: var(--hk-r-pill);
  padding: var(--hk-space-1);
  gap: var(--hk-space-1);
  border: 1px solid var(--hk-border);
}
.hk-tab-item {
  flex: 1;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hk-r-pill);
  font-size: var(--hk-font-small);
  font-weight: 600;
  color: var(--hk-ink-2);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--hk-dur-fast) var(--hk-ease);
}
.hk-tab-item.is-active {
  background-color: var(--hk-bg);
  color: var(--hk-brand);
  box-shadow: var(--hk-shadow-1);
}

/* 7. BOTTOM SHEET (<dialog>) */
.hk-bottom-sheet {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  background-color: var(--hk-surface);
  border-radius: var(--hk-r-lg) var(--hk-r-lg) 0 0;
  border: 1px solid var(--hk-border);
  border-block-end: none;
  box-shadow: var(--hk-shadow-3);
  padding: var(--hk-space-4);
  padding-block-end: calc(var(--hk-space-6) + var(--hk-sab));
  z-index: var(--hk-z-sheet);
  outline: none;
  max-height: 85vh;
  overflow-y: auto;
}
.hk-bottom-sheet::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.hk-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: var(--hk-border);
  border-radius: var(--hk-r-pill);
  margin: 0 auto var(--hk-space-3);
  cursor: grab;
}

/* 8. TOAST, SKELETONS & EMPTY STATE */
.hk-toast {
  position: fixed;
  inset-block-end: calc(var(--hk-space-8) + var(--hk-sab));
  inset-inline-start: 50%;
  transform: translateX(50%);
  background-color: var(--hk-ink);
  color: var(--hk-bg);
  padding-block: var(--hk-space-2);
  padding-inline: var(--hk-space-4);
  border-radius: var(--hk-r-pill);
  font-size: var(--hk-font-small);
  font-weight: 500;
  box-shadow: var(--hk-shadow-3);
  z-index: var(--hk-z-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hk-dur) var(--hk-ease), transform var(--hk-dur) var(--hk-ease);
}
.hk-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%) translateY(-10px);
}

.hk-skeleton {
  background: linear-gradient(90deg, var(--hk-surface-2) 25%, var(--hk-border) 50%, var(--hk-surface-2) 75%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.5s infinite;
  border-radius: var(--hk-r-sm);
}
@keyframes hk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hk-skeleton-text {
  height: 16px;
  margin-block: var(--hk-space-1);
}
.hk-skeleton-card {
  height: 180px;
}

.hk-progress-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background-color: var(--hk-brand);
  z-index: calc(var(--hk-z-nav) + 10);
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hk-progress-bar.is-active {
  opacity: 1;
  animation: hk-progress-bar-anim 1.5s infinite ease-in-out;
}
@keyframes hk-progress-bar-anim {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(0.75); }
  100% { transform: scaleX(1); opacity: 0; }
}


.hk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--hk-space-8) var(--hk-space-4);
  color: var(--hk-ink-2);
}
.hk-empty-icon {
  width: 56px;
  height: 56px;
  color: var(--hk-muted);
  margin-block-end: var(--hk-space-3);
}

/* 9. TOP APP BAR & BOTTOM NAVIGATION */
.hk-top-bar {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--hk-z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-block: calc(var(--hk-space-2) + var(--hk-sat)) var(--hk-space-2);
  padding-inline: var(--hk-space-3);
  background-color: var(--hk-nav-bg);
  color: var(--hk-ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--hk-border);
}
.hk-top-bar-start {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  flex-shrink: 0;
}
.hk-top-bar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.hk-top-bar-logo {
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  vertical-align: middle;
}
.hk-top-bar-center {
  flex: 1;
  text-align: center;
  padding-inline: var(--hk-space-2);
  min-width: 0;
}
.hk-top-bar-title {
  display: block;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--hk-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hk-top-bar-end {
  display: flex;
  align-items: center;
  gap: var(--hk-space-1);
  flex-shrink: 0;
}
.hk-top-bar .hk-btn-icon {
  min-width: 48px;
  min-height: 48px;
  padding: var(--hk-space-2);
}

.hk-app-content {
  flex: 1;
  padding-block-end: calc(76px + var(--hk-sab));
}

@media (min-width: 1024px) {
  .hk-app-content {
    padding-block-end: calc(84px + var(--hk-space-4));
  }
}

.hk-bottom-nav {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 1050;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-block: var(--hk-space-1) calc(var(--hk-space-1) + var(--hk-sab));
  padding-inline: var(--hk-space-1);
  background-color: var(--hk-nav-bg);
  color: var(--hk-ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block-start: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow-1);
}

/* Bottom nav: phones + tablets (touch, up to 1366px incl. landscape); hidden only on real desktop (mouse) >= 1024px or very wide screens */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine), (min-width: 1367px) {
  .hk-bottom-nav {
    display: none !important;
  }
  .hk-app-shell {
    padding-block-end: var(--hk-space-6) !important;
  }
}

/* Touch tablets 1024-1366px keep the bottom nav: reserve space and lift floating buttons above it */
@media (min-width: 1024px) and (max-width: 1366px) and (pointer: coarse), (min-width: 1024px) and (max-width: 1366px) and (hover: none) {
  .hk-app-content {
    padding-block-end: calc(84px + var(--hk-sab)) !important;
  }
  .hk-back-to-top {
    bottom: calc(74px + var(--hk-sab)) !important;
  }
}

[data-theme="dark"] .hk-bottom-nav {
  background-color: rgba(19, 28, 46, 0.95);
}

.hk-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--hk-font-caption);
  font-weight: 500;
  color: var(--hk-muted);
  padding: var(--hk-space-1);
  min-width: 48px;
  min-height: 48px;
  flex: 1;
  text-decoration: none;
  transition: color var(--hk-dur-fast) var(--hk-ease);
}
.hk-bottom-nav-item.is-active,
.hk-bottom-nav-item[aria-current="page"] {
  color: var(--hk-brand);
  font-weight: 700;
}
.hk-bottom-nav-item svg {
  width: 24px;
  height: 24px;
}
.hk-bottom-nav-item span {
  white-space: nowrap;
}

/* 10. FORM CONTROLS */
.hk-input, .hk-textarea, .hk-select {
  width: 100%;
  min-height: 44px;
  padding-block: var(--hk-space-2);
  padding-inline: var(--hk-space-3);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  background-color: var(--hk-surface);
  color: var(--hk-ink);
  font-family: inherit;
  font-size: var(--hk-font-body);
  outline: none;
  transition: border-color var(--hk-dur-fast) var(--hk-ease);
}
.hk-input:focus, .hk-textarea:focus, .hk-select:focus {
  border-color: var(--hk-brand);
}

.hk-form-error {
  color: var(--hk-danger);
  font-size: var(--hk-font-small);
  margin-block-start: var(--hk-space-1);
}

/* Switch control */
.hk-switch-label {
  display: inline-flex;
  align-items: center;
  gap: var(--hk-space-2);
  cursor: pointer;
  user-select: none;
}
.hk-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hk-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--hk-border);
  border-radius: var(--hk-r-pill);
  transition: background-color var(--hk-dur-fast) var(--hk-ease);
}
.hk-switch-thumb {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform var(--hk-dur-fast) var(--hk-ease);
  box-shadow: var(--hk-shadow-1);
}
.hk-switch-input:checked + .hk-switch-track {
  background-color: var(--hk-brand);
}
.hk-switch-input:checked + .hk-switch-track .hk-switch-thumb {
  transform: translateX(-20px);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Global Dark Theme Contrast Safety Net */
html[data-theme="dark"] .hk-place-card-block,
html[data-theme="dark"] .hk-card {
  background-color: var(--hk-surface);
  border-color: var(--hk-border);
  color: var(--hk-ink);
}
html[data-theme="dark"] .hk-prose,
html[data-theme="dark"] .hk-prose p,
html[data-theme="dark"] .hk-prose li,
html[data-theme="dark"] .hk-prose span,
html[data-theme="dark"] .hk-prose div {
  color: var(--hk-ink-2) !important;
}
html[data-theme="dark"] .hk-prose h1,
html[data-theme="dark"] .hk-prose h2,
html[data-theme="dark"] .hk-prose h3,
html[data-theme="dark"] .hk-prose h4,
html[data-theme="dark"] .hk-prose strong {
  color: var(--hk-ink) !important;
}
html[data-theme="dark"] .hk-input,
html[data-theme="dark"] select.hk-input,
html[data-theme="dark"] textarea.hk-input {
  background-color: var(--hk-surface-2);
  color: var(--hk-ink);
  border-color: var(--hk-border);
}
html[data-theme="dark"] .hk-input::placeholder {
  color: var(--hk-muted);
}

/* 11. VIEW TRANSITIONS API (Cross-document & same-document) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 160ms cubic-bezier(0.4, 0, 1, 1) both hk-fade-out;
}
::view-transition-new(root) {
  animation: 200ms cubic-bezier(0, 0, 0.2, 1) both hk-fade-in;
}

@keyframes hk-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes hk-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* 12. R4 HOME PAGE COMPONENTS («کجا می‌خوای؟», Suggestions, Chips, Grid & Wish Sheet) */
.hk-home-hero {
  padding-block: var(--hk-space-4) var(--hk-space-3);
  text-align: center;
}
.hk-home-hero-title {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 900;
  color: var(--hk-ink);
  margin: 0 0 var(--hk-space-2) 0;
  line-height: 1.25;
}
.hk-home-hero-title span.hk-accent-word {
  color: var(--hk-brand);
  background: linear-gradient(135deg, var(--hk-brand) 0%, var(--hk-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hk-home-hero-sub {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--hk-ink-2);
  margin: 0 0 var(--hk-space-4) 0;
  max-width: 580px;
  margin-inline: auto;
}

.hk-search-wrapper {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  margin-block-end: var(--hk-space-3);
}
.hk-search-hero {
  min-height: 52px;
}
.hk-search-suggestions {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + 6px);
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-md);
  box-shadow: var(--hk-shadow-3);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  padding-block: var(--hk-space-1);
  text-align: right;
}
.hk-suggest-item {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  padding: var(--hk-space-2) var(--hk-space-3);
  color: var(--hk-ink);
  text-decoration: none;
  font-size: var(--hk-font-body);
  cursor: pointer;
  transition: background-color var(--hk-dur-fast) var(--hk-ease);
  min-height: 44px;
}
.hk-suggest-item:hover,
.hk-suggest-item.is-active,
.hk-suggest-item[aria-selected="true"] {
  background-color: var(--hk-surface-2);
  color: var(--hk-brand);
}
.hk-suggest-icon {
  flex-shrink: 0;
  color: var(--hk-muted);
}
.hk-suggest-item:hover .hk-suggest-icon,
.hk-suggest-item.is-active .hk-suggest-icon {
  color: var(--hk-brand);
}
.hk-suggest-match-text {
  flex: 1;
  font-weight: 500;
}
.hk-suggest-badge {
  font-size: var(--hk-font-caption);
  padding: 2px 8px;
  border-radius: var(--hk-r-sm);
  background-color: var(--hk-surface-2);
  color: var(--hk-ink-2);
}

.hk-chips-section {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
  max-width: 640px;
  margin-inline: auto;
  margin-block-end: var(--hk-space-3);
}
.hk-chips-scroll {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  overflow-x: auto;
  padding-block: 4px;
  padding-inline: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hk-chips-scroll::-webkit-scrollbar {
  display: none;
}
.hk-chips-scroll .hk-chip {
  flex-shrink: 0;
  min-height: 44px;
  font-size: var(--hk-font-small);
  text-decoration: none;
  border-radius: var(--hk-r-pill);
}
.hk-chips-scroll .hk-chip:focus-visible {
  outline: 2px solid var(--hk-brand);
  outline-offset: 2px;
}

.hk-business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-3);
}
@media (min-width: 600px) {
  .hk-business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hk-space-4);
  }
}
@media (min-width: 1024px) {
  .hk-business-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .hk-business-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hk-place-card-desc {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.5;
  margin: var(--hk-space-1) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hk-wish-wizard {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-wish-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--hk-font-caption);
  color: var(--hk-muted);
  border-block-end: 1px solid var(--hk-border);
  padding-block-end: var(--hk-space-2);
}
.hk-wish-q-title {
  font-size: var(--hk-font-h2);
  font-weight: 700;
  color: var(--hk-ink);
  margin: 0;
}
.hk-wish-options-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-wish-opt-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--hk-space-3);
  width: 100%;
  min-height: 52px;
  padding: var(--hk-space-3) var(--hk-space-4);
  background-color: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-md);
  color: var(--hk-ink);
  font-family: inherit;
  font-size: var(--hk-font-body);
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: all var(--hk-dur-fast) var(--hk-ease);
}
.hk-wish-opt-btn:hover,
.hk-wish-opt-btn:focus-visible {
  border-color: var(--hk-brand);
  background-color: var(--hk-brand-50);
  color: var(--hk-brand);
  outline: none;
}
.hk-wish-opt-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}



/* Desktop width constraint for featured section */
.hk-featured-section {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--hk-space-3);
}


/* ==========================================================================
   SEARCH PAGE STYLES (فاز R5 - گام ۳۶)
   ========================================================================== */
.hk-search-page-container {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: var(--hk-space-4) clamp(12px, 2vw, 32px) var(--hk-space-8);
}
.hk-search-top-bar {
  margin-block-end: var(--hk-space-4);
}
.hk-search-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hk-space-4);
}
@media (min-width: 1024px) {
  .hk-search-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--hk-space-6);
  }
}

/* Facets Side Panel (Desktop >= 1024px) */
.hk-search-facets-side {
  display: none;
}
@media (min-width: 1024px) {
  .hk-search-facets-side {
    display: flex;
    flex-direction: column;
    gap: var(--hk-space-4);
    background-color: var(--hk-surface);
    border: 1px solid var(--hk-border);
    border-radius: var(--hk-r);
    padding: var(--hk-space-4);
    height: fit-content;
    position: sticky;
    top: calc(var(--hk-topbar-h) + var(--hk-space-3));
  }
}
.hk-facet-group {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-facet-title {
  font-size: var(--hk-font-h3);
  font-weight: 700;
  color: var(--hk-ink);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-facet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hk-facet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--hk-r-sm);
  color: var(--hk-ink);
  text-decoration: none;
  font-size: var(--hk-font-small);
  transition: all var(--hk-dur-fast) var(--hk-ease);
}
.hk-facet-item:hover {
  background-color: var(--hk-surface-2);
}
.hk-facet-item.is-active {
  background-color: var(--hk-brand-50);
  color: var(--hk-brand);
  font-weight: 700;
}
.hk-facet-count {
  font-size: 0.8rem;
  color: var(--hk-ink-2);
  background-color: var(--hk-surface-2);
  padding: 2px 8px;
  border-radius: var(--hk-r-pill);
}
.hk-facet-item.is-active .hk-facet-count {
  background-color: var(--hk-brand);
  color: #fff;
}

/* Quick Facets Chips (Mobile < 1024px) */
.hk-search-quick-bar {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  overflow-x: auto;
  padding-block: var(--hk-space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hk-search-quick-bar::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  .hk-search-quick-bar {
    display: none;
  }
}

/* Active Filter Chips */
.hk-search-active-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hk-space-2);
  margin-block-end: var(--hk-space-3);
}
.hk-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--hk-brand-50);
  color: var(--hk-brand);
  border: 1px solid var(--hk-brand-100);
  border-radius: var(--hk-r-pill);
  padding: 4px 12px;
  font-size: var(--hk-font-small);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--hk-dur-fast);
}
.hk-active-filter-chip:hover {
  background-color: var(--hk-brand-100);
}
.hk-active-filter-chip svg {
  fill: currentColor;
}
.hk-clear-all-filters {
  color: var(--hk-danger);
  font-size: var(--hk-font-small);
  font-weight: 600;
  text-decoration: none;
  padding-inline: var(--hk-space-2);
}
.hk-clear-all-filters:hover {
  text-decoration: underline;
}

/* Understood As Line & Suggested Corrections */
.hk-search-understood-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hk-space-2);
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-right: 4px solid var(--hk-brand);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3);
  margin-block-end: var(--hk-space-3);
  font-size: var(--hk-font-body);
}
.hk-search-literal-link {
  color: var(--hk-brand);
  font-size: var(--hk-font-small);
  text-decoration: underline;
  cursor: pointer;
}
.hk-search-corrections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hk-space-2);
  margin-block-end: var(--hk-space-3);
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
}
.hk-correction-link {
  color: var(--hk-brand);
  font-weight: 600;
  text-decoration: underline;
}

/* Search Results Grid */
.hk-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--hk-space-3);
}
@media (min-width: 640px) {
  .hk-search-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--hk-space-4);
  }
}
@media (min-width: 1024px) {
  .hk-search-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--hk-space-4);
  }
}
@media (min-width: 1280px) {
  .hk-search-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (min-width: 1600px) {
  .hk-search-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Neutral Category Placeholder when Missing Image */
.hk-place-card-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hk-surface-2);
  color: var(--hk-muted);
}
.hk-place-card-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.6;
}

/* Styled Sort Selector */
.hk-sort-select {
  padding: var(--hk-space-1) var(--hk-space-3);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-pill);
  background-color: var(--hk-surface);
  color: var(--hk-ink);
  font-family: inherit;
  font-size: var(--hk-font-small);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.hk-sort-select:focus-visible {
  border-color: var(--hk-brand);
  box-shadow: 0 0 0 2px var(--hk-brand-subtle);
}

/* Place Card Fav Button Active State (UI Only) */
.hk-place-card-fav.is-saved {
  color: var(--hk-brand);
  background-color: var(--hk-surface);
}
.hk-place-card-fav.is-saved svg {
  fill: currentColor;
}

/* Empty State */
.hk-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  padding: var(--hk-space-8) var(--hk-space-4);
  margin-block: var(--hk-space-4);
  gap: var(--hk-space-3);
}
.hk-empty-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--hk-muted);
}
.hk-empty-title {
  font-size: var(--hk-font-h2);
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-empty-desc {
  font-size: var(--hk-font-body);
  color: var(--hk-ink-2);
  max-width: 480px;
  margin: 0;
}
.hk-empty-suggestions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hk-space-2);
  margin-block: var(--hk-space-2);
}
.hk-empty-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hk-space-2);
}
.hk-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-2);
}

/* Pagination & Skeleton Loading */
.hk-search-pagination {
  margin-block-start: var(--hk-space-6);
  text-align: center;
}
.hk-btn-load-more {
  min-width: 220px;
  min-height: 48px;
  border-radius: var(--hk-r-pill);
  font-weight: 700;
}
@keyframes hk-skeleton-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.hk-skeleton-card {
  background-color: var(--hk-surface-2);
  border-radius: var(--hk-r);
  aspect-ratio: 16 / 13;
  animation: hk-skeleton-pulse 1.2s ease-in-out infinite;
}

/* ==========================================================================
   Place Page Styles (گام ۳۹ - فاز R8)
   ========================================================================== */
.hk-place-page {
  padding-block-end: calc(var(--hk-space-8) + 64px);
  overflow-x: clip;
}
@media (min-width: 992px) {
  .hk-place-page {
    padding-block-end: var(--hk-space-8);
  }
}
.hk-place-layout {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-6);
}
@media (min-width: 992px) {
  .hk-place-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--hk-space-6);
    align-items: start;
  }
}
.hk-place-main {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-5);
  min-width: 0;
}
.hk-place-aside {
  display: none;
}
@media (min-width: 992px) {
  .hk-place-aside {
    display: block;
    position: sticky;
    top: calc(var(--hk-topbar-h) + var(--hk-space-4));
  }
}

/* Cover / Hero */
.hk-place-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--hk-r);
  overflow: hidden;
  background-color: var(--hk-surface-2);
}
@media (min-width: 768px) {
  .hk-place-cover-wrap {
    aspect-ratio: 21 / 9;
    max-height: 420px;
  }
}
.hk-place-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hk-place-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hk-surface-2);
  color: var(--hk-muted);
}
.hk-place-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--hk-space-3);
  pointer-events: none;
}
.hk-place-cover-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hk-space-2);
}

/* Title & Chips */
.hk-place-title-card {
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-place-title {
  font-size: var(--hk-font-h1);
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
  line-height: 1.3;
}
.hk-place-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-badge-verified {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-weight: 700;
}
[data-theme="dark"] .hk-badge-verified {
  background-color: #064E3B;
  color: #A7F3D0;
  border-color: #059669;
}
.hk-badge-rating {
  background-color: #FEF9C3;
  color: #854D0E;
  border: 1px solid #FDE047;
  font-weight: 700;
}
[data-theme="dark"] .hk-badge-rating {
  background-color: #422006;
  color: #FEF08A;
  border-color: #854D0E;
}
.hk-badge-signal {
  background-color: var(--hk-accent-50);
  color: var(--hk-accent);
  border: 1px solid var(--hk-accent-border);
  font-weight: 700;
}

/* Gallery & Thumbnails */
.hk-place-gallery-section {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}

.hk-place-gallery-header .hk-place-gallery-expand {
  padding: 4px 10px;
  min-height: 44px;
  font-size: var(--hk-font-small);
  font-weight: 700;
  color: var(--hk-brand-600);
}
[data-theme="dark"] .hk-place-gallery-header .hk-place-gallery-expand {
  color: var(--hk-brand-400);
}

.hk-place-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-place-gallery-scroll {
  display: flex;
  gap: var(--hk-space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block: var(--hk-space-1);
  scrollbar-width: none;
}
.hk-place-gallery-scroll::-webkit-scrollbar {
  display: none;
}
.hk-place-gallery-thumb {
  flex: 0 0 110px;
  aspect-ratio: 4 / 3;
  border-radius: var(--hk-r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background-color: var(--hk-surface-2);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
  padding: 0;
}
@media (min-width: 600px) {
  .hk-place-gallery-thumb {
    flex: 0 0 140px;
  }
}
.hk-place-gallery-thumb:hover,
.hk-place-gallery-thumb:focus-visible {
  border-color: var(--hk-brand);
  transform: translateY(-2px);
}
.hk-place-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Modal */
.hk-lightbox {
  padding: 0;
  border: none;
  background: rgba(10, 15, 25, 0.95);
  color: #ffffff;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10000;
}
.hk-lightbox:not([open]) {
  display: none;
}
.hk-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--hk-space-3) var(--hk-space-4);
  background: rgba(0, 0, 0, 0.4);
}
.hk-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--hk-space-2);
}
.hk-lightbox-stage img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--hk-r-sm);
}
.hk-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: var(--hk-r-pill);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.hk-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}
.hk-lightbox-prev {
  inset-inline-start: var(--hk-space-3);
}
.hk-lightbox-next {
  inset-inline-end: var(--hk-space-3);
}

/* 360 Tour Section */
.hk-place-tour360-card {
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  padding: var(--hk-space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--hk-space-3);
  background-image: radial-gradient(circle at 50% 0%, var(--hk-info-50) 0%, transparent 70%);
}
.hk-place-tour-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--hk-r);
  overflow: hidden;
  border: 1px solid var(--hk-border);
  margin-block-start: var(--hk-space-3);
}
.hk-place-tour-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Info & Details Cards */
.hk-place-card-block {
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-place-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hk-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-place-services-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hk-space-2);
}
.hk-place-service-tag {
  background-color: var(--hk-surface-2);
  color: var(--hk-ink);
  border: 1px solid var(--hk-border);
  padding: 4px 12px;
  border-radius: var(--hk-r-pill);
  font-size: var(--hk-font-small);
}

/* Route Links (NO MAP) */
.hk-place-route-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--hk-space-2);
}
.hk-btn-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hk-space-2);
  min-height: 44px;
  padding: var(--hk-space-2) var(--hk-space-3);
  border-radius: var(--hk-r-pill);
  font-size: var(--hk-font-small);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--hk-border);
  background-color: var(--hk-surface-2);
  color: var(--hk-ink);
  transition: background 0.15s, border-color 0.15s;
}
.hk-btn-route:hover {
  background-color: var(--hk-border);
}
.hk-btn-route-balad {
  border-color: #00A693;
  color: #00A693;
}
.hk-btn-route-neshan {
  border-color: #2657EB;
  color: #2657EB;
}
.hk-btn-route-gmap {
  border-color: #EA4335;
  color: #EA4335;
}

/* Social Links */
.hk-place-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hk-space-2);
}
.hk-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--hk-space-2);
  padding: var(--hk-space-2) var(--hk-space-3);
  border-radius: var(--hk-r-pill);
  font-size: var(--hk-font-small);
  font-weight: 600;
  text-decoration: none;
  background-color: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  color: var(--hk-ink);
}
.hk-social-btn:hover {
  border-color: var(--hk-brand);
  background-color: var(--hk-brand-50);
  color: var(--hk-brand);
}

/* Sticky Action Bar (Mobile) */
.hk-place-mobile-sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--hk-z-nav);
  background-color: var(--hk-surface);
  border-top: 1px solid var(--hk-border);
  padding: var(--hk-space-2) var(--hk-space-4);
  display: flex;
  align-items: center;
  gap: var(--hk-space-3);
  box-shadow: var(--hk-shadow-3);
}
@media (min-width: 992px) {
  .hk-place-mobile-sticky-bar {
    display: none;
  }
}
.hk-place-sticky-call {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.hk-place-sticky-route {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.hk-place-sticky-icon-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  min-width: 48px;
  border-radius: var(--hk-r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop Sidebar Card */
.hk-place-desktop-card {
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r);
  padding: var(--hk-space-5);
  box-shadow: var(--hk-shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-4);
}

/* ==========================================================================
   Place Page R9: Story Blocks, News, Network, Q&A, Experiences
   ========================================================================== */

/* Story & Narrative */
.hk-story-section {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-4);
}
.hk-story-key-message {
  padding: var(--hk-space-3) var(--hk-space-4);
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  border-inline-start: 4px solid var(--hk-brand);
}
.hk-story-quote {
  margin: 0;
  padding: 0;
}
.hk-story-quote-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--hk-ink);
  margin: 0;
}
.hk-story-narrative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hk-space-3);
}
@media (min-width: 768px) {
  .hk-story-narrative-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hk-story-narrative-item {
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3) var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-story-narrative-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-story-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hk-brand);
  display: inline-block;
  flex-shrink: 0;
}
.hk-story-narrative-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.hk-story-blocks-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-2);
}
.hk-story-block-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-story-block-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--hk-r-pill);
  background: var(--hk-surface-2);
  color: var(--hk-brand);
  border: 1px solid var(--hk-border);
}
.hk-story-block-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-story-block-body {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.hk-story-gallery-thumbs {
  display: flex;
  gap: var(--hk-space-2);
  overflow-x: auto;
  padding-block: var(--hk-space-1);
}
.hk-story-gallery-item img {
  border-radius: var(--hk-r-sm);
  object-fit: cover;
  border: 1px solid var(--hk-border);
}
.hk-story-media-box {
  margin-block-start: var(--hk-space-2);
}
.hk-story-media-fallback {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  padding: var(--hk-space-3);
  background: var(--hk-surface-2);
  border: 1px dashed var(--hk-border);
  border-radius: var(--hk-r-sm);
  color: var(--hk-ink-2);
  font-size: var(--hk-font-small);
}

/* Owner Updates / News */
.hk-owner-updates-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-owner-update-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-owner-update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hk-space-2);
}
.hk-owner-update-date {
  font-size: 0.8rem;
  color: var(--hk-ink-2);
}
.hk-owner-update-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* Public Q&A */
.hk-qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-qa-item {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-qa-q-header {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  margin-block-end: var(--hk-space-1);
}
.hk-qa-q-badge {
  background: var(--hk-brand-50, rgba(0, 106, 13, 0.08));
  color: var(--hk-brand);
  padding: 2px 8px;
  border-radius: var(--hk-r-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.hk-qa-asker {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hk-ink);
}
.hk-qa-time {
  font-size: 0.78rem;
  color: var(--hk-ink-2);
  margin-inline-start: auto;
}
.hk-qa-q-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}
.hk-qa-answer {
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3);
  border-inline-start: 3px solid var(--hk-brand);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-qa-a-header {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-qa-a-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}

/* Business Network & Recommendations */
.hk-network-group {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-network-subheading {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hk-ink-2);
  margin: 0;
}
.hk-network-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-rec-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3) var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-rec-author-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hk-brand);
  text-decoration: none;
}
.hk-rec-author-link:hover {
  text-decoration: underline;
}
.hk-rec-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}
.hk-collab-card {
  background: var(--hk-surface-2);
  border: 1px dashed var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3) var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
}
.hk-collab-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-collab-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.6;
  margin: 0;
}

/* Customer Experiences */
.hk-experiences-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-experience-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-experience-author {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-experience-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hk-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hk-ink-2);
}
.hk-experience-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hk-ink);
}
.hk-experience-visit-month {
  font-size: 0.78rem;
  color: var(--hk-ink-2);
  display: block;
}
.hk-experience-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
}
.hk-experience-reply {
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3);
  margin-block-start: var(--hk-space-2);
  border-inline-start: 3px solid var(--hk-brand);
}
.hk-experience-reply-header {
  margin-block-end: var(--hk-space-1);
}
.hk-experience-reply-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}

/* Experience Submission Form (Section 2) */
.hk-exp-form-card {
  background: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-4);
}
.hk-exp-form-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-exp-rating-row {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-rating-star-btn {
  background: none;
  border: none;
  padding: var(--hk-space-1);
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--hk-muted);
  transition: color 0.15s ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hk-rating-star-btn.is-active,
.hk-rating-star-btn:hover {
  color: #f59e0b;
}
.hk-exp-otp-mock-box {
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-2) var(--hk-space-3);
  font-size: 0.88rem;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Article & Static Page Sanitized HTML Body */
.hk-article-body h2,
.hk-article-body h3,
.hk-article-body h4 {
  color: var(--hk-ink);
  font-weight: 800;
  margin: var(--hk-space-4) 0 var(--hk-space-2);
}
.hk-article-body p {
  margin: 0 0 var(--hk-space-3);
}
.hk-article-body ul,
.hk-article-body ol {
  padding-inline-start: var(--hk-space-5);
  margin: 0 0 var(--hk-space-3);
}
.hk-article-body li {
  margin-block-end: var(--hk-space-1);
}
.hk-article-body a {
  color: var(--hk-brand);
  text-decoration: underline;
}
.hk-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hk-r-sm);
  margin-block: var(--hk-space-3);
}
.hk-article-body blockquote {
  margin: var(--hk-space-3) 0;
  padding: var(--hk-space-3) var(--hk-space-4);
  background: var(--hk-surface-2);
  border-inline-start: 4px solid var(--hk-brand);
  border-radius: var(--hk-r-sm);
}

/* Dark Mode Link & Ghost Button AA Contrast */
[data-theme="dark"] a:not(.hk-btn-primary):not(.hk-bottom-nav-item):not(.hk-chip),
[data-theme="dark"] a.hk-btn-ghost,
[data-theme="dark"] a.hk-btn-ghost > span,
[data-theme="dark"] .hk-btn-ghost {
  color: var(--hk-brand-400);
}

/* Skip Link & Global Reduced Motion (WCAG 2.1 AA) */
.hk-skip-link {
  position: fixed;
  top: -120px;
  inset-inline-start: var(--hk-space-4);
  z-index: 200;
  padding: var(--hk-space-2) var(--hk-space-4);
  background: var(--hk-brand);
  color: #ffffff;
  border-radius: var(--hk-radius-md);
  font-weight: 700;
  box-shadow: var(--hk-shadow-lg);
}
.hk-skip-link:focus-visible {
  top: var(--hk-space-3);
  outline: 3px solid var(--hk-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Global Dark Theme Contrast Safety Net */
html[data-theme="dark"] .hk-place-card-block,
html[data-theme="dark"] .hk-card {
  background-color: var(--hk-surface);
  border-color: var(--hk-border);
  color: var(--hk-ink);
}
html[data-theme="dark"] .hk-prose,
html[data-theme="dark"] .hk-prose p,
html[data-theme="dark"] .hk-prose li,
html[data-theme="dark"] .hk-prose span,
html[data-theme="dark"] .hk-prose div {
  color: var(--hk-ink-2) !important;
}
html[data-theme="dark"] .hk-prose h1,
html[data-theme="dark"] .hk-prose h2,
html[data-theme="dark"] .hk-prose h3,
html[data-theme="dark"] .hk-prose h4,
html[data-theme="dark"] .hk-prose strong {
  color: var(--hk-ink) !important;
}
html[data-theme="dark"] .hk-input,
html[data-theme="dark"] select.hk-input,
html[data-theme="dark"] textarea.hk-input {
  background-color: var(--hk-surface-2);
  color: var(--hk-ink);
  border-color: var(--hk-border);
}
html[data-theme="dark"] .hk-input::placeholder {
  color: var(--hk-muted);
}


/* ==========================================================================
   Place Page Part 2 (Phase R9 / Step 40)
   ========================================================================== */

/* Story Content & Narrative */
.hk-story-key-message {
  margin-block-start: var(--hk-space-3);
  margin-block-end: var(--hk-space-3);
}
.hk-story-quote {
  margin: 0;
  padding: var(--hk-space-4);
  background-color: var(--hk-surface-2);
  border-inline-start: 4px solid var(--hk-brand);
  border-radius: var(--hk-r-sm);
  font-style: italic;
  color: var(--hk-ink);
}
.hk-story-quote-text {
  margin: 0;
  font-size: var(--hk-font-body);
  line-height: 1.8;
  font-weight: 600;
}
.hk-story-narrative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-3);
}
.hk-story-narrative-item {
  padding: var(--hk-space-3);
  background-color: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  border: 1px solid var(--hk-border);
}
.hk-story-narrative-title {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  font-size: var(--hk-font-small);
  font-weight: 700;
  color: var(--hk-ink);
  margin: 0 0 var(--hk-space-2);
}
.hk-story-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--hk-r-pill);
  background-color: var(--hk-brand);
  flex-shrink: 0;
}
.hk-story-narrative-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* Story Blocks List */
.hk-story-blocks-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-4);
}
.hk-story-block-card {
  padding: var(--hk-space-4);
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
  position: relative;
}
.hk-story-block-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hk-brand);
  background-color: var(--hk-surface-2);
  padding: 2px var(--hk-space-2);
  border-radius: var(--hk-r-pill);
  border: 1px solid var(--hk-border);
}
.hk-story-block-title {
  font-size: var(--hk-font-body);
  font-weight: 700;
  color: var(--hk-ink);
  margin: 0;
}
.hk-story-block-body {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.hk-story-media-box {
  margin-block-start: var(--hk-space-2);
}
.hk-story-media-fallback {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  padding: var(--hk-space-3);
  background-color: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  color: var(--hk-ink-2);
  font-size: var(--hk-font-small);
}
.hk-story-gallery-thumbs {
  display: flex;
  gap: var(--hk-space-2);
  overflow-x: auto;
  padding-block-end: var(--hk-space-2);
}
.hk-story-gallery-item img {
  border-radius: var(--hk-r-sm);
  object-fit: cover;
  width: 140px;
  height: 95px;
  border: 1px solid var(--hk-border);
}

/* Owner News / Updates */
.hk-owner-updates-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-3);
}
.hk-owner-update-card {
  padding: var(--hk-space-4);
  background-color: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-inline-start: 4px solid var(--hk-accent, #00A693);
  border-radius: var(--hk-r-sm);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-owner-update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hk-owner-update-date {
  font-size: 0.8rem;
  color: var(--hk-muted);
}
.hk-owner-update-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* Public Q&A */
.hk-qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-3);
}
.hk-qa-item {
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  overflow: hidden;
  background-color: var(--hk-surface);
}
.hk-qa-question {
  padding: var(--hk-space-3) var(--hk-space-4);
  background-color: var(--hk-surface);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-qa-q-header {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  font-size: 0.8rem;
}
.hk-qa-q-badge {
  font-weight: 700;
  color: var(--hk-brand);
  background-color: var(--hk-surface-2);
  padding: 1px var(--hk-space-2);
  border-radius: var(--hk-r-pill);
}
.hk-qa-asker {
  font-weight: 600;
  color: var(--hk-ink);
}
.hk-qa-time {
  color: var(--hk-muted);
  margin-inline-start: auto;
}
.hk-qa-q-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
}
.hk-qa-answer {
  padding: var(--hk-space-3) var(--hk-space-4);
  background-color: var(--hk-surface-2);
  border-block-start: 1px solid var(--hk-border);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-qa-a-header {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  font-size: 0.8rem;
}
.hk-qa-a-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* Recommendations & Network */
.hk-network-subheading {
  font-size: var(--hk-font-small);
  font-weight: 700;
  color: var(--hk-ink-2);
  margin: 0 0 var(--hk-space-2);
}
.hk-network-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hk-space-2);
}
.hk-rec-card {
  padding: var(--hk-space-3);
  background-color: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
}
.hk-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-rec-author-link {
  font-weight: 700;
  font-size: var(--hk-font-small);
  color: var(--hk-brand);
  text-decoration: none;
}
.hk-rec-author-link:hover {
  text-decoration: underline;
}
.hk-rec-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}
.hk-collab-card {
  padding: var(--hk-space-3);
  background-color: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
}
.hk-collab-title {
  font-weight: 700;
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  margin: 0 0 var(--hk-space-1);
}
.hk-collab-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  margin: 0;
  line-height: 1.6;
}

/* Experiences */
.hk-experiences-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-3);
}
.hk-experience-card {
  padding: var(--hk-space-4);
  background-color: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-experience-author {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-experience-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--hk-r-pill);
  background-color: var(--hk-surface-2);
  color: var(--hk-ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hk-experience-name {
  font-weight: 700;
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
}
.hk-experience-visit-month {
  font-size: 0.75rem;
  color: var(--hk-muted);
  display: block;
}
.hk-experience-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.hk-experience-reply {
  margin-block-start: var(--hk-space-2);
  padding: var(--hk-space-3);
  background-color: var(--hk-surface-2);
  border-inline-start: 3px solid var(--hk-brand);
  border-radius: var(--hk-r-sm);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
}
.hk-experience-reply-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* Experience Submission Form (Mock OTP) */
.hk-exp-form-card {
  margin-block-start: var(--hk-space-4);
  padding: var(--hk-space-4);
  background-color: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
}
.hk-exp-form-title {
  font-size: var(--hk-font-body);
  font-weight: 700;
  color: var(--hk-ink);
  margin: 0 0 var(--hk-space-2);
}

/* Responsive queries */
@media (min-width: 640px) {
  .hk-story-narrative-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hk-network-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Place Page R9: Story Blocks, News, Network, Q&A, Experiences
   ========================================================================== */

/* Story & Narrative */
.hk-story-section {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-4);
}
.hk-story-key-message {
  padding: var(--hk-space-3) var(--hk-space-4);
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  border-inline-start: 4px solid var(--hk-brand);
}
.hk-story-quote {
  margin: 0;
  padding: 0;
}
.hk-story-quote-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--hk-ink);
  margin: 0;
}
.hk-story-narrative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hk-space-3);
}
@media (min-width: 768px) {
  .hk-story-narrative-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hk-story-narrative-item {
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3) var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-story-narrative-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-story-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hk-brand);
  display: inline-block;
  flex-shrink: 0;
}
.hk-story-narrative-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.hk-story-blocks-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-2);
}
.hk-story-block-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-story-block-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--hk-r-pill);
  background: var(--hk-surface-2);
  color: var(--hk-brand);
  border: 1px solid var(--hk-border);
}
.hk-story-block-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-story-block-body {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.hk-story-gallery-thumbs {
  display: flex;
  gap: var(--hk-space-2);
  overflow-x: auto;
  padding-block: var(--hk-space-1);
}
.hk-story-gallery-item img {
  border-radius: var(--hk-r-sm);
  object-fit: cover;
  border: 1px solid var(--hk-border);
}
.hk-story-media-box {
  margin-block-start: var(--hk-space-2);
}
.hk-story-media-fallback {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  padding: var(--hk-space-3);
  background: var(--hk-surface-2);
  border: 1px dashed var(--hk-border);
  border-radius: var(--hk-r-sm);
  color: var(--hk-ink-2);
  font-size: var(--hk-font-small);
}

/* Owner Updates / News */
.hk-owner-updates-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-owner-update-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-owner-update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hk-space-2);
}
.hk-owner-update-date {
  font-size: 0.8rem;
  color: var(--hk-ink-2);
}
.hk-owner-update-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* Public Q&A */
.hk-qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-qa-item {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-qa-q-header {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
  margin-block-end: var(--hk-space-1);
}
.hk-qa-q-badge {
  background: var(--hk-brand-50, rgba(0, 106, 13, 0.08));
  color: var(--hk-brand);
  padding: 2px 8px;
  border-radius: var(--hk-r-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.hk-qa-asker {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hk-ink);
}
.hk-qa-time {
  font-size: 0.78rem;
  color: var(--hk-ink-2);
  margin-inline-start: auto;
}
.hk-qa-q-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}
.hk-qa-answer {
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3);
  border-inline-start: 3px solid var(--hk-brand);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-qa-a-header {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-qa-a-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}

/* Business Network & Recommendations */
.hk-network-group {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-network-subheading {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hk-ink-2);
  margin: 0;
}
.hk-network-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-rec-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3) var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-rec-author-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hk-brand);
  text-decoration: none;
}
.hk-rec-author-link:hover {
  text-decoration: underline;
}
.hk-rec-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}
.hk-collab-card {
  background: var(--hk-surface-2);
  border: 1px dashed var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3) var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
}
.hk-collab-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-collab-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink-2);
  line-height: 1.6;
  margin: 0;
}

/* Customer Experiences */
.hk-experiences-list {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
}
.hk-experience-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-2);
}
.hk-experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hk-experience-author {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-experience-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hk-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hk-ink-2);
}
.hk-experience-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hk-ink);
}
.hk-experience-visit-month {
  font-size: 0.78rem;
  color: var(--hk-ink-2);
  display: block;
}
.hk-experience-text {
  font-size: var(--hk-font-body);
  color: var(--hk-ink);
  line-height: 1.7;
  margin: 0;
}
.hk-experience-reply {
  background: var(--hk-surface-2);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-3);
  margin-block-start: var(--hk-space-2);
  border-inline-start: 3px solid var(--hk-brand);
}
.hk-experience-reply-header {
  margin-block-end: var(--hk-space-1);
}
.hk-experience-reply-text {
  font-size: var(--hk-font-small);
  color: var(--hk-ink);
  line-height: 1.6;
  margin: 0;
}

/* Experience Submission Form (Section 2) */
.hk-exp-form-card {
  background: var(--hk-surface-2);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-3);
  margin-block-start: var(--hk-space-4);
}
.hk-exp-form-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0;
}
.hk-exp-rating-row {
  display: flex;
  align-items: center;
  gap: var(--hk-space-2);
}
.hk-rating-star-btn {
  background: none;
  border: none;
  padding: var(--hk-space-1);
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--hk-muted);
  transition: color 0.15s ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hk-rating-star-btn.is-active,
.hk-rating-star-btn:hover {
  color: #f59e0b;
}
.hk-exp-otp-mock-box {
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  border-radius: var(--hk-r-sm);
  padding: var(--hk-space-2) var(--hk-space-3);
  font-size: 0.88rem;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Article & Static Page Sanitized HTML Body */
.hk-article-body h2,
.hk-article-body h3,
.hk-article-body h4 {
  color: var(--hk-ink);
  font-weight: 800;
  margin: var(--hk-space-4) 0 var(--hk-space-2);
}
.hk-article-body p {
  margin: 0 0 var(--hk-space-3);
}
.hk-article-body ul,
.hk-article-body ol {
  padding-inline-start: var(--hk-space-5);
  margin: 0 0 var(--hk-space-3);
}
.hk-article-body li {
  margin-block-end: var(--hk-space-1);
}
.hk-article-body a {
  color: var(--hk-brand);
  text-decoration: underline;
}
.hk-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hk-r-sm);
  margin-block: var(--hk-space-3);
}
.hk-article-body blockquote {
  margin: var(--hk-space-3) 0;
  padding: var(--hk-space-3) var(--hk-space-4);
  background: var(--hk-surface-2);
  border-inline-start: 4px solid var(--hk-brand);
  border-radius: var(--hk-r-sm);
}

/* Dark Mode Link & Ghost Button AA Contrast */
[data-theme="dark"] a:not(.hk-btn-primary):not(.hk-bottom-nav-item):not(.hk-chip),
[data-theme="dark"] a.hk-btn-ghost,
[data-theme="dark"] a.hk-btn-ghost > span,
[data-theme="dark"] .hk-btn-ghost {
  color: var(--hk-brand-400);
}

/* Skip Link & Global Reduced Motion (WCAG 2.1 AA) */
.hk-skip-link {
  position: fixed;
  top: -120px;
  inset-inline-start: var(--hk-space-4);
  z-index: 200;
  padding: var(--hk-space-2) var(--hk-space-4);
  background: var(--hk-brand);
  color: #ffffff;
  border-radius: var(--hk-radius-md);
  font-weight: 700;
  box-shadow: var(--hk-shadow-lg);
}
.hk-skip-link:focus-visible {
  top: var(--hk-space-3);
  outline: 3px solid var(--hk-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Global Dark Theme Contrast Safety Net */
html[data-theme="dark"] .hk-place-card-block,
html[data-theme="dark"] .hk-card {
  background-color: var(--hk-surface);
  border-color: var(--hk-border);
  color: var(--hk-ink);
}
html[data-theme="dark"] .hk-prose,
html[data-theme="dark"] .hk-prose p,
html[data-theme="dark"] .hk-prose li,
html[data-theme="dark"] .hk-prose span,
html[data-theme="dark"] .hk-prose div {
  color: var(--hk-ink-2) !important;
}
html[data-theme="dark"] .hk-prose h1,
html[data-theme="dark"] .hk-prose h2,
html[data-theme="dark"] .hk-prose h3,
html[data-theme="dark"] .hk-prose h4,
html[data-theme="dark"] .hk-prose strong {
  color: var(--hk-ink) !important;
}
html[data-theme="dark"] .hk-input,
html[data-theme="dark"] select.hk-input,
html[data-theme="dark"] textarea.hk-input {
  background-color: var(--hk-surface-2);
  color: var(--hk-ink);
  border-color: var(--hk-border);
}
html[data-theme="dark"] .hk-input::placeholder {
  color: var(--hk-muted);
}
