/* ============================================================
   HospitalHub — Main Stylesheet
   ============================================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --primary:      #0A4DA3;
  --primary-dark: #083d83;
  --primary-light:#e8f0fd;
  --secondary:    #16C47F;
  --accent:       #F59E0B;
  --danger:       #EF4444;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --border:       #E2E8F0;
  --bg:           #FFFFFF;
  --bg-soft:      #F8FAFF;
  --bg-blue:      #EFF4FF;
  --header-h:     72px;
  --radius:       12px;
  --shadow:       0 4px 20px rgba(10,77,163,.08);
  --shadow-lg:    0 16px 48px rgba(10,77,163,.14);
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-head:    'Playfair Display', Georgia, serif;
  --transition:   all .25s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
input,select,textarea,button { font-family: inherit; }
.min-w-0 { min-width: 0; }

/* ============================================================
   Page Loader
   ============================================================ */
.page-loader {
  position: fixed; inset: 0; background: #fff; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s, visibility .4s;
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-bar {
  width: 40px; height: 3px; background: #e2e8f0; border-radius: 4px; margin: 12px auto 0; overflow: hidden;
}
.loader-bar::after {
  content: ''; display: block; height: 100%; width: 40%;
  background: var(--primary); border-radius: 4px;
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(10,77,163,.10); }
.navbar-brand {
  font-size: 1.35rem; font-weight: 800; color: var(--text) !important;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon-wrap { display: flex; align-items: center; justify-content: center; }
.logo-icon-wrap--sm svg { width: 22px; height: 22px; }

.nav-link {
  color: var(--text-muted) !important; font-weight: 500; font-size: .9rem;
  padding: 6px 12px !important; border-radius: 8px;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }

/* Buttons */
.btn-primary-hh {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 24px; border-radius: 8px; font-weight: 600;
  transition: var(--transition);
}
.btn-primary-hh:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,77,163,.3); }

