/* Virtual Tour Styles */
.virtual-tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.virtual-tour-modal.active {
    opacity: 1;
    visibility: visible;
}

.virtual-tour-container {
    position: relative;
    width: 90%;
    height: 90%;
    background: var(--hotel-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.virtual-tour-modal.active .virtual-tour-container {
    transform: scale(1);
}

.virtual-tour-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.tour-main-content {
    flex: 1;
    position: relative;
    height: 100%;
}

#panorama {
    width: 100%;
    height: 100%;
    background: #000;
}

.virtual-tour-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hotel-primary);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.virtual-tour-close:hover {
    background: var(--hotel-accent);
    transform: rotate(90deg);
}

.virtual-tour-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(26, 26, 26, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.scene-select select {
    background: var(--hotel-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.scene-select select:hover {
    background: var(--hotel-accent);
}

.virtual-tour-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(26, 26, 26, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    max-width: 300px;
    backdrop-filter: blur(5px);
    z-index: 5;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.virtual-tour-modal.active .virtual-tour-info {
    transform: translateY(0);
    opacity: 1;
}

.virtual-tour-info h3 {
    color: var(--hotel-primary);
    margin: 0 0 10px 0;
    font-size: 18px;
}

.virtual-tour-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.room-details-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 300px;
    background: rgba(26, 26, 26, 0.95);
    padding: 20px;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 4;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.room-details-panel.active {
    transform: translateX(0);
}

.room-details-content {
    margin-bottom: 20px;
}

.room-details-content h4 {
    color: var(--hotel-primary);
    margin: 0 0 15px 0;
    font-size: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.detail-item i {
    color: var(--hotel-primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.features-list {
    margin-top: 20px;
}

.features-list h5 {
    color: var(--hotel-primary);
    margin: 0 0 10px 0;
    font-size: 16px;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.features-list li i {
    color: var(--hotel-accent);
    margin-right: 10px;
    font-size: 12px;
}

.book-now-btn {
    width: 100%;
    padding: 12px;
    background: var(--hotel-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-now-btn:hover {
    background: var(--hotel-accent);
}

.custom-hotspot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hotel-primary);
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.custom-hotspot:hover {
    transform: scale(1.2);
    background: var(--hotel-accent);
}

.custom-hotspot::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-hotspot:hover::before {
    opacity: 1;
}

.tour-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
}

.tour-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.tour-loading span {
    color: white;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(255, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pannellum Custom Styles */
.pnlm-container {
    background: #000 !important;
}

.pnlm-hotspot {
    height: 30px !important;
    width: 30px !important;
    background: var(--hotel-gradient) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.pnlm-hotspot:hover {
    transform: scale(1.1);
}

.pnlm-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    color: white !important;
}

.pnlm-compass {
    width: 40px !important;
    height: 40px !important;
    right: 20px !important;
    top: 20px !important;
}

.pnlm-controls {
    bottom: 20px !important;
    right: 20px !important;
}

.pnlm-control:hover {
    background-color: var(--hotel-primary) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .virtual-tour-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .virtual-tour-nav {
        bottom: 60px;
    }

    .virtual-tour-info {
        max-width: 250px;
    }

    .pnlm-controls {
        bottom: 100px !important;
    }
}

/* Hotspots */
.hotspot {
    background: var(--hotel-gradient);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hotspot:hover {
    transform: scale(1.2);
}

.hotspot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--hotel-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Tooltip for hotspots */
.hotspot-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-100%);
    margin-top: -10px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    animation: fadeIn 0.6s ease;
}

.no-results i {
    font-size: 3rem;
    color: var(--hotel-primary);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--hotel-secondary);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-container,
    .virtual-tour-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .lightbox-thumbnails {
        overflow-x: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .lightbox-thumbnail {
        flex-shrink: 0;
    }

    .virtual-tour-controls {
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
        max-width: 300px;
    }

    .tour-control {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

.room-info-panel {
    width: 380px;
    background: var(--hotel-secondary);
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.room-info-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.room-info-header h2 {
    color: var(--hotel-primary);
    font-size: 24px;
    margin: 0 0 10px 0;
}

.room-price {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.room-description {
    margin-bottom: 25px;
    color: #e0e0e0;
    line-height: 1.6;
}

.room-features {
    margin-bottom: 25px;
}

.room-features h3, .room-amenities h3 {
    color: var(--hotel-primary);
    font-size: 18px;
    margin-bottom: 15px;
}

.room-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.room-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #fff;
}

.room-features li i {
    color: var(--hotel-accent);
    margin-right: 10px;
    font-size: 16px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.amenity {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.amenity:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.amenity i {
    font-size: 18px;
    margin-right: 10px;
    color: var(--hotel-primary);
}

.book-now-btn {
    width: 100%;
    padding: 15px;
    background: var(--hotel-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.book-now-btn:hover {
    background: var(--hotel-accent);
    transform: translateY(-2px);
}

.book-now-btn i {
    transition: transform 0.3s ease;
}

.book-now-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .room-info-panel {
        width: 320px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .virtual-tour-content {
        flex-direction: column;
    }

    .tour-main-content {
        height: 60%;
    }

    .room-info-panel {
        width: 100%;
        height: 40%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
} 