@import url('tokens.css');

:root {
    --pr-primary: #1a237e;
    --pr-accent: #00c9a7;
    --pr-bg: #f5f6fa;
    --pr-card: #ffffff;
    --pr-text: #2d3748;
    --pr-secondary: #718096;
    --pr-muted: #a0aec0;
    --pr-border: #e2e8f0;
    --pr-radius: 14px;
    --pr-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    background: var(--pr-bg);
    color: var(--pr-text);
    min-height: 100vh;
}
.pr-loading { text-align: center; padding: 120px 20px; font-size: 32px; color: var(--pr-muted); }

.pr-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 20px 60px; }
.pr-back { display: inline-flex; align-items: center; gap: 6px; color: var(--pr-secondary); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.pr-back:hover { color: var(--pr-primary); }

/* Header */
.pr-header {
    background: var(--pr-card);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.pr-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pr-avatar-ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-accent));
    color: #fff; font-size: 36px; font-weight: 700;
}
.pr-head-info { flex: 1; min-width: 220px; }
.pr-name { font-size: 26px; font-weight: 800; }
.pr-specialization { color: var(--pr-accent); font-weight: 600; margin: 4px 0 10px; }
.pr-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--pr-secondary); margin-bottom: 10px; }
.pr-rating i { color: #f59e0b; }
.pr-muted { color: var(--pr-muted); }
.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: rgba(26,35,126,0.08); color: var(--pr-primary); }
.pr-book-cta, .pr-side-book {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--pr-accent); color: #fff; text-decoration: none;
    padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.pr-book-cta:hover, .pr-side-book:hover { background: #00b394; }

/* Grid */
.pr-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; align-items: start; }
.pr-card { background: var(--pr-card); border-radius: var(--pr-radius); box-shadow: var(--pr-shadow); padding: 22px; margin-bottom: 20px; }
.pr-card-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.pr-bio { line-height: 1.7; color: var(--pr-secondary); white-space: pre-line; }

/* Services */
.pr-services { display: flex; flex-direction: column; gap: 14px; }
.pr-service { border: 1px solid var(--pr-border); border-radius: 12px; padding: 14px; }
.pr-service-head { display: flex; align-items: center; gap: 8px; }
.pr-service-name { font-weight: 700; }
.pr-mode-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(0,201,167,0.12); color: var(--pr-accent); text-transform: uppercase; }
.pr-service-desc { font-size: 13px; color: var(--pr-secondary); margin: 6px 0; }
.pr-service-tiers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; }
.pr-tier { font-weight: 700; color: var(--pr-primary); font-size: 14px; }
.pr-tier-label { font-weight: 500; color: var(--pr-muted); font-size: 12px; }
.pr-duration { font-size: 12px; color: var(--pr-muted); margin-left: auto; }

