/* ===== Z-INDEX HIERARCHY ===== */
/* 
  1: Content (sections, images)
  10: Hero slider controls
  50: Footer
  100: Header
  500: Overlay
  2000: Mobile menu
  2001: Mobile popups
  9999: Rental popup
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666666;
    --accent-color: #d4af37;
    --white: #ffffff;
    --gray-light: #f8f8f8;
    --gray-medium: #e5e5e5;
    --overlay: rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Fix z-index hierarchy */
body {
    font-family: 'Montserrat', -apple-system, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
    position: relative;
}

.hero-slider {
    position: relative;
    z-index: 1;
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    z-index: 10;
}

section:not(.hero-slider) {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    z-index: 50;
}

/* Header spacing */
.header + .hero-slider {
    margin-top: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header + * {
    margin-top: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ENSURE ALL SECTIONS VISIBLE ===== */
section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

.about-section,
.boutiques-section,
.cafe-section,
.event-section,
.cosmos-section,
.rental-section,
.content-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 20px 50px;
    font-size: 16px;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    display: block !important;
    z-index: 1;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide picture {
    width: 100%;
    height: 100%;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    z-index: 1;
    pointer-events: none;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination {
    z-index: 10 !important;
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.section-title.elegant {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title.elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--gray-light);
    display: block !important;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--secondary-color);
}

/* ===== CONTENT SECTIONS ===== */
.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-wrapper.reverse {
    direction: rtl;
}

.section-wrapper.reverse .content-block {
    direction: ltr;
}

.section-wrapper.reverse .image-block {
    direction: ltr;
}

.content-block {
    padding: 20px;
}

.image-block {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.image-block img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-block:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-block:hover .image-overlay {
    opacity: 1;
}

/* ===== SPECIFIC SECTIONS ===== */
.boutiques-section {
    background: var(--white);
    display: block !important;
    position: relative;
    z-index: 1;
}

.cafe-section {
    background: var(--gray-light);
    display: block !important;
    position: relative;
    z-index: 1;
}

.event-section {
    background: var(--white);
    display: block !important;
    position: relative;
    z-index: 1;
}

.cosmos-section {
    background: var(--gray-light);
    display: block !important;
    position: relative;
    z-index: 1;
}

/* ===== RENTAL SECTION ===== */
.rental-section {
    background: linear-gradient(135deg, var(--primary-color), #2a2a2a);
    padding: 150px 0;
    display: block !important;
    position: relative;
    z-index: 1;
}

.rental-content {
    text-align: center;
}

.rental-section .section-title {
    color: var(--white);
    margin-bottom: 50px;
}

/* ===== POPUP ===== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.popup.active {
    display: block;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 60px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    animation: popupAppear 0.3s ease;
    z-index: 9999;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    z-index: 10000;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.contact-item:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-item svg {
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .section-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-wrapper.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
        display: block !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .popup-content {
        padding: 40px 20px;
    }
    
    .contact-item {
        font-size: 0.9rem;
        padding: 15px;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 50px 0;
        display: block !important;
    }
    
    .about-content {
        padding: 0 20px;
    }
    
    .about-text {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }
    
    .section-title.elegant {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .section-title.elegant::after {
        width: 50px;
        height: 2px;
    }
    
    /* Rental Section Mobile */
    .rental-section {
        padding: 80px 20px;
        display: block !important;
    }
    
    .rental-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    /* Popup Mobile */
    .popup-content {
        width: 95%;
        padding: 30px 20px;
        max-width: 350px;
    }
    
    .popup-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 15px;
        font-size: 14px;
    }
    
    .contact-item svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .about-section {
        padding: 40px 0;
        display: block !important;
    }
    
    .about-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .section-title.elegant {
        font-size: 1.5rem;
    }
    
    .rental-section {
        padding: 60px 15px;
        display: block !important;
    }
    
    .rental-section .section-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 12px;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 14px;
    }
}

/* Force all sections to be visible */
body * {
    visibility: visible !important;
}

/* Ensure all interactive elements are clickable */
a, button, input, select, textarea, 
.btn, .nav-link, .contact-item,
.swiper-button-next, .swiper-button-prev,
.swiper-pagination-bullet {
    cursor: pointer !important;
    pointer-events: auto !important;
}