/* Floor Plan Page Styles */

/* Hero Section */
.floorplan-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;
}

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

.floorplan-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;
}

/* Full Width Image Sections */
.floorplan-full-section {
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.floorplan-section-1 {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.floorplan-section-2 {
    background-color: #ffbdac;
    padding: 40px 0;
}

.container-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.floorplan-full-image {
    width: 100%;
    overflow: hidden;
    margin: 0;
    line-height: 0;
}

.floor-plan-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: none;
    object-fit: cover;
    vertical-align: middle;
}

/* Grid Section */
.floorplan-grid-section {
    padding: 80px 0;
    background-image: url('http://localhost/modispacesganges/wp-content/uploads/2026/01/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.floorplan-grid-section .container {
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.floorplan-grid-title {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.floorplan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.floorplan-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #fff;
}

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

.floorplan-grid-inner {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.floorplan-grid-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floorplan-grid-item:hover .floorplan-grid-img {
    transform: scale(1.05);
}

.floorplan-overlay {
    display: none; /* Remove hover overlay completely */
}

.floorplan-zoom-icon {
    display: none;
}

.floorplan-title-overlay {
    display: block;
    background: #fff;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

/* Modal Styles */
.floorplan-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; }
}

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

.floorplan-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; }
}

.floorplan-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;
}

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

.floorplan-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;
}

.floorplan-modal-prev,
.floorplan-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;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .floorplan-hero {
        padding: 70px 0;
    }
    
    .floorplan-title {
        font-size: 2.5rem;
    }
    
    .floorplan-grid-section {
        padding: 70px 0;
    }
    
    .floorplan-grid-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .floorplan-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .floorplan-hero {
        padding: 60px 0;
    }
    
    .floorplan-title {
        font-size: 2.2rem;
    }
    
    .floorplan-grid-section {
        padding: 60px 0;
    }
    
    .floorplan-grid-title {
        font-size: 2rem;
    }
    
    .floorplan-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .floorplan-hero {
        padding: 50px 0;
        background-attachment: scroll;
    }
    
    .floorplan-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .floorplan-section-1 {
        padding: 0;
        margin: 0;
    }
    
    .floorplan-section-2 {
        padding: 30px 0;
    }
    
    .floor-plan-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .floorplan-grid-section {
        padding: 50px 0;
        background-attachment: scroll;
    }
    
    .floorplan-grid-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .floorplan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .floorplan-modal-content-wrapper {
        padding: 80px 40px 40px;
    }
    
    .floorplan-modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .floorplan-modal-nav {
        padding: 0 10px;
    }
    
    .floorplan-modal-prev,
    .floorplan-modal-next {
        width: 45px;
        height: 45px;
        padding: 12px;
    }
    
    #floorplan-modal-caption {
        font-size: 1rem;
        bottom: 20px;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .floorplan-hero {
        padding: 40px 0;
    }
    
    .floorplan-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .floorplan-section-1 {
        padding: 0;
        margin: 0;
    }
    
    .floorplan-section-2 {
        padding: 25px 0;
    }
    
    .floor-plan-img {
        width: 100%;
        height: auto;
        min-height: auto;
        object-fit: contain;
    }
    
    /* .floorplan-full-section {
        padding: 25px 0;
    } */
    
    .floorplan-grid-section {
        padding: 40px 0;
    }
    
    .floorplan-grid-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .floorplan-grid {
        gap: 15px;
    }
    
    .floorplan-grid-item {
        border-radius: 8px;
    }
    
    .floorplan-modal-content-wrapper {
        padding: 70px 20px 30px;
    }
    
    .floorplan-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .floorplan-modal-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }
    
    .floorplan-modal-prev,
    .floorplan-modal-next {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .floorplan-modal-prev svg,
    .floorplan-modal-next svg {
        width: 24px;
        height: 24px;
    }
    
    #floorplan-modal-caption {
        font-size: 0.9rem;
        bottom: 15px;
        width: 95%;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .floorplan-hero {
        padding: 35px 0;
    }
    
    .floorplan-title {
        font-size: 1.3rem;
    }
    
    .floorplan-grid-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .floorplan-modal-close {
        font-size: 32px;
        top: 8px;
        right: 12px;
    }
    
    .floorplan-modal-prev,
    .floorplan-modal-next {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
}

@media (max-width: 360px) {
    .floorplan-hero {
        padding: 30px 0;
    }
    
    .floorplan-title {
        font-size: 1.2rem;
    }
    
    .floorplan-grid-section {
        padding: 35px 0;
    }
    
    .floorplan-grid-title {
        font-size: 1.2rem;
    }
}

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