/* ============================================
   Homepage Styles - Blessing Liveaboard
   ============================================ */

/* ============================================
   iOS-style Glass Morphism Design System
   Dark Theme - untuk efek glass yang lebih terlihat
   ============================================ */

/* Dark Page Background */
.dark-glass-page {
    background: linear-gradient(
        180deg,
        #0a0a0a 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #1a1a2e 75%,
        #0a0a0a 100%
    );
    min-height: 100vh;
}

/* Glass Section Background - Dark Theme */
.glass-section {
    background: linear-gradient(
        180deg,
        rgba(135, 186, 195, 0.05) 0%,
        rgba(135, 186, 195, 0.1) 50%,
        rgba(135, 186, 195, 0.05) 100%
    );
    position: relative;
}

.glass-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Hero Glass Card - Ultra Transparent for Hero Section */
.ios-glass-hero {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.015) 50%,
        rgba(255, 255, 255, 0.025) 100%
    );
    -webkit-backdrop-filter: saturate(100%) blur(2px);
    backdrop-filter: saturate(100%) blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Base Glass Card - Frosted White on Dark */
.ios-glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glass Card - Tinted with Primary Color */
.ios-glass-tinted {
    background: linear-gradient(
        135deg,
        rgba(135, 186, 195, 0.2) 0%,
        rgba(135, 186, 195, 0.1) 50%,
        rgba(135, 186, 195, 0.15) 100%
    );
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(135, 186, 195, 0.3);
    box-shadow:
        0 8px 32px rgba(135, 186, 195, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass Card - Dark variant (deeper) */
.ios-glass-dark {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glass Button - Light on Dark */
.ios-glass-btn {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-glass-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 100%
    );
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(135, 186, 195, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Glass Input/Form Elements - Dark Theme */
.ios-glass-input {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #fff;
}

.ios-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ios-glass-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(135, 186, 195, 0.6);
    box-shadow:
        0 0 0 4px rgba(135, 186, 195, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Glass Badge/Tag - Dark Theme */
.ios-glass-badge {
    background: linear-gradient(
        135deg,
        rgba(135, 186, 195, 0.3) 0%,
        rgba(135, 186, 195, 0.15) 100%
    );
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(135, 186, 195, 0.4);
}

/* Glass Icon Container - Dark Theme */
.ios-glass-icon {
    background: linear-gradient(
        135deg,
        rgba(135, 186, 195, 0.25) 0%,
        rgba(135, 186, 195, 0.12) 100%
    );
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(135, 186, 195, 0.3);
}

/* Glass Divider - Dark Theme */
.glass-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(135, 186, 195, 0.4) 20%,
        rgba(135, 186, 195, 0.4) 80%,
        transparent 100%
    );
}

/* Floating Glass Effect - Dark Theme */
.ios-glass-floating {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    backdrop-filter: saturate(200%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Dark Theme Text Colors */
.glass-section h1,
.glass-section h2,
.glass-section h3,
.glass-section h4,
.glass-section h5,
.glass-section h6 {
    color: #ffffff;
}

.glass-section p,
.glass-section span,
.glass-section li {
    color: rgba(255, 255, 255, 0.85);
}

.glass-section .text-gray-600,
.glass-section .text-gray-700 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.glass-section .text-gray-500 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.glass-section .text-gray-400 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.glass-section .text-gray-800,
.glass-section .text-gray-900,
.glass-section .text-black {
    color: #ffffff !important;
}

/* Form text colors on dark theme */
.ios-glass-input {
    color: #ffffff !important;
}

.ios-glass-input option {
    background: #1a1a2e;
    color: #ffffff;
}

/* Border colors for cards on dark theme */
.ios-glass-card,
.ios-glass-tinted {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Link and button hover states */
.glass-section a:hover {
    color: #87BAC3;
}

/* Ensure white icons on dark backgrounds */
.glass-section .ti {
    color: #87BAC3;
}

/* Primary button contrast */
.glass-section .bg-buttonnextprev {
    box-shadow: 0 4px 20px rgba(135, 186, 195, 0.4);
}

/* Fallbacks */
@supports not (backdrop-filter: blur(20px)) {
    .ios-glass-card,
    .ios-glass-tinted,
    .ios-glass-floating {
        background: rgba(30, 30, 50, 0.95);
    }
    .ios-glass-dark {
        background: rgba(0, 0, 0, 0.9);
    }
}


/* ============================================
   Amenities Swiper Styles
   ============================================ */

.amenities-swiper-wrapper {
    overflow: visible !important;
}

.amenitiesSwiper {
    position: relative;
}

.amenities-swiper-wrapper .amenities-button-prev,
.amenities-swiper-wrapper .amenities-button-next {
    position: absolute !important;
    z-index: 20 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--color-buttonnextprev, #3b82f6) !important;
    color: white !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.amenities-swiper-wrapper .amenities-button-prev {
    left: -20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.amenities-swiper-wrapper .amenities-button-next {
    right: -20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.amenities-swiper-wrapper .amenities-button-prev:hover,
.amenities-swiper-wrapper .amenities-button-next:hover {
    background-color: rgba(59, 130, 246, 0.9) !important;
}

/* Hide default Swiper button styling */
.amenities-swiper-wrapper .amenities-button-prev::after,
.amenities-swiper-wrapper .amenities-button-next::after {
    display: none !important;
}

@media (min-width: 768px) {
    .amenities-swiper-wrapper .amenities-button-prev,
    .amenities-swiper-wrapper .amenities-button-next {
        width: 48px !important;
        height: 48px !important;
    }

    .amenities-swiper-wrapper .amenities-button-prev {
        left: -24px !important;
    }

    .amenities-swiper-wrapper .amenities-button-next {
        right: -24px !important;
    }
}


/* ============================================
   Itinerary Tab Styles
   ============================================ */

.itinerary-tab {
    border-color: #e5e7eb;
    color: #6b7280;
    background-color: white;
}

.itinerary-tab:hover {
    border-color: var(--color-buttonnextprev, #3b82f6);
    color: var(--color-buttonnextprev, #3b82f6);
}

.itinerary-tab.active {
    border-color: var(--color-buttonnextprev, #3b82f6);
    background-color: var(--color-buttonnextprev, #3b82f6);
    color: white;
}

/* Itinerary Content Transition */
.itinerary-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   Price List Tab Styles
   ============================================ */

.duration-tab {
    border-color: #e5e7eb;
    color: #6b7280;
    background-color: white;
}

.duration-tab:hover {
    border-color: var(--color-buttonnextprev, #3b82f6);
    color: var(--color-buttonnextprev, #3b82f6);
}

.duration-tab.active {
    border-color: var(--color-buttonnextprev, #3b82f6);
    background-color: var(--color-buttonnextprev, #3b82f6);
    color: white;
}


/* ============================================
   Itinerary Duration Tab Styles
   ============================================ */

.itinerary-duration-tab {
    /* border-color: #e5e7eb; */
    color: #6b7280;
    /* background-color: white; */
}

.itinerary-duration-tab:hover {
    border-color: var(--color-buttonnextprev, #3b82f6);
    color: var(--color-buttonnextprev, #3b82f6);
}

.itinerary-duration-tab.active {
    border-color: var(--color-buttonnextprev, #3b82f6);
    background-color: var(--color-buttonnextprev, #3b82f6);
    color: white;
}

/* Itinerary Content Transition */
.itinerary-duration-content {
    animation: fadeInItinerary 0.3s ease-in-out;
}

@keyframes fadeInItinerary {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   Gallery Title Overlay Styles
   ============================================ */

.gallery-item {
    position: relative;
}

.gallery-title-overlay {
    z-index: 10;
}

.gallery-title-overlay > div {
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* ============================================
   Open Trip Styles
   ============================================ */

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Open Trip Accordion Styles */
.open-trip-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.open-trip-content:not(.hidden) {
    opacity: 1;
}

.open-trip-toggle .toggle-icon {
    transition: transform 0.3s ease-in-out;
}

/* Table Responsive Enhancements */
@media (max-width: 640px) {
    .open-trip-content table {
        font-size: 0.75rem;
    }

    .open-trip-content th,
    .open-trip-content td {
        padding: 0.5rem 0.375rem;
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}


/* ============================================
   Cabin Card Styles - Override Dark Theme
   ============================================ */

/* Cabin section header - needs dark text */
#cabins > .container > .text-center h2.text-black {
    color: #000000 !important;
}

#cabins > .container > .text-center p.text-gray-600 {
    color: #4b5563 !important;
}

/* Cabin cards have light background, need dark text */
#cabins .bg-bggreen h3,
#cabins .bg-bggreen h4,
#cabins .bg-bggreen h5 {
    color: #000000 !important;
}

#cabins .bg-bggreen p,
#cabins .bg-bggreen span {
    color: #374151 !important;
}

#cabins .bg-bggreen .text-black {
    color: #000000 !important;
}

#cabins .bg-bggreen .text-gray-500 {
    color: #6b7280 !important;
}

#cabins .bg-bggreen .text-gray-600 {
    color: #4b5563 !important;
}

#cabins .bg-bggreen .text-gray-700 {
    color: #374151 !important;
}

#cabins .bg-bggreen .ti {
    color: #4D7C83 !important;
}

#cabins .bg-bggreen .border-gray-200 {
    border-color: #e5e7eb !important;
}

/* Cabin gallery placeholder */
#cabins .bg-bggreen .cabin-gallery-placeholder {
    background: rgba(135, 186, 195, 0.15);
    border-color: rgba(135, 186, 195, 0.3);
}

#cabins .bg-bggreen .cabin-gallery-placeholder .ti {
    color: rgba(135, 186, 195, 0.5) !important;
}

#cabins .bg-bggreen .cabin-gallery-placeholder p {
    color: rgba(135, 186, 195, 0.6) !important;
}

/* Open trip pricing table inside cabin card */
#cabins .bg-bggreen .open-trip-content {
    background: transparent;
}

#cabins .bg-bggreen .open-trip-content table {
    background: white;
}

#cabins .bg-bggreen .open-trip-content th {
    color: #374151 !important;
    background: #f9fafb;
}

#cabins .bg-bggreen .open-trip-content td {
    color: #000000 !important;
}

#cabins .bg-bggreen .open-trip-content .text-gray-600 {
    color: #4b5563 !important;
}

#cabins .bg-bggreen .open-trip-content .text-gray-900 {
    color: #111827 !important;
}

/* Open trip note section */
#cabins .bg-bggreen .open-trip-content .text-gray-700 {
    color: #374151 !important;
}

#cabins .bg-bggreen .open-trip-content .text-gray-700 p {
    color: #374151 !important;
}

#cabins .bg-bggreen .open-trip-content .text-gray-700 li {
    color: #4b5563 !important;
}

#cabins .bg-bggreen .open-trip-content .text-primary-dark {
    color: #4D7C83 !important;
}

/* Note box styling */
#cabins .bg-bggreen .open-trip-content .bg-primary-lighter\/30 {
    background-color: rgba(193, 224, 229, 0.4) !important;
}

