/* ANDALUS_RATINGS_ENGINE_V1 (owner, 25 Oct 2026) — the look of the one ratings engine (includes/andalus-ratings.php).
   Header chip (on the graphite strip), review lines that take turns with it on phones, the inline trust line,
   and the Google + Facebook panel (bottom sheet on phones, centred card on tablets and computers). */

/* ---------- shared pieces ---------- */
.an-rt-logos{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto}
.an-rt-logo{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;flex:0 0 auto}
.an-rt-logo svg{display:block;width:15px;height:15px}
.an-rt-logo--facebook{background:#1877f2}
.an-rt-logo--facebook svg{width:16px;height:16px;transform:translateY(1.5px)}
.an-rt-stars{position:relative;display:inline-block;line-height:1;letter-spacing:1px;direction:ltr;white-space:nowrap}
.an-rt-stars>span:first-child{color:rgba(127,120,135,.35)}
.an-rt-stars>span:last-child{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#fbbc04}
/* both layers identical whatever the page's own span rules say, so the yellow sits exactly on the grey */
html body .an-rt-stars>span{display:block;margin:0;padding:0;border:0;font-size:inherit;font-weight:400;line-height:1;letter-spacing:inherit;font-family:Arial,sans-serif;text-shadow:none;background:none}
html body .an-rt-stars>span:last-child{position:absolute;left:0;top:0}

/* ---------- header strip: one chip (+ review lines on phones) ---------- */
html body .an-hq .an-rt-strip{position:relative;display:flex;align-items:center;flex:0 0 auto;min-width:0}
html body .an-hq .an-rt-chip,
html body .an-hq .an-rt-quote{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:3px 13px 3px 5px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff!important;white-space:nowrap;text-decoration:none!important;transition:background .15s,border-color .15s}
html body .an-hq .an-rt-chip:hover,html body .an-hq .an-rt-quote:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.32)}
html body .an-hq .an-rt-chip b{font-size:16px;font-weight:900;line-height:1}
html body .an-hq .an-rt-chip .an-rt-stars{font-size:13px}
html body .an-hq .an-rt-stars>span:first-child{color:rgba(255,255,255,.22)}
html body .an-hq .an-rt-chip small{font-size:12.5px;font-weight:700;color:#c9c4cf}
html body .an-hq .an-rt-chip small:after{content:"  ‹";font-weight:900;color:#fff;opacity:.75}
html body .an-hq .an-rt-quote{max-width:100%;padding-inline-end:12px}
html body .an-hq .an-rt-quote q{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:800;color:#fff;quotes:"«" "»"}
html body .an-hq .an-rt-quote .an-rt-quote__who{font-size:12px;font-weight:700;color:#c9c4cf;flex:0 0 auto}
html body .an-hq .an-rt-quote .an-rt-stars{font-size:11px;flex:0 0 auto}
html body .an-hq .an-rt-strip>a[hidden]{display:none!important}
/* the lines only take turns on phones; tablets and computers keep the chip + the promises */
@media (min-width:701px){html body .an-hq .an-rt-quote{display:none!important}}
@media (max-width:700px){
  html body .an-hq .an-rt-strip{width:100%;justify-content:center}
  html body .an-hq .an-rt-chip,html body .an-hq .an-rt-quote{min-height:30px;gap:6px;padding:2px 11px 2px 4px}
  html body .an-hq .an-rt-chip b{font-size:15px}
  html body .an-hq .an-rt-chip .an-rt-stars{font-size:12px}
  html body .an-hq .an-rt-chip small{font-size:12px}
  html body .an-hq .an-rt-logo{width:22px;height:22px}
  html body .an-hq .an-rt-logo svg{width:13px;height:13px}
  html body .an-hq .an-rt-strip.is-turning>a{animation:anRtIn .45s ease both}
}
@media (max-width:360px){html body .an-hq .an-rt-quote .an-rt-stars{display:none}}
@keyframes anRtIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- inline trust line (light pages) ---------- */
.an-rt-inline{display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 5px;border-radius:999px;background:#fff;border:1px solid #eadbd0;color:#21140e!important;text-decoration:none!important;font-family:inherit;white-space:nowrap}
.an-rt-inline .an-rt-logo{box-shadow:0 0 0 2px #fff}
.an-rt-inline b{font-size:15px;font-weight:900;line-height:1}
.an-rt-inline .an-rt-stars{font-size:13px}
.an-rt-inline small{font-size:12.5px;font-weight:700;color:#6b5a50}
.an-rt-inline:hover{border-color:#c6a087}

/* ---------- the panel ---------- */
html.an-rt-open,html.an-rt-open body{overflow:hidden!important}
.an-rt-panel{position:fixed;inset:0;z-index:2147483000;margin:auto;padding:0;border:0;background:transparent;width:min(600px,calc(100% - 32px));max-width:none;max-height:min(88vh,860px);overflow:visible;color:#21140e;direction:rtl;font-family:'Tajawal','IBM Plex Sans Arabic',Arial,sans-serif}
.an-rt-panel::backdrop{background:rgba(20,16,24,.58);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.an-rt-panel *{box-sizing:border-box}
.an-rt-panel__box{display:flex;flex-direction:column;max-height:min(88vh,860px);background:#fbf8f5;border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:anRtPop .26s cubic-bezier(.2,.8,.2,1)}
@keyframes anRtPop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.an-rt-panel__scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

.an-rt-panel__top{position:relative;padding:22px 22px 20px;background:linear-gradient(135deg,#2d2a35 0%,#1b1921 100%);color:#fff;text-align:center}
.an-rt-panel__close{position:absolute;top:12px;left:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.an-rt-panel__close:hover{background:rgba(255,255,255,.22)}
.an-rt-panel__close:focus-visible{outline:2px solid #fff;outline-offset:2px}
.an-rt-panel__top .an-rt-logos{margin-bottom:10px}
.an-rt-panel__top .an-rt-logo{width:34px;height:34px;box-shadow:0 0 0 3px #26232d}
.an-rt-panel__top .an-rt-logo svg{width:20px;height:20px}
.an-rt-panel__top .an-rt-logos{gap:6px}
.an-rt-panel__kicker{display:block;font-size:13px;font-weight:800;color:#c9c4cf}
.an-rt-panel__big{display:flex;align-items:center;justify-content:center;gap:12px;margin:6px 0 4px}
.an-rt-panel__big b{font-size:52px;font-weight:900;line-height:1;letter-spacing:.5px}
.an-rt-panel__big .an-rt-stars{font-size:26px;letter-spacing:3px}
.an-rt-panel__big .an-rt-stars>span:first-child{color:rgba(255,255,255,.2)}
.an-rt-panel__big .an-rt-stars>span:last-child{text-shadow:0 0 14px rgba(251,188,4,.4)}
.an-rt-panel__sub{margin:0;font-size:15px;font-weight:700;line-height:1.6;color:#e7e2ec}
.an-rt-panel__sub strong{color:#fff;font-weight:900}

.an-rt-panel__src{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 16px 4px}
.an-rt-panel__src.is-one{grid-template-columns:1fr}
.an-rt-card{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:18px;background:#fff;border:1px solid #eadbd0}
.an-rt-card__head{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:900}
.an-rt-card__head .an-rt-logo{width:30px;height:30px;box-shadow:none;border:1px solid #eee}
.an-rt-card__head .an-rt-logo--facebook{border-color:#1877f2}
.an-rt-card__head .an-rt-logo svg{width:18px;height:18px}
.an-rt-card__num{display:flex;align-items:center;gap:8px}
.an-rt-card__num b{font-size:30px;font-weight:900;line-height:1}
.an-rt-card__num .an-rt-stars{font-size:17px;letter-spacing:2px}
.an-rt-card__count{font-size:13px;font-weight:700;color:#6b5a50}
.an-rt-card__go{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border-radius:12px;background:#f6efe9;color:#21140e!important;text-decoration:none!important;font-size:13.5px;font-weight:900;text-align:center;line-height:1.3}
.an-rt-card__go:hover{background:#efe3d8}
.an-rt-card--facebook .an-rt-card__go{background:#e8f0fe;color:#0f4fb0!important}
.an-rt-card--facebook .an-rt-card__go:hover{background:#d7e5fd}

.an-rt-panel__reviews{padding:14px 16px 4px}
.an-rt-panel__reviews h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:17px;font-weight:900;color:#21140e}
.an-rt-panel__reviews h3 .an-rt-logo{width:24px;height:24px;box-shadow:none;border:1px solid #eee}
.an-rt-panel__reviews ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.an-rt-rv{padding:14px;border-radius:16px;background:#fff;border:1px solid #eadbd0}
.an-rt-rv__who{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.an-rt-rv__av{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#6b3f2a;color:#fff;font-weight:900;font-size:16px}
.an-rt-rv__name{display:grid;gap:3px;min-width:0}
.an-rt-rv__name strong{font-size:14.5px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-rt-rv__name span{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:#6b5a50}
.an-rt-rv__name .an-rt-stars{font-size:14px}
.an-rt-rv p{margin:0;font-size:15px;line-height:1.75;font-weight:600;color:#33241b;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.an-rt-rv.is-open p{-webkit-line-clamp:unset;display:block}
.an-rt-rv__more{margin-top:6px;padding:6px 0;min-height:36px;border:0;background:none;color:#7d1d2b;font:inherit;font-size:13.5px;font-weight:900;cursor:pointer}
.an-rt-rv__more[hidden]{display:none}

.an-rt-panel__foot{display:grid;gap:8px;padding:14px 16px 18px}
.an-rt-panel__foot a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 14px;border-radius:14px;background:#21140e;color:#fff!important;text-decoration:none!important;font-size:15px;font-weight:900}
.an-rt-panel__foot a:hover{background:#3a2a20}
.an-rt-panel__note{margin:0;text-align:center;font-size:12px;font-weight:700;color:#8a7a70}

/* phones: a bottom sheet that slides up, full width */
@media (max-width:700px){
  .an-rt-panel{inset:auto 0 0 0;margin:0;width:100%;max-height:92dvh}
  .an-rt-panel__box{max-height:92dvh;border-radius:24px 24px 0 0;animation:anRtUp .3s cubic-bezier(.2,.8,.2,1)}
  .an-rt-panel__top{padding:26px 18px 18px}
  .an-rt-panel__top:before{content:"";position:absolute;top:8px;left:50%;width:42px;height:5px;margin-left:-21px;border-radius:5px;background:rgba(255,255,255,.3)}
  .an-rt-panel__big b{font-size:46px}
  .an-rt-panel__big .an-rt-stars{font-size:22px}
  .an-rt-panel__src{gap:8px;padding:12px 12px 2px}
  .an-rt-card{padding:12px}
  .an-rt-card__num b{font-size:26px}
  .an-rt-card__num .an-rt-stars{font-size:14px;letter-spacing:1px}
  .an-rt-panel__reviews{padding:12px 12px 2px}
  .an-rt-panel__foot{padding:12px 12px calc(16px + env(safe-area-inset-bottom))}
}
@keyframes anRtUp{from{transform:translateY(100%)}to{transform:none}}
@media (max-width:360px){.an-rt-panel__src{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){
  .an-rt-panel__box,html body .an-hq .an-rt-strip.is-turning>a{animation:none!important}
}
.an-rt-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