/* Calendar */
.pr-calendar { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.pr-cal-day { min-width: 92px; text-align: center; }
.pr-cal-daylabel { font-size: 12px; color: var(--pr-secondary); margin-bottom: 8px; }
.pr-cal-times { display: flex; flex-direction: column; gap: 6px; }
.pr-slot {
    border: 1px solid var(--pr-border); background: var(--pr-card); color: var(--pr-primary);
    border-radius: 8px; padding: 8px 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.pr-slot:hover { background: var(--pr-primary); color: #fff; border-color: var(--pr-primary); }

/* Reviews */
.pr-reviews { display: flex; flex-direction: column; gap: 16px; }
.pr-review { border-bottom: 1px solid var(--pr-border); padding-bottom: 14px; }
.pr-review:last-child { border-bottom: none; padding-bottom: 0; }
.pr-review-head { display: flex; align-items: center; gap: 10px; }
.pr-review-name { font-weight: 700; }
.pr-verified { font-size: 11px; font-weight: 600; color: #16a34a; display: inline-flex; align-items: center; gap: 3px; }
.pr-stars { color: #f59e0b; font-size: 13px; margin: 4px 0; }
.pr-review-text { color: var(--pr-secondary); line-height: 1.6; font-size: 14px; }
.pr-review-count { color: var(--pr-muted); font-weight: 500; font-size: 15px; }

/* Sidebar */
.pr-sticky { position: sticky; top: 16px; }
.pr-store-name { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.pr-store-addr { font-size: 13px; color: var(--pr-secondary); margin-bottom: 6px; display: flex; gap: 6px; align-items: flex-start; }
.pr-store-link { display: inline-block; margin: 8px 0 16px; color: var(--pr-primary); font-size: 13px; text-decoration: none; font-weight: 600; }
.pr-side-book { width: 100%; justify-content: center; }

/* Error */
.pr-error { text-align: center; padding: 100px 20px; color: var(--pr-muted); }
.pr-error i { font-size: 56px; margin-bottom: 16px; }
.pr-error h2 { margin-bottom: 20px; color: var(--pr-secondary); }

@media (max-width: 860px) {
    .pr-grid { grid-template-columns: 1fr; }
    .pr-sticky { position: static; }
    .pr-header { flex-direction: column; text-align: center; }
    .pr-meta { justify-content: center; }
    .pr-tags { justify-content: center; }
}

/* Gap features: creds, faq, locations, insurances, video, favorite */
.pr-head-actions { display: flex; align-items: center; gap: 10px; }
.pr-fav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pr-border); background: #fff; color: #cbd5e1; cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; text-decoration: none; box-sizing: border-box; }
.pr-fav-btn > i { display: block; line-height: 1; }
.pr-fav-btn:hover, .pr-fav-btn.faved { color: #ef4444; border-color: #ef4444; }
.pr-video-badge { color: #16a34a; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.pr-timeline { list-style: none; padding: 0; margin: 0; }
.pr-timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--pr-accent); margin-bottom: 4px; font-size: 14px; }
[dir="rtl"] .pr-timeline li { border-left: none; border-right: 2px solid var(--pr-accent); padding: 8px 16px 8px 0; }
.pr-faqs { display: flex; flex-direction: column; gap: 8px; }
.pr-faq { border: 1px solid var(--pr-border); border-radius: 10px; padding: 12px 14px; }
.pr-faq summary { font-weight: 600; cursor: pointer; }
.pr-faq-a { margin-top: 8px; color: var(--pr-secondary); line-height: 1.6; font-size: 14px; }
.pr-loc { border: 1px solid var(--pr-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.pr-loc-name { font-weight: 700; }
.pr-primary { font-size: 10px; background: rgba(0,201,167,.12); color: var(--pr-accent); padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.pr-loc-addr { font-size: 13px; color: var(--pr-secondary); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.pr-loc-map { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--pr-primary); text-decoration: none; font-weight: 600; }
.pr-map { height: 300px; border-radius: 12px; overflow: hidden; margin-top: 12px; z-index: 0; }
.pr-side-insurances { margin: 14px 0; }
.pr-ins-title { font-size: 12px; font-weight: 700; color: var(--pr-muted); text-transform: uppercase; margin-bottom: 8px; }
.pr-ins-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: rgba(0,201,167,.12); color: var(--pr-accent); margin: 0 4px 4px 0; }

/* Store professionals list (professional.html?store=slug without staff) */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 20px; }
.pl-card-link { text-decoration: none; color: inherit; }
.pl-card { background: var(--pr-card); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); padding: 18px; box-shadow: var(--pr-shadow); transition: transform .2s; }
.pl-card:hover { transform: translateY(-4px); }
.pl-head { display: flex; gap: 12px; align-items: center; }
.pl-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pl-avatar-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pr-primary), var(--pr-accent)); color: #fff; font-size: 22px; font-weight: 700; }
.pl-name { font-weight: 700; font-size: 16px; }
.pl-spec { color: var(--pr-accent); font-size: 13px; font-weight: 600; margin: 2px 0; }
.pl-rating { font-size: 13px; }
.pl-rating i { color: #f59e0b; }
.pl-slots { margin-top: 12px; border-top: 1px solid var(--pr-border); padding-top: 10px; }
.pl-day { font-size: 12px; color: var(--pr-secondary); margin-bottom: 6px; }
.pl-slot { display: inline-block; border: 1px solid var(--pr-border); border-radius: 6px; padding: 3px 8px; margin: 2px; font-size: 12px; font-weight: 600; color: var(--pr-primary); text-decoration: none; }
.pl-slot:hover { background: var(--pr-primary); color: #fff; }

/* Rating breakdown (multi-dimension) */
.pr-dim-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 14px; }
.pr-dim-row span:first-child { flex: 0 0 130px; color: var(--pr-secondary); }
.pr-dim-bar { flex: 1; height: 8px; background: var(--pr-border); border-radius: 4px; overflow: hidden; }
.pr-dim-bar span { display: block; height: 100%; background: #f59e0b; }
