/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-forest: #234230;
    --color-sand: #F5F0E8;
    --color-teal: #2D8F85;
    --color-gold: #D4AF37;
    --color-charcoal: #2C2C2C;
}

body {
    background-color: var(--color-sand);
    color: var(--color-charcoal);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Custom Typography classes */
.font-serif-luxury {
    font-family: 'Playfair Display', serif;
}

/* Liquid button hover animation */
.btn-liquid {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-liquid::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 0;
    background-color: var(--color-teal);
    z-index: -1;
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50% 50% 0 0;
}
.btn-liquid:hover::before {
    height: 120%;
    border-radius: 0;
}

/* Link Draw Underline */
.link-draw {
    position: relative;
}
.link-draw::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-teal);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.link-draw:hover::after {
    width: 100%;
}

/* Page transitions */
#page-curtain {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-forest);
    z-index: 9999;
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
#page-curtain.active {
    left: 0;
}
#page-curtain.reveal {
    left: 100%;
}

/* Experiences: Radial Reveal & Image Bloom */
.experience-card .reveal-mask {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1), transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.experience-card:hover .reveal-mask {
    clip-path: circle(100% at 50% 50%);
    transform: scale(1.05);
}

/* Dining: 3D Card Flips */
.flip-card {
    perspective: 1200px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
}
.flip-card-back {
    transform: rotateY(180deg);
}

/* Gallery: Masonry Columns */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Gallery image loading bloom effect */
.gallery-image-develop {
    filter: brightness(0.2) contrast(1.1) blur(6px);
    transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-image-develop.loaded {
    filter: brightness(1) contrast(1) blur(0);
}

/* Accommodations Horizontal Scroll custom layout */
.sticky-journey-container {
    height: 300vh;
}
.horizontal-scroll-viewport {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}
.horizontal-scroll-track {
    display: flex;
    width: 300vw;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Glassmorphism Layers */
.glass-layer {
    background: rgba(245, 240, 232, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

/* Animated Texture Overlay */
.animated-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(45, 143, 133, 0.04) 1.2px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 40;
    opacity: 0.85;
    animation: texture-shift 24s linear infinite;
}
@keyframes texture-shift {
    0% { background-position: 0 0; }
    50% { background-position: 14px 14px; }
    100% { background-position: 0 0; }
}

/* Organic Floating Blobs keyframes */
@keyframes float-blob {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-25px) scale(1.08) rotate(6deg); }
}
.floating-blob-slow {
    animation: float-blob 16s ease-in-out infinite;
}
.floating-blob-delayed {
    animation: float-blob 22s ease-in-out infinite;
    animation-delay: 4s;
}

/* Cinematic Motion Presets */
@keyframes reveal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes reveal-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-scale-bloom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.reveal-fade {
    opacity: 0;
    animation: reveal-fade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.reveal-slide-up {
    opacity: 0;
    animation: reveal-slide-up 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.reveal-scale-bloom {
    opacity: 0;
    animation: reveal-scale-bloom 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Custom Scrollbar for Luxury Aesthetics */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-sand);
}
::-webkit-scrollbar-thumb {
    background: var(--color-teal);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-forest);
}

/* ==========================================================================
   Luxury UI/UX Enhancements (Inspired by SaffronStays, Aman, Airbnb Luxe)
   ========================================================================== */

/* Mood Filter Button States */
.mood-filter-btn {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.mood-filter-btn.active {
    background-color: var(--color-forest);
    color: white;
    box-shadow: 0 4px 14px rgba(35, 66, 48, 0.25);
    border-color: var(--color-forest);
}

/* 150-Point Luxe Inspection trust styles */
.badge-luxe {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245, 240, 232, 0.9));
    color: var(--color-forest);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}
.badge-luxe:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
}

/* Slide-out Panel / Drawer Overlay */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.luxe-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-color: var(--color-sand);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}
.luxe-drawer.active {
    right: 0;
}

/* Interactive Resort Estate Map */
.resort-map-container {
    position: relative;
    background-color: #E6E0D5;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.05);
}
.resort-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.resort-map-pin:hover {
    transform: translate(-50%, -50%) scale(1.15);
}
.resort-map-pulse {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(45, 143, 133, 0.2);
    animation: map-pulse-anim 2s infinite;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}
@keyframes map-pulse-anim {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Sanctuary Moments Feed layout */
.moment-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}
.moment-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 66, 48, 0.9) 0%, rgba(35, 66, 48, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.moment-card:hover .moment-card-overlay {
    opacity: 1;
}

/* Concierge sanctuary card styling */
.concierge-card {
    background: linear-gradient(135deg, rgba(35, 66, 48, 0.03) 0%, rgba(45, 143, 133, 0.05) 100%);
    border: 1px solid rgba(45, 143, 133, 0.12);
}


