/* ========================================
   GTI ADVANCED GALLERY STYLES
   ======================================== */

.gti-gallery-advanced {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gti-gallery-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Vista principal */
.gti-gallery-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Imagen principal */
.gti-gallery-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gti-gallery-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gti-gallery-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gti-gallery-hero:hover .gti-gallery-hero-image {
    transform: scale(1.05);
}

.gti-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gti-gallery-hero:hover .gti-gallery-overlay {
    transform: translateY(0);
}

.gti-gallery-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.gti-gallery-price {
    margin: 0;
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: 600;
}

/* Miniaturas */
.gti-gallery-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.gti-gallery-thumb {
    position: relative;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gti-gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gti-gallery-thumb.active {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.gti-gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gti-gallery-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gti-gallery-thumb:hover .gti-gallery-thumb-overlay {
    opacity: 1;
}

.gti-gallery-thumb-overlay i {
    color: white;
    font-size: 1.2rem;
}

/* Detalles del inmueble */
.gti-gallery-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.gti-gallery-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.gti-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gti-badge-type {
    background: #3498db;
    color: white;
}

.gti-badge-gestion {
    background: #e74c3c;
    color: white;
}

.gti-badge-location {
    background: #27ae60;
    color: white;
}

.gti-gallery-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.gti-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gti-spec-item:hover {
    transform: translateY(-2px);
}

.gti-spec-item i {
    color: #3498db;
    font-size: 1.1rem;
}

.gti-spec-item span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Modal */
.gti-gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.gti-gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gti-gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.gti-gallery-close:hover {
    color: #3498db;
}

.gti-gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10000;
}

.gti-gallery-prev,
.gti-gallery-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gti-gallery-prev:hover,
.gti-gallery-next:hover {
    background: rgba(52, 152, 219, 0.8);
    transform: scale(1.1);
}

.gti-gallery-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gti-gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .gti-gallery-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gti-gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        max-height: 200px;
    }
    
    .gti-gallery-hero {
        height: 250px;
    }
    
    .gti-gallery-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gti-gallery-modal-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    
    .gti-gallery-close {
        top: 10px;
        right: 20px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gti-gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gti-gallery-specs {
        grid-template-columns: 1fr;
    }
    
    .gti-gallery-badges {
        justify-content: center;
    }
}

