/* BookAyurvedDoctor.com — the search panel on the home page (plain CSS, no build step).
   Colours follow the site: forest #0B4F3F, ivory #F8F6EF, gold #C9A85D, ink #173D35. */

.sf,.sf *{box-sizing:border-box}
.sf{position:relative;z-index:5;background:#fff;border:1px solid #E5EADF;border-radius:24px;padding:14px;
  box-shadow:0 18px 40px -22px rgba(11,79,63,.35),0 2px 6px rgba(11,79,63,.04)}

/* ---- the search box ----
   The selectors are deliberately strong (.sf input.sf-input): the Tailwind "forms"
   add-on styles every input[type=search] and is loaded after this file. */
.sf .sf-search{position:relative;display:flex;align-items:stretch;gap:8px;margin:0}
.sf .sf-icon{position:absolute;left:16px;top:50%;width:20px;height:20px;margin-top:-10px;color:#0B4F3F;pointer-events:none;z-index:1}
.sf .sf-icon svg{display:block;width:20px;height:20px}
.sf input.sf-input{display:block;flex:1 1 auto;min-width:0;width:100%;height:56px;margin:0;padding:0 14px 0 46px;border:1px solid #E5EADF;border-radius:16px;background:#FBFAF6;
  font:inherit;font-size:16px;line-height:normal;font-weight:500;color:#173D35;outline:none;box-shadow:none;transition:border-color .2s,box-shadow .2s,background-color .2s;-webkit-appearance:none;appearance:none}
.sf input.sf-input::placeholder{color:rgba(23,61,53,.5);font-weight:400}
.sf input.sf-input:hover{border-color:rgba(11,79,63,.3)}
.sf input.sf-input:focus{background:#fff;border-color:#0B4F3F;outline:none;box-shadow:0 0 0 4px rgba(11,79,63,.10)}
.sf input.sf-input::-webkit-search-cancel-button,.sf input.sf-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.sf button.sf-go{flex:0 0 auto;height:56px;padding:0 20px;border:0;border-radius:16px;background:#0B4F3F;color:#fff;font:inherit;font-size:14.5px;font-weight:700;letter-spacing:.01em;cursor:pointer;
  box-shadow:0 8px 18px -10px rgba(11,79,63,.7);transition:background-color .2s,transform .1s}
.sf button.sf-go:hover{background:#0d5e4b}
.sf button.sf-go:active{transform:translateY(1px)}
.sf button.sf-go:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(201,168,93,.45)}
@media (max-width:420px){.sf button.sf-go{padding:0 15px;font-size:14px}}
#resultsTop{scroll-margin-top:16px}

/* what the site understood from the words typed */
.sf-hint{margin:10px 4px 0;font-size:12.5px;line-height:1.45;color:rgba(23,61,53,.8)}
.sf-hint[hidden]{display:none}
.sf-hint b{color:#0B4F3F}
.sf-related{display:block;margin-top:3px;color:rgba(23,61,53,.65)}
.dc-distance+.dc-distance{margin-left:6px}

/* ---- the four filters ---- */
.sf-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.sf-field{min-width:0}
.sf .sf-search>label,.sf-field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.sx{position:relative}
.sx-native{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none}
.sx .sx-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:56px;padding:8px 12px 8px 14px;
  border:1px solid #E5EADF;border-radius:16px;background:#FBFAF6;color:#173D35;font:inherit;text-align:left;cursor:pointer;
  transition:border-color .2s,box-shadow .2s,background-color .2s}
.sx .sx-btn:hover{border-color:rgba(11,79,63,.3);background:#fff}
.sx-btn:focus-visible,.sx.is-open .sx-btn{outline:none;background:#fff;border-color:#0B4F3F;box-shadow:0 0 0 4px rgba(11,79,63,.10)}
.sx-btn.has-value{background:#fff;border-color:rgba(201,168,93,.85)}
.sx-text{display:flex;flex-direction:column;min-width:0}
.sx-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8A6A1F;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-value{font-size:14px;font-weight:600;color:#173D35;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-btn:not(.has-value) .sx-value{font-weight:500;color:rgba(23,61,53,.72)}
.sx-chevron{flex-shrink:0;color:#0B4F3F;display:flex;transition:transform .2s}
.sx.is-open .sx-chevron{transform:rotate(180deg)}

/* the list */
.sx-backdrop{display:none}
.sx-panel{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 8px);min-width:240px;background:#fff;border:1px solid #E5EADF;border-radius:18px;
  box-shadow:0 24px 48px -18px rgba(11,79,63,.38),0 4px 12px rgba(11,79,63,.06);overflow:hidden;animation:sx-in .16s ease-out}
.sx-panel[hidden]{display:none}
.sx-panel.sx-up{top:auto;bottom:calc(100% + 8px)}
.sf-field:nth-child(even) .sx-panel{left:auto}
.sx-head{display:none}
.sx input.sx-search{display:block;width:calc(100% - 20px);margin:10px 10px 4px;height:42px;padding:0 14px;border:1px solid #E5EADF;border-radius:12px;background:#FBFAF6;
  font:inherit;font-size:16px;line-height:normal;color:#173D35;outline:none;box-shadow:none;-webkit-appearance:none;appearance:none}
.sx input.sx-search:focus{border-color:#0B4F3F;background:#fff;outline:none;box-shadow:none}
.sx-list{list-style:none;margin:0;padding:6px;max-height:288px;overflow-y:auto;overscroll-behavior:contain;outline:none}
.sx-opt{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;font-size:14px;font-weight:500;color:#173D35;cursor:pointer;line-height:1.3}
.sx-opt.is-active{background:#F3F5F0}
.sx-opt.is-selected{color:#0B4F3F;font-weight:700}
.sx-opt.is-muted .sx-opt-text{color:rgba(23,61,53,.62)}
.sx-opt-text{flex:1;min-width:0}
.sx-opt-note{font-size:11px;font-weight:600;color:#7a6224;background:rgba(201,168,93,.16);border:1px solid rgba(201,168,93,.35);border-radius:999px;padding:2px 8px;white-space:nowrap}
.sx-tick{display:flex;color:#0B4F3F;visibility:hidden}
.sx-opt.is-selected .sx-tick{visibility:visible}
.sx-group{padding:12px 12px 6px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#C9A85D}
.sx-none{margin:0;padding:18px 16px;font-size:13px;color:rgba(23,61,53,.65);text-align:center}
.sx-none[hidden]{display:none}
@keyframes sx-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* phones: the list slides up from the bottom of the screen, easy to reach with a thumb */
@media (max-width:639px){
  .sx-backdrop{display:block;position:fixed;inset:0;z-index:60;background:rgba(11,35,29,.45)}
  .sx-backdrop[hidden]{display:none}
  .sx-panel,.sx-panel.sx-up,.sf-field:nth-child(even) .sx-panel{position:fixed;z-index:61;left:0;right:0;top:auto;bottom:0;min-width:0;border-radius:22px 22px 0 0;border-width:1px 0 0;
    padding-bottom:env(safe-area-inset-bottom,0);animation:sx-up .2s ease-out;box-shadow:0 -18px 40px -10px rgba(11,35,29,.35)}
  .sx-label{letter-spacing:.05em}
  .sx-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 6px}
  .sx-head-title{font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:18px;color:#0B4F3F}
  .sx-close{width:36px;height:36px;border-radius:50%;border:1px solid #E5EADF;background:#fff;color:#173D35;font-size:20px;line-height:1;cursor:pointer}
  .sx-list{max-height:min(56vh,420px);padding:6px 10px 14px}
  .sx-opt{padding:14px 12px;font-size:15px}
  @keyframes sx-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
}
@media (min-width:860px){
  .sf{padding:16px}
  .sf-grid{grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}
  .sf-field:nth-child(even) .sx-panel{left:0}
  .sf-field:last-child .sx-panel{left:auto}
}
@media (prefers-reduced-motion:reduce){.sx-panel{animation:none}.sx-chevron,.sx-btn,.sf-input{transition:none}}

/* ---- notices under the panel ---- */
.sf-emergency{margin-top:16px;padding:14px 16px;border-radius:16px;background:#FDF1F0;border:1px solid #F1C4BF;color:#8A1F17;font-size:13.5px;line-height:1.5;font-weight:600}
.sf-emergency[hidden]{display:none}
.sf-emergency a{color:inherit;font-weight:800;white-space:nowrap}
.sf-near{margin:16px 0 12px;padding:13px 16px;border-radius:16px;background:#fff;border:1px solid rgba(201,168,93,.55);font-size:13.5px;line-height:1.5;color:#173D35}
.sf-near[hidden]{display:none}
.sf-near b{color:#0B4F3F}
.dc-distance{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:999px;background:rgba(11,79,63,.08);border:1px solid rgba(11,79,63,.18);color:#0B4F3F;font-size:11px;font-weight:700}

html[lang="hi"] .sx-label,html[lang="mr"] .sx-label,html[lang="hi"] .sx-group,html[lang="mr"] .sx-group{letter-spacing:0;font-size:11px}
html[lang="hi"] .sx-head-title,html[lang="mr"] .sx-head-title{font-family:"Playfair Display","Noto Serif Devanagari","Noto Sans Devanagari",serif}

/* ---- tool buttons under the filters: Near me, More filters, Saved ---- */
.sf-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.sf .sf-tool{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid #E5EADF;border-radius:999px;background:#fff;color:#0B4F3F;
  font:inherit;font-size:13px;font-weight:600;line-height:1;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s,box-shadow .2s}
.sf .sf-tool:hover{border-color:rgba(11,79,63,.4);background:#F3F5F0}
.sf .sf-tool:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(11,79,63,.12)}
.sf .sf-tool.is-on{background:#0B4F3F;border-color:#0B4F3F;color:#fff}
.sf .sf-tool.is-open{border-color:#C9A85D;background:#FBFAF6}
.sf .sf-tool:disabled{opacity:.6;cursor:progress}
.sf .sf-tool svg{flex-shrink:0}
.sf-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#C9A85D;color:#fff;font-size:11px;font-weight:700}
.sf-badge[hidden]{display:none}
.sf .sf-tool.is-on .sf-badge{background:#fff;color:#0B4F3F}
.sf-more[hidden]{display:none}

/* ---- Save and Compare buttons on a doctor card ---- */
.dc-wrap{position:relative;min-width:0}
.dc-wrap>a{display:flex;flex-direction:column;height:100%;box-sizing:border-box}
.dc-wrap>a>*{flex:none}
/* The doctor's photo: a large rounded square that sits in the card like a framed portrait */
.dc-photo{box-sizing:border-box;width:clamp(84px,27vw,104px);height:clamp(84px,27vw,104px);flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden;
  border-radius:18px;background:linear-gradient(145deg,#F7F4EA,#E8EFE6);border:1px solid rgba(201,168,93,.75);
  box-shadow:0 6px 14px -10px rgba(11,79,63,.45)}
.dc-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.dc-photo span{font-size:30px;letter-spacing:.02em}
.dc-foot{display:flex;align-items:center;gap:6px;min-height:38px;margin-top:auto;padding-top:14px;border-top:1px solid #E5EADF;color:#0B4F3F;font-size:13px;font-weight:700}
.dc-wrap>a>.dc-foot{margin-top:auto}
.dc-wrap>a>:nth-last-child(2){margin-bottom:16px}
.dc-wrap>a>.dc-distance{align-self:flex-start;margin-left:0}
.dc-arrow{transition:transform .2s}
.dc-wrap>a:hover .dc-arrow{transform:translateX(3px)}
@media (min-width:640px){.dc-photo{width:112px;height:112px}}
.dc-actions{position:absolute;bottom:20px;right:20px;display:flex;gap:8px}
.dc-wrap .dc-act{display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid #E5EADF;border-radius:50%;background:#fff;color:rgba(23,61,53,.55);cursor:pointer;
  transition:color .2s,border-color .2s,background-color .2s,transform .1s}
.dc-wrap .dc-act:hover{color:#0B4F3F;border-color:rgba(11,79,63,.4)}
.dc-wrap .dc-act:active{transform:scale(.94)}
.dc-wrap .dc-act:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(11,79,63,.14)}
.dc-wrap .dc-save.is-on{color:#B4232F;border-color:rgba(180,35,47,.35);background:#FDF1F0}
.dc-wrap .dc-save.is-on svg{fill:currentColor}
.dc-wrap .dc-compare.is-on{color:#fff;border-color:#0B4F3F;background:#0B4F3F}
.dc-wrap h2{padding-right:0}

/* ---- Compare: the bar at the bottom of the screen, and the table ---- */
.cmp-bar{position:fixed;z-index:50;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:720px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 10px 10px 18px;border-radius:999px;background:#0B4F3F;color:#fff;box-shadow:0 18px 40px -14px rgba(7,45,34,.7)}
.cmp-bar[hidden]{display:none}
.cmp-bar-text{min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp-bar-actions{display:flex;gap:6px;flex-shrink:0}
.cmp-bar button{height:38px;padding:0 16px;border-radius:999px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.cmp-bar .cmp-clear{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff}
.cmp-bar .cmp-go{border:0;background:#C9A85D;color:#173D35}
.cmp-bar .cmp-go:disabled{opacity:.55;cursor:not-allowed}
.cmp-lock{overflow:hidden}
.cmp-overlay{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center;background:rgba(11,35,29,.55)}
.cmp-overlay[hidden]{display:none}
.cmp-box{width:100%;max-width:860px;max-height:88vh;display:flex;flex-direction:column;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -18px 50px -10px rgba(7,45,34,.5);overflow:hidden}
.cmp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 12px}
.cmp-head h2{margin:0;font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:20px;color:#0B4F3F}
.cmp-overlay .cmp-close{width:38px;height:38px;border-radius:50%;border:1px solid #E5EADF;background:#fff;color:#173D35;font-size:22px;line-height:1;cursor:pointer}
.cmp-scroll{overflow:auto;padding:0 12px}
.cmp-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13.5px;color:#173D35}
.cmp-table th,.cmp-table td{padding:12px 12px;border-bottom:1px solid #E5EADF;text-align:left;vertical-align:top;min-width:150px;line-height:1.45}
.cmp-table tr>th:first-child{position:sticky;left:0;z-index:1;min-width:112px;width:112px;background:#FBFAF6;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#C9A85D}
.cmp-table tr:first-child th{font-family:"Playfair Display",Georgia,serif;font-size:16px;font-weight:700;color:#0B4F3F;text-transform:none;letter-spacing:0;background:#fff}
.cmp-table tr:first-child th:first-child{background:#FBFAF6}
.cmp-table tr:last-child td,.cmp-table tr:last-child th{border-bottom:0}
.cmp-link{display:inline-block;padding:9px 16px;border-radius:999px;background:#0B4F3F;color:#fff;font-weight:700;font-size:13px;text-decoration:none}
.cmp-note{margin:0;padding:12px 20px calc(16px + env(safe-area-inset-bottom,0px));font-size:12px;color:rgba(23,61,53,.65)}
@media (min-width:700px){.cmp-overlay{align-items:center}.cmp-box{border-radius:24px}}
html[lang="hi"] .cmp-table tr>th:first-child,html[lang="mr"] .cmp-table tr>th:first-child{letter-spacing:0;font-size:12px}
html[lang="hi"] .cmp-head h2,html[lang="mr"] .cmp-head h2{font-family:"Playfair Display","Noto Serif Devanagari","Noto Sans Devanagari",serif}

/* "Open now" on a doctor card */
.dc-wrap>a>.dc-open{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:3px 10px;border-radius:999px;background:rgba(18,140,75,.1);border:1px solid rgba(18,140,75,.35);color:#0B6B4A;font-size:11px;font-weight:700}
.dc-wrap>a>.dc-open::before{content:"";width:7px;height:7px;border-radius:50%;background:#18A45B}
.dc-wrap>a>.dc-open.is-away{background:rgba(201,168,93,.18);border-color:rgba(201,168,93,.6);color:#6B5320}
.dc-wrap>a>.dc-open.is-away::before{background:#C9A85D}
.dc-wrap .dc-web{display:flex;align-items:center;height:38px;padding:0 14px;border:1px solid rgba(201,168,93,.7);border-radius:999px;background:#FFFBF0;color:#7a6224;font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap}
.dc-wrap .dc-web:hover{border-color:#C9A85D;color:#0B4F3F}

/* v4.1: grey cards while the doctor list loads for the first time */
.dc-skel{display:flex;gap:16px;padding:20px;border-radius:22px;background:#fff;border:1px solid #E5EADF}
.dc-skel-photo{width:84px;height:84px;border-radius:16px;flex:0 0 auto}
.dc-skel-lines{flex:1;border-radius:10px;min-height:84px;background:linear-gradient(#EEF1EA 0 0) 0 4px/70% 16px no-repeat,linear-gradient(#EEF1EA 0 0) 0 32px/45% 12px no-repeat,linear-gradient(#EEF1EA 0 0) 0 56px/60% 12px no-repeat}
.dc-skel-photo{background:#EEF1EA}
@media (prefers-reduced-motion:no-preference){.dc-skel{animation:dcPulse 1.4s ease-in-out infinite}@keyframes dcPulse{50%{opacity:.55}}}
.dc-wrap .dc-web[hidden]{display:none}
