/* Estepona Apartments — Galerie logement, isolée de custom.css */
.ea-media { --ea-media-gap: 12px; }

.ea-media__feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ea-media-gap);
  align-items: stretch;
}
.ea-media__feature--single { grid-template-columns: 1fr; }

.ea-media__main-frame {
  aspect-ratio: 1000 / 715;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #f2f3f4;
}
.ea-media__main-swiper,
.ea-media__main-swiper .swiper-wrapper,
.ea-media__main-swiper .swiper-slide,
.ea-media__lightbox-link { width: 100%; height: 100%; }
.ea-media__lightbox-link { display: block; }
.ea-media__lightbox-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ea-media__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--ea-media-gap);
  min-height: 0;
  min-width: 0;
}
.ea-media__mosaic-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f2f3f4;
  cursor: pointer;
}
.ea-media__mosaic-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.ea-media__mosaic-photo:hover img { transform: scale(1.035); }

.ea-media__main-arrow,
.ea-media__thumb-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255,255,255,.96);
  border: 1px solid #e2e6ea;
  border-radius: 50%;
  color: #253243;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  z-index: 5;
}
.ea-media__main-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.ea-media__main-arrow--prev { left: 12px; }
.ea-media__main-arrow--next { right: 12px; }
.ea-media__main-arrow.swiper-button-disabled,
.ea-media__thumb-arrow.swiper-button-disabled { opacity: .4; cursor: default; }

.ea-media__thumbs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ea-media__thumbs-swiper { flex: 1; min-width: 0; }
.ea-media__thumbs-swiper .swiper-slide { height: auto; }
.ea-media__thumb-arrow { position: static; flex: 0 0 36px; }
.ea-media__thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 3px solid transparent;
  border-radius: .65rem;
  overflow: hidden;
  background: #f2f3f4;
  cursor: pointer;
  aspect-ratio: 1000 / 715;
  box-sizing: border-box;
  opacity: .8;
}
.ea-media__thumb-button.is-active {
  border-color: var(--bs-primary, #0d6efd);
  opacity: 1;
}
.ea-media__thumb-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ea-media__details-heading { color: var(--bs-primary, #0d6efd); }
.ea-media__spec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ea-media__spec {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid #e7eaf0;
  border-radius: .85rem;
  background: #fff;
}
.ea-media__spec-icon {
  color: var(--bs-primary, #0d6efd);
  font-size: 1.3rem;
  flex: 0 0 auto;
}
.ea-media__spec-text { line-height: 1.3; font-size: .92rem; }

.ea-media__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ea-media__amenities span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: .92rem;
}
.ea-media__amenities .bi { color: var(--bs-primary, #0d6efd); }

.ea-media__contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 0 0;
  border-top: 1px solid #e6e9ed;
}
.ea-media__hours { color: #526173; font-size: .92rem; }
.ea-media__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ea-media__contacts a { text-decoration: none; color: #243346; font-size: .92rem; }
.ea-media__contacts a:hover { text-decoration: underline; }
.ea-media__contacts a.ea-media__whatsapp { color: #14804a; }

@media (max-width: 991.98px) {
  .ea-media__feature { grid-template-columns: 1fr; }
  .ea-media__mosaic { display: none; }
  .ea-media__spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ea-media__spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ea-media__spec { padding: 10px; }
  .ea-media__spec-text { font-size: .84rem; }
  .ea-media__thumbs-row { gap: 5px; }
  .ea-media__thumb-arrow { flex-basis: 30px; width: 30px; height: 30px; }
}
/* À ajouter à la fin de /css/accommodation-gallery.css */
.ea-media__lightbox-link,
.ea-media__mosaic-photo {
    position: relative;
}

.ea-media__photo-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05));
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
}

.ea-media__mosaic-photo .ea-media__photo-title {
    padding: 10px 12px;
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .ea-media__photo-title {
        padding: 10px 12px;
        font-size: 13px;
    }
}
