/* ==========================================================================
   MST HOSPITALITY - ULTRA LUXURY RESORT BRAND STYLE
   Inspired by Sun Property Group (sunpropertygroup.vn)
   Typography: Cormorant Garamond & Montserrat
   Palette: Rich Bronze Gold (#C28137, #E4B363), Deep Obsidian (#070B14, #0F172A), Warm Ivory (#FAF8F5)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --sun-gold-light: #E4B363;
  --sun-gold-primary: #C28137;
  --sun-gold-dark: #8F5518;
  --sun-gold-gradient: linear-gradient(135deg, #ECC880 0%, #C28137 50%, #8F5518 100%);
  --sun-gold-text: linear-gradient(180deg, #E6BA75 0%, #C28137 100%);
  
  --dark-night: #060911;
  --dark-surface: #0B1120;
  --dark-card: #111A2E;
  
  --font-serif: 'Lora', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-sans);
  background-color: #070B14;
  color: #E2E8F0;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Elegant Serifs for Luxury Headings like Sun Property */
.font-sun-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

.font-sun-display {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

/* Price Typography: Chuẩn Sans-serif hiện đại, số đều đặn, tuyệt đối không dùng font Serif cổ điển */
.font-price,
.price-display,
#roomPriceSale,
#roomPriceOriginal {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  letter-spacing: -0.01em;
}

