/* Lớp giao diện riêng cho tour động: không phụ thuộc vào stylesheet export cũ. */
:root {
  --tour-blue: #12395d;
  --tour-blue-deep: #071d34;
  --tour-blue-light: #2a8dcc;
  --tour-orange: #f47b20;
}

html, body.phuocan-tour { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: #d9ecf6; }
body.phuocan-tour { font-family: Arial, Helvetica, sans-serif; }
#pano { position: fixed !important; inset: 0; width: 100% !important; height: 100dvh !important; background: #d9ecf6; }
.tour-noscript { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #12395d; }

#hipc-pano-splash { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: #d9ecf6 center/cover no-repeat; color: #fff; opacity: 0; pointer-events: none; transition: opacity .26s ease; }
#hipc-pano-splash.is-visible { opacity: 1; }
#hipc-pano-splash::before { content:""; position:absolute; inset:0; background:rgba(5,29,55,.22); }
.hipc-loader { position:relative; display:grid; justify-items:center; gap:12px; }
.hipc-loader-text { padding:9px 13px; border:1px solid rgba(255,255,255,.35); border-radius:8px; background:rgba(7,29,52,.58); font-size:13px; font-weight:700; letter-spacing:.02em; text-shadow:0 1px 2px #00182c; }
/* KRpano có thể giữ timer nội bộ khi chuyển scene. visibility bảo đảm lớp chờ
   không còn chặn/hiện chữ sau frame đầu tiên, kể cả khi callback remove DOM
   của engine bị trì hoãn. */
#hipc-pano-splash.is-ready { opacity: 0; visibility: hidden; }
/* Trong lúc WebGL đang chạy camera intro, giữ chrome nhẹ để quả cầu thật là
   tâm điểm; không dùng icon/quả cầu HTML giả lập. */
body.hipc-intro-active #visit-reservation,
body.hipc-intro-active #menu-main,
body.hipc-intro-active #hipc-scene-title,
body.hipc-intro-active .krpano > div { transition: opacity .18s ease; }
body.hipc-intro-active #visit-reservation,
body.hipc-intro-active #menu-main,
body.hipc-intro-active #hipc-scene-title { opacity: .28; pointer-events: none; }

/* Sidebar thu gọn chỉ là một nút ở sát mép trái, không để lại hộp trắng. */
body.phuocan-tour #menu-main { position: fixed !important; z-index: 2100; top: 14px !important; left: 0 !important; width: 46px !important; height: 52px !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: width .22s ease, height .22s ease, left .22s ease, top .22s ease, border-radius .22s ease !important; }
body.phuocan-tour #menu-main_top { position: absolute !important; inset: 0 !important; width: 46px !important; height: 52px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
body.phuocan-tour #menu-main_top-logo { display: none !important; }
body.phuocan-tour #menu-main_top-btn { position: absolute !important; inset: 0 !important; display: grid !important; place-items: center !important; width: 46px !important; height: 52px !important; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(255,255,255,.74) !important; border-left: 0 !important; border-radius: 0 14px 14px 0 !important; background: rgba(255,255,255,.92) !important; box-shadow: 0 8px 22px rgba(0,20,44,.26) !important; cursor: pointer; }
body.phuocan-tour #menu-main_top-btn img { width: 11px !important; height: 19px !important; transform: none !important; }
body.phuocan-tour #menu-main_body { display: none !important; }

body.phuocan-tour #menu-main.active { top: 14px !important; left: 14px !important; width: min(360px, calc(100vw - 28px)) !important; height: min(760px, calc(100dvh - 28px)) !important; max-height: calc(100dvh - 28px) !important; overflow: hidden !important; border: 1px solid rgba(203,237,255,.48) !important; border-radius: 16px !important; background: linear-gradient(155deg, rgba(28,78,119,.82), rgba(9,42,76,.78) 52%, rgba(5,25,49,.88)) !important; box-shadow: 0 16px 40px rgba(0,18,42,.35) !important; backdrop-filter: blur(18px) saturate(1.15) !important; -webkit-backdrop-filter: blur(18px) saturate(1.15) !important; }
body.phuocan-tour #menu-main.active #menu-main_top { position: relative !important; width: 100% !important; height: 66px !important; min-height: 66px !important; border-bottom: 1px solid rgba(255,255,255,.16); }
body.phuocan-tour #menu-main.active #menu-main_top-logo { position: absolute !important; top: 8px !important; left: 12px !important; display: flex !important; align-items: center; width: calc(100% - 68px) !important; height: 50px !important; margin: 0 !important; padding: 6px 4px !important; }
body.phuocan-tour #menu-main_top-logo img { object-position: center center !important; }
body.phuocan-tour #menu-main.active #menu-main_top-logo img { width: 100% !important; height: 100% !important; object-fit: contain; object-position: center center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.22)); }
body.phuocan-tour #menu-main.active #menu-main_top-btn { inset: 9px 8px auto auto !important; width: 38px !important; height: 46px !important; border: 1px solid rgba(255,255,255,.72) !important; border-radius: 11px !important; }
body.phuocan-tour #menu-main.active #menu-main_top-btn img { transform: rotate(180deg) !important; }
body.phuocan-tour #menu-main.active #menu-main_body { display: block !important; width: 100% !important; height: calc(100% - 66px) !important; margin: 0 !important; padding: 7px 10px 12px !important; overflow: hidden !important; }
body.phuocan-tour #menu-main.active #menu-main_body > ul { height: 100% !important; margin: 0 !important; padding: 0 4px 4px !important; overflow-y: auto !important; font: 600 15px/1.25 Arial, Helvetica, sans-serif !important; scrollbar-width: thin; scrollbar-color: rgba(163,226,255,.8) transparent; }
body.phuocan-tour #menu-main_body > ul::-webkit-scrollbar { width: 5px; }
body.phuocan-tour #menu-main_body > ul::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(163,226,255,.8); }
body.phuocan-tour #menu-main_body > ul > li { margin: 0 0 7px !important; padding: 0 !important; }
body.phuocan-tour #menu-main_body .menu-main_body-icon { display: none !important; }
body.phuocan-tour #menu-main_body ul li > div { display: flex !important; align-items: center; min-height: 46px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid rgba(141,217,250,.28) !important; border-radius: 10px !important; background: rgba(31,142,204,.82) !important; color: #fff; }
body.phuocan-tour #menu-main_body ul li > div::before { content: ""; width: 0; height: 0; margin-right: 9px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid #e5f8ff; }
body.phuocan-tour #menu-main_body .sub-menu { display: block !important; margin: 6px 0 0 !important; padding: 0 !important; }
body.phuocan-tour #menu-main_body .sub-menu li { margin: 0 0 5px !important; padding: 0 !important; background: transparent !important; }
body.phuocan-tour #menu-main_body .sub-menu a { display: block !important; overflow: hidden; padding: 11px 13px 11px 29px !important; border: 1px solid rgba(255,255,255,.17) !important; border-radius: 8px !important; background: rgba(255,255,255,.10) !important; color: #fff !important; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
body.phuocan-tour #menu-main_body .sub-menu a:hover { background: rgba(78,190,245,.30) !important; }

/* Nút và cửa sổ đăng ký dùng tông xanh #263C8A, thao tác chính màu cam. */
body.phuocan-tour #visit-reservation { position: fixed !important; z-index: 2050; top: 14px !important; left: 50% !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; column-gap: 0 !important; row-gap: 0 !important; width: min(680px, calc(100vw - 132px)); height: 52px; margin: 0 !important; padding: 0 !important; transform: translateX(-50%); list-style: none; background: none !important; background-image: none !important; }
body.phuocan-tour #visit-reservation li { box-sizing: border-box; display: flex !important; align-items: center !important; justify-content: center !important; justify-self: stretch !important; align-self: stretch !important; width: 100% !important; min-width: 0; max-width: none !important; height: 52px; margin: 0 !important; padding: 0 14px !important; border-right: 1px solid rgba(255,255,255,.55); background-color: #2b4b99 !important; background-image: none !important; color: #fff !important; font-size: 14px !important; font-weight: 700; line-height: 1 !important; text-align: center; text-transform: uppercase; cursor: pointer; }
body.phuocan-tour #visit-reservation li:first-child { border-radius: 8px 0 0 8px; }
body.phuocan-tour #visit-reservation li:last-child { border-right: 0; border-radius: 0 8px 8px 0; background-color: #2b4b99 !important; }
body.phuocan-tour #visit-reservation li:hover { background-color: var(--tour-orange) !important; background-image: none !important; }
body.phuocan-tour .reservation-short { display: none; }

/* Language picker: uses the original 64×64 flag assets downloaded from the
   Hiệp Phước website. It is a transparent floating control so the panorama
   remains the primary visual element. */
body.phuocan-tour .tour-language { position:fixed; z-index:2800; top:14px; right:18px; font-family:Arial,Helvetica,sans-serif; }
body.phuocan-tour .tour-language-toggle { display:flex; align-items:center; justify-content:space-between; box-sizing:border-box; width:104px; height:42px; padding:0 14px; border:1px solid rgba(255,255,255,.58); border-radius:11px; background:rgba(4,42,84,.30); color:#fff; box-shadow:0 8px 22px rgba(0,26,61,.18); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); cursor:pointer; transition:background .18s ease,border-color .18s ease; }
body.phuocan-tour .tour-language-toggle:hover,body.phuocan-tour .tour-language.is-open .tour-language-toggle { border-color:rgba(209,241,255,.95); background:rgba(4,56,108,.58); }
body.phuocan-tour .tour-language-toggle:focus-visible,body.phuocan-tour .tour-language-menu button:focus-visible { outline:2px solid #91d9ff; outline-offset:2px; }
body.phuocan-tour .tour-language-toggle img { display:block; flex:0 0 24px; width:24px; height:24px; object-fit:contain; }
body.phuocan-tour .tour-language-chevron { display:block; flex:0 0 16px; width:16px; margin-top:-3px; font:700 18px/1 Arial,sans-serif; text-align:center; transition:transform .18s ease; }
body.phuocan-tour .tour-language.is-open .tour-language-chevron { transform:rotate(180deg); }
body.phuocan-tour .tour-language-menu { position:absolute; top:48px; right:0; display:none; min-width:164px; padding:6px; border:1px solid rgba(255,255,255,.45); border-radius:10px; background:rgba(5,39,78,.56); box-shadow:0 12px 28px rgba(0,19,50,.25); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
body.phuocan-tour .tour-language.is-open .tour-language-menu { display:grid; gap:3px; }
body.phuocan-tour .tour-language-menu button { display:grid; grid-template-columns:28px 1fr; align-items:center; gap:8px; width:100%; min-height:31px; padding:4px 7px; border:1px solid transparent; border-radius:6px; background:transparent; color:#fff; font:600 12px/1.2 Arial,Helvetica,sans-serif; text-align:left; cursor:pointer; }
body.phuocan-tour .tour-language-menu button:hover,body.phuocan-tour .tour-language-menu button.is-active { border-color:rgba(186,230,255,.54); background:rgba(74,164,220,.33); }
body.phuocan-tour .tour-language-menu img { display:block; width:24px; height:24px; object-fit:contain; }

body.phuocan-tour .popup { position: fixed !important; z-index: 3000 !important; inset: 0 !important; display: none !important; align-items: center; justify-content: center; padding: 18px; background: rgba(8,20,70,.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
body.phuocan-tour .popup.show { display: flex !important; }
body.phuocan-tour .popup .popup-info { position: relative !important; top: auto !important; left: auto !important; width: min(790px, 100%) !important; max-height: min(720px, calc(100dvh - 36px)) !important; min-height: 0 !important; margin: 0 !important; padding: 26px !important; overflow: auto !important; transform: none !important; border: 1px solid rgba(255,255,255,.45) !important; border-radius: 14px !important; background: linear-gradient(145deg, rgba(38,60,138,.97), rgba(24,37,104,.95)) !important; color: #fff; box-shadow: 0 24px 60px rgba(5,12,52,.35); }
/* Giữ thao tác cuộn bằng chuột/vuốt nhưng không để thanh cuộn làm hỏng bố cục modal. */
body.phuocan-tour .popup .popup-info { scrollbar-width: none; -ms-overflow-style: none; }
body.phuocan-tour .popup .popup-info::-webkit-scrollbar { width: 0; height: 0; display: none; }
body.phuocan-tour .popup-title h1 { margin: 0 34px 22px 0; color: #fff; font-size: 27px; text-transform: uppercase; }
body.phuocan-tour .btn-close-popup { position: absolute !important; top: 11px !important; right: 14px !important; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.62); border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
body.phuocan-tour .main-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; }
body.phuocan-tour .form-group { margin: 0; }
body.phuocan-tour .form-group-full { grid-column: 1 / -1; }
body.phuocan-tour .form-group dt { margin: 0 0 6px; }
body.phuocan-tour .form-group label { color: #fff; font-size: 14px; font-weight: 700; }
body.phuocan-tour .form-group dd { margin: 0; }
body.phuocan-tour .form-group input, body.phuocan-tour .form-group select, body.phuocan-tour .form-group textarea { box-sizing: border-box; width: 100%; border: 1px solid rgba(255,255,255,.42); border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; font: 15px Arial, sans-serif; }
body.phuocan-tour .form-group input, body.phuocan-tour .form-group select { height: 42px; padding: 0 11px; }
body.phuocan-tour .form-group textarea { padding: 10px 11px; resize: vertical; }
body.phuocan-tour .form-group option { color: #10294e; }
body.phuocan-tour .btn-submit { display: block; margin: 22px auto 0; padding: 11px 22px; border: 1px solid rgba(255,255,255,.58); border-radius: 7px; background: var(--tour-orange); color: #fff; font: 700 15px Arial, sans-serif; cursor: pointer; }

/* KRpano skin title nằm cùng layer với dock nên bị dock che trên mobile.
   Bản DOM này luôn ở phía trên dock, giữ đúng title nhỏ như desktop. */
#hipc-scene-title { position:fixed; z-index:2045; left:24px; bottom:74px; max-width:min(46vw,520px); color:#fff; font:italic 14px/1.3 Arial,sans-serif; text-shadow:0 1px 3px rgba(0,20,42,.9); pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.phuocan-tour .popup-content-land .popup-info, body.phuocan-tour .popup-content-view .popup-info { max-width: 680px !important; }
body.phuocan-tour #btn-info-view { position: fixed; z-index: 2050; top: 16px; left: 50%; display: none; width: 32px; height: 32px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(7,44,100,.78); color: #fff; font: 700 18px Georgia, serif; cursor: pointer; }
body.phuocan-tour #btn-info-view.show { display: block; }
body.phuocan-tour .loading { z-index: 3500 !important; }

/*
 * style.css là stylesheet export của tour cũ và chứa quy tắc form theo rem
 * (trên điện thoại KRpano hạ font-size gốc xuống 6px). Không để các selector
 * cũ quyết định layout modal: form luôn là lưới theo px, vùng cuộn chỉ có một
 * là thẻ popup-info và mọi field đều có hit-area đủ lớn để chạm.
 */
body.phuocan-tour .popup-register .popup-info,
body.phuocan-tour .popup-register-land .popup-info {
  width: min(980px, calc(100vw - 48px)) !important;
  background: linear-gradient(145deg, rgba(38,60,138,.98), rgba(24,37,104,.97)) !important;
}
body.phuocan-tour .popup-register .popup-info .popup-title h1,
body.phuocan-tour .popup-register-land .popup-info .popup-title h1 {
  margin: 0 40px 20px 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font: 700 27px/1.25 Arial, Helvetica, sans-serif !important;
  text-align: left !important;
}
body.phuocan-tour .popup-register .popup-info .popup-title h1::before,
body.phuocan-tour .popup-register .popup-info .popup-title h1::after,
body.phuocan-tour .popup-register-land .popup-info .popup-title h1::before,
body.phuocan-tour .popup-register-land .popup-info .popup-title h1::after { content: none !important; display: none !important; }
body.phuocan-tour .popup-register .popup-info .btn-close-popup,
body.phuocan-tour .popup-register-land .popup-info .btn-close-popup {
  display: grid !important;
  place-items: center !important;
  top: 12px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 0 3px !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font: 400 27px/1 Arial, Helvetica, sans-serif !important;
  line-height: 1 !important;
}
body.phuocan-tour .popup-register .popup-info form .main-form,
body.phuocan-tour .popup-register-land .popup-info form .main-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 15px 20px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  align-items: start !important;
}
body.phuocan-tour .popup-register .popup-info form .form-group,
body.phuocan-tour .popup-register-land .popup-info form .form-group {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.phuocan-tour .popup-register .popup-info form .form-group.form-group-full,
body.phuocan-tour .popup-register-land .popup-info form .form-group.form-group-full { grid-column: 1 / -1 !important; }
body.phuocan-tour .popup-register .popup-info form .form-group dt,
body.phuocan-tour .popup-register .popup-info form .form-group dd,
body.phuocan-tour .popup-register-land .popup-info form .form-group dt,
body.phuocan-tour .popup-register-land .popup-info form .form-group dd { margin: 0 !important; padding: 0 !important; }
body.phuocan-tour .popup-register .popup-info form .form-group label,
body.phuocan-tour .popup-register-land .popup-info form .form-group label {
  display: block !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #fff !important;
  font: 700 14px/1.35 Arial, Helvetica, sans-serif !important;
}
body.phuocan-tour .popup-register .popup-info form .form-group input,
body.phuocan-tour .popup-register .popup-info form .form-group select,
body.phuocan-tour .popup-register .popup-info form .form-group textarea,
body.phuocan-tour .popup-register-land .popup-info form .form-group input,
body.phuocan-tour .popup-register-land .popup-info form .form-group select,
body.phuocan-tour .popup-register-land .popup-info form .form-group textarea {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid rgba(255,255,255,.46) !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font: 15px/1.35 Arial, Helvetica, sans-serif !important;
}
body.phuocan-tour .popup-register .popup-info form .form-group input,
body.phuocan-tour .popup-register .popup-info form .form-group select,
body.phuocan-tour .popup-register-land .popup-info form .form-group input,
body.phuocan-tour .popup-register-land .popup-info form .form-group select { height: 44px !important; min-height: 44px !important; }
body.phuocan-tour .popup-register .popup-info form .form-group textarea,
body.phuocan-tour .popup-register-land .popup-info form .form-group textarea { min-height: 84px !important; padding: 10px 11px !important; }
body.phuocan-tour .popup-register .popup-info form .form-group input::placeholder,
body.phuocan-tour .popup-register .popup-info form .form-group textarea::placeholder,
body.phuocan-tour .popup-register-land .popup-info form .form-group input::placeholder,
body.phuocan-tour .popup-register-land .popup-info form .form-group textarea::placeholder { color: rgba(255,255,255,.72) !important; }
body.phuocan-tour .popup-register .popup-info form .btn-submit,
body.phuocan-tour .popup-register-land .popup-info form .btn-submit {
  display: block !important;
  width: max-content !important;
  min-width: 156px !important;
  height: 44px !important;
  margin: 22px auto 0 !important;
  padding: 0 22px !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 8px !important;
  background: #f47b20 !important;
  color: #fff !important;
  font: 700 16px/1 Arial, Helvetica, sans-serif !important;
}
/* Phản hồi gửi form nằm trong chính modal để khách thấy rõ bản ghi đã được
   tiếp nhận, không che toàn bộ panorama bằng popup SweetAlert thứ hai. */
body.phuocan-tour .popup-info form .form-inline-notice {
  display: none;
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 14px/1.45 Arial, Helvetica, sans-serif;
}
body.phuocan-tour .popup-info form .form-inline-notice.is-visible { display: block; }
body.phuocan-tour .popup-info form .form-inline-notice.is-success {
  border-color: rgba(183, 243, 208, .72);
  background: rgba(11, 111, 72, .42);
  color: #e5fff0;
}
body.phuocan-tour .popup-info form .form-inline-notice.is-error {
  border-color: rgba(255, 194, 194, .82);
  background: rgba(157, 30, 41, .42);
  color: #fff0f0;
}

/* Bản đồ không được scale theo wrapper: dùng pixel thực để luôn dễ thao tác. */
/* Khi phóng to, bản đồ là lớp thao tác chính (trên menu/đăng ký, dưới modal). */
body.phuocan-tour #tour-map-shell { z-index: 2500; transform: none !important; }
body.phuocan-tour .map-view {
  right: 22px !important;
  bottom: 78px !important;
  width: 300px !important;
  height: 186px !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(0,16,48,.38) !important;
}
body.phuocan-tour .map-view.map-view_full {
  top: max(14px, env(safe-area-inset-top)) !important;
  right: 12px !important;
  bottom: auto !important;
  /* % lấy theo shell fixed 100% nên không chịu sai lệch viewport của
     KRpano/WebKit khi browser đang ở chế độ thiết bị. */
  width: calc(100% - 24px) !important;
  height: calc(100% - 132px) !important;
  transform: none !important;
}
body.phuocan-tour .map-view .map-view_group-btn { top: 8px !important; left: 8px !important; gap: 7px !important; }
body.phuocan-tour .map-view .map-view_group-btn .map-view-btn { width: 28px !important; height: 28px !important; border-radius: 7px; background-color: rgba(4,31,62,.68) !important; }

@media (max-width: 700px) {
  /* Không thu control theo rem của skin KRpano: cờ và chevron luôn có vùng
     thở riêng, đủ dễ chạm trên điện thoại nhỏ lẫn thiết bị retina. */
  body.phuocan-tour .tour-language { top:63px; right:10px; }
  body.phuocan-tour .tour-language-toggle { width:118px; height:52px; padding:0 16px; border-radius:14px; }
  body.phuocan-tour .tour-language-toggle img { flex:0 0 28px; width:28px; height:28px; }
  body.phuocan-tour .tour-language-chevron { display:block; flex:0 0 20px; width:20px; margin-top:-4px; font-size:22px; text-align:center; }
  body.phuocan-tour .tour-language-menu { top:58px; min-width:178px; padding:7px; }
  body.phuocan-tour .tour-language-menu button { grid-template-columns:32px 1fr; min-height:36px; gap:9px; font-size:13px; }
  body.phuocan-tour .tour-language-menu img { width:28px; height:28px; }
  body.phuocan-tour #menu-main { top: 12px !important; width: 42px !important; height: 48px !important; }
  body.phuocan-tour #menu-main_top, body.phuocan-tour #menu-main_top-btn { width: 42px !important; height: 48px !important; }
  body.phuocan-tour #menu-main.active { top: 12px !important; left: 10px !important; width: min(318px, calc(100vw - 20px)) !important; height: min(640px, calc(100dvh - 24px)) !important; max-height: calc(100dvh - 24px) !important; }
  body.phuocan-tour #menu-main.active #menu-main_top { width: 100% !important; height: 60px !important; min-height: 60px !important; }
  body.phuocan-tour #menu-main.active #menu-main_top-logo { top: 7px !important; height: 45px !important; }
  body.phuocan-tour #menu-main.active #menu-main_top-btn { width: 34px !important; height: 40px !important; }
  body.phuocan-tour #menu-main.active #menu-main_body { height: calc(100% - 60px) !important; padding: 6px 8px 10px !important; }
  body.phuocan-tour #visit-reservation { top: 14px !important; width: min(330px, calc(100vw - 76px)); height: 42px; max-width: none; }
  body.phuocan-tour #visit-reservation li { height: 42px; padding: 0 6px !important; font-size: 9px !important; letter-spacing: 0 !important; white-space: nowrap; }
  body.phuocan-tour .reservation-long { display: none; }
  body.phuocan-tour .reservation-short { display: inline; }
  body.phuocan-tour #tour-map-shell { right: 0 !important; bottom: 0 !important; transform: none !important; }
  /* Dock mobile dùng hai hàng đủ nút KRpano; đưa bản đồ lên trên dock để
     không che cụm VR/quay lại/toàn màn hình ở cạnh phải. */
  body.phuocan-tour .map-view { right: 10px !important; bottom: calc(132px + env(safe-area-inset-bottom)) !important; width: 224px !important; height: 140px !important; border-radius: 10px !important; }
  body.phuocan-tour .map-view.map-view_full { top: max(12px, env(safe-area-inset-top)) !important; right: 12px !important; bottom: auto !important; width: calc(100% - 24px) !important; height: calc(100% - 132px) !important; }
  body.phuocan-tour .map-view .map-view_group-btn { top: 5px !important; left: 5px !important; gap: 4px !important; }
  body.phuocan-tour .map-view .map-view_group-btn .map-view-btn { width: 23px !important; height: 23px !important; }
  body.phuocan-tour .popup { align-items: center !important; padding: 12px !important; }
  body.phuocan-tour .popup .popup-info { width: calc(100vw - 24px) !important; max-height: calc(100dvh - 24px) !important; padding: 20px 16px !important; border-radius: 12px !important; overscroll-behavior: contain; }
  body.phuocan-tour .popup-register .popup-info .popup-title h1,
  body.phuocan-tour .popup-register-land .popup-info .popup-title h1 { margin-bottom: 18px !important; font-size: 21px !important; }
  body.phuocan-tour .popup-register .popup-info form .main-form,
  body.phuocan-tour .popup-register-land .popup-info form .main-form { grid-template-columns: 1fr !important; gap: 12px !important; }
  body.phuocan-tour .popup-register .popup-info form .form-group.form-group-full,
  body.phuocan-tour .popup-register-land .popup-info form .form-group.form-group-full { grid-column: auto !important; }
  .hipc-loader-text { font-size: 12px; }
  #hipc-scene-title { left:12px; right:12px; bottom:128px; max-width:calc(100vw - 24px); font-size:12px; }
}

/* Bộ chọn panorama động: được mở bằng nút lưới trong dock KRpano và chỉ
   đọc danh sách scene từ API. Không dùng/không mở sidebar bên trái. */
#hipc-scene-picker { position:fixed; z-index:2600; left:50%; bottom:76px; width:min(720px,calc(100vw - 32px)); max-height:min(250px,36dvh); display:none; overflow:hidden; transform:translateX(-50%); border:1px solid rgba(222,245,255,.48); border-radius:12px; background:linear-gradient(140deg,rgba(17,56,93,.92),rgba(5,28,54,.92)); box-shadow:0 18px 42px rgba(0,12,35,.38); backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); }
#hipc-scene-picker.is-open { display:block; }
.hipc-scene-picker-head { display:flex; align-items:center; justify-content:space-between; padding:9px 11px; border-bottom:1px solid rgba(255,255,255,.16); color:#fff; font:700 14px Arial,Helvetica,sans-serif; }
.hipc-scene-picker-head button { width:28px; height:28px; border:1px solid rgba(255,255,255,.48); border-radius:7px; background:rgba(255,255,255,.1); color:#fff; font:400 22px/1 Arial; cursor:pointer; }
.hipc-scene-picker-list { display:flex; gap:9px; max-height:194px; padding:10px; overflow:auto hidden; overscroll-behavior:contain; }
.hipc-scene-picker-list button { display:grid; grid-template-columns:110px; gap:5px; flex:0 0 110px; padding:5px; border:1px solid rgba(255,255,255,.2); border-radius:8px; background:rgba(255,255,255,.08); color:#fff; text-align:left; cursor:pointer; }
.hipc-scene-picker-list button:hover,.hipc-scene-picker-list button.is-active { border-color:#66c7ff; background:rgba(59,166,226,.28); }
.hipc-scene-picker-list img { display:block; width:100%; height:65px; object-fit:cover; border-radius:5px; background:#163b59; }
.hipc-scene-picker-list span { overflow:hidden; font:700 11px/1.25 Arial,Helvetica,sans-serif; text-overflow:ellipsis; white-space:nowrap; }

/* Tooltip marker là DOM riêng để có thể hiển thị đồng thời tên và ảnh xem
   trước panorama đích, thay vì tooltip chữ đơn của skin export. */
#hipc-point-preview-tooltip { position:fixed; z-index:2700; display:none; width:min(220px,calc(100vw - 28px)); padding:7px; border:1px solid rgba(180,226,255,.75); border-radius:9px; background:rgba(5,32,63,.94); color:#fff; box-shadow:0 12px 28px rgba(0,0,0,.32); pointer-events:none; backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); }
#hipc-point-preview-tooltip.is-visible { display:grid; gap:6px; }
#hipc-point-preview-tooltip img { display:none; width:100%; max-height:125px; object-fit:cover; border-radius:5px; background:#163b59; }
#hipc-point-preview-tooltip.has-image img { display:block; }
#hipc-point-preview-tooltip b { overflow:hidden; font:700 13px/1.25 Arial,Helvetica,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:700px){#hipc-scene-picker{bottom:136px;width:calc(100vw - 20px);max-height:210px}.hipc-scene-picker-list{max-height:150px}.hipc-scene-picker-list button{grid-template-columns:96px;flex-basis:96px}.hipc-scene-picker-list img{height:57px}}
