/**
 * @file
 * Styles for property detail modal.
 */

.re-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.re-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.re-modal {
  position: relative;
  z-index: 10001;
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.re-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.re-modal__close:hover {
  background: rgba(200, 16, 46, 0.2);
  border-color: #C8102E;
  color: #fff;
}

.re-modal__header {
  margin-bottom: 1.5rem;
}

.re-modal__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #C8102E;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.re-modal__badge.re-property-card__badge--new {
  background: #2ECC71;
}

.re-modal__badge.re-property-card__badge--exclusive {
  background: #8E44AD;
}

.re-modal__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.re-modal__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.re-modal__location svg {
  flex-shrink: 0;
  color: #C8102E;
}

.re-modal__body {
  margin-top: 1.5rem;
}

.re-modal__features {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.re-modal__feature {
  text-align: center;
  flex: 1;
}

.re-modal__feature-value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.re-modal__feature-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-modal__description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.re-modal__description p {
  margin: 0 0 1rem;
  color: inherit;
  background: transparent !important;
}

.re-modal__description * {
  color: inherit !important;
  background: transparent !important;
}

.re-modal__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 0;
  margin-bottom: 1.5rem;
}

.re-modal__price-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-modal__price-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #C8102E;
}

.re-modal__cta {
  display: flex;
  gap: 1rem;
}

.re-modal__cta .re-btn {
  flex: 1;
  text-align: center;
}

.re-modal__loading {
  text-align: center;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Catalog page styles */
.re-catalog-page {
  background: var(--re-off-white, #f5f5f5);
  min-height: 100vh;
  padding: 120px 0 60px;
}

.re-catalog-page__header {
  margin-bottom: 2rem;
}

.re-catalog-page__title {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--re-charcoal, #1A1A1A);
  margin: 0 0 0.5rem;
}

.re-catalog-page__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--re-gray, #666);
}

.re-catalog-page__filters {
  margin-bottom: 2rem;
}

.re-catalog-page__empty {
  text-align: center;
  padding: 4rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: var(--re-gray, #666);
}

.re-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.re-filter-bar__group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.re-filter-bar__field {
  min-width: 180px;
}

.re-filter-bar__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-gray, #666);
  margin-bottom: 0.5rem;
}

.re-filter-bar__select {
  width: 100%;
  padding: 0.625rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--re-charcoal, #1A1A1A);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.re-filter-bar__select:focus {
  outline: none;
  border-color: #C8102E;
}

/* Catalog card image wrapper */
.re-property-card__image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #2a2a2a;
}

.re-property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.re-property-card--catalog:hover .re-property-card__image {
  transform: scale(1.06);
}

.re-property-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: rgba(255, 255, 255, 0.15);
}

.re-property-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.re-property-card--catalog:hover .re-property-card__overlay {
  opacity: 1;
}

/* Catalog card badge */
.re-property-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background-color: #C8102E;
  border-radius: 0;
  z-index: 2;
}

.re-property-card__badge--new {
  background-color: #2ECC71;
}

.re-property-card__badge--exclusive {
  background-color: #8E44AD;
}
