/* ===== SINGLE APARTMENT PAGE ===== */

/* Background gradient */
.single-apartments-background {
  position: absolute;
  top: 9rem;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, var(--pink-color) 0%, var(--white-color) 100%);
  z-index: -1;
}

/* Header */
.single-apartment-header {
  margin-top: 4rem;
  margin-bottom: 5rem;
}

.apartments-title {
  font-size: 1.9rem !important;
  font-weight: bold;
  text-align: center !important;
}

.back-to-alloggi {
  display: flex;
  align-items: center;
  padding-left: 3rem;
  font-weight: bold;
}

/* Summary sidebar */
.summary-apartments-container {
  position: sticky;
  top: 1.5rem;
}

.summary-apartments {
  background-color: var(--pink-color-2);
  padding: 1.25rem;
  border-radius: 0 0 0 3rem;
  box-shadow: var(--shadow-md);
}

/* Rental Conditions */
.rental-conditions {
  color: var(--text-color);
}

.rental-conditions h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Text styles */
.subtitle-single-apartments {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 2.5rem 0 0.5rem 0;
}

.highlighted-single-apartments {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.p-single-apartments {
  font-size: 0.9rem;
}

.muted-single-apartments {
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Highlight price */
.hightlight-price {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Seats */
.seats {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.seat {
  width: 24px;
  height: 24px;
}

/* Distance info */
.distance {
  display: flex !important;
  justify-content: left !important;
  align-items: center;
}

.place {
  font-size: 1rem;
}

/* Box highlight */
.box-highlight-white {
  background-color: var(--white-color);
  padding: 1rem;
  height: 100%;
  border-radius: 0 0 0 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Loop apartments */
.loop-apartments {
  margin-top: 3rem;
  margin-bottom: 6rem;
}

/* Resizable columns */
.resizable-columns-wrapper {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  align-items: flex-start;
}

.col-resizable {
  transition: none;
}

.col-resizable.col-right {
  position: sticky !important;
  top: 1rem;
  align-self: flex-start;
  max-height: calc(100vh - 2rem);
}

.col-resizable.col-right #map {
  height: calc(100vh - 2rem) !important;
  min-height: 500px;
}

.resize-handle {
  width: 24px;
  cursor: col-resize;
  background: var(--pink-color-2);
  align-self: stretch;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease;
  border-radius: 12px;
  margin: 0 4px;
}

.resize-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.resize-handle:hover,
.resize-handle.active {
  background: var(--accent-color);
}

.resize-handle:hover .resize-icon,
.resize-handle.active .resize-icon {
  color: white;
}

.resize-handle-bar {
  display: none;
}

@media (max-width: 767px) {
  .resizable-columns-wrapper {
    flex-wrap: wrap;
  }

  .col-resizable.col-left,
  .col-resizable.col-right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .resize-handle {
    display: none;
  }

  .col-resizable.col-right {
    position: relative !important;
    top: auto !important;
    margin-top: 2rem;
  }
}

/* ── Profile Page ── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 2rem;
  gap: 1rem;
}

.profile-hero .profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--pink-color);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(255, 83, 36, 0.15);
}

.profile-hero h1,
.profile-hero .profile-greeting {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
}

.profile-hero .profile-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.profile-hero .profile-account-link:hover {
  color: var(--accent-color);
}

.profile-feedback {
  background: var(--pink-color-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3rem auto;
  max-width: 980px;
  text-align: center;
}

.profile-feedback h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.profile-feedback p {
  color: var(--text-color);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.profile-feedback .yc-btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--accent-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: filter var(--transition-base), transform var(--transition-base);
}

.profile-feedback .yc-btn--secondary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Request history */
.request-history {
  max-width: 980px;
  margin: 2rem auto;
  padding: 0 16px;
}

.request-history h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.request-history table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.request-history th {
  background: var(--gray-bg);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-color);
  padding: 12px 16px;
  text-align: left;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.request-history td {
  padding: 14px 16px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text-color);
}

.request-history tr:last-child td {
  border-bottom: none;
}

.request-history .status-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}

.request-history .status-badge--pending {
  background: var(--pink-color-2);
  color: var(--accent-color);
}

.request-history .status-badge--confirmed {
  background: rgba(27, 127, 77, 0.15);
  color: var(--success-color);
}

@media (max-width: 640px) {
  .profile-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .profile-hero .profile-avatar {
    width: 88px;
    height: 88px;
  }

  .profile-hero h1,
  .profile-hero .profile-greeting {
    font-size: 1.5rem;
  }

  .profile-feedback {
    padding: 2rem 1.25rem;
    margin: 2rem 1rem;
  }

  .request-history table {
    font-size: 0.8125rem;
  }

  .request-history th,
  .request-history td {
    padding: 10px 12px;
  }
}

/* ── "Consigliato da Yost" section title ── */
.yost-suggested-title {
  font-size: 1.1rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
