/* =============================================
   VINTEL RAFT — Custom Styles
   Luxury Floating Resort, Kanchanaburi
   ============================================= */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #F8F5F0;
    color: #0F2B23;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- CSS Variables ---- */
:root {
    --bg-dark:    #0B1C14;
    --card-cream: #F8F5F0;
    --gold-cta:   #D6B57A;
    --forest:     #0F2B23;
    --lake:       #1A4337;
}

/* ---- Typography ---- */
.font-serif  { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-script { font-family: 'Great Vibes', cursive; }

/* ---- Dark Section ---- */
.section-dark {
    background-color: var(--bg-dark);
    color: #fff;
}

/* ---- Safe area (iPhone notch / home indicator) ---- */
.pb-safe  { padding-bottom: env(safe-area-inset-bottom, 8px); }
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F2B23 0%, #1A4337 40%, #0d3829 100%);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 28, 20, 0.25) 0%,
        rgba(11, 28, 20, 0.05) 35%,
        rgba(11, 28, 20, 0.55) 70%,
        rgba(11, 28, 20, 0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(110px, 16vh, 170px);
    padding-left: clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
}

/* Hero CTA full-width buttons */
.btn-hero-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: var(--gold-cta);
    color: var(--forest);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-hero-primary:hover {
    background: #E8D09A;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(214,181,122,0.4);
}

.btn-hero-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero-outline:hover {
    border-color: var(--gold-cta);
    color: var(--gold-cta);
}

/* Nav pills (mobile) */
.nav-pill-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #06C755;
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
}

.nav-pill-line:hover { filter: brightness(1.08); }

.nav-pill-call {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--gold-cta);
    color: var(--forest);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
}

.nav-pill-call:hover { filter: brightness(1.06); }

/* =============================================
   GLASS MORPHISM CARD
   ============================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.glass-card-dark {
    background: rgba(15, 43, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(214, 181, 122, 0.2);
    border-radius: 20px;
}

/* =============================================
   ROOM CARDS
   ============================================= */
.room-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px -12px rgba(15, 43, 35, 0.2);
}

.room-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-card-image img {
    transform: scale(1.06);
}

/* =============================================
   ROOM CARD V2 (mockup style — dark bg section)
   ============================================= */
.room-card-v2 {
    background: var(--card-cream);
    border-radius: 20px;
    overflow: hidden;
    flex: 0 0 auto;
    width: 85vw;
    max-width: 300px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .room-card-v2 { width: auto; max-width: none; }
}

.room-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.room-card-v2-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.room-card-v2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.room-card-v2:hover .room-card-v2-image img {
    transform: scale(1.05);
}

.room-guests-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--card-cream);
    color: var(--forest);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.room-scroll-wrap {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.room-scroll-wrap::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .room-scroll-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }
}

/* =============================================
   EXPERIENCE ICONS + PHOTO STRIP
   ============================================= */
.exp-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

@media (max-width: 380px) {
    .exp-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

.exp-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 4px;
    border-radius: 14px;
    transition: background 0.2s;
}

.exp-icon-item:hover { background: rgba(214,181,122,0.1); }

.exp-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(214,181,122,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.exp-icon-item:hover .exp-icon-circle {
    border-color: var(--gold-cta);
    background: rgba(214,181,122,0.12);
}

.exp-icon-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    line-height: 1.3;
}

.exp-photo-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.exp-photo-strip::-webkit-scrollbar { display: none; }

.exp-photo-strip-item {
    flex: 0 0 auto;
    width: 130px;
    height: 90px;
    border-radius: 14px;
    overflow: hidden;
}

@media (min-width: 480px) {
    .exp-photo-strip-item { width: 160px; height: 110px; }
}

.exp-photo-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.exp-photo-strip-item:hover img { transform: scale(1.08); }

/* =============================================
   STICKY BAR V2 (horizontal layout)
   ============================================= */
.sticky-bar-v2 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(11, 28, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(214,181,122,0.2);
}

.sticky-bar-v2-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 10px 12px;
    max-width: 430px;
    margin: 0 auto;
}

.sticky-btn-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 8px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.sticky-btn-v2:active { transform: scale(0.97); }

.sticky-btn-line { background: #06C755; color: #fff; }
.sticky-btn-call { background: var(--gold-cta); color: var(--forest); }
.sticky-btn-book { background: var(--forest); color: #fff; border: 1px solid rgba(214,181,122,0.25); }

.sticky-btn-v2:hover { filter: brightness(1.08); }

/* =============================================
   GALLERY GRID (Masonry)
   ============================================= */
.gallery-grid {
    columns: 2;
    column-gap: 12px;
}

@media (min-width: 640px) {
    .gallery-grid { columns: 3; column-gap: 16px; }
}

@media (min-width: 1024px) {
    .gallery-grid { columns: 4; column-gap: 20px; }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

@media (min-width: 640px) { .gallery-item { margin-bottom: 16px; } }

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,43,35,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* =============================================
   EXPERIENCE GRID (Pinterest style)
   ============================================= */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.experience-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.experience-card.tall { aspect-ratio: 2/3; }
.experience-card.wide { aspect-ratio: 4/3; }

.experience-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.experience-card-label {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,43,35,0.85) 0%, rgba(15,43,35,0.1) 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: background 0.3s ease;
}

/* =============================================
   REVIEW CARDS
   ============================================= */
.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(15,43,35,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,43,35,0.12);
}

/* =============================================
   BOOKING FORM
   ============================================= */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2ded8;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    color: #0F2B23;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #1A4337;
    box-shadow: 0 0 0 3px rgba(26,67,55,0.1);
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A4337;
    margin-bottom: 8px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: #D6B57A;
    color: #0F2B23;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: #E8D09A;
    box-shadow: 0 8px 32px rgba(214, 181, 122, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-white:hover {
    border-color: #D6B57A;
    color: #D6B57A;
    background: rgba(214,181,122,0.08);
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: #06C755;
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-line:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 32px rgba(6, 199, 85, 0.35);
    transform: translateY(-2px);
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #D6B57A;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    color: #0F2B23;
}

.section-title em {
    font-style: italic;
    color: #1A4337;
}

.section-title-white {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.open {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
}

/* =============================================
   AMENITY BADGE
   ============================================= */
.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #F8F5F0;
    border: 1px solid #e2ded8;
    border-radius: 50px;
    font-size: 12px;
    color: #1A4337;
    font-weight: 400;
}

/* =============================================
   STAR RATING
   ============================================= */
.stars { color: #FBBF24; letter-spacing: 2px; }

/* =============================================
   FLOATING DECORATION PARTICLES
   ============================================= */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(214, 181, 122, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F8F5F0; }
::-webkit-scrollbar-thumb { background: #1A4337; border-radius: 3px; }

/* =============================================
   ADMIN PANEL OVERRIDES
   ============================================= */
.admin-body {
    background: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

.admin-sidebar {
    background: #0F2B23;
    min-height: 100vh;
    width: 260px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 10px;
    margin: 2px 12px;
    transition: all 0.2s ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255,255,255,0.1);
    color: #D6B57A;
}

.admin-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* =============================================
   RESPONSIVE UTILS
   ============================================= */
@media (max-width: 768px) {
    .mobile-scroll-x {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mobile-scroll-x::-webkit-scrollbar { display: none; }
}

/* Map embed responsive */
.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 20px;
    overflow: hidden;
}

.map-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    #sticky-bar, #main-nav { display: none !important; }
    body { background: white; }
}