.btn-outline-primary-hh {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 24px; border-radius: 8px; font-weight: 600; background: transparent;
  transition: var(--transition);
}
.btn-outline-primary-hh:hover { background: var(--primary); color: #fff; }

.btn-ghost-primary { color: var(--primary); background: transparent; border: none; font-weight: 600; padding: 8px 16px; border-radius: 8px; }
.btn-ghost-primary:hover { background: var(--primary-light); color: var(--primary); }
.btn-ghost-secondary { color: var(--text-muted); background: transparent; border: none; font-weight: 500; padding: 8px 16px; border-radius: 8px; }
.btn-ghost-secondary:hover { background: #f1f5f9; }

.btn-xs { padding: 3px 8px; font-size: .75rem; border-radius: 6px; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #0a1f44 0%, #0A4DA3 60%, #16548e 100%);
  position: relative; overflow: hidden; min-height: 600px;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; padding: 80px 0 100px; }
.min-vh-hero { min-height: 500px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: #fff; border-radius: 50px; padding: 6px 16px; font-size: .85rem;
  border: 1px solid rgba(255,255,255,.2); margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff; margin-bottom: 20px; line-height: 1.2;
}
.text-gradient {
  background: linear-gradient(135deg, #16C47F, #4ADE80);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; }

/* Search Box */
.search-mega-box {
  display: flex; align-items: center; background: #fff;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.search-field { display: flex; align-items: center; padding: 4px 16px; flex-shrink: 0; }
.search-field-icon { color: var(--primary); font-size: 1rem; margin-right: 8px; flex-shrink: 0; }
.search-select, .search-input {
  border: none; outline: none; font-family: var(--font-body);
  font-size: .9rem; color: var(--text); background: transparent; padding: 12px 0; min-width: 0;
}
.search-select { cursor: pointer; }
.search-divider { width: 1px; background: var(--border); height: 36px; flex-shrink: 0; }
.search-btn {
  background: var(--primary); color: #fff; border: none;
  padding: 16px 28px; font-weight: 700; font-size: .95rem;
  cursor: pointer; flex-shrink: 0; transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }
.hero-features { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-feature {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85); font-size: .85rem;
}

/* Hero image */
.hero-img-wrap { position: relative; }
.hero-img { border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); width: 100%; height: 480px; object-fit: cover; }
.hero-float-badge {
  position: absolute; background: #fff; border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: 12px;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-float-badge--top { top: 24px; left: -40px; }
.hero-float-badge--bottom { bottom: 40px; right: -30px; animation-delay: 1.5s; }
.hero-float-badge strong { font-size: 1.1rem; display: block; line-height: 1; }
.hero-float-badge span { font-size: .75rem; color: var(--text-muted); }
.float-badge-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar { background: #fff; box-shadow: 0 4px 24px rgba(10,77,163,.07); }
.stats-row { flex-wrap: nowrap; overflow-x: auto; }
.stat-item { padding: 24px 16px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); display: block; }
.stat-item span { font-size: .85rem; color: var(--text-muted); display: block; }

/* ============================================================
   Sections
   ============================================================ */
.section-pad { padding: 80px 0; }
.bg-soft-blue { background: var(--bg-blue); }
.section-header { max-width: 600px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   Category Cards
   ============================================================ */
.cat-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); border: 1px solid transparent;
  transition: var(--transition); color: var(--text);
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.cat-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.cat-count { font-size: .78rem; color: var(--text-muted); }
.cat-arrow { margin-left: auto; font-size: 1rem; color: var(--text-muted); flex-shrink: 0; }
.cat-card:hover .cat-arrow { color: var(--primary); transform: translateX(4px); }

/* ============================================================
   City Cards
   ============================================================ */
.city-card { display: block; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.city-img-wrap { height: 140px; overflow: hidden; }
.city-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.city-card:hover .city-img-wrap img { transform: scale(1.08); }
.city-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 30px 14px 12px; color: #fff;
}
.city-overlay h4 { font-size: .95rem; margin-bottom: 2px; font-weight: 700; }
.city-overlay span { font-size: .75rem; opacity: .85; }

/* ============================================================
   Hospital Cards
   ============================================================ */
.hosp-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition); display: flex; flex-direction: column;
}
.hosp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.hosp-card-img { height: 200px; overflow: hidden; position: relative; background: var(--bg-soft); }
.hosp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hosp-card:hover .hosp-card-img img { transform: scale(1.05); }
.hosp-card-img-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--border); }
.hosp-badge { position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.hosp-badge--verified { background: #16C47F; color: #fff; }
.hosp-badge--featured { background: var(--accent); color: #fff; }
.hosp-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.hosp-card-meta { display: flex; align-items: center; margin-bottom: 10px; }
.hosp-logo-mini { width: 38px; height: 38px; border-radius: 8px; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hosp-logo-mini img { width: 100%; height: 100%; object-fit: cover; }
.hosp-rating { display: flex; align-items: center; gap: 4px; font-size: .8rem; }
.stars-text { color: var(--accent); }
.rating-num { font-weight: 700; color: var(--text); }
.review-count { color: var(--text-muted); }
.hosp-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.hosp-card-name a { color: var(--text); }
.hosp-card-name a:hover { color: var(--primary); }
.hosp-card-city { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.hosp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hosp-tag { background: var(--primary-light); color: var(--primary); font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; border: 1px solid rgba(10,77,163,.1); transition: var(--transition); }
.hosp-tag:hover { background: var(--primary); color: #fff; }
.hosp-tag--lg { font-size: .82rem; padding: 5px 14px; }
.hosp-card-desc { font-size: .82rem; color: var(--text-muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hosp-card-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-view-detail { background: var(--primary-light); color: var(--primary); font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: 8px; flex: 1; text-align: center; transition: var(--transition); }
.btn-view-detail:hover { background: var(--primary); color: #fff; }
.btn-whatsapp-card { background: #25D366; color: #fff; font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; gap: 4px; }
.btn-whatsapp-card:hover { background: #1da851; color: #fff; }

/* Horizontal card */
.hosp-card-h {
  display: flex; gap: 16px; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: var(--transition);
}
.hosp-card-h:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.hosp-card-h-img { width: 140px; flex-shrink: 0; }
.hosp-card-h-img img { width: 100%; height: 100%; object-fit: cover; }
.hosp-card-h-img-placeholder { height: 100%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--border); }
.hosp-card-h-body { flex: 1; padding: 16px; min-width: 0; }

/* ============================================================
   Packages
   ============================================================ */
.pkg-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  position: relative; text-align: center; transition: var(--transition);
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.pkg-card--featured { border-color: var(--secondary); }
.pkg-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--secondary); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 50px;
}
.pkg-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 14px; }
.pkg-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pkg-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.pkg-features { list-style: none; text-align: left; font-size: .85rem; margin-bottom: 18px; }
.pkg-features li { padding: 4px 0; }
.pkg-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pkg-price strong { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.pkg-orig { font-size: .85rem; color: var(--text-muted); display: block; }
.btn-pkg { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 8px; font-size: .85rem; font-weight: 600; }
.btn-pkg:hover { background: var(--primary-dark); color: #fff; }

/* ============================================================
   Articles
   ============================================================ */
.article-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--bg-soft); }
.article-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-img-wrap img { transform: scale(1.05); }
.article-img-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--border); }
.article-category { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.article-body { padding: 20px; }
.article-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.article-body h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.article-body h5 a { color: var(--text); }
.article-body h5 a:hover { color: var(--primary); }
.article-body p { font-size: .85rem; color: var(--text-muted); }
.article-read-more { font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.article-read-more:hover { color: var(--primary-dark); }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #083d83 100%); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta-content { flex: 1; color: #fff; min-width: 280px; }
.cta-tag { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; }
.cta-content h2 { font-family: var(--font-head); font-size: clamp(1.4rem,2.5vw,2rem); margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.btn-cta-primary { background: var(--secondary); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; transition: var(--transition); }
.btn-cta-primary:hover { background: #14b372; color: #fff; transform: translateY(-2px); }
.btn-cta-ghost { border: 2px solid rgba(255,255,255,.4); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 600; }
.btn-cta-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.cta-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.cta-stat strong { font-size: 1.8rem; font-weight: 800; color: #fff; display: block; }
.cta-stat span { font-size: .8rem; color: rgba(255,255,255,.75); }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter-section { background: var(--bg-soft); padding: 40px 0; border-top: 1px solid var(--border); }
.newsletter-section h4 { font-weight: 700; font-size: 1.2rem; }
.newsletter-section p { color: var(--text-muted); }
.newsletter-form { display: flex; gap: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(10,77,163,.1); max-width: 460px; margin-left: auto; }
.newsletter-form input { flex: 1; border: 1px solid var(--border); padding: 12px 16px; outline: none; font-family: var(--font-body); }
.newsletter-form button { background: var(--primary); color: #fff; border: none; padding: 12px 24px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0a1120; color: rgba(255,255,255,.75); }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-about { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.social-btn--lg { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.social-btn--lg:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-heading { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-list { list-style: none; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .875rem; color: rgba(255,255,255,.65); }
.footer-contact-list i { color: var(--secondary); margin-top: 2px; flex-shrink: 0; }
.btn-whatsapp-footer { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 9px 20px; border-radius: 8px; font-weight: 600; font-size: .875rem; transition: var(--transition); }
.btn-whatsapp-footer:hover { background: #1da851; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.footer-legal-links a { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-legal-links a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   WhatsApp Float & Back to Top
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 24px; z-index: 999;
  width: 52px; height: 52px; background: #25D366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 6px 20px rgba(37,211,102,.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 44px; height: 44px; background: var(--primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  box-shadow: var(--shadow); transition: var(--transition);
  opacity: 0; visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   Breadcrumb Bar
   ============================================================ */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb { margin-bottom: 0; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ============================================================
   Listing Page
   ============================================================ */
.listing-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 32px 0; }
.listing-header h1 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 4px; }
.listing-header p { color: rgba(255,255,255,.75); margin: 0; }
.filter-box { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.filter-heading { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.filter-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 6px; }

/* ============================================================
   Hospital Detail
   ============================================================ */
.hosp-detail-banner { height: 360px; position: relative; overflow: hidden; background: #1a2940; }
.hosp-detail-banner img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.hosp-banner-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: rgba(255,255,255,.15); }
.hosp-banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.hosp-detail-logo { width: 80px; height: 80px; border-radius: 14px; background: #fff; border: 3px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.hosp-detail-logo img { width: 100%; height: 100%; object-fit: contain; }
.hosp-detail-name { font-family: var(--font-head); font-size: 1.8rem; color: #fff; }
.hosp-detail-tabs .nav-link { font-weight: 600; color: var(--text-muted); border-radius: 0; }
.hosp-detail-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.hosp-detail-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.hosp-detail-section h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.hosp-description { font-size: .95rem; line-height: 1.8; color: var(--text); }
.info-chip { background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.info-chip i { font-size: 1.3rem; flex-shrink: 0; }
.info-chip strong { font-size: 1rem; font-weight: 700; display: block; }
.info-chip span { font-size: .78rem; color: var(--text-muted); }
.hours-table { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.hours-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row--today { background: var(--primary-light); font-weight: 600; }
.hours-day { font-weight: 600; min-width: 90px; }
.hours-time { color: var(--text-muted); }
.gallery-grid .gallery-thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }

/* Reviews */
.review-card { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.review-write-form { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.star-rating-input { display: flex; align-items: center; gap: 4px; direction: rtl; width: max-content; }
.star-pick { font-size: 1.4rem; cursor: pointer; color: #D1D5DB; transition: var(--transition); }
.star-pick:hover, .star-pick:hover ~ .star-pick { color: var(--accent); }

/* Sidebar card */
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.sidebar-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info-item { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text); transition: var(--transition); }
.contact-info-item:hover { color: var(--primary); }
.contact-info-item i { font-size: 1rem; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-page { padding: 80px 0; min-height: 80vh; display: flex; align-items: center; background: var(--bg-soft); }
.auth-card { background: #fff; border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-lg); }

/* ============================================================
   Toast Alerts
   ============================================================ */
.toast-alert { max-width: 360px; margin-left: auto; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link { color: var(--primary); border-color: var(--border); border-radius: 8px; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ============================================================
   User Panel
   ============================================================ */
.user-panel-body { background: #f1f5f9; min-height: 100vh; font-family: var(--font-body); }
.user-sidebar {
  width: 240px; min-height: 100vh; background: #fff; border-right: 1px solid var(--border);
  position: sticky; top: 0; flex-shrink: 0; height: 100vh; overflow-y: auto;
}
.user-sidebar-brand { padding: 20px 20px 12px; }
.user-sidebar-brand a { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); font-size: 1rem; }
.user-sidebar-user { padding: 12px 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.user-avatar-mini { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-sidebar-nav { padding: 16px 12px; }
.user-nav-link { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .875rem; font-weight: 500; padding: 9px 12px; border-radius: 8px; margin-bottom: 2px; }
.user-nav-link:hover { background: var(--bg-soft); color: var(--text); }
.user-nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.user-nav-link i { font-size: 1rem; }
.user-main { overflow: hidden; }
.user-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.user-content { min-height: calc(100vh - 70px); }

/* Stat cards */
.stat-card {
  border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 16px;
  color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.stat-card--blue   { background: linear-gradient(135deg, #0A4DA3, #1565C0); }
.stat-card--green  { background: linear-gradient(135deg, #16C47F, #059669); }
.stat-card--purple { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.stat-card--orange { background: linear-gradient(135deg, #F59E0B, #D97706); }
.stat-card--teal   { background: linear-gradient(135deg, #0D9488, #0F766E); }
.stat-card--red    { background: linear-gradient(135deg, #EF4444, #DC2626); }
.stat-card--indigo { background: linear-gradient(135deg, #4F46E5, #4338CA); }
.stat-card--cyan   { background: linear-gradient(135deg, #0891B2, #0E7490); }
.stat-card-icon { font-size: 1.8rem; opacity: .85; flex-shrink: 0; }
.stat-card-body span { font-size: .8rem; opacity: .85; display: block; }
.stat-card-body strong { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1; }

/* ============================================================
   CMS Content
   ============================================================ */
.cms-content { font-size: 1rem; line-height: 1.8; }
.cms-content h2,h3,h4 { margin-top: 24px; margin-bottom: 12px; }
.cms-content p { margin-bottom: 16px; }

/* ============================================================
   Scroll animation
   ============================================================ */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .5s ease var(--delay, 0s), transform .5s ease var(--delay, 0s); }
[data-animate="fade-left"] { transform: translateX(24px); }
[data-animate].animated { opacity: 1; transform: translate(0,0); }

/* ============================================================
   Responsive
   ============================================================ */
@media(max-width:991px) {
  .search-mega-box { flex-direction: column; border-radius: 12px; }
  .search-divider { width: 100%; height: 1px; }
  .search-field { width: 100%; }
  .search-btn { width: 100%; border-radius: 0; }
  .user-sidebar { display: none; }
  .hosp-card-h-img { width: 100px; }
}
@media(max-width:767px) {
  .hero-inner { padding: 50px 0 80px; }
  .hero-title { font-size: 1.8rem; }
  .newsletter-form { flex-direction: column; border-radius: 12px; }
  .newsletter-form input, .newsletter-form button { border-radius: 8px; }
  .cta-inner { flex-direction: column; gap: 32px; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
}
@media(max-width:575px) {
  .auth-card { padding: 28px 20px; }
  .hosp-card-h { flex-direction: column; }
  .hosp-card-h-img { width: 100%; height: 160px; }
}