#cabins .bg-bggreen .open-trip-content .bg-primary-lighter\/30 .ti {
    color: #4D7C83 !important;
}

#cabins .bg-bggreen .open-trip-content .bg-primary-lighter\/30 p,
#cabins .bg-bggreen .open-trip-content .bg-primary-lighter\/30 li {
    color: #374151 !important;
}

#cabins .bg-bggreen .open-trip-content .bg-primary-lighter\/30 .font-semibold {
    color: #1f2937 !important;
}

/* Open trip button styling */
#cabins .bg-bggreen .open-trip-toggle {
    border-color: #87BAC3;
    color: #000000 !important;
}

#cabins .bg-bggreen .open-trip-toggle .ti {
    color: #000000 !important;
}

#cabins .bg-bggreen .open-trip-toggle:hover {
    background-color: #87BAC3;
    color: #ffffff !important;
}

#cabins .bg-bggreen .open-trip-toggle:hover .ti {
    color: #ffffff !important;
}

/* ============================================
   Pricing Section - Override Dark Theme
   ============================================ */

/* Pricing section header - keep light text on dark background */
#pricing > .container > .text-center h2 {
    color: #ffffff !important;
}

#pricing > .container > .text-center > p {
    color: #d1d5db !important;
}

/* Pricing cards have white background, need dark text */
#pricing .bg-white,
#pricing .bg-white [class*="rounded-2xl"],
#pricing .bg-white [class*="rounded-3xl"] {
    color: #000000;
}

