.accommodation-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    margin-bottom: 20px;
}
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    background-size: cover;
    border-radius: 2px;
}
.flag-icon-es {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAyMCI+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjIwIiBmaWxsPSIjYzYwYjI2Ii8+PHJlY3QgeD0iMTAiIHdpZHRoPSIxMCIgaGVpZ2h0PSIyMCIgZmlsbD0iI2ZmYzQwMCIvPjwvc3ZnPg==');
}
.flag-icon-gb {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAyMCI+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjIwIiBmaWxsPSIjMDEyMTY5Ii8+PHBhdGggZD0iTTAgMEwzMCAyME0zMCAwTDAgMjAiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZD0iTTAgMEwzMCAyME0zMCAwTDAgMjAiIHN0cm9rZT0iI2MwMTQ1MyIgc3Ryb2tlLXdpZHRoPSIxIi8+PHJlY3QgeD0iMTMiIHdpZHRoPSI0IiBoZWlnaHQ9IjIwIiBmaWxsPSIjZmZmIi8+PHJlY3QgeT0iOCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjQiIGZpbGw9IiNmZmYiLz48cmVjdCB4PSIxMyIgd2lkdGg9IjQiIGhlaWdodD0iMjAiIGZpbGw9IiNmZmYiLz48cmVjdCB5PSI4IiB3aWR0aD0iMzAiIGhlaWdodD0iNCIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==');
}
.dropdown-item.active {
    background-color: #f8f9fa;
    font-weight: 600;
}
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 70px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.property-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: #667eea;
    color: white;
}

.favorite-btn.active i {
    color: #e74c3c;
}

.property-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-location {
    font-size: 14px;
}

.property-title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.property-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.property-title a:hover {
    color: #667eea;
}

