/* ==========================================================================
   PALMORA SAIGON — CUSTOM LUXURY DARK THEME & ENHANCEMENTS
   ========================================================================== */

:root {
  --palm-bg-dark: #0B0604;
  --palm-bg-card: #180D07;
  --palm-bg-surface: #22120A;
  --palm-gold-glow: rgba(217, 164, 65, 0.4);
  --palm-gold: #D9A441;
  --palm-gold-light: #F3C66D;
  --palm-bone: #F5EBD7;
  --palm-muted: #C9BAA7;
}

/* 1. LOGO SHIMMER / TRÁNG GƯƠNG EFFECT (Mục 9) */
.logo-shimmer,
header a[aria-label="Palmora Saigon"],
header .logo-full,
.mobile-emblem-shimmer,
div:has(> img[src*="logo-icon.png"]) {
  position: relative !important;
  display: inline-flex !important;
  overflow: hidden !important;
  border-radius: 8px;
}

.logo-shimmer::after,
header a[aria-label="Palmora Saigon"]::after,
header .logo-full::after,
.mobile-emblem-shimmer::after,
div:has(> img[src*="logo-icon.png"])::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -160%;
  width: 120%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.4) 42%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.4) 58%,
    transparent 80%
  );
  transform: rotate(25deg);
  animation: palmShimmer 3.2s infinite ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes palmShimmer {
  0% { left: -160%; }
  32% { left: 160%; }
  100% { left: 160%; }
}

header a[aria-label="Palmora Saigon"]:hover::after {
  animation-duration: 1.5s;
}

/* 2. DARK THEME OVERRIDES (Mục 5 & Toàn diện) */
body {
  background-color: var(--palm-bg-dark) !important;
  color: var(--palm-bone) !important;
}

.p-light,
section.about.p-light,
section.menu.p-light {
  background-color: #120905 !important;
  background-image: radial-gradient(circle at 50% 20%, rgba(217, 164, 65, 0.08), transparent 70%) !important;
  color: var(--palm-bone) !important;
}

.p-light .p-eyebrow {
  color: var(--palm-gold) !important;
}

.p-light .p-display,
.p-light h2,
.p-light h3 {
  color: var(--palm-bone) !important;
}

.p-light .p-lead {
  color: #E2D3BE !important;
}

.p-light p {
  color: var(--palm-muted) !important;
}

.p-light .p-stat {
  border-left-color: rgba(217, 164, 65, 0.35) !important;
}

.p-light .p-stat b {
  color: var(--palm-gold) !important;
}

.p-light .p-stat small {
  color: var(--palm-muted) !important;
}

.p-wave path {
  fill: #120905 !important;
}

.p-wave.top path {
  fill: #0B0604 !important;
}

.menu-list {
  background: rgba(15, 8, 4, 0.7);
  border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.menu-item {
  border-bottom: 1px dashed rgba(217, 164, 65, 0.2) !important;
  padding: 0.9rem 0 !important;
  transition: transform 0.2s ease;
}

.menu-item:last-child {
  border-bottom: none !important;
}

.menu-item:hover {
  transform: translateX(4px);
}

.menu-item .mi-l b {
  color: var(--palm-bone) !important;
  font-size: 1.05rem;
}

.menu-item .mi-l small {
  color: #A99B8B !important;
  display: block;
  margin-top: 0.2rem;
}

.menu-item .price {
  background: linear-gradient(135deg, #D9A441, #F4C465);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.1rem;
}

/* 3. BỐN TẦNG CẢM XÚC: ICON VIBRANT & SẮP XẾP SO LE (Mục 4) */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .exp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .exp-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: start !important;
  }
  
  .exp-card:nth-child(1) { transform: translateY(0) !important; }
  .exp-card:nth-child(2) { transform: translateY(32px) !important; }
  .exp-card:nth-child(3) { transform: translateY(0) !important; }
  .exp-card:nth-child(4) { transform: translateY(32px) !important; }
  
  .exp-card:nth-child(1):hover { transform: translateY(-8px) !important; }
  .exp-card:nth-child(2):hover { transform: translateY(24px) !important; }
  .exp-card:nth-child(3):hover { transform: translateY(-8px) !important; }
  .exp-card:nth-child(4):hover { transform: translateY(24px) !important; }
}

