/* ============================================================================
   DENTALUX — styles for assets/planner.js                     assets/planner.css
   Only the site's own colours and shapes (its CSS variables, chips and tabs).
   ========================================================================== */
.tp-hide{display:none!important}
.tp-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- treatment pop-up ---------- */
/* other treatments of the same section: the same chips as in "Treatments" */
.pcRelList{display:flex;flex-wrap:wrap;gap:8px}
.pcRelList a{display:inline-flex;align-items:center;gap:9px;background:var(--white,#fff);border:1px solid var(--line,#e7dccb);
  border-radius:999px;padding:8px 15px;font-size:13.5px;font-weight:500;color:var(--ink,#4f4339);text-decoration:none;
  transition:.25s var(--ease,ease)}
.pcRelList a::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--peach-2,#edc096)}
.pcRelList a:hover{background:var(--peach-soft,#f9e8d6);border-color:var(--peach,#f3d3b0)}
/* "Ask on WhatsApp" under "Book a consultation" (the pop-up is too narrow for both on one line) */
.pcPanel .pcWa{display:flex;width:max-content;margin-top:10px}

/* ---------- prices page: search + section filter ---------- */
.pltools{margin:26px 0 4px}
.pls{display:flex;align-items:center;gap:10px;height:50px;padding:0 8px 0 18px;background:var(--white,#fff);
  border:1px solid var(--line,#e7dccb);border-radius:999px;box-shadow:var(--sh-sm,none);cursor:text;transition:.25s var(--ease,ease)}
.pls:focus-within{border-color:var(--peach-2,#edc096)}
.pls svg{flex:none;width:19px;height:19px;fill:none;stroke:var(--brown-2,#7a6049);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pls input{flex:1;min-width:0;height:100%;border:0;background:transparent;font-family:inherit;font-size:16px;color:var(--ink,#4f4339);outline:none}
.pls input::placeholder{color:var(--ink-soft,#6f6051);opacity:.75}
.pls input::-webkit-search-cancel-button{display:none}
.plx{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.06);color:var(--brown,#7c6450);
  font-size:20px;line-height:1;cursor:pointer}
.plx:hover{background:rgba(0,0,0,.12)}
.plx[hidden]{display:none}
/* section filter: the same look as the "Standard prices / Packages" tabs */
.plfs{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.plf{border:1px solid var(--line,#e7dccb);cursor:pointer;background:var(--white,#fff);font-family:inherit;font-size:13px;font-weight:600;
  color:var(--brown-2,#7a6049);padding:8px 16px;border-radius:999px;transition:.28s var(--ease,ease);white-space:nowrap}
.plf:hover{color:var(--brown,#7c6450)}
.plf.on{background:var(--peach,#f3d3b0);border-color:var(--peach,#f3d3b0);color:var(--brown-deep,#5d4a3a)}
.plmsg{margin-top:16px}
.plmsg[hidden]{display:none}
.plmsg a{color:var(--brown,#7c6450);font-weight:600}
@media(max-width:620px){
  .plfs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-right:-16px;padding-right:16px}
  .plfs::-webkit-scrollbar{display:none}
}

/* booking form: the treatment list was as wide as its longest option and ran off the right edge */
.cform .field{min-width:0}
.cform .field select{width:100%;max-width:100%}

/* home "About": six titled facts in two columns */
.afacts{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.afacts li{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:15px 16px 15px 18px;position:relative;overflow:hidden;
  display:flex;flex-direction:column;gap:4px;box-shadow:var(--sh-sm)}
.afacts li::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--peach-2)}
.afacts b{font-weight:600;font-size:15px;color:var(--brown);line-height:1.3}
.afacts span{font-size:13.5px;color:var(--ink-soft);line-height:1.5}
@media(max-width:480px){.afacts{grid-template-columns:1fr}}

/* phones narrower than ~400px: logo, language switch and menu button did not fit,
   so the page scrolled sideways and the menu button sat off-screen */
@media(max-width:400px){
  .topnav .wrap{padding:0 14px}
  .topnav .row{gap:8px}
  .brand{gap:8px;min-width:0}
  .brand .mark{width:34px;height:34px}
  .brand .bt b{font-size:15px;letter-spacing:.07em}
  .brand .bt span{font-size:8px;letter-spacing:.1em}
  .nav-right{gap:6px}
  .nav-right .langtoggle button{padding:6px 7px;font-size:10.5px;letter-spacing:.02em}
  .topnav .burger{width:40px;height:40px}
}

/* readability: small text reaches 4.5:1 contrast (WCAG AA) — the same colours, a touch stronger */
.swipe-hint{opacity:1}
.testi .swipe-hint{color:var(--brown-2)}            /* phones: was peach on cream, nearly invisible */
.pr small{opacity:1!important;color:var(--ink-soft)}
.tag,.pl-row .tag{color:#3f6b47}
.branch .bhead span{color:#fff}
.mapoff{background:rgba(255,255,255,.03)}
.mapoff p{color:#fff}
.glink{color:#fff;border-bottom-color:rgba(243,211,176,.55)}
.glink:hover{color:var(--peach);border-bottom-color:currentColor}
.field input,.field select,.field textarea{background:rgba(255,255,255,.07)}
.field input:focus,.field select:focus,.field textarea:focus{background:rgba(255,255,255,.1)}
.foot-bottom{color:rgba(255,255,255,.9)}
.chat{background:rgba(110,84,64,.92)}

/* ======================= DOCTOR PROFILE (pop-up) ======================= */
/* The whole portrait is shown, uncropped, with the name and title printed on it; the space
   around it is filled with a soft, darkened blur of the same photo (--ph and --ar are set by
   assets/planner.js). */
.dpanel{max-width:900px}
@media(min-width:881px){
  /* two columns; a fixed height so the text column scrolls inside the card (before, long
     profiles grew past the card and their lower part, buttons included, was cut off) */
  .dpanel{grid-template-columns:clamp(300px,42%,380px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);
    height:min(calc(90vh / var(--z,1)),800px)}
}
.dpanel .pic{position:relative;overflow:hidden;background:#241c18;isolation:isolate}
.dpanel .pic::before{content:"";position:absolute;inset:-40px;z-index:0;pointer-events:none;
  background:var(--ph,none) center/cover no-repeat;filter:blur(26px) brightness(.48) saturate(1.1)}
.dpanel .pic img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;object-position:50% 50%}

/* text column */
.dpanel .det{padding:40px 40px 36px;scrollbar-width:thin;scrollbar-color:rgba(122,96,73,.3) transparent}
.dpanel .det::-webkit-scrollbar{width:9px}
.dpanel .det::-webkit-scrollbar-thumb{background:rgba(122,96,73,.28);border-radius:9px;border:2px solid var(--cream)}
.dpanel .det h3{font-size:28px;line-height:1.2;padding-right:44px;position:relative;padding-bottom:12px}
.dpanel .det h3::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:56px;background:var(--peach-2);border-radius:2px}
.dpanel .det .rl{margin-top:9px}
.dsec{margin-top:24px}
.dsec .lab{display:flex;align-items:center;gap:9px}
.dsec .lab::before{content:"";flex:none;width:14px;height:2px;border-radius:2px;background:var(--peach-2)}
.dsec p{line-height:1.65}
.dsec ul{list-style:none;padding-left:0;gap:7px}
.dsec li{position:relative;padding-left:18px;line-height:1.55}
.dsec li::before{content:"";position:absolute;left:3px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--peach-2)}
.dtreat .pcRelList{margin-top:10px}
.dtreat .pcRelList a{font-size:13.5px}
/* call + WhatsApp with the doctor's name (assets/planner.js) */
.dactions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.dactions .btn{margin-top:0!important}

/* phones and tablets (one column): the card scrolls as one piece — the full portrait first, the text below it */
@media(max-width:880px){
  .dpanel{display:block;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain}
  .dpanel .pic{height:auto;width:100%;aspect-ratio:var(--ar,.5623);max-height:72vh;max-height:72dvh}
  .dpanel .det{overflow:visible;padding:26px 22px 30px}
  .dpanel .det h3{font-size:24px}
  .dclose{position:fixed;top:calc(4vh + 12px);top:calc(4dvh + 12px);right:26px}
}

/* ---------- doctors: gentle motion (off when the device asks for reduced motion) ---------- */
@media (prefers-reduced-motion:no-preference){
  /* the backdrop fades in and the profile rises into place */
  .dmodal.open{animation:dlxFade .35s ease both}
  .dmodal.open .dpanel{animation:dlxPanel .55s cubic-bezier(.2,.7,.2,1) both}
  @keyframes dlxFade{from{opacity:0}to{opacity:1}}
  @keyframes dlxPanel{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
  /* the text appears in order within ~1 s; the line under the name draws itself */
  .dmodal.open #ddet>*{animation:dlxRise .55s cubic-bezier(.2,.7,.2,1) both}
  .dmodal.open #ddet>:nth-child(1){animation-delay:.05s}
  .dmodal.open #ddet>:nth-child(2){animation-delay:.12s}
  .dmodal.open #ddet>:nth-child(3){animation-delay:.19s}
  .dmodal.open #ddet>:nth-child(4){animation-delay:.26s}
  .dmodal.open #ddet>:nth-child(5){animation-delay:.33s}
  .dmodal.open #ddet>:nth-child(6){animation-delay:.40s}
  .dmodal.open #ddet>:nth-child(7){animation-delay:.47s}
  .dmodal.open #ddet>:nth-child(n+8){animation-delay:.52s}
  @keyframes dlxRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  .dpanel .det h3::after{width:0}
  .dmodal.open .dpanel .det h3::after{animation:dlxLine .7s .45s cubic-bezier(.2,.7,.2,1) forwards}
  @keyframes dlxLine{to{width:56px}}
  /* the portrait settles in softly (no zoom) */
  .dmodal.open .dpanel .pic img{animation:dlxFade .8s .1s ease both}
  /* treatment links in the profile follow one another */
  .dmodal.open .dtreat .pcRelList a{animation:dlxRise .45s cubic-bezier(.2,.7,.2,1) both}
  .dmodal.open .dtreat .pcRelList a:nth-child(1){animation-delay:.6s}
  .dmodal.open .dtreat .pcRelList a:nth-child(2){animation-delay:.66s}
  .dmodal.open .dtreat .pcRelList a:nth-child(3){animation-delay:.72s}
  .dmodal.open .dtreat .pcRelList a:nth-child(4){animation-delay:.78s}
  .dmodal.open .dtreat .pcRelList a:nth-child(n+5){animation-delay:.84s}

  /* team cards: on hover the photo comes slightly closer, the shade deepens a little,
     the name rises softly and a peach line grows under it */
  .dcard img.ph{transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
  .dcard:hover img.ph,.dcard:focus-visible img.ph{transform:scale(1.05)}
  .dcard .ov{transition:padding-bottom .5s cubic-bezier(.2,.7,.2,1)}
  .dcard:hover .ov,.dcard:focus-visible .ov{padding-bottom:22px}
  .dcard .ov::before{content:"";position:absolute;inset:-40px 0 0;background:linear-gradient(transparent,rgba(24,16,10,.35));opacity:0;transition:opacity .6s ease;pointer-events:none}
  .dcard:hover .ov::before,.dcard:focus-visible .ov::before{opacity:1}
  .dcard .ov>*{position:relative}
  .dcard .ov .nm::after{content:"";display:block;height:2px;width:0;margin-top:7px;background:var(--peach);border-radius:2px;transition:width .6s cubic-bezier(.2,.7,.2,1)}
  .dcard:hover .ov .nm::after,.dcard:focus-visible .ov .nm::after{width:38px}

  /* phones: while swiping, each card fades in as it comes into view (assets/planner.js) */
  .dcard.dlx-wait{opacity:0;transform:translateY(14px) scale(.97)}
  .dcard.dlx-in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
}
/* one-column profile: it only fades in, so the fixed close button never moves with it */
@media (prefers-reduced-motion:no-preference) and (max-width:880px){
  .dmodal.open .dpanel{animation-name:dlxFade}
}

/* "Book a visit" buttons lead to the booking form itself (#book on its heading), not to the maps above it */
#book{scroll-margin-top:calc(var(--navh,84px) + 18px)}
/* booking form: the "request received" confirmation stands out clearly */
.form-ok.is-got{background:rgba(255,255,255,.96);color:var(--brown-deep);border:0;border-left:4px solid #5a8a62;
  border-radius:12px;padding:15px 16px 15px 46px;text-align:left;font-size:14.5px;line-height:1.55;font-weight:500;position:relative;
  box-shadow:0 12px 30px -16px rgba(20,12,6,.6)}
.form-ok.is-got::before{content:"";position:absolute;left:14px;top:16px;width:20px;height:20px;border-radius:50%;background:#5a8a62 no-repeat center/12px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.form-ok.is-got b{font-weight:700}
.form-ok .fo-sub{display:block;margin-top:6px;font-size:13px;font-weight:400;color:var(--ink-soft,#6b5a4c)}
/* sending: a quiet line with a small spinner */
.form-ok.is-sending{background:rgba(255,255,255,.1);border-color:rgba(243,211,176,.5);text-align:left;padding-left:40px;position:relative}
.form-ok.is-sending::before{content:"";position:absolute;left:14px;top:50%;width:14px;height:14px;margin-top:-9px;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:dlxSpin .8s linear infinite}
@keyframes dlxSpin{to{transform:rotate(360deg)}}
/* not sent: say so and offer a call or WhatsApp with the request already written */
.form-ok.is-fail{background:rgba(255,255,255,.96);color:var(--brown-deep);border:0;border-left:4px solid #b5533c;
  border-radius:12px;padding:15px 16px;text-align:left;font-size:14px;line-height:1.55;box-shadow:0 12px 30px -16px rgba(20,12,6,.6)}
.form-ok .fo-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.form-ok .fo-acts .btn{flex:1 1 150px;justify-content:center;text-align:center}
.form-ok.is-fail .btn-soft{background:var(--cream,#f7efe6);color:var(--brown-deep);border:1px solid var(--line,#e6d9cc)}
#bookForm button.is-busy{opacity:.65;cursor:progress}
/* the floating chat button steps aside while the booking form is on screen */
a.chat.chat-away{opacity:0;pointer-events:none;transform:translateX(100%)}
@media (prefers-reduced-motion:reduce){ .form-ok.is-sending::before{animation:none} }
.form-ok.is-got .fo-sub a{color:var(--brown-deep);font-weight:600;white-space:nowrap}
.form-ok:focus{outline:none}
.form-ok:focus-visible{outline:none}   /* a status message, not a control: no focus ring around the card */
a.chat.chat-away{visibility:hidden}
/* booking form: selects look and size like the text fields (Safari draws its own small native select) */
.cform .field select{-webkit-appearance:none;appearance:none;padding-right:40px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7e9d9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:14px}
.cform .field input,.cform .field select{min-height:48px;box-sizing:border-box;line-height:1.3}
.cform .field input[type=date]{-webkit-appearance:none;appearance:none;display:block;width:100%}
.cform .field input[type=date]::-webkit-date-and-time-value{text-align:left}
/* "request received" card */
.form-ok.is-got{display:flex;gap:14px;align-items:flex-start;padding:20px 22px;border-left:0;border-radius:16px;
  background:#fffaf4;box-shadow:0 18px 40px -22px rgba(20,12,6,.75),inset 0 0 0 1px rgba(90,138,98,.18)}
.form-ok.is-got::before{content:none}
.form-ok .fo-ico{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#e7f1e8;display:flex;align-items:center;justify-content:center}
.form-ok .fo-ico svg{width:22px;height:22px;fill:none;stroke:#3f7a4a;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:0}
.form-ok .fo-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.form-ok .fo-title{font-size:17px;font-weight:700;color:var(--brown-deep);line-height:1.35}
.form-ok .fo-text{font-size:14px;font-weight:400;color:#5b4a3d;line-height:1.55}
.form-ok .fo-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.form-ok .fo-chips span{font-size:12.5px;line-height:1.3;color:#5b4a3d;background:#f3e9de;border-radius:999px;padding:5px 11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-ok.is-got .fo-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;padding-top:12px;border-top:1px solid #efe4d8;font-size:13px;color:#7a6858}
.form-ok.is-got .fo-sub a.fo-call{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;background:var(--brown-deep,#4a3426);color:#fff;font-weight:600;text-decoration:none;white-space:nowrap}
.form-ok.is-got .fo-sub a.fo-call:hover{background:#2f2118}
.form-ok .fo-call svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round}
@media (prefers-reduced-motion:no-preference){
  .form-ok.is-got{animation:foIn .45s cubic-bezier(.2,.8,.2,1) both}
  .form-ok.is-got .fo-ico{animation:foPop .45s .1s cubic-bezier(.3,1.6,.5,1) both}
  .form-ok.is-got .fo-ico svg{animation:foDraw .5s .3s ease-out both}
}
@keyframes foIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes foPop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
@keyframes foDraw{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
@media (max-width:480px){ .form-ok.is-got{padding:18px 16px;gap:12px} .form-ok .fo-ico{flex-basis:32px;width:32px;height:32px} .form-ok .fo-title{font-size:16px} }
/* after "received" the form folds away; the card takes its place */
#bookForm.is-sent>:not(#formOk){display:none}
#bookForm.is-sent #formOk{margin-top:6px}
.form-ok .fo-chips span{display:inline-flex;align-items:center;gap:6px}
.form-ok .fo-chips svg{flex:0 0 13px;width:13px;height:13px;fill:none;stroke:#8c6f58;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.form-ok.is-got .fo-again{margin-left:auto;font:inherit;font-size:13px;font-weight:600;color:var(--brown,#6e5440);background:none;border:0;padding:6px 2px;
  cursor:pointer;text-decoration:underline;text-decoration-color:rgba(110,84,64,.35);text-underline-offset:3px}
.form-ok.is-got .fo-again:hover{text-decoration-color:currentColor}
@media (max-width:480px){ .form-ok.is-got .fo-again{margin-left:0;flex-basis:100%;text-align:left} }
#bookForm.is-sent{padding-left:0;padding-right:0;padding-top:0;background:none;border:0;box-shadow:none}

/* ===== home page polish (Oct 2026) ===== */
/* hero cards: icon and label centred (a row takes the height of its longest label) */
.hc-grid .hcard{display:flex;flex-direction:column;align-items:center;justify-content:center}
/* treatment categories: the cards of one row share the same height */
@media (min-width:621px){ #treatments .cat-grid{align-items:stretch} }
/* a little less empty space between sections on large screens */
@media (min-width:881px){ .sec.sec{padding:88px 0} }
/* contact: the booking form stays in view while the long branches column scrolls past */
@media (min-width:881px) and (min-height:800px){
  footer{overflow:clip}                   /* still clips the decoration, but lets the form stick */
  .foot-top>div:last-child{position:sticky;top:calc(var(--navh,84px) + 18px);align-self:start}
}

/* ===== blog & video grid (4 columns): rows without gaps (classes set by mediaRows in planner.js) ===== */
@media (min-width:1081px){
  #mediaGrid .mcard.h.fill3{grid-column:span 3}
  #mediaGrid .mcard.art.wide{grid-column:span 4;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);text-align:left}
  #mediaGrid .mcard.art.wide .mthumb{aspect-ratio:auto;height:100%;min-height:280px}
  #mediaGrid .mcard.art.wide .mbody{align-self:center;padding:30px 34px}
  #mediaGrid .mcard.art.wide .mbody h4{font-size:22px}
  #mediaGrid .mcard.art.wide .mbody p{font-size:14px}
}
