/* =============================================
   Ficha del inmueble – Frontend
   ============================================= */

/* --- Hero: imagen + info lado a lado --- */

.amd-property-details {
  margin-bottom: 28px;
}

.amd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
  font-family: Poppins;
}

.amd-hero__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.amd-hero__subtitle {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 4px;
}

.amd-hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #30503F;
}

.amd-hero__location,
.amd-hero__sqm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #444;
  margin: 0 0 6px;
}

.amd-hero__location svg,
.amd-hero__sqm svg {
  flex-shrink: 0;
  color: #3a6b4c;
}

/* --- Lista de características con checks --- */

.amd-hero__features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.amd-hero__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 15px;
  color: #333;
}

.amd-hero__features li svg {
  flex-shrink: 0;
  color: #3a6b4c;
  font-size: 18px;
}

/* --- Galería de fotos (horizontal) --- */

.amd-property-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.amd-property-gallery a {
  text-decoration: none;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.amd-property-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.amd-property-gallery a:hover img {
  transform: scale(1.05);
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .amd-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .amd-hero__title {
    font-size: 1.5rem;
  }

  .amd-property-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .amd-property-gallery img {
    height: 120px;
  }
}

/* =============================================
   CTA y formulario de solicitud
   ============================================= */

.amd-rentals-cta {
  margin-top: 24px;
  text-align: center;
}

.amd-btn-request {
  display: inline-block;
  background: #3a6b4c !important;
  color: #fff !important;
  border: 1px solid #3a6b4c !important;
  padding: 14px 36px;
  font-size: 20px !important;
  font-weight: 500 !important;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.amd-btn-request:hover {
  background: #7a7a7a !important;
}

.amd-btn-request:disabled,
.amd-btn-request[disabled] {
  background: #7a7a7a !important;
  cursor: not-allowed;
}

.amd-alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.amd-alert-success {
  background: #eef9f0;
  border: 1px solid #bfe7c6;
}

.amd-occupied {
  opacity: 0.85;
}

.amd-rent-form-wrap {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.amd-rent-request-form input[type="text"],
.amd-rent-request-form input[type="email"],
.amd-rent-request-form input[type="date"],
.amd-rent-request-form textarea {
  max-width: 520px;
}

.amd-shared-room-block {
  margin-top: 34px;
  margin-bottom: 10px;
}

.amd-shared-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 54px 40px;
  align-items: start;
}

.amd-shared-room-item {
  text-align: center;
}

.amd-shared-room-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #355b49;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amd-shared-room-label {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.amd-property-extra-desc {
  margin-top: 30px;
  padding: 25px;
  background: #ececec;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #5b6672;
}

.amd-property-extra-desc p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .amd-shared-room-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 36px 24px;
  }

  .amd-shared-room-label {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .amd-shared-room-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .amd-shared-room-icon {
    width: 70px;
    height: 70px;
  }

  .amd-shared-room-label {
    font-size: 17px;
  }
}