.property-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    flex: 1;
}
.property-features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}
.botton-wrap {
    flex-wrap: wrap;
    gap: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.property-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.feature-item i {
    color: #667eea;
}
.right-sidebar {
    
}
.right-sidebar .card{
    border: unset;
    box-shadow: unset;
}
.right-sidebar .card .card-header{
    background-color: var(--bs-info-text-emphasis);
    color: white;
}
.right-sidebar .card .card-header h5{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.right-sidebar .card .card-body{
    background: #d4e6e9;
}
.card-body.d-flex.flex-wrap .badge {
background-color: #eaf3ef;
color: #055160 !important;
font-weight: 500;
border: 2px solid #7fbb9f !important;
}
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.price-period {
    font-size: 14px;
    color: #7f8c8d;
}

.filters-section .form-label {
    font-weight: 600;
    margin-bottom: 5px;
}
.offers-area {
    background: #f8f9fa;
}
.offer-box {
background: #f3fdfd;
border-radius: 4px;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
overflow: hidden;
margin-bottom: 54px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
animation: fadeInUp 0.6s ease;
}.offer-box .thumb {
    height: 430px;
    overflow: hidden;
}
.offer-box .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.offer-desc {
    padding: 2.5rem;
    background-color: #fff;
    padding: 30px 20px 20px;
    margin-left: 50px;
    margin-right: 50px;
    border-top: 6px solid var(--base-txt-orange);
    margin-top: 35px;
    z-index: 2;
    position: relative;
}
section.cta-section .it-btn-primary{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 140px;

}
.title-wrap {
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid #ececec;
    margin-bottom: 0px;
    padding-bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.room-cat {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}
.title h2 {
    color: var(--bg-dark-blue);
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}
.offer-text p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
h3.mil-fade-up {
    font-size: 1.3rem;
    font-weight: 500;
}
.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: left;
    align-items: center;
}
.mil-iconbox {
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    padding: 8px;
    background-color: #f3fdfd;
    border-radius: 8px;
    /* box-shadow: 0 1px 1px rgb(32 79 94 / 16%); */
    margin-bottom: 10px;
    transition: .6s cubic-bezier(0, 0, .3642, 1);
}
.mil-iconbox {
    text-align: center;
    margin-bottom: 0px;
    padding: 2px 5px;
    min-width: 146px;
}
.right-sidebar .mil-iconbox {
    padding: 0px 5px;
}
.right-sidebar .mil-iconbox span{
color: #055160 !important;
font-weight: 500;
font-size: .8rem;
}
.mil-icon {
    font-size: 24px;
    color: var(--bg-header-dark);
    margin-bottom: 0px;
}
.mil-iconbox .mil-icon {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-bottom: 0px;
    background-color: #eafbfb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}
.right-sidebar .mil-iconbox .mil-icon {
     padding-top: 0px;
      border-radius:unset;
}
.mil-iconbox .mil-icon .ph-duotone {
    width: 30px;
    height: 30px;
    color: #23bcec;
}
.right-sidebar .mil-iconbox .mil-icon .ph-duotone {
    height: auto;
}
.mil-iconbox h5 {
    font-size: 0.75rem;
    color: #495057;
    margin: 0;
    font-weight: 500;
}
.cta-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-lighter-orage);
}
.cta-section > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
@media (max-width: 768px) {
    .property-features {
        flex-wrap: wrap;
    }
    
    .property-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .property-footer .btn {
        width: 100%;
    }
}

/* Estilos para la galería */
.gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}
.gallery-link:hover .property-main-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.gallery-link:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gallery-overlay {
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.gallery-indicator {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
}

.gallery-indicator .badge {
    font-size: 0.8rem;
}

.property-main-image {
    transition: transform 0.3s ease;
}

.view-all-gallery {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-all-gallery:hover {
    background: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Estilos para Fancybox */
.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8) !important;
}

.fancybox__caption {
    text-align: center;
    font-size: 1.1rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
}

.fancybox__nav {
    --f-button-bg: rgba(0, 0, 0, 0.6);
    --f-button-border-radius: 50%;
    --f-button-color: white;
    --f-button-hover-bg: rgba(0, 0, 0, 0.8);
}

/* Efecto de zoom en hover */
.thumb {
    overflow: hidden;
}
.property-main-image {
    transition: transform 0.3s ease;
}

.btn-view-gallery {
font-size: 0.8rem;
    padding: 4px 10px;
    border: 2px solid rgb(255 255 255);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-header-dark);
    color: #055160;
    font-weight: 500;
}
.btn-view-gallery:hover {
    border: 2px solid rgb(255 255 255);
    background:var(--base-txt-orange)!important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Fancybox personalizado */
.fancybox__container {
    z-index: 9999;
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
}

.fancybox__nav {
    --f-button-bg: rgba(0, 0, 0, 0.6);
    --f-button-border-radius: 50%;
    --f-button-color: white;
    --f-button-hover-bg: rgba(0, 0, 0, 0.8);
}

.fancybox__caption {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    text-align: center;
}
.price {
    white-space: nowrap;
    font-size: 40px;
    color: #4c6275;
    font-weight: 700;
    text-align: right;
    line-height: 1;
}
.price span {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
}
.main-btn {
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row;      
    justify-content: center;  
    align-items: center;

}
.main-btn.btn-filled:hover {
    background-color: var(--bs-info-text-emphasis);
    border: unset;
}
.btn-filled {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}
.btn-filled .ph-duotone:after {
    color: #fdfdfd;
}

/* Hero Gallery Section */
.property-hero-gallery {
    margin-bottom: 30px;
}

/* Swiper principal */
.property-main-swiper {
    height: 600px;
    position: relative;
}

.property-main-swiper .swiper-slide {
    height: 100%;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image-link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
}

.gallery-image-link:hover .main-gallery-image {
    transform: scale(1.02);
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.gallery-image-link:hover .image-zoom-overlay {
    opacity: 1;
}

/* Navegación del swiper principal */
.property-main-swiper .swiper-button-next,
.property-main-swiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.property-main-swiper .swiper-button-next:after,
.property-main-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
}

.property-main-swiper .swiper-button-next:hover,
.property-main-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Paginación */
.property-main-swiper .swiper-pagination {
    bottom: 20px !important;
}

.property-main-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.property-main-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color, #667eea);
}

/* Contador de imágenes */
.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* Miniaturas */
.property-thumbnails-wrapper {
    height: 600px;
    background: #f8f9fa;
    padding: 15px;
}

.property-thumb-swiper {
    height: 100%;
}

.property-thumb-swiper .swiper-wrapper {
    flex-direction: column;
}