#pricing .bg-white h2,
#pricing .bg-white h3,
#pricing .bg-white h4,
#pricing .bg-white p,
#pricing .bg-white span {
    color: inherit;
}

#pricing .bg-white .text-black {
    color: #000000 !important;
}

#pricing .bg-white .text-gray-500 {
    color: #6b7280 !important;
}

#pricing .bg-white .text-gray-600 {
    color: #4b5563 !important;
}

#pricing .bg-white .text-gray-700 {
    color: #374151 !important;
}

#pricing .bg-white .text-gray-800 {
    color: #1f2937 !important;
}

/* Pricing card specific styles */
#pricing .bg-white .border-gray-200 {
    border-color: #e5e7eb !important;
}

#pricing .bg-white .bg-buttonnextprev\/10 {
    background-color: rgba(135, 186, 195, 0.1) !important;
}

#pricing .bg-white .text-buttonnextprev {
    color: #87BAC3 !important;
}

/* Price display */
#pricing .bg-white .font-playfair {
    color: #000000 !important;
}

#pricing .bg-white .price-item p {
    color: #000000 !important;
}

#pricing .bg-white .price-item .text-gray-500 {
    color: #6b7280 !important;
}

/* ============================================
   Hero Section Mobile Responsive Styles
   ============================================ */

