body.route-kham-pha-360 footer,
body.route-kham-pha-360 .footer,
body.route-kham-pha-360 .site-footer,
body.route-kham-pha-360 .global-git,
body.route-kham-pha-360 .lead-dossier,
body.route-kham-pha-360 .price-quote-section {
  display: none !important;
}

body.route-kham-pha-360 .header .section-bg {
  opacity: 1 !important;
}

body.route-kham-pha-360 {
  height: 100vh;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.page-360x {
  --x-ink: var(--color-brand-primary);
  --x-ink-soft: var(--color-brand-dark);
  --x-moss: #5f7a6e;
  --x-dev: #3f8a6c;
  --x-gold: var(--color-brand-gold);
  --x-line: #e2e8f0;
  --x-line-soft: var(--color-border-hairline);
  --x-card: #f8faf8;
  --x-muted: var(--color-text-muted);
  --x-body: var(--color-text-body);
  padding-top: var(--header-height, 68px);
  background: #fff;
}

.x-explorer {
  position: relative;
  display: flex;
  height: calc(100vh - var(--header-height, 68px));
  height: calc(100svh - var(--header-height, 68px));
  overflow: hidden;
  background: #fff;
  color: var(--x-ink);
}

/* ---------- left panel ---------- */

.x-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 42%;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-right: 1px solid color-mix(in srgb, var(--x-ink) 8%, transparent);
}

.x-panel__head {
  padding: 34px 48px 0;
}

.page-360x .kd-breadcrumb {
  margin: 0 0 24px !important;
  color: #78716c !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  line-height: 1.6 !important;
  text-transform: uppercase !important;
}

.page-360x .kd-breadcrumb a {
  color: #78716c !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-360x .kd-breadcrumb a:hover {
  color: #0e2a26 !important;
}

.page-360x .kd-breadcrumb [aria-current="page"],
.page-360x .kd-breadcrumb [aria-current] {
  color: #9e8a78 !important;
  font-weight: 400 !important;
}

.x-kicker,
.page-360x .x-kicker {
  display: block;
  margin: 0 0 16px !important;
  color: #BFA37C !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  font-synthesis: none;
  letter-spacing: 0.22em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

.page-360x .x-title {
  margin: 0 0 20px !important;
  color: #003D45 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(32px, 3.8vw, 48px) !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-transform: none;
  text-wrap: balance;
}

.page-360x .x-lead {
  max-width: 42rem;
  margin: 0 0 28px !important;
  color: #57534e !important;
  font-family: "Be Vietnam Pro", sans-serif !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  font-synthesis: none;
  letter-spacing: 0.01em !important;
  line-height: 1.8 !important;
  text-align: left !important;
  text-transform: none;
}

.x-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  padding-bottom: 0;
  border-bottom: 0;
}

.page-360x .x-filter__btn {
  position: relative;
  margin: 0;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #a3a3a3 !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: 0.15em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-360x .x-filter__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-brand-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.page-360x .x-filter__btn:hover {
  color: var(--color-brand-primary) !important;
}

.page-360x .x-filter__btn.is-active {
  color: var(--color-brand-primary) !important;
  font-weight: 400 !important;
  background: none !important;
}

.page-360x .x-filter__btn.is-active::after {
  transform: scaleX(1);
}

.x-filter__btn:focus-visible,
.x-card__locate:focus-visible,
.x-card__cta:focus-visible,
.x-pop__go:focus-visible,
.x-breadcrumb a:focus-visible {
  outline: 2px solid #BFA37C;
  outline-offset: 2px;
}

.x-count,
.page-360x .x-count {
  margin: 0 !important;
  padding: 18px 48px 4px !important;
  color: #78716c !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
}

.x-list {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0 48px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--x-ink) 28%, transparent) transparent;
  scrollbar-width: thin;
}

.x-list::-webkit-scrollbar {
  width: 3px;
}

.x-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--x-ink) 28%, transparent);
  border-radius: 99px;
}

/* ---------- cards ---------- */

.x-card {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--x-ink) 10%, transparent);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.x-card[hidden] {
  display: none;
}

.x-card:hover,
.x-card.is-active {
  background: transparent;
  box-shadow: none;
}