.exp-card {
  background: linear-gradient(145deg, #1C0F08 0%, #120904 100%) !important;
  border: 1px solid rgba(217, 164, 65, 0.22) !important;
  border-radius: 24px !important;
  padding: 2rem 1.75rem !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--palm-gold), transparent);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.exp-card:hover {
  border-color: rgba(217, 164, 65, 0.6) !important;
  box-shadow: 0 20px 48px -12px rgba(217, 164, 65, 0.25) !important;
}

.exp-card:hover::before {
  opacity: 1;
}

.exp-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.25), rgba(216, 91, 43, 0.15));
  border: 1px solid rgba(217, 164, 65, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--palm-gold-light);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px -6px rgba(217, 164, 65, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: expFloat 4s ease-in-out infinite;
}

.exp-card:nth-child(2) .exp-badge-icon { animation-delay: 0.7s; }
.exp-card:nth-child(3) .exp-badge-icon { animation-delay: 1.4s; }
.exp-card:nth-child(4) .exp-badge-icon { animation-delay: 2.1s; }

@keyframes expFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.exp-card:hover .exp-badge-icon {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 12px 28px -4px rgba(217, 164, 65, 0.6);
  border-color: var(--palm-gold);
}

.exp-card h3 {
  color: var(--palm-bone) !important;
  font-size: 1.2rem !important;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.exp-card p {
  color: var(--palm-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.6;
}

/* 4. REVIEW / FEEDBACK KHÁCH HÀNG (Mục 10) */
.review-quote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.3), rgba(217, 164, 65, 0.08));
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: var(--palm-gold);
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px -4px rgba(217, 164, 65, 0.3);
  animation: quotePulse 3s ease-in-out infinite;
}

@keyframes quotePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(217, 164, 65, 0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(217, 164, 65, 0.5)); }
}

.review-stars {
  color: var(--palm-gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

/* 5. FOOTER MAPS CĂN GIỮA (Mục 11) */
.foot-grid {
  position: relative !important;
}

.foot-map-wrap {
  grid-column: 1 / -1 !important;
  margin: 2.75rem auto 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 680px !important;
}

.foot-map {
  width: 100% !important;
  height: 220px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(217, 164, 65, 0.3) !important;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.8) !important;
}

.foot-map iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.foot-map-link {
  margin-top: 0.75rem !important;
  color: var(--palm-gold) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  transition: opacity 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.foot-map-link:hover {
  opacity: 0.8 !important;
  text-decoration: underline !important;
}

/* 6. MOBILE UI TỐI ƯU & LÁ CÂY KHÔNG CHE CHỮ (Mục 8 & Mục 14) */
@media (max-width: 768px) {
  .about-copy,
  .g-head {
    text-align: center !important;
    padding-top: 2rem !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .about-copy .p-eyebrow,
  .g-head .p-eyebrow,
  #about .p-eyebrow,
  #gallery .p-eyebrow {
    display: inline-block !important;
    margin: 0.5rem auto !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .about-copy .p-display,
  .g-head .p-display {
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    z-index: 10 !important;
  }

  #about .lf,
  #gallery .lf,
  .about .lf,
  .gallery .lf,
  .lf {
    opacity: 0.16 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  .lang-switcher a {
    padding: 0.25rem 0.5rem !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }
}

/* Ẩn hoàn toàn toolbar và floating trùng lặp để chỉ hiển thị FloatingContacts chuẩn của website */
.floating-contact-bar,
.mobile-sticky-bar {
  display: none !important;
}

/* 7. BOOKING POPUP MODAL (Mục 2) */
.booking-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.booking-modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #1C0F08 0%, #120904 100%);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 0 24px 70px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(217, 164, 65, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal-backdrop.open .booking-modal-box {
  transform: translateY(0) scale(1);
}

.booking-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.25);
  color: var(--palm-bone);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.booking-modal-close:hover {
  background: var(--palm-gold);
  color: #0B0604;
  transform: rotate(90deg);
}

.modal-header-title {
  text-align: center;
  margin-bottom: 20px;
}

.modal-header-title h3 {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--palm-gold-light);
  margin-top: 4px;
}

.modal-header-title p {
  font-size: 0.85rem;
  color: var(--palm-muted);
}

.booking-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .booking-field-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .booking-field-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.b-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--palm-gold);
  margin-bottom: 6px;
}

