/* Amenities Page Styles */

/* Hero Section */
.amenities-hero {
    background-image: url('http://localhost/modispacesganges/wp-content/uploads/2026/01/bread-crum.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.amenities-hero .container {
    padding: 0 20px;
}

.amenities-title {
    font-size: 3rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    word-wrap: break-word;
}

/* Amenities Section - Individual backgrounds per section */
.amenities-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
}

/* Only sections with custom backgrounds get the ::before overlay */
.amenities-section.has-custom-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 215, 211, 0.85);
    z-index: 0;
}

.amenities-section .container {
    position: relative;
    z-index: 1;
}

.amenities-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 50px;
    font-weight: bold;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 185px;
    gap: 20px;
}

/* Masonry layout - Specific positioning for each item */
.amenity-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.amenity-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.amenity-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / 3;
}

.amenity-item:nth-child(4) {
    grid-column: 4;
    grid-row: 1 / 3;
}

.amenity-item:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

.amenity-item:nth-child(6) {
    grid-column: 1;
    grid-row: 3;
}

.amenity-item:nth-child(7) {
    grid-column: 2;
    grid-row: 3;
}

.amenity-item:nth-child(8) {
    grid-column: 3 / 5;
    grid-row: 3;
}

.amenity-item:nth-child(9) {
    grid-column: 1;
    grid-row: 4;
}

.amenity-item:nth-child(10) {
    grid-column: 2;
    grid-row: 4;
}

.amenity-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Items without titles - no hover effect */
.amenity-item.no-title {
    cursor: default;
}

.amenity-item.no-title:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.amenity-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.amenity-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.amenity-item:hover .amenity-image-wrapper img {
    transform: scale(1.1);
}

/* No zoom effect for items without titles */
.amenity-item.no-title:hover .amenity-image-wrapper img {
    transform: scale(1);
}

.amenity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.5);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.amenity-item:hover .amenity-overlay {
    background: rgba(139, 69, 19, 0.4);
}

.amenity-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.amenity-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.amenity-arrow svg {
    width: 30px;
    height: 30px;
}

.amenity-arrow svg path {
    stroke: #8B4513;
    stroke-width: 3;
}

/* Backward arrow - flip horizontally */
.amenity-arrow.arrow-backward svg {
    transform: scaleX(-1);
}

