/* ── Property Detail page ── */

.detail-root {
  margin-top: 76px;
  padding: 2rem 0 4rem;
}

.detail-root .container { max-width: 1200px; }

/* Gallery nav arrows */
.gallery__hero {
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}

.gallery-nav:hover { background: var(--color-white); transform: translateY(-50%) scale(1.05); }
.gallery-nav--prev { left: 0.75rem; }
.gallery-nav--next { right: 0.75rem; }

/* Property header (title + badge row) */
.prop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.75rem;
}

.prop-header__left { flex: 1; }

.prop-header__ref {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  display: block;
  margin-bottom: 0.4rem;
}

.prop-header__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.prop-header__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #666;
}

.prop-header__location svg { color: var(--color-gold); }

.prop-header__fav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all var(--transition);
}

.prop-header__fav:hover,
.prop-header__fav.is-fav {
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Description section */
.prop-description {
  margin: 1.75rem 0;
}

.prop-description h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.prop-description p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-charcoal);
}

/* Features section */
.prop-features { margin: 1.75rem 0; }
.prop-features h2 { font-size: 1rem; margin-bottom: 0.85rem; }

/* Loading state */
.detail-loading {
  padding: 6rem 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 360° tour loading overlay (hidden once the iframe fires its load event) */
.tour-section__frame { position: relative; }

.tour-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: var(--color-light-gray);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  transition: opacity 0.45s ease;
}

.tour-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.tour-loading__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--color-gray-mid);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.similar-section { margin-top: 0; }

/* Agent card inside contact sidebar */
.contact-sidebar__agent {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-mid);
  margin-bottom: 0.75rem;
}

.contact-sidebar__agent-avatar-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.contact-sidebar__agent-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.contact-sidebar__agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

.contact-sidebar__agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-sidebar__agent-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-sidebar__agent-title {
  font-size: 0.78rem;
  color: #888;
}

.contact-sidebar__agent-langs {
  font-size: 0.7rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 0.1rem;
}