.b-input-wrap {
  position: relative;
}

.b-input-wrap svg,
.b-input-wrap .b-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--palm-gold);
  pointer-events: none;
}

.b-input-wrap textarea + .b-icon {
  top: 18px;
  transform: none;
}

.b-input {
  width: 100%;
  background: rgba(11, 6, 4, 0.75);
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 14px;
  padding: 12px 14px 12px 42px;
  color: var(--palm-bone);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.b-input:focus {
  border-color: var(--palm-gold);
  box-shadow: 0 0 16px -2px rgba(217, 164, 65, 0.4);
}

.b-textarea {
  min-height: 80px;
  resize: vertical;
}

.b-submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, #D85B2B 0%, #E86B3B 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 28px -6px rgba(216, 91, 43, 0.7);
  transition: transform 0.2s, filter 0.2s;
  margin-top: 6px;
}

.b-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.b-guarantee-box {
  margin-top: 14px;
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.b-guarantee-box svg {
  color: var(--palm-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.b-guarantee-box b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--palm-gold);
  margin-bottom: 2px;
}

.b-guarantee-box p {
  font-size: 12px;
  color: var(--palm-bone);
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. GOOGLE TRANSLATE STYLING & CLEANUP (AN TOAN BO THANH GOOGLE & SKIPTRANSLATE)
   -------------------------------------------------------------------------- */
.skiptranslate:not(.lang-switcher),
div.skiptranslate,
body > .skiptranslate,
.goog-te-banner,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
iframe[id=":1.container"],
iframe[id=":2.container"],
div[id=":1.container"],
div[id=":2.container"],
#google_translate_element,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-combo,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc {
  display: none !important;
  visibility: hidden !important;
  height: 0px !important;
  max-height: 0px !important;
  width: 0px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -99999 !important;
}

html,
body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
  padding-top: 0px !important;
}

#google_translate_element {
  display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

font {
  background: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   3 LÁ CỜ NGÔN NGỮ (VIETNAM - UK - CHINA) & BỎ VIỀN
   ========================================================================== */
.lang-switcher,
/* specific switcher only */ .lang-switcher {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
}

.lang-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  transition: transform 0.2s ease !important;
  outline: none !important;
}

.lang-btn:hover {
  transform: translateY(-1.5px) scale(1.1) !important;
}

.lang-flag-img {
  width: 26px !important;
  height: 18px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s ease-in-out !important;
}

.lang-flag-active {
  outline: 2px solid #D9A441 !important;
  outline-offset: 2.5px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.7)) !important;
}

.lang-flag-inactive {
  opacity: 0.65 !important;
  outline: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.lang-flag-inactive:hover {
  opacity: 1 !important;
  outline: 1px solid rgba(217, 164, 65, 0.6) !important;
}

/* ==========================================================================
   HEADER RESPONSIVE RULES: Phân tách tuyệt đối Mobile & Desktop Header
   ========================================================================== */
@media (min-width: 768px) {
  header > .md\:hidden,
  header > div:first-child:not(.md\:flex) {
    display: none !important;
  }
  header > .hidden.md\:flex,
  header > div:last-child {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  header > .md\:hidden,
  header > div:first-child:not(.md\:flex) {
    display: grid !important;
  }
  header > .hidden.md\:flex,
  header > div:last-child {
    display: none !important;
  }
}
