/**
 * Public CSS for MSV DHM Plugin
 */

/* Map Styles */
.msv-dhm-map {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

/* POI Styles */
.msv-dhm-poi {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.msv-dhm-poi h2 {
    margin: 0 0 15px;
    color: #2c5aa0;
}

.msv-dhm-poi-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
}

.msv-dhm-poi-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.msv-dhm-poi-meta .meta-item .dashicons {
    color: #666;
}

/* Gallery Styles */
.msv-dhm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.msv-dhm-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msv-dhm-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Lightbox Styles */
.msv-dhm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.7);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* Itinerary Styles */
.msv-dhm-itinerario {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.msv-dhm-itinerario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.msv-dhm-itinerario-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.meta-group h4 {
    margin: 0 0 8px;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.meta-group .value {
    font-size: 16px;
    color: #333;
}

/* GPX Download Button */
.msv-dhm-gpx-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.msv-dhm-gpx-download:hover {
    background: #1e3f73;
    color: white;
    text-decoration: none;
}

.msv-dhm-gpx-download .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Event Styles */
.msv-dhm-evento {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.msv-dhm-evento-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #e74c3c;
}

.msv-dhm-evento-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: #666;
}

/* Package Styles */
.msv-dhm-pacchetto {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.msv-dhm-pacchetto-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.msv-dhm-pacchetto-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin: 10px 0;
}

/* Related Items */
.msv-dhm-related {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.msv-dhm-related h4 {
    margin: 0 0 10px;
    color: #555;
}

.msv-dhm-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.msv-dhm-related-item {
    padding: 5px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
}

.msv-dhm-related-item:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
}

/* Contact Info */
.msv-dhm-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.msv-dhm-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msv-dhm-contact .contact-item .dashicons {
    color: #666;
    flex-shrink: 0;
}

.msv-dhm-contact a {
    color: #007cba;
    text-decoration: none;
}

.msv-dhm-contact a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .msv-dhm-itinerario-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .msv-dhm-itinerario-meta {
        grid-template-columns: 1fr;
    }
    
    .msv-dhm-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .msv-dhm-gallery img {
        height: 150px;
    }
    
    .msv-dhm-poi-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .msv-dhm-pacchetto-price {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .msv-dhm-contact {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .msv-dhm-map,
    .msv-dhm-gpx-download,
    .lightbox-overlay {
        display: none;
    }
    
    .msv-dhm-gallery img {
        height: auto;
        max-height: 200px;
    }
}