/* Hero Section Base Mobile Optimizations */
#home {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Mobile: Extra small screens (< 480px) */
@media (max-width: 479px) {
    #home {
        height: 85svh;
        min-height: 500px;
        max-height: 700px;
    }

    #home .ios-glass-hero {
        padding: 1rem 1.25rem;
        margin-bottom: 0.5rem;
    }

    #home .ios-glass-hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    #home .ios-glass-hero p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Explore button mobile */
    #home a[href="#about"] {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Mobile: Small screens (480px - 640px) */
@media (min-width: 480px) and (max-width: 639px) {
    #home {
        height: 85svh;
        min-height: 500px;
        max-height: 750px;
    }

    #home .ios-glass-hero {
        padding: 1.25rem 1.5rem;
    }

    #home .ios-glass-hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    #home .ios-glass-hero p {
        font-size: 0.9375rem;
    }
}

/* Tablet: Medium screens (640px - 768px) */
@media (min-width: 640px) and (max-width: 767px) {
    #home {
        height: 90svh;
        min-height: 550px;
        max-height: 800px;
    }

    #home .ios-glass-hero {
        padding: 1.5rem;
    }

    #home .ios-glass-hero h1 {
        font-size: 2rem;
    }
}

/* Hero glass responsiveness - lighter blur on mobile for better performance */
@media (max-width: 767px) {
    .ios-glass-hero {
        -webkit-backdrop-filter: saturate(100%) blur(2px);
        backdrop-filter: saturate(100%) blur(2px);
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.01) 50%,
            rgba(255, 255, 255, 0.018) 100%
        );
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    #home {
        min-height: 100vh;
        padding-bottom: 1rem;
    }

    #home .ios-glass-hero {
        padding: 0.75rem 1rem;
    }

    #home .ios-glass-hero h1 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    #home .ios-glass-hero p {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
}
