/* Profile page styles */

.profile-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #132d52 100%);
  padding: 56px 0 48px;
}

.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.profile-hero-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 700;
  border: 3px solid var(--gold);
}

.profile-hero-info { flex: 1; }

.profile-hero-greeting {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 6px;
}

.profile-hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.profile-hero-email {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── Tabs ── */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}

.profile-tab {
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--slate);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: inherit;
}

.profile-tab:hover { color: var(--gold); }
.profile-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* ── Section headers ── */
.profile-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
}

.profile-count-badge {
  background: var(--champagne);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate);
}

/* ── Empty states ── */
.profile-empty {
  text-align: center;
  padding: 72px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.profile-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.profile-empty h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.profile-empty p { color: var(--slate); font-size: 0.9rem; margin-bottom: 24px; }

/* ── Saved homes grid ── */
.saved-homes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.saved-home-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.saved-home-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.saved-home-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.saved-home-body { padding: 18px; }

.saved-home-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.saved-home-address {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 10px;
}

.saved-home-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 16px;
}

.saved-home-actions {
  display: flex;
  gap: 10px;
}

.saved-home-actions .btn-primary {
  flex: 1;
  justify-content: center;
  padding: 9px 14px;
  font-size: 0.82rem;
}

.btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-remove:hover { border-color: #e74c3c; color: #e74c3c; background: #fff5f5; }

/* ── Bookings list ── */
.bookings-list { display: flex; flex-direction: column; gap: 16px; }

.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.booking-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--champagne);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.booking-card.upcoming .booking-card-icon {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
}

.booking-card-body { flex: 1; min-width: 0; }

.booking-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.booking-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}

.booking-status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-upcoming {
  background: rgba(201,168,76,0.15);
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
}

.badge-past {
  background: var(--champagne);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.booking-card-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate);
}

.booking-card-meta span { display: flex; align-items: center; gap: 5px; }

.booking-duration-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--navy);
  color: var(--gold);
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Sign-in gate ── */
.profile-gate {
  text-align: center;
  padding: 100px 24px;
}

.profile-gate h2 { margin-bottom: 14px; }
.profile-gate p { color: var(--slate); margin-bottom: 28px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .profile-hero-inner { flex-direction: column; text-align: center; }
  .saved-homes-grid { grid-template-columns: 1fr; }
  .booking-card { flex-direction: column; gap: 14px; }
  .booking-duration-badge { margin-left: 0; }
  .profile-tab { padding: 12px 16px; font-size: 0.82rem; }
}
