/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #e74c3c;
    font-size: 1.5rem;
}

.scan-message {
    display: flex;
    align-items: center;
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(39, 174, 96, 0.1);
    animation: fadeIn 1s;
}

.scan-message i {
    margin-right: 6px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Room Grid Styles */
.section-title {
    text-align: center;
    margin: 30px 0 20px;
    color: #333;
    font-size: 1.5rem;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.room-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.room-image {
    height: 180px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-info {
    padding: 15px;
}

.room-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.room-rate {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.room-card button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 8px;
}

.room-card button:hover {
    background-color: #c0392b;
}

.view-3d-btn {
    background-color: #3498db !important;
}

.view-3d-btn:hover {
    background-color: #2980b9 !important;
}

/* QR Code Styles */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    animation: modalopen 0.4s;
    position: relative;
}

.panorama-content {
    max-width: 1000px;
    height: 80vh;
    padding: 0;
    overflow: hidden;
}

/* Full Image Modal Styles */
.image-modal-content {
    background-color: transparent;
    max-width: 90%;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#fullImageContainer {
    width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

#fullImageContainer img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.image-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.image-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-controls button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.image-counter {
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    margin-top: 10px;
}

#panoramaContainer {
    width: 100%;
    height: 100%;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
    z-index: 1010;
}

.close-modal:hover {
    color: #333;
}

.image-modal-content .close-modal {
    color: white;
    right: 10px;
    top: -30px;
}

.image-modal-content .close-modal:hover {
    color: #f8f8f8;
}

/* Room Detail Styles */
.room-detail {
    padding: 20px;
}

.room-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.room-detail-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.room-detail-rate {
    color: #e74c3c;
    font-size: 1.4rem;
    font-weight: bold;
}

.room-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-image {
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-image img:hover {
    transform: scale(1.05);
}

.view-3d-container {
    text-align: center;
    margin-bottom: 20px;
}

.view-3d-container button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
}

.view-3d-container button:hover {
    background-color: #2980b9;
}

.view-3d-container button i {
    margin-right: 8px;
}

.room-features {
    margin-bottom: 20px;
}

.features-title {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 8px 12px;
    border-radius: 6px;
}

.feature-item i {
    margin-right: 10px;
    color: #e74c3c;
}

.room-description {
    line-height: 1.8;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* For Admin View */
.admin-view .qr-code-container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-view #qrCodeContainer img {
    display: block;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .section-title {
        margin: 20px 0 15px;
    }
    
    .image-controls button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .room-gallery {
        grid-template-columns: 1fr;
    }
    
    .room-detail-header {
        flex-direction: column;
    }
    
    .room-detail-name {
        font-size: 1.5rem;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .scan-message {
        font-size: 0.8rem;
    }
    
    .image-controls {
        padding: 0 10px;
    }
    
    .image-controls button {
        width: 32px;
        height: 32px;
    }
} 