/* IMG */
/* --- GALERÍA --- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  grid-template-rows: 180px 180px; 
  gap: 10px;
}

/* Imagen grande */
.gallery-item:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  height: 100%;
}

/* Imágenes pequeñas */
.gallery-item:not(:first-child) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}


/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* Botón cerrar */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Flechas */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px 14px;
}

.lightbox-arrow.left {
  left: 20px;
}

.lightbox-arrow.right {
  right: 20px;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  background: rgba(0,0,0,0.6);
}

/* --- SLIDER MÓVIL --- */
.mobile-slider {
    position: relative;
    width: 100vw;  
    margin-left: 50%;
    transform: translateX(-50%); 
    height: 240px;
    overflow: hidden;
    border-radius: 0; 
}

@media (min-width: 400px) {
    .mobile-slider {
        height: 260px;
    }
}

@media (min-width: 480px) {
    .mobile-slider {
        height: 300px;
    }
}

.mobile-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; 
}


.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 22px;
    width: 40px;      
    height: 40px;     
    border-radius: 50%; 
    display: flex;      
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
}


.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}
/* --- END SLIDER MÓVIL --- */

/* END IMG */


/* PROFILE CARD */
.profile-card {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    font-family: sans-serif;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.profile-photo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.profile-exchanges {
    margin: 3px 0 0 0;
    color: #777;
    font-size: 0.9rem;
}

.profile-actions {
    margin-left: auto;
    align-self: flex-start;
}
.profile-actions .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

.profile-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bright);
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    gap: 10px;
}

.badge-text {
    font-size: 0.9rem;
}

.profile-verifications {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.profile-verifications li {
    margin: 6px 0;
    font-size: 0.95rem;
}

.profile-message {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.profile-button {
    width: 100%;
    background: var(--primary);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    color: var(--white);
}

.profile-button:hover {
    background: var(--bright);
}


.profile-header {
    position: relative;
}

.profile-actions {
    position: absolute;
    top: 0;
    right: 0;
}

.profile-languages {
    align-items: flex-start;
    font-size: small;
}

.languages-flags .fi {
    line-height: 1;
}


/* END PROFILE CARD */

/* MAP */
#map {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 767px) {
    #map {
        height: 250px !important;
    }
}

.map-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

.map-loading {
    position: absolute;
    inset: 0;
    background: #ffffffcc; 
    z-index: 10;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 10px; 
}


.map-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}


.map-loading-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Overlay de interacción */
.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.map-overlay.visible {
    opacity: 1;
}

/* EN MAP */

.btn-favorito {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 16px;
    color: var(--black); 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 180px;
}
.btn-favorito .m-icon {
    color: var(--primary); 
}
.btn-favorito:hover {
    opacity: 0.85;
}
.btn-favorito.active {
    font-weight: 600;
}