.amenity-item:hover .amenity-arrow {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Maintain flip on hover for backward arrows */
.amenity-item:hover .amenity-arrow.arrow-backward {
    transform: scale(1.1);
}

.amenity-item:hover .amenity-arrow.arrow-backward svg {
    transform: scaleX(-1);
}

/* Specific backward arrows for items in even rows (row 2 = item 5, row 4 = items 9-10) */
.amenity-item:nth-child(5) .amenity-arrow svg,
.amenity-item:nth-child(9) .amenity-arrow svg,
.amenity-item:nth-child(10) .amenity-arrow svg {
    transform: scaleX(-1);
}

/* Keep the flip on hover */
.amenity-item:nth-child(5):hover .amenity-arrow svg,
.amenity-item:nth-child(9):hover .amenity-arrow svg,
.amenity-item:nth-child(10):hover .amenity-arrow svg {
    transform: scaleX(-1);
}

/* Modal Styles */
.amenity-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.amenity-modal-content-wrapper {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 60px 80px;
}

.amenity-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.amenity-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.amenity-modal-close:hover,
.amenity-modal-close:focus {
    color: #ff6b6b;
}

.amenity-modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.amenity-modal-prev,
.amenity-modal-next {
    pointer-events: all;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.amenity-modal-prev:hover,
.amenity-modal-next:hover {
    background: rgba(255,255,255,0.4);
}

.amenity-modal-prev:disabled,
.amenity-modal-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#amenity-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amenities-hero {
        padding: 70px 0;
    }
    
    .amenities-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .amenities-hero {
        padding: 60px 0;
    }
    
    .amenities-title {
        font-size: 2.2rem;
    }
    
    .amenities-section {
        padding: 60px 0;
    }
    
    /* Amenities responsive - 2 columns for tablets */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 15px;
    }
    
    /* Reset all specific positioning for responsive */
    .amenity-item:nth-child(1),
    .amenity-item:nth-child(2),
    .amenity-item:nth-child(3),
    .amenity-item:nth-child(4),
    .amenity-item:nth-child(5),
    .amenity-item:nth-child(6),
    .amenity-item:nth-child(7),
    .amenity-item:nth-child(8),
    .amenity-item:nth-child(9),
    .amenity-item:nth-child(10) {
        grid-column: auto;
        grid-row: auto;
    }
    
    .amenity-title {
        font-size: 1.5rem;
    }
    
    .amenity-arrow {
        width: 50px;
        height: 50px;
        margin-top: 15px;
    }
    
    .amenity-arrow svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .amenities-hero {
        padding: 50px 0;
        background-attachment: scroll;
    }
    
    .amenities-title {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    /* Amenities responsive - Single column for mobile */
    .amenities-section {
        padding: 50px 0;
        background-attachment: scroll;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 15px;
    }
    
    .amenity-item {
        border-radius: 12px;
    }
    
    .amenity-overlay {
        padding: 20px;
    }
    
    .amenity-title {
        font-size: 1.3rem;
    }
    
    .amenity-arrow {
        width: 45px;
        height: 45px;
        margin-top: 12px;
    }
    
    .amenity-arrow svg {
        width: 22px;
        height: 22px;
    }
    
    .amenity-modal-content-wrapper {
        padding: 80px 40px 40px;
    }
    
    .amenity-modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .amenity-modal-nav {
        padding: 0 10px;
    }
    
    .amenity-modal-prev,
    .amenity-modal-next {
        width: 45px;
        height: 45px;
        padding: 12px;
    }
    
    #amenity-modal-caption {
        font-size: 1rem;
        bottom: 20px;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .amenities-hero {
        padding: 40px 0;
    }
    
    .amenities-title {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    
    .amenities-section {
        padding: 40px 0;
    }
    
    .amenities-grid {
        grid-auto-rows: 220px;
        gap: 12px;
    }
    
    .amenity-title {
        font-size: 1.2rem;
    }
    
    .amenity-overlay {
        padding: 15px;
    }
    
    .amenity-arrow {
        width: 40px;
        height: 40px;
        margin-top: 10px;
    }
    
    .amenity-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .amenity-modal-content-wrapper {
        padding: 70px 20px 30px;
    }
    
    .amenity-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .amenity-modal-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }
    
    .amenity-modal-prev,
    .amenity-modal-next {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .amenity-modal-prev svg,
    .amenity-modal-next svg {
        width: 24px;
        height: 24px;
    }
    
    #amenity-modal-caption {
        font-size: 0.9rem;
        bottom: 15px;
        width: 95%;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .amenities-hero {
        padding: 35px 0;
    }
    
    .amenities-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    .amenities-hero {
        padding: 30px 0;
    }
    
    .amenities-title {
        font-size: 1.3rem;
    }
}

@media print {
    .amenity-modal,
    .amenity-overlay {
        display: none !important;
    }
    
    .amenities-hero {
        background: none !important;
        padding: 20px 0;
    }
    
    .amenities-title {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* ============================================
   AMENITIES IMAGE SLIDER SECTION
   ============================================ */

.amenities-image-slider-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.amenities-image-slider {
    margin: 0 auto;
    max-width: 1400px;
}

.slider-image-item {
    padding: 0 10px;
}

.slider-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-image-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Slick slider customization for amenities slider */
.amenities-image-slider .slick-dots {
    bottom: -50px;
}

.amenities-image-slider .slick-dots li button:before {
    font-size: 12px;
    color: #8B4513;
    opacity: 0.5;
}

.amenities-image-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #8B4513;
}

.amenities-image-slider .slick-prev,
.amenities-image-slider .slick-next {
    width: 50px;
    height: 50px;
    background: rgba(139, 69, 19, 0.8);
    border-radius: 50%;
    z-index: 10;
}

.amenities-image-slider .slick-prev:hover,
.amenities-image-slider .slick-next:hover {
    background: rgba(139, 69, 19, 1);
}

.amenities-image-slider .slick-prev {
    left: -60px;
}

.amenities-image-slider .slick-next {
    right: -60px;
}

.amenities-image-slider .slick-prev:before,
.amenities-image-slider .slick-next:before {
    font-size: 24px;
    opacity: 1;
}

/* Responsive for slider */
@media (max-width: 1400px) {
    .amenities-image-slider .slick-prev {
        left: -40px;
    }
    
    .amenities-image-slider .slick-next {
        right: -40px;
    }
}

@media (max-width: 1200px) {
    .amenities-image-slider-section {
        padding: 60px 0;
    }
    
    .slider-image-item img {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .amenities-image-slider-section {
        padding: 50px 0;
    }
    
    .slider-image-item img {
        height: 220px;
    }
    
    .amenities-image-slider .slick-prev {
        left: 10px;
    }
    
    .amenities-image-slider .slick-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .amenities-image-slider-section {
        padding: 40px 0;
    }
    
    .slider-image-item {
        padding: 0 8px;
    }
    
    .slider-image-item img {
        height: 200px;
        border-radius: 10px;
    }
    
    .amenities-image-slider .slick-prev,
    .amenities-image-slider .slick-next {
        width: 40px;
        height: 40px;
    }
    
    .amenities-image-slider .slick-prev:before,
    .amenities-image-slider .slick-next:before {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .slider-image-item {
        padding: 0 5px;
    }
    
    .slider-image-item img {
        height: 180px;
        border-radius: 8px;
    }
    
    .amenities-image-slider .slick-dots {
        bottom: -40px;
    }
    
    .amenities-image-slider .slick-prev,
    .amenities-image-slider .slick-next {
        width: 35px;
        height: 35px;
    }
    
    .amenities-image-slider .slick-prev:before,
    .amenities-image-slider .slick-next:before {
        font-size: 18px;
    }
}

/* ============================================
   IMAGE LIGHTBOX MODAL
   ============================================ */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.image-lightbox.active {
    display: block !important;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ff6b6b;
    transform: scale(1.1);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lightboxZoomIn 0.3s ease;
    cursor: default;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxZoomIn {
    from { 
        transform: translate(-50%, -50%) scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Make slider images clickable with cursor pointer */
.slider-image-clickable {
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slider-image-clickable:hover {
    opacity: 0.9;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        bottom: 20px;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        bottom: 15px;
        width: 95%;
        padding: 15px 0;
    }
}
