/* -------------------------------------- */
/*  DARK MODE THEME USING CSS VARIABLES   */
/* -------------------------------------- */

:root {
  --bg-color: #f8f9fa;
  --text-color: #222;
  --card-bg: #ffffff;
  --border-color: #e3e3e3;
  --muted-text: #666;
}

.dark-mode {
  --bg-color: #0d1117;
  --text-color: #e6edf3;
  --card-bg: #161b22;
  --border-color: #2d333b;
  --muted-text: #9ba1a6;
}

/* Global */
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: 0.3s ease background, 0.3s ease color;
}

/* Card styling */
.restaurant-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  transition: 0.3s ease background, 0.3s ease border-color;
}

/* Restaurant image */
.restaurant-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* Text colors inside card */
.restaurant-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
}

.restaurant-cuisine {
  font-size: 14px;
  color: var(--muted-text);
}

.restaurant-meta {
  font-size: 14px;
  color: var(--muted-text);
}

/* Buttons */
.btn-primary {
  background: #2f81f7;
  border: none;
}

.dark-mode .btn-primary {
  background: #388bfd;
}

/* Details & Navigate buttons */
.btn-outline-light {
  border-color: var(--text-color);
  color: var(--text-color);
}

.dark-mode .btn-outline-light:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

/* Bootstrap card fixes */
.card {
  background: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--text-color) !important;
}

.dark-mode .modal-content {
  background: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}
/*FAB*/
.fab-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 70px; /* ⬆ above FAB */
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.fab-wrapper.open .fab-menu {
  opacity: 1;
  pointer-events: auto;
}

.fab-item {
  padding: 10px 15px;
  border-radius: 40px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
  background: white;
}

.google-card {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.google-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;      /* Perfect Google image ratio */
  object-fit: cover;
}

.google-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.google-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.google-card-address {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.google-card-distance {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.google-card-actions {
  margin-top: auto;
}
/* Card Container */
.premium-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  height: 100%;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.1);
}

/* Image Area */
.premium-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.premium-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.premium-card:hover .premium-img {
  transform: scale(1.1);
}

/* Gradient Overlay */
.premium-gradient {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

/* Glassmorphic Badge */
.premium-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: white;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Body */
.premium-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.premium-title {
  font-weight: 700;
  font-size: 1.22rem;
  color: #111;
  margin-bottom: 8px;
}

.premium-address {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 8px;
}

.premium-distance {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 18px;
}

.premium-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* Icon tweaks */
.bi {
  font-size: 1rem;
}

/* Skeleton Container */
.clinic-skeleton {
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
}

/* Shimmer base color */
.skeleton-img,
.skeleton-line,
.skeleton-btn {
  background: #e3e3e3;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Image skeleton */
.skeleton-img {
  height: 180px;
  width: 100%;
}

/* Lines */
.skeleton-line {
  height: 14px;
}

/* Buttons */
.skeleton-btn {
  height: 40px;
  border-radius: 12px;
}

/* Shimmer animation */
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { left: -150px; }
  100% { left: 100%; }
}

