/**
 * Amenity Display Styles
 * File: /inc/amenities/amenity-styles.css
 */

/* =========================================================
   RESET & BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   WRAPPER & OVERLAY - FULL WIDTH
   ========================================================= */
.amenity-page-wrapper {
    width: 100vw;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.amenity-overlay {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.amenity-container {
    max-width: 1200px;
    margin: 0 auto;
    /* No height property here! */
    min-height: auto;
    height: auto;
}

/* =========================================================
   HEADER / TITLE
   ========================================================= */
.amenity-header {
    text-align: center;
    margin-bottom: 40px;
}

.amenity-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   MAIN IMAGE - FINAL
   ========================================================= */
.amenity-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 !important;
    border: none !important;
    vertical-align: bottom;
    line-height: 0;
    object-fit: contain;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */
.amenity-description {
    background: rgba(255, 255, 255, 0.85);
    padding: 35px 45px;
    border-radius: 16px;
    margin-bottom: 50px;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #f39c12;
}

/* =========================================================
   SECTION
   ========================================================= */
.amenity-section {
    margin-top: 50px;
}

/* =========================================================
   SYMBOLS GRID
   ========================================================= */
.amenity-symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
}

.amenity-symbol-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px 10px 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.amenity-symbol-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border-color: #e8f4fd;
}

.amenity-symbol-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    transition: all 0.3s;
}

.amenity-symbol-item:hover .amenity-symbol-icon {
    background: linear-gradient(135deg, #e8f4fd, #d4e9f7);
    transform: scale(1.05);
}

.amenity-symbol-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.amenity-symbol-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
    line-height: 1.2;
}

/* =========================================================
   GALLERY GRID
   ========================================================= */
.amenity-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.amenity-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    line-height: 0;
}

.amenity-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.15);
}

.amenity-gallery-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.amenity-gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.amenity-gallery-item:hover .amenity-gallery-image-wrap img {
    transform: scale(1.05);
}

/* Gallery Overlay - Title on image */
.amenity-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transition: opacity 0.4s ease;
}

.amenity-gallery-title {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.amenity-gallery-item:hover .amenity-gallery-overlay {
    opacity: 0.8;
}

/* =========================================================
   LIGHTBOX - MAX 600px, CENTERED
   ========================================================= */
.amenity-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.amenity-lightbox.active {
    display: flex;
}

.amenity-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.amenity-lightbox-content {
    position: relative;
    max-width: 600px;
    width: 92%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* ===== CLOSE BUTTON TOP RIGHT ===== */
.amenity-lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.amenity-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* ===== IMAGE ===== */
.amenity-lightbox-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a1a2e;
    flex-shrink: 0;
}

.amenity-lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== INFO: TITLE & DESCRIPTION ===== */
.amenity-lightbox-info {
    padding: 20px 25px 10px 25px;
    text-align: center;
    background: #ffffff;
    flex-shrink: 0;
}

.amenity-lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.amenity-lightbox-desc {
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* ===== CLOSE BUTTON BOTTOM CENTER ===== */
.amenity-lightbox-close-wrap {
    padding: 10px 25px 20px 25px;
    text-align: center;
    background: #ffffff;
    flex-shrink: 0;
}

.amenity-lightbox-btn-close {
    background: #e9ecef;
    border: none;
    border-radius: 4px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amenity-lightbox-btn-close:hover {
    background: #dee2e6;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .amenity-overlay {
        padding: 40px 20px;
    }
    
    .amenity-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .amenity-overlay {
        padding: 30px 15px;
    }
    
    .amenity-title {
        font-size: 1.8rem;
    }
    
    .amenity-description {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .amenity-symbols-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }
    
    .amenity-symbol-icon {
        width: 45px;
        height: 45px;
    }
    
    .amenity-symbol-icon img {
        width: 32px;
        height: 32px;
    }
    
    .amenity-symbol-title {
        font-size: 0.65rem;
    }
    
    .amenity-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .amenity-lightbox-content {
        width: 95%;
        max-width: 500px;
    }
    
    .amenity-lightbox-close {
        top: 8px;
        right: 10px;
        font-size: 22px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .amenity-overlay {
        padding: 20px 10px;
    }
    
    .amenity-title {
        font-size: 1.4rem;
    }
    
    .amenity-description {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .amenity-symbols-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .amenity-symbol-item {
        padding: 10px 6px 8px;
    }
    
    .amenity-symbol-icon {
        width: 38px;
        height: 38px;
    }
    
    .amenity-symbol-icon img {
        width: 28px;
        height: 28px;
    }
    
    .amenity-symbol-title {
        font-size: 0.6rem;
    }
    
    .amenity-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .amenity-lightbox-content {
        max-width: 100%;
        width: 98%;
        border-radius: 12px;
    }
    
    .amenity-lightbox-title {
        font-size: 1rem;
    }
    
    .amenity-lightbox-desc {
        font-size: 0.85rem;
    }
    
    .amenity-lightbox-prev,
    .amenity-lightbox-next {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

