/* ── Mosaic Gallery ── */
.av-gallery-wrap {
  padding: 20px 0 0
}

.av-gallery-mosaic {
  display: flex;
  gap: 10px;
  height: 480px
}

.av-gallery-main {
  flex: 3;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer
}

.av-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s
}

.av-gallery-main:hover img {
  transform: scale(1.03)
}

.av-gallery-side {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.av-gallery-side-item {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer
}

.av-gallery-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s
}

.av-gallery-side-item:hover img {
  transform: scale(1.03)
}

.av-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px
}

.av-gallery-btn {
  background: #fff;
  color: #1F1A18;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: .3px;
  white-space: nowrap
}

.av-gallery-btn:hover {
  background: #BE0201;
  color: #fff
}

/* ── Header ── */
.av-detail-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid #e8e8e8
}

.av-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F1A18;
  margin: 0
}

.av-detail-badge {
  display: inline-block;
  background: #BE0201;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  vertical-align: middle;
  margin-left: 10px
}

.av-detail-city {
  font-size: 14px;
  color: #BE0201;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px
}

.av-detail-price {
  font-size: 26px;
  font-weight: 700;
  color: #BE0201;
  text-align: right;
  white-space: nowrap
}

.av-detail-price span {
  font-size: 16px;
  font-weight: 400
}

/* ── Cards / Sections ── */
.av-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px
}

.av-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F1A18;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #BE0201;
  text-transform: uppercase;
  letter-spacing: .3px
}

.av-section p {
  font-size: 14px;
  color: #1F1A18;
  margin: 0 0 8px;
  line-height: 1.6
}

.av-section strong {
  color: #1F1A18
}

/* ── Features grid ── */
.av-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.av-detail-grid p {
  margin: 0;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 4px;
  font-size: 13px
}

.av-detail-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 8px
}

.av-detail-icon-row img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(17%) sepia(97%) saturate(1900%) hue-rotate(359deg) brightness(110%) contrast(102%)
}

.av-detail-sep {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 16px 0
}

/* ── PEB ── */
.av-peb-detail {
  max-height: 48px;
  margin: 10px 0;
  border-radius: 2px
}

/* ── Description ── */
.av-desc-text {
  font-size: 14px;
  color: #1F1A18;
  line-height: 1.7;
  text-align: justify
}

.av-read-more {
  color: #BE0201;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  display: none
}

.av-read-more:hover {
  text-decoration: underline
}

/* ── Sidebar ── */
.av-sidebar {
  position: sticky;
  top: 20px
}

.av-agent-card {
  text-align: center
}

.av-agent-card img.av-agent-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #e8e8e8
}

.av-agent-name {
  font-size: 18px;
  font-weight: 700;
  color: #1F1A18;
  margin: 0 0 4px
}

.av-agent-sub {
  font-size: 13px;
  color: #A9A9A9;
  margin: 0 0 14px
}

.av-agent-list {
  list-style: none;
  padding: 0;
  margin: 0
}

.av-agent-list li {
  font-size: 13px;
  color: #1F1A18;
  padding: 6px 0;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px
}

.av-agent-list li span {
  color: #A9A9A9;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  min-width: 70px
}

.av-agent-list li a {
  color: #BE0201;
  text-decoration: none
}

.av-agent-list li a:hover {
  text-decoration: underline
}

/* ── Form ── */
.av-form-title {
  font-size: 15px;
  font-weight: 700;
  color: #1F1A18;
  text-align: center;
  margin: 0 0 16px
}

.av-form .av-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  color: #1F1A18;
  background: #fafafa;
  outline: none;
  transition: border .2s;
  margin-bottom: 10px;
  font-family: inherit;
  box-sizing: border-box
}

.av-form .av-input:focus {
  border-color: #BE0201
}

.av-form textarea.av-input {
  resize: vertical;
  min-height: 90px
}

.av-form .av-submit {
  width: 100%;
  padding: 12px;
  background: #BE0201;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .5px
}

.av-form .av-submit:hover {
  background: #a50200
}

.av-form .g-recaptcha {
  margin-bottom: 12px
}

/* ── Virtual tour ── */
.av-vr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #BE0201;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #BE0201;
  border-radius: 4px;
  transition: all .2s
}

.av-vr-link:hover {
  background: #BE0201;
  color: #fff
}

/* ── Responsive ── */
@media(max-width:991px) {
  .av-gallery-mosaic {
    height: 340px
  }

  .av-detail-price {
    text-align: left;
    margin-top: 10px
  }

  .av-detail-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .av-sidebar {
    position: static;
    margin-top: 10px
  }
}

@media(max-width:575px) {
  .av-gallery-mosaic {
    height: 240px
  }

  .av-gallery-side {
    display: none
  }

  .av-detail-grid {
    grid-template-columns: 1fr
  }

  .av-section {
    padding: 16px
  }

  .av-detail-title {
    font-size: 18px
  }

  .av-detail-price {
    font-size: 22px
  }
}

/* ── Lightbox/Visionneuse ── */
.av-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .98);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s
}

.av-lightbox.active {
  display: flex;
  opacity: 1
}

.av-lightbox-content {
  position: relative;
  width: 95%;
  max-width: 95vh;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center
}

.av-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px
}

.av-lightbox-prev,
.av-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center
}

.av-lightbox-prev:hover,
.av-lightbox-next:hover {
  background: #BE0201
}

.av-lightbox-prev {
  left: 16px
}

.av-lightbox-next {
  right: 16px
}

.av-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center
}

.av-lightbox-close:hover {
  background: #BE0201
}

.av-lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  z-index: 10
}

@media(max-width:768px) {
  .av-lightbox-content {
    height: 80vh
  }

  .av-lightbox-prev,
  .av-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 20px
  }
}
