/* ===========================================
   PANORAMA MODAL STYLES
   Modale Fenster für Google Street View Panoramen
   =========================================== */

/* Hauptmodales Fenster */
.panorama-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn var(--speed) var(--ease);
}

/* Inhalt des modalen Fensters */
.modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    height: 90%;
    max-width: 1200px;
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
    animation: slideIn var(--speed) var(--ease);
}

/* Schließen-Button */
.panorama-close {
    position: absolute;
    top: 10px;
    right: 55px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    font-weight: 100;
    font-family: var(--font-body);
    cursor: pointer;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--speed) var(--ease);
    line-height: 2.5;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.panorama-close:hover {
    color: #ffffff;
}

/* Überschrift des modalen Fensters */
.modal-header {
    position: absolute;
    width: 50%;
    height: 75px;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    justify-content: center;
    z-index: 1001;
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: hsl(var(--accent-foreground));
    background: transparent;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iframe für Panorama */
.panorama-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Panorama-Buttons (aktualisiert) */
.panorama-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition-smooth);
}

.panorama-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.panorama-link:hover .hotel-special-card {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsivität */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
        height: 85%;
    }
    
    .panorama-close {
        top: var(--space-sm);
        right: var(--space);
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
    }
    
    .modal-header {
        padding: var(--space) var(--space-md);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        width: 100%;
        height: 95%;
        border-radius: 0;
    }
    
    .panorama-close {
        top: var(--space-xs);
        right: var(--space-sm);
        font-size: 1.125rem;
        width: 32px;
        height: 32px;
    }
    
    .modal-header {
        padding: var(--space-sm) var(--space);
        font-size: 0.9375rem;
    }
}

/* Zusätzliche Stile für Panorama-Karten */
.hotel-special-card {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.hotel-special-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

/* Ladeanzeige */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: hsl(var(--accent));
    font-family: var(--font-body);
    font-size: 1.125rem;
    z-index: 1002;
}

/* Scrollen bei geöffnetem Modal deaktivieren */
body.modal-open {
    overflow: hidden;
}