.x-card.is-active .x-card__locate,
.x-card:hover .x-card__locate {
  color: #8C6D37;
}

.x-card__media {
  position: relative;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: var(--x-ink);
}

.x-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.x-card:hover .x-card__media img,
.x-card.is-active .x-card__media img {
  transform: scale(1.05);
}

.x-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
  padding: 4px 0;
}

.x-card__dev,
.x-pop__dev {
  display: inline-block;
  margin: 0 0 6px;
  color: #BFA37C;
  opacity: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  user-select: none;
}

.page-360x .x-card__title {
  display: block;
  margin: 0 0 8px !important;
  color: #003D45;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .page-360x .x-card__title {
    font-size: 1.25rem;
  }
}

.x-card__locate {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.x-card__locate::after {
  content: "";
  position: absolute;
  inset: 0;
}

.x-card__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px !important;
  color: #78716c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px !important;
  font-weight: 300;
  font-synthesis: none;
  line-height: 1.4 !important;
}

.x-card__loc svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: #a8a29e;
}

.x-card__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #003D45;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  transition: color 0.3s ease;
}

.x-card__cta em {
  display: inline-block;
  font-style: normal;
  transition: transform 0.3s ease;
}

.x-card:hover .x-card__cta,
.x-card__cta:hover {
  background: transparent;
  color: #8C6D37;
}

.x-card:hover .x-card__cta em,
.x-card__cta:hover em {
  transform: translateX(4px);
}

/* ---------- map ---------- */

.x-map-wrap {
  position: relative;
  flex: 1 1 58%;
  min-width: 0;
}

.x-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  background: #1a2426;
}

.page-360x .leaflet-container {
  font-family: "Be Vietnam Pro", sans-serif;
}

.page-360x .leaflet-tile-pane {
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

.x-split {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e4e0d8;
  border-left: 1px solid #e4e0d8;
  background: #fff;
  cursor: col-resize;
  touch-action: none;
}

.x-split__grip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #003D45;
  box-shadow: 0 -8px 0 #003D45, 0 8px 0 #003D45;
  user-select: none;
}

.x-split:hover,
.x-split:focus-visible {
  background: #f4f7f6;
}

.x-explorer.is-resizing,
.x-explorer.is-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.x-explorer.is-resizing .x-map-wrap {
  pointer-events: none;
}

.page-360x .x-tiles-labels {
  opacity: 0.38;
}

.page-360x .leaflet-control-zoom {
  margin: 0 24px 28px 0 !important;
  border: 1px solid var(--x-line) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 24px rgba(var(--color-brand-primary-rgb), 0.16) !important;
}

.page-360x .leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  border-radius: 0 !important;
  border-bottom-color: var(--x-line) !important;
  background: #fff !important;
  color: var(--x-ink) !important;
  font: 400 20px/38px "Be Vietnam Pro", sans-serif !important;
}

.page-360x .leaflet-control-zoom a:hover {
  background: var(--x-ink) !important;
  color: #fff !important;
}

.page-360x .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--x-muted);
  font-size: 10px;
}

.page-360x .leaflet-control-attribution a {
  color: var(--x-ink-soft);
}

/* ---------- markers ---------- */

.x-marker {
  border: 0;
  background: none;
}

.x-pin {
  position: relative;
  display: block;
  width: 84px;
  height: 46px;
}