/* Sun Property Gold Gradient Text */
.text-sun-gold {
  background: linear-gradient(180deg, #F3D292 0%, #C28137 85%, #9B6221 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-sun-gold-light {
  color: #ECC880;
}

.bg-sun-gold {
  background: linear-gradient(135deg, #ECC880 0%, #C28137 50%, #9B6221 100%);
  color: #060911;
}

.bg-sun-gold:hover {
  background: linear-gradient(135deg, #F5DCA3 0%, #D49348 50%, #AC6F28 100%);
}

.border-sun-gold {
  border-color: rgba(194, 129, 55, 0.4);
}

.border-sun-gold-glow {
  border-color: #C28137;
  box-shadow: 0 0 20px rgba(194, 129, 55, 0.25);
}

/* Glass & Blur Navbar like Sun Property */
.sun-navbar-blur {
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sun-navbar-scrolled {
  background: rgba(6, 9, 17, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(194, 129, 55, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #060911;
}
::-webkit-scrollbar-thumb {
  background: #C28137;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ECC880;
}

/* Luxury Card Hover effect */
.sun-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sun-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(194, 129, 55, 0.2);
}

.sun-card img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sun-card:hover img {
  transform: scale(1.08);
}

/* Sun Property pill tags */
.sun-tag {
  letter-spacing: 0.15em;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

/* Keyframe animations */
@keyframes kenburnsZoom {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1.02); }
}

.kenburns-effect {
  animation: kenburnsZoom 22s infinite alternate ease-in-out;
}

/* Line decorative like Sun Property */
.sun-line-decor {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C28137, transparent);
  vertical-align: middle;
}

/* ==========================================================================
   ROOM DETAIL & DYNAMIC ALBUM SYSTEM (SELF-HOSTED / NO CDN REQUIRED)
   Ensures 100% pixel-perfect layout, ratios, and responsive grids
   ========================================================================== */

/* Aspect Ratios */
.aspect-\[6\/4\],
[style*="aspect-ratio: 6 / 4"] {
  aspect-ratio: 6 / 4 !important;
}
.aspect-\[16\/9\] {
  aspect-ratio: 16 / 9 !important;
}
.aspect-\[16\/10\] {
  aspect-ratio: 16 / 10 !important;
}

/* Heights & Responsive Max-Heights */
.h-\[340px\] { height: 340px !important; }
@media (min-width: 640px) {
  .sm\:h-\[460px\] { height: 460px !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) {
  .md\:h-\[540px\] { height: 540px !important; }
  .md\:h-96 { height: 24rem !important; }
  .md\:h-\[184px\] { height: 184px !important; }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .lg\:h-\[620px\] { height: 620px !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:flex-col { flex-direction: column !important; }
  .lg\:overflow-y-auto { overflow-y: auto !important; }
  .lg\:max-h-\[540px\] { max-height: 540px !important; }
  .lg\:text-right { text-align: right !important; }
  .lg\:justify-end { justify-content: flex-end !important; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)) !important; }
}

/* Colors & Theme Backgrounds */
.bg-sun-night { background-color: #060911 !important; }
.bg-sun-card { background-color: #0C1222 !important; }
.bg-sun-surface { background-color: #111A2E !important; }
.bg-\[\#060911\] { background-color: #060911 !important; }
.bg-\[\#0C1222\] { background-color: #0C1222 !important; }
.bg-\[\#111A2E\] { background-color: #111A2E !important; }
.bg-\[\#070B14\] { background-color: #070B14 !important; }
.text-\[\#ECC880\] { color: #ECC880 !important; }
.text-\[\#C28137\] { color: #C28137 !important; }
.border-\[\#C28137\] { border-color: #C28137 !important; }
.border-\[\#ECC880\] { border-color: #ECC880 !important; }

/* Custom Luxury Shadows */
.shadow-\[0_20px_50px_rgba\(0\,0\,0\,0\.8\)\] {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}
.shadow-\[0_20px_40px_rgba\(0\,0\,0\,0\.8\)\] {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
}
.shadow-\[0_4px_20px_rgba\(194\,129\,55\,0\.4\)\] {
  box-shadow: 0 4px 20px rgba(194, 129, 55, 0.4) !important;
}
.shadow-\[0_6px_20px_rgba\(194\,129\,55\,0\.4\)\] {
  box-shadow: 0 6px 20px rgba(194, 129, 55, 0.4) !important;
}
.shadow-\[0_6px_25px_rgba\(194\,129\,55\,0\.6\)\] {
  box-shadow: 0 6px 25px rgba(194, 129, 55, 0.6) !important;
}
.shadow-\[0_6px_30px_rgba\(194\,129\,55\,0\.45\)\] {
  box-shadow: 0 6px 30px rgba(194, 129, 55, 0.45) !important;
}
.shadow-\[0_4px_15px_rgba\(194\,129\,55\,0\.3\)\] {
  box-shadow: 0 4px 15px rgba(194, 129, 55, 0.3) !important;
}
.drop-shadow-\[0_2px_10px_rgba\(194\,129\,55\,0\.4\)\] {
  filter: drop-shadow(0 2px 10px rgba(194, 129, 55, 0.4)) !important;
}

/* Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Image containment in dynamic album */
#roomFoldersAlbumContainer img {
  max-width: 100%;
  object-fit: cover;
}
#roomFoldersAlbumContainer button {
  cursor: pointer;
}

/* ==========================================================================
   LUXURY LIGHTBOX IMAGE POPUP SYSTEM
   ========================================================================== */
.cursor-zoom-in {
  cursor: zoom-in !important;
}

#mstLightboxModal {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

#mstLightboxModal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mstLightboxModal:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mstLightboxImg {
  animation: lightboxZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   CATEGORY FILTER TABS & ANIMATED POINTER (EQUAL SIZE & SMOOTH HOVER)
   ========================================================================== */
@keyframes pointRightAnim {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

.animate-point-right {
  display: inline-block;
  animation: pointRightAnim 0.9s ease-in-out infinite;
}

.cat-filter-tab {
  width: 205px;
  height: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.25;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .cat-filter-tab {
    width: 185px;
    height: 52px;
    font-size: 0.7rem;
  }
}

.cat-filter-tab.inactive {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(0, 0, 0, 0.45);
  color: #cbd5e1;
}

.cat-filter-tab.inactive:hover {
  border-color: #C28137;
  color: #ECC880;
  background-color: rgba(255, 255, 255, 0.05);
}

.cat-filter-tab.active {
  border: 1px solid #C28137;
  background: var(--sun-gold-gradient);
  color: #060911;
  box-shadow: 0 4px 20px rgba(194, 129, 55, 0.45);
}

/* Language Switcher Flag Styling */
.flag-icon {
  width: 22px !important;
  height: 15px !important;
  max-width: 22px !important;
  max-height: 15px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  display: inline-block !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Floating Action Buttons (Fixed sizing on Mobile and Desktop) */
.float-action-btn {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

@media (min-width: 640px) {
  .float-action-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }
}

.float-zalo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