.thumb-slide {
    height: 120px !important;
    margin-bottom: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb-slide.thumb-active {
    opacity: 1;
    border-color: var(--primary-color, #667eea);
}

.thumb-slide:hover {
    opacity: 0.8;
}

.thumb-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.thumb-slide.thumb-active .thumb-overlay {
    background: rgba(102, 126, 234, 0.2);
}

/* Navegación de miniaturas */
.thumb-navigation {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.thumb-button i {
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 991px) {
    .property-main-swiper {
        height: 400px;
    }
    
    .property-thumbnails-wrapper {
        height: 150px;
        padding: 10px 0;
    }
    
    .property-thumb-swiper .swiper-wrapper {
        flex-direction: row !important;
    }
    
    .thumb-slide {
        height: 100px !important;
        width: 100px !important;
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .thumb-navigation {
        display: none;
    }
}

@media (max-width: 767px) {
    .property-main-swiper {
        height: 300px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* ============================================
   ENHANCED GALLERY CARD - Property Index
   Sistema de galería mejorado para listado
   ============================================ */

.offer-box .thumb {
    height: auto;
    overflow: visible;
    position: relative;
}

/* Contenedor principal de la galería */
.property-gallery-grid {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    min-height: 400px;
}

/* Imagen principal - 60% */
.gallery-main-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    height: 400px;
}

.gallery-main-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main-image:hover img {
    transform: scale(1.05);
}

/* Overlay con info de la propiedad */
.gallery-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 20px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-main-image:hover .gallery-main-overlay {
    opacity: 1;
}

.gallery-overlay-info {
    color: white;
}

.gallery-overlay-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.gallery-overlay-features {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.gallery-overlay-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-overlay-features i {
    color: #ffc107;
}

/* Grid de thumbnails - 40% */
.gallery-thumbnails-grid {
    flex: 0 0 40%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 400px;
}

.gallery-thumb-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-thumb-item:last-child {
    border-radius: 0 8px 0 0;
}

.gallery-thumb-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb-item:hover img {
    transform: scale(1.1);
}

/* Overlay hover en thumbnails */
.gallery-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb-item:hover .gallery-thumb-overlay {
    opacity: 1;
}

.gallery-thumb-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Badge "+N más" en última thumbnail */
.gallery-more-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 3;
    transition: background 0.3s ease;
}

.gallery-more-indicator:hover {
    background: rgba(0, 0, 0, 0.85);
}

.gallery-more-indicator small {
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
}

/* Badge de tipo de propiedad */
.property-type-badge-gallery {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 991px) {
    .property-gallery-grid {
        min-height: 350px;
    }
    
    .gallery-main-image,
    .gallery-thumbnails-grid {
        height: 350px;
    }
    
    .gallery-overlay-title {
        font-size: 1rem;
    }
    
    .gallery-overlay-features {
        font-size: 0.85rem;
        gap: 10px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .property-gallery-grid {
        flex-direction: column;
        min-height: auto;
        gap: 0.5rem;
    }
    
    /* Imagen principal - 100% width en mobile */
    .gallery-main-image {
        flex: 0 0 100%;
        height: 300px;
        border-radius: 8px 8px 0 0;
    }
    
    /* Grid de 2 thumbnails en mobile */
    .gallery-thumbnails-grid {
        flex: 0 0 auto;
        height: 100px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 0.5rem;
    }
    
    /* Ocultar thumbnails 3 y 4, mostrar solo 2 */
    .gallery-thumb-item:nth-child(3),
    .gallery-thumb-item:nth-child(4) {
        display: none;
    }
    
    /* El segundo thumbnail muestra el badge "+N más" */
    .gallery-thumb-item:nth-child(2) {
        position: relative;
    }
    
    .gallery-thumb-item:nth-child(2) .gallery-more-indicator {
        display: flex;
    }
    
    .gallery-main-overlay {
        padding: 15px 12px;
    }
    
    .gallery-overlay-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .gallery-overlay-features {
        font-size: 0.8rem;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .gallery-main-image {
        height: 250px;
    }
    
    .gallery-thumbnails-grid {
        height: 80px;
    }
    
    .gallery-overlay-title {
        font-size: 0.9rem;
    }
    
    .gallery-overlay-features {
        font-size: 0.75rem;
    }
    
    .gallery-more-indicator {
        font-size: 1.2rem;
    }
}

/* ============================================
   PLACEHOLDER para imágenes faltantes
   ============================================ */
.gallery-thumb-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.gallery-thumb-placeholder i {
    font-size: 2rem;
    color: #ccc;
}
/* ============================================
   LOADING ANIMATION para imágenes
   ============================================ */
.gallery-main-image img,
.gallery-thumb-item img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.gallery-main-image img[src],
.gallery-thumb-item img[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Fade-in cuando la imagen carga */
.gallery-main-image img,
.gallery-thumb-item img {
   /* opacity: 0;*/
    transition: opacity 0.3s ease;
}

.gallery-main-image img.loaded,
.gallery-thumb-item img.loaded {
    opacity: 1;
}
