/* ===== SAFAREJA — COMPONENTS ===== */

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 200;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== MODAL / BOTTOM SHEET ===== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 101;
  padding: 16px 20px 32px;
  transform: translateY(100%);
  transition: 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
  max-height: 80vh;
  overflow-y: auto;
}
.bottom-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 20px;
}

.sheet-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    rgba(255,255,255,0.1) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== VILLA DETAIL PAGE ===== */
.detail-hero {
  height: 280px;
  position: relative;
  overflow: hidden;
}
.detail-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero-back {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.detail-hero-fav {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.detail-body { padding: 20px; }
.detail-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.detail-location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

.detail-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.meta-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-price-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}
.detail-price-bar .price-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
}
.detail-price-bar .price-per {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}
.reserve-btn {
  flex: 1;
  background: var(--accent);
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  transition: var(--ease);
  font-family: var(--font);
}
.reserve-btn:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ===== AMENITIES ===== */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.amenity-icon { font-size: 1rem; }

/* ===== SECTION HEADING ===== */
.sub-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  margin-top: 20px;
  color: var(--text);
}

/* ===== RATING ROW ===== */
.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.rating-score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
}
.rating-stars { color: var(--accent-warm); font-size: 0.9rem; }
.rating-count { font-size: 0.78rem; color: var(--text-muted); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 16px 20px;
  font-size: 1.2rem;
  font-weight: 900;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
}
.empty-icon { font-size: 3.5rem; }
.empty-title { font-size: 1rem; font-weight: 800; color: var(--text); }
.empty-sub { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.empty-btn {
  margin-top: 8px;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font);
}

/* ===== PROFILE ===== */
.profile-header {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-light) 100%);
  padding: 40px 20px 60px;
  text-align: center;
  position: relative;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.5);
}
.profile-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
}
.profile-email {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin: -32px 20px 0;
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.profile-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--ease);
}
.profile-item:last-child { border-bottom: none; }
.profile-item:hover { background: var(--bg); }
.profile-item-icon { font-size: 1.2rem; }
.profile-item-label { flex: 1; font-size: 0.9rem; font-weight: 500; }
.profile-item-arrow { color: var(--text-light); font-size: 0.75rem; }