.x-pin__core {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border: 1.5px solid #C5A880;
  border-radius: 50%;
  background: #0E2A26;
  box-shadow: 0 0 0 3px rgba(14, 42, 38, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.x-pin__pulse {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #C5A880;
  opacity: 0.3;
  pointer-events: none;
  animation: x-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.x-pin__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  padding: 2.5px 9px;
  border: 1px solid rgba(191, 163, 124, 0.6);
  border-radius: 9999px;
  background: #0E2A26;
  color: #FFFFFF;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.x-marker:hover .x-pin__badge,
.x-marker.is-active .x-pin__badge {
  transform: translateX(-50%) scale(1.08);
  border-color: #D4AF37;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 8px rgba(191, 163, 124, 0.4);
}

.x-marker:hover .x-pin__core,
.x-marker.is-active .x-pin__core {
  box-shadow: 0 0 0 5px rgba(197, 168, 128, 0.35);
  transform: scale(1.15);
}

.x-marker.is-active .x-pin__pulse {
  animation-duration: 1.6s;
}

@keyframes x-ping {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(3.4);
  }
}

/* ---------- preview popup ---------- */

.x-popup .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  color: #1c1917;
}

.x-popup .leaflet-popup-content {
  width: 280px !important;
  margin: 0;
  line-height: 1.5;
}

.x-popup .leaflet-popup-tip-container {
  display: none;
}

.x-popup .leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  z-index: 2;
  width: 26px !important;
  height: 26px !important;
  border-radius: 0;
  background: transparent !important;
  color: #fff !important;
  font: 18px/26px sans-serif !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.leaflet-fade-anim .x-popup {
  transition: opacity 0.22s ease;
}

.x-pop {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

.x-pop__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 144px;
  border-radius: 0;
  background: #1a2426;
}

.x-pop__media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.x-pop__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.x-popup .x-pop__dev {
  display: inline-block;
  margin: 0 0 6px;
  color: #bfa37c;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.x-popup .x-pop__title {
  display: block;
  margin: 0 0 8px !important;
  color: #8c6d37 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.125rem !important;
  font-weight: 300 !important;
  font-synthesis: none;
  letter-spacing: -0.025em;
  line-height: 1.15 !important;
}

@media (min-width: 768px) {
  .x-popup .x-pop__title {
    font-size: 1.25rem !important;
  }
}

.x-pop__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px !important;
  color: #78716c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px !important;
  font-weight: 300;
  font-synthesis: none;
  line-height: 1.4 !important;
}

.x-pop__loc svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: #a8a29e;
}

.x-popup a.x-pop__go {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 0;
  color: #003d45;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  transition: color 0.3s ease;
}

.x-popup a.x-pop__go em {
  display: inline-block;
  font-style: normal;
  transition: transform 0.3s ease;
}

.x-popup a.x-pop__go:hover {
  color: #8c6d37;
  text-decoration: none;
}

.x-popup a.x-pop__go:hover em {
  transform: translateX(4px);
}

.x-explorer.is-map-unavailable .x-map-wrap::before {
  content: "Bản đồ tạm thời chưa tải được.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--x-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  .x-panel__head {
    padding: 28px 32px 0;
  }
  .x-count {
    padding: 16px 32px 4px;
  }
  .x-list {
    padding: 0 32px 32px;
  }
  .x-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  body.route-kham-pha-360 {
    height: auto;
    overflow: auto;
  }

  .x-explorer {
    flex-direction: column-reverse;
    height: auto;
    min-height: calc(100svh - var(--header-height, 68px));
    overflow: visible;
  }
  .x-map-wrap {
    position: sticky;
    top: var(--header-height, 68px);
    flex: 0 0 42vh;
    height: 42vh;
    min-height: 240px;
  }
  .x-split {
    display: none;
  }
  .x-panel {
    flex: 1 1 auto;
    min-height: 0;
    border-right: 0;
    border-top: 1px solid color-mix(in srgb, var(--x-ink) 8%, transparent);
  }
  .x-panel__head {
    padding: 20px 20px 0;
  }
  .page-360x .kd-breadcrumb {
    margin-bottom: 12px !important;
  }
  .page-360x .x-title {
    margin-bottom: 10px !important;
    font-size: 26px;
  }
  .x-lead {
    margin-bottom: 16px !important;
    font-size: 14px !important;
  }
  .x-filter {
    flex-wrap: nowrap;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .x-filter::-webkit-scrollbar {
    display: none;
  }
  .x-filter__btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .x-count {
    padding: 12px 20px 4px;
  }
  .x-list {
    padding: 0 20px 32px;
    overflow: visible;
  }
}

@media (max-width: 480px) {
  .x-popup .leaflet-popup-content {
    width: 280px !important;
  }

  .x-pop {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .x-lead {
    display: none;
  }
  .x-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }
  .page-360x .x-card__title {
    font-size: 1.125rem;
  }
  .x-card__loc {
    margin-bottom: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .x-pin__pulse {
    animation: none;
    opacity: 0.2;
  }
  .x-pin,
  .x-card,
  .x-card__media img {
    transition: none;
  }
}
