/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes taglineShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(123,95,175,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(123,95,175,0.8); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cursorBlink {
  0%, 100% { border-right-color: rgba(168,216,255,0.8); }
  50%       { border-right-color: transparent; }
}
@keyframes stripSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

:root {
      --primary: #274a7d;
      --primary-dark: #1e3a66;
      --primary-gradient: linear-gradient(135deg, #274a7d 0%, #1e3a66 60%, #162d52 100%);
      --secondary: #25d366;
      --bg-body: #f8fafc;
      --bg-card: #ffffff;
      --bg-input: #f1f5f9;
      --text-main: #1e293b;
      --text-muted: #64748b;
      --border-color: #e2e8f0;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 25px -5px rgba(39, 74, 125, 0.1), 0 8px 10px -6px rgba(39, 74, 125, 0.1);
      --modal-overlay: rgba(15, 23, 42, 0.6);
      --card-border: transparent;
      --badge-bg: #f1f5f9;
      --badge-text: #475569;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg-body); color: var(--text-main); -webkit-font-smoothing: antialiased; }

    /* ── HEADER ── */
    header {
      background: var(--primary-gradient);
      color: white;
      padding: 20px 48px 60px;
      display: flex;
      align-items: center;
      gap: 32px;
      position: relative;
      /* Using clip-path for a professional, sharp angle without rendering gaps */
      clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .logo-img {
      height: 160px;
      width: auto;
      object-fit: contain;
      flex-shrink: 0;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    }
    .header-text { flex: 1; z-index: 1; margin-bottom: 10px; }
    header h1 {
      font-size: 28px;
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.1;
      animation: fadeUp 0.6s ease-out both;
    }
    header .tagline {
      font-size: 16px;
      margin-top: 12px;
      font-weight: 500;
      letter-spacing: 0.01em;
      color: rgba(255, 255, 255, 0.9);
      display: inline-block;
      min-height: 1.5em;
      border-right: 2px solid rgba(255,255,255,0.8);
      animation: cursorBlink 0.75s step-end infinite;
    }
    header .tagline.typed-done {
      border-right-color: transparent;
      animation: taglineShimmer 4s ease-in-out infinite;
      background: linear-gradient(90deg, #fff 0%, #a8d8ff 50%, #fff 100%);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* ── TOP SOCIAL BAR ── */
    .top-social-bar {
      background: #162d52;
      padding: 0 48px;
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .top-bar-inner {
      display: flex; align-items: center; justify-content: space-between;
      height: 38px; max-width: 1400px; margin: 0 auto;
    }
    .top-bar-phone {
      display: flex; align-items: center; gap: 6px;
      color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 500;
    }
    .top-bar-socials { display: flex; align-items: center; gap: 2px; }
    .top-social-link {
      display: inline-flex; align-items: center; gap: 6px;
      color: rgba(255,255,255,0.55); text-decoration: none;
      font-size: 12px; font-weight: 500; padding: 5px 11px;
      border-radius: 6px; transition: all 0.18s ease;
    }
    .top-social-link:hover { background: rgba(255,255,255,0.1); }
    .tsoc-fb:hover { color: #5b9cf6; }
    .tsoc-wa:hover { color: #4cd07d; }
    .tsoc-vb:hover { color: #c4a7f0; }
    .top-bar-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.2); margin: 0 6px; }

    /* Lang dropdown inside top bar */
    .lang-dropdown { position: relative; display: flex; align-items: center; }
    .lang-current {
      display: flex; align-items: center; gap: 6px;
      padding: 5px 11px; border-radius: 6px; cursor: pointer;
      background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
      border: 1px solid rgba(255,255,255,0.25);
      font-size: 12px; font-weight: 700; white-space: nowrap;
      transition: all 0.2s;
    }
    .lang-current:hover { background: rgba(255,255,255,0.2); color: white; }
    .lang-menu {
      display: none; position: absolute; top: calc(100% + 6px); right: 0;
      background: white; border-radius: 10px; overflow: hidden;
      box-shadow: 0 8px 24px rgba(0,0,0,0.18); min-width: 90px; z-index: 200;
    }
    .lang-menu.open { display: block; }
    .lang-option {
      display: block; width: 100%; padding: 10px 16px;
      background: none; border: none; cursor: pointer;
      font-size: 13px; font-weight: 600; color: var(--text-main);
      text-align: left; transition: background 0.15s;
    }
    .lang-option:hover { background: #f1f5f9; }


    /* ── VIBER FLOATING WIDGET (bottom-right) ── */
    .contact-strip {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 999;
      animation: stripSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .contact-btn {
      display: flex; align-items: center; gap: 12px;
      padding: 13px 20px 13px 16px; border-radius: 50px;
      text-decoration: none; color: white; background: #7b5faf;
      box-shadow: 0 6px 24px rgba(123,95,175,0.5);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      animation: pulseGlow 2.5s infinite;
    }
    .contact-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 32px rgba(123,95,175,0.65); }
    .contact-btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
    .contact-btn-label .app-name { font-size: 10px; font-weight: 600; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.07em; }
    .contact-btn-label .phone-num { font-size: 14px; font-weight: 700; }

    /* ── FOOTER SOCIAL BUTTONS ── */
    .footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    .fsoc-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 10px 0; border-radius: 8px; text-decoration: none;
      font-size: 13px; font-weight: 600; color: #fff; transition: all 0.2s ease;
      width: 130px;
    }
    .fsoc-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
    .fsoc-fb  { background: #1877f2; order: 1; }
    .fsoc-ig  { background: #c13584; order: 2; }
    .fsoc-wa  { background: #25d366; order: 3; }
    .fsoc-vb  { background: #7b5faf; order: 4; }
    .fsoc-disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(40%); }
    .fsoc-disabled:hover { transform: none; filter: grayscale(40%); box-shadow: none; }

    /* ── SEARCH SECTION (Glassmorphism) ── */
    .search-section {
      animation: fadeUp 0.5s ease-out 0.2s both;
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 24px 48px;
      border: 1px solid rgba(255,255,255,0.5);
      border-radius: 24px;
      box-shadow: var(--shadow-lg);
      margin: -50px 48px 0;
      position: relative;
      z-index: 10;
    }
    .search-row {
      display: flex;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap;
    }
    .search-input-wrapper {
      position: relative;
      flex: 2;
      min-width: 200px;
      display: flex;
      align-items: center;
    }
    .search-input-wrapper svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
    }
    .search-input-wrapper input {
      flex: 1;
      padding-right: 100px !important;
    }
    .btn-search {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 7px 16px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.18s ease;
      white-space: nowrap;
    }
    .btn-search:hover { background: var(--primary-dark); }
    .search-section input, .search-section select {
      padding: 12px 16px;
      padding-left: 44px;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      font-size: 15px;
      background: var(--bg-card);
      transition: all 0.2s;
      width: 100%;
      color: var(--text-main);
    }
    .search-section select { padding-left: 16px; flex: 1; min-width: 200px; }
    .search-section input:focus, .search-section select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(39,74,125,0.1);
    }
    /* ── DID YOU MEAN ── */
    .did-you-mean-row {
      display: flex; flex-wrap: wrap; align-items: center;
      justify-content: center; gap: 12px; margin-bottom: 8px;
    }
    .dym-label {
      font-size: 17px; color: var(--text-muted); font-weight: 600;
    }
    .dym-chip {
      background: #eef3ff; color: #1877f2; border: 2px solid #c7d9ff;
      border-radius: 24px; padding: 10px 22px; font-size: 16px; font-weight: 700;
      cursor: pointer; transition: all 0.18s ease;
    }
    .dym-chip:hover { background: #1877f2; color: #fff; border-color: #1877f2; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(24,119,242,0.3); }

    .btn-clear {
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      padding: 12px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    /* ── RESULTS BAR ── */
    .results-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 32px 48px 8px;
    }
    .results-count { font-size: 14px; color: var(--text-muted); font-weight: 500; }

    /* ── DOCTOR GRID & CARDS ── */
    .doctors-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 24px;
      padding: 24px 48px 120px;
    }
    .doctor-card {
      background: var(--bg-card);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: 1px solid transparent; /* Prepared for hover border */
      display: flex;
      flex-direction: column;
      cursor: pointer;
    }
    .doctor-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 32px rgba(39, 74, 125, 0.18);
      border-color: var(--primary);
    }
    .doctor-photo-wrapper {
      position: relative;
      height: 260px;
      overflow: hidden;
      background: #f1f5f9;
    }
    .doctor-photo {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: top;
      transition: transform 0.6s ease;
    }
    .doctor-card:hover .doctor-photo { transform: scale(1.08); }
    .photo-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, transparent 60%, rgba(39, 74, 125, 0.2));
      opacity: 0; transition: opacity 0.3s;
    }
    .doctor-card:hover .photo-overlay { opacity: 1; }
    
    .doctor-info {
      padding: 13px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      flex-grow: 1;
    }
    .doctor-info h3 { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; line-height: 1.3; }
    .dept-badge { background: #eff6ff; color: var(--primary); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 12px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
    .specialty { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }
    
    .btn-book {
      width: 100%;
      padding: 12px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 12px;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-book:hover { background: var(--primary-dark); transform: scale(1.02); }

    /* ── MODAL ── */
    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 30, 55, 0.55); z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
    .modal-overlay.active { display: flex; }
    .modal-overlay.active .modal {
      animation: modalIn 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
    .modal {
      background: #ffffff;
      border-radius: 18px;
      padding: 0;
      width: 100%;
      max-width: 440px;
      position: relative;
      max-height: 92vh;
      overflow-y: auto;
      box-shadow: 0 24px 70px rgba(0,0,0,0.3);
      border: 1px solid #dde3ec;
    }
    .modal-top {
      background: linear-gradient(135deg, #274a7d 0%, #1e3a66 60%, #162d52 100%);
      padding: 24px 28px 20px;
      border-radius: 18px 18px 0 0;
      color: white;
    }
    .modal-top h2 { font-size: 20px; font-weight: 800; }
    .modal-top .doctor-name-modal {
      font-size: 18px;
      font-weight: 700;
      opacity: 1;
      margin-top: 8px;
      line-height: 1.3;
    }
    .modal-body { padding: 24px 28px 28px; }
    .modal-header { display: flex; align-items: center; justify-content: space-between; }
    .modal label { display: block; font-size: 11px; font-weight: 700; color: #888888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; margin-top: 14px; }
    .modal input, .modal select { width: 100%; padding: 11px 13px; border: 1.5px solid #dde3ec; border-radius: 9px; font-size: 14px; transition: all 0.2s; background: #f8fafc; color: #222222; }
    .modal input:focus, .modal select:focus { outline: none; border-color: #274a7d; background: #ffffff; box-shadow: 0 0 0 3px rgba(39, 74, 125, 0.1); }
    .modal-buttons { display: flex; gap: 10px; margin-top: 20px; }
    .modal-buttons button { flex: 1; padding: 13px; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700; transition: all 0.2s; }
    .btn-confirm { background: #274a7d; color: white; }
    .btn-confirm:hover { background: #1e3a66; }
    .btn-cancel { background: #f8fafc; color: #222222; border: 1.5px solid #dde3ec; }
    .btn-cancel:hover { background: #dde3ec; }
    .close-modal { background: rgba(255,255,255,0.3); border: 2px solid rgba(255,255,255,0.7); font-size: 16px; font-weight: 700; cursor: pointer; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
    .close-modal:hover { background: rgba(255,255,255,0.5); border-color: white; }
    .no-online-notice { display: none; flex-direction: row; align-items: flex-start; gap: 12px; background: #fff8e1; border: 1px solid #f0c040; border-radius: 12px; padding: 16px; margin-bottom: 4px; color: #7a5c00; font-size: 14px; line-height: 1.6; }
    .no-online-notice svg { flex-shrink: 0; margin-top: 2px; color: #d4a017; }
    .no-online-notice p { margin: 0; }
    .no-online-notice strong { color: #274a7d; }
    .cal-no-dates-note { background: #f0f4ff; border-top: 1px solid #e0e8ff; padding: 10px 14px; font-size: 12.5px; color: #4a5f8a; line-height: 1.5; text-align: center; border-radius: 0 0 12px 12px; }
    .time-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
    .time-slot-btn { padding: 7px 14px; border: 1.5px solid #c8d6ec; border-radius: 8px; background: #f5f8ff; color: #274a7d; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
    .time-slot-btn:hover { background: #e0eaff; border-color: #274a7d; }
    .time-slot-btn.selected { background: #274a7d; color: white; border-color: #274a7d; }
    .success-msg { display: none; background: #e8f5ee; border: 1px solid #9fd4b4; color: #1e6b42; border-radius: 10px; padding: 14px; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 600; }
    .no-results { grid-column: 1/-1; text-align: center; padding: 70px; color: #888888; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
    .field-error { border-color: #e53535 !important; background: #fff5f5 !important; box-shadow: 0 0 0 3px rgba(229,53,53,0.13) !important; }

    /* ── CUSTOM CALENDAR ── */
    .cal-trigger { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1.5px solid #dde3ec; border-radius: 10px; background: #f8fafc; cursor: pointer; font-size: 16px; color: #222222; transition: all 0.2s; user-select: none; font-weight: 600; }
    .cal-trigger:hover { border-color: #274a7d; background: #ffffff; }
    .cal-popup, #calPopup { display: none; position: fixed; background: #ffffff; border-radius: 14px; box-shadow: 0 8px 36px rgba(0,0,0,0.3); z-index: 9999; padding: 16px; border: 1px solid #dde3ec; }
    .cal-popup.open, #calPopup.open { display: block; }
    .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .cal-head span { font-weight: 700; font-size: 14px; color: #222222; }
    .cal-nav { background: none; border: none; font-size: 24px; cursor: pointer; color: #274a7d; padding: 5px 10px; border-radius: 6px; line-height: 1; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
    .cal-nav:hover { background: #f8fafc; }
    .cal-nav:disabled { opacity: 0.25; cursor: default; }
    .cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font-size: 10px; font-weight: 700; color: #888888; margin-bottom: 4px; letter-spacing: 0.3px; }
    .cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
    .cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 500; color: #888888; cursor: default; transition: all 0.15s; }
    .cal-day.in-month { color: #222222; opacity: 0.4; }
    .cal-day.available.in-month { opacity: 1; }
    .cal-day.today { outline: 2px solid #274a7d; color: #274a7d !important; font-weight: 800; }
    .cal-day.available { background: #e6f7ee; color: #1a7a40 !important; font-weight: 700; cursor: pointer; }
    .cal-day.available:hover { background: #25d366; color: white !important; transform: scale(1.1); }
    .cal-day.selected { background: #274a7d !important; color: white !important; font-weight: 800; }
    .cal-legend { display: flex; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dde3ec; font-size: 11px; color: #888888; }
    .cal-legend span { display: flex; align-items: center; gap: 5px; }
    .cal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
    .cal-time-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
    .cal-time-btn { padding: 11px 6px; border: 1.5px solid #25d366; border-radius: 9px; background: #e6f7ee; color: #1a7a40; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s; text-align: center; }
    .cal-time-btn:hover { background: #25d366; color: white; transform: scale(1.04); }
    .cal-time-btn.selected { background: #274a7d; border-color: #274a7d; color: white; }

    /* ── DOB PICKER ── */
    .dob-desktop { display: flex; gap: 8px; }
    .dob-desktop select { flex: 1; min-width: 0; }
    .dob-mobile-btn { display: none; align-items: center; justify-content: space-between; padding: 11px 14px; border: 1.5px solid #dde3ec; border-radius: 9px; font-size: 14px; background: #f8fafc; color: #aaaaaa; cursor: pointer; transition: all 0.2s; }
    .dob-mobile-btn.has-value { color: #222222; }
    .dob-mobile-btn:hover { border-color: #274a7d; background: #ffffff; }
    .dob-mobile-btn.field-error { border-color: #e53535 !important; background: #fff5f5 !important; box-shadow: 0 0 0 3px rgba(229,53,53,0.13) !important; }
    .dob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99999; align-items: flex-end; }
    .dob-overlay.open { display: flex; }
    .dob-sheet { width: 100%; background: #ffffff; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 8px); animation: slideUp 0.25s ease; }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .dob-sheet-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #eeeeee; }
    .dob-sheet-hdr span { font-size: 15px; font-weight: 700; color: #222222; }
    .dob-cancel-btn, .dob-done-btn { background: none; border: none; font-size: 16px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
    .dob-cancel-btn { color: #888888; }
    .dob-done-btn { color: #274a7d; }
    .dob-done-btn:hover { background: #f0f4fa; }
    .dob-drums-area { position: relative; display: flex; height: 200px; overflow: hidden; }
    .dob-drum { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .dob-drum::-webkit-scrollbar { display: none; }
    .dob-drum-item { height: 40px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 16px; color: #222222; user-select: none; transition: opacity 0.1s; }
    .dob-drum-item.dob-spacer { scroll-snap-align: none; pointer-events: none; }
    .dob-drum-selector { position: absolute; top: 50%; left: 12px; right: 12px; height: 40px; transform: translateY(-50%); border-top: 1.5px solid #274a7d; border-bottom: 1.5px solid #274a7d; border-radius: 4px; pointer-events: none; z-index: 2; }
    .dob-drum-fade-t { position: absolute; top: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, rgba(255,255,255,0.96) 20%, transparent); pointer-events: none; z-index: 1; }
    .dob-drum-fade-b { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, rgba(255,255,255,0.96) 20%, transparent); pointer-events: none; z-index: 1; }
    @media (max-width: 599px) {
      .dob-desktop { display: none; }
      .dob-mobile-btn { display: flex; }
    }

    /* ── LARGE DESKTOP (1400px+): keep 5 cols ── */
    @media (min-width: 1400px) {
      .doctors-grid { padding: 24px 64px 120px; gap: 28px; }
    }

    /* ── MEDIUM DESKTOP (1100–1399px): 4 cols ── */
    @media (max-width: 1399px) {
      .doctors-grid { grid-template-columns: repeat(4, 1fr); }
    }

    /* ── SMALL DESKTOP / LAPTOP (900–1099px): 3 cols ── */
    @media (max-width: 1099px) {
      .doctors-grid { grid-template-columns: repeat(3, 1fr); }
    }

    /* ── TABLET (600–899px) ── */
    @media (max-width: 899px) {
      .top-social-bar { padding: 0 24px; }
      .top-bar-phone { display: none; }

      /* Header: keep horizontal, make room for absolute lang button */
      header {
        padding: 20px 16px 80px;
        gap: 12px;
        position: relative;
      }
      .logo-img { height: 90px; }
      .header-text { flex: 1; min-width: 0; }
      header h1 { font-size: 20px; }
      header .tagline { font-size: 13px; }

      .search-section { margin: -30px 16px 0; padding: 16px; }
      .search-row { flex-direction: column; gap: 10px; }
      .search-input-wrapper { width: 100%; }
      #filterDept { width: 100%; }

      .doctors-grid { grid-template-columns: repeat(2, 1fr); padding: 24px 16px 120px; gap: 16px; }

      .contact-strip { bottom: 16px; right: 14px; }
      .contact-btn { padding: 11px 16px; }
      .contact-btn-label { display: none; }

      /* On tablet/phone: hide social link labels, keep icons only */
      .top-social-link span:not(.top-bar-phone) { display: none; }
      .top-social-link { padding: 5px 8px; }
    }

    /* ── PHONE (max 599px) ── */
    @media (max-width: 599px) {
      header {
        padding: 10px 14px 44px;
        align-items: center;
        gap: 10px;
      }
      .logo-img { height: 140px; }
      .header-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
      }
      header h1 { font-size: 22px; line-height: 1.25; }
      header .tagline { font-size: 13px; }
      .search-section { margin: -30px 10px 0; padding: 10px 12px; }
      .search-row { gap: 8px; }
      .search-section input, .search-section select { padding: 9px 12px; padding-left: 38px; font-size: 15px; }
      .btn-search { font-size: 14px; padding: 8px 14px; }
      .doctor-info h3 { font-size: 15px; }
      .dept-badge { font-size: 11px; padding: 3px 8px; }
      .specialty { font-size: 13px; }
      .btn-book { font-size: 14px; padding: 11px; }
      .results-bar { padding: 4px 10px; }
      .doctors-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 10px 100px; }
      .doctor-photo-wrapper { height: auto; aspect-ratio: 1 / 1; }
      .doctor-photo { object-position: top center; transform: scale(1.1); }
      .doctor-card:hover .doctor-photo { transform: scale(1.18); }
      .top-social-bar { padding: 0 10px; }
      .top-bar-phone { display: none; }
      .top-bar-inner { justify-content: flex-end; }
      .top-bar-socials { margin-left: auto; }
      /* Phone button order: Facebook, WhatsApp, Instagram, Viber */
      .fsoc-fb { order: 1; }
      .fsoc-wa { order: 2; }
      .fsoc-ig { order: 3; }
      .fsoc-vb { order: 4; }
    }

    .pagination-wrap { padding: 0 48px 60px; text-align: center; }
    .page-btn { padding: 10px 20px; border-radius: 12px; border: 1px solid var(--border-color); background: white; font-weight: 700; color: var(--primary); cursor: pointer; transition: 0.2s; }
    .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
    .page-btn:hover:not(.active):not(:disabled) { background: var(--bg-input); }

    .footer-contact-section { 
      background: #1e293b; 
      padding: 80px 48px; 
      display: flex; 
      gap: 60px; 
      flex-wrap: wrap; 
      align-items: center; 
      justify-content: center;
    }
    .footer-contact-content {
      flex: 1;
      min-width: 300px;
      color: white;
    }
    .footer-contact-content h3 {
      font-size: 28px;
      margin-bottom: 24px;
      color: white;
    }
    .footer-contact-content p {
      font-size: 17px;
      margin-bottom: 12px;
      color: rgba(255,255,255,0.8);
      line-height: 1.6;
    }
    .footer-contact-content a {
      color: #a8d8ff;
      text-decoration: none;
      font-weight: 600;
    }
    .footer-contact-content a:hover {
      text-decoration: underline;
    }
    .map-container {
      flex: 1.5;
      min-width: 320px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 12px 36px rgba(0,0,0,0.3);
      height: 300px;
    }
    .back-to-top { 
      position: fixed;
      bottom: 100px;
      right: 30px;
      width: 56px; 
      height: 56px; 
      border-radius: 16px; 
      background: var(--primary); 
      color: white;
      border: none;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
      z-index: 60;
      transition: all 0.2s;
    }
    .back-to-top:hover { transform: translateY(-5px); background: var(--primary-dark); }
