/* Custom Additional Styles for Magic Pass */

/* Card Styles */
.position-relative-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    display: block;
}

.position-relative-card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.card-image-large,
.card-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image-large {
    min-height: 500px;
}

@media (min-width: 1024px) {
    .card-image-large {
        min-height: 600px;
    }
}

.card-image-small {
    aspect-ratio: 16 / 9;
    min-height: auto;
}

@media (min-width: 768px) {
    .card-image-small {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }
}

.card-content-large,
.card-content-small {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
}

.card-content-small {
    padding: 1.5rem;
}

.card-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .card-title-large {
        font-size: 2.5rem;
    }
}

.card-title-small {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-desc-small {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* BeMagic Banner */
.bemagic-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .bemagic-banner {
        padding: 4rem;
    }
}

.bemagic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
}

@media (min-width: 1024px) {
    .bemagic-icon {
        width: 120px;
        height: 120px;
    }
}

.bemagic-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .bemagic-title {
        font-size: 2.5rem;
    }
}

.bemagic-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .bemagic-desc {
        font-size: 1.25rem;
    }
}

/* Additional utility classes */
.d-block {
    display: block;
}

.h-100 {
    height: 100%;
}

.mb-40 {
    margin-bottom: 2.5rem;
}

.mb-80 {
    margin-bottom: 5rem;
}

.mt-24 {
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .lg\:mb-80 {
        margin-bottom: 5rem;
    }
}

/* Hover effects */
a.d-block:hover .card-title-large,
a.d-block:hover .card-title-small {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive images */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

section.main > .bg-primary-100 {
    font-size: 0;
    line-height: 0;
}

section.main > .bg-primary-100 img {
    display: block;
}

/* Smooth transitions - only on interactive elements */
a,
button,
input,
select,
.btn,
.navigation-main,
.navigation-main-user,
.navigation-main-cart,
.navigation-burger,
.navigation-main-lang,
.sidebar-overlay {
    transition-property: color, background-color, border-color, opacity;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Prevent scroll behavior jumps */
html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

button,
a.btn,
.btn {
    transition: all 0.15s ease;
}

/* Header Scroll Effect */
header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color, box-shadow;
}

body:not(.sidebar-open) header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure header is always fixed and visible */
body:not(.sidebar-open) header > div {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 1023px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    header > div {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Prevent content shift when sidebar opens */
body.sidebar-open {
    overflow: hidden !important;
}

/* Header scroll behavior is handled by scroll-header.js via inline styles */

/* Hide header when sidebar is open */
body.sidebar-open header {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.sidebar-open header > div {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Scrolling Resorts Marquee Animation */
@keyframes footer-resorts-anime {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.footer-resorts {
    animation: footer-resorts-anime 20s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
}

.footer-resorts:hover {
    animation-play-state: paused;
}

/* Collapsible arrow rotation */
.collapsible-arrow {
    transition: transform 0.3s ease;
}
.vue-collapsible.active .collapsible-arrow {
    transform: rotate(180deg);
}

.block-main-resorts {
    overflow: hidden;
}

.block-main-resorts > div {
    display: flex;
    width: 100%;
}

/* Mobile map labels - smaller on narrow screens */
@media (max-width: 479px) {
    .bg-primary-800 .button .font-tomato.text-md {
        font-size: 0.625rem;
        line-height: 1;
    }
}

/* Newsletter mobile - prevent text hidden under button */
@media (max-width: 1023px) {
    .block-main-newsletter input[type="email"] {
        padding-right: 100px;
    }
}

/* iOS smooth scroll for sidebar */
.sidebar-left {
    -webkit-overflow-scrolling: touch;
}

/* Instagram widget placeholder to reduce CLS */
.instashow {
    min-height: 300px;
}
@media (min-width: 1024px) {
    .instashow {
        min-height: 400px;
    }
}


