/* ==========================================================================
   EasyRiyada - Specialist Profile Stylesheet (Shezlong & EasyRiyada Design)
   ========================================================================== */

:root {
    --sp-green: #00845a;
    --sp-green-hover: #00704c;
    --sp-green-light: #e5f6ef;
    --sp-green-tint: #f0faf5;
    --sp-accent: #12a878;
    --sp-ink: #172725;
    --sp-muted: #627470;
    --sp-line: #e3ece9;
    --sp-soft: #f8faf9;
    --sp-card-bg: #ffffff;
    --sp-gold: #df9a21;
    --sp-gold-bg: #fdf7ec;
    --sp-shadow-sm: 0 4px 14px rgba(18, 58, 48, 0.04);
    --sp-shadow-md: 0 10px 30px rgba(18, 58, 48, 0.07);
    --sp-shadow-lg: 0 20px 50px rgba(18, 58, 48, 0.1);
    --sp-container: min(1200px, calc(100% - 40px));
    --sp-radius: 18px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    background-color: var(--sp-soft);
    color: var(--sp-ink);
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.sp-profile-page {
    min-height: 100vh;
}

.sp-container {
    width: var(--sp-container);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.sp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sp-muted);
    padding: 0 0 16px;
    margin: 0;
}

.sp-breadcrumbs a {
    color: var(--sp-green);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.sp-breadcrumbs a:hover {
    text-decoration: underline;
}

.sp-breadcrumbs .sep {
    color: #9cb0ab;
    font-size: 11px;
}

.sp-breadcrumbs b {
    color: var(--sp-ink);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.profile-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f1f8f5 100%);
    border-bottom: 1px solid var(--sp-line);
    padding-top: 114px; /* Clears fixed 78px header with 36px clean spacing */
    padding-bottom: 36px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .profile-hero {
        padding-top: 96px;
    }
}

.profile-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 168, 120, 0.08) 0%, transparent 70%);
    top: -200px;
    left: -150px;
    pointer-events: none;
}

.profile-main {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 28px;
    align-items: start;
    margin-top: 18px;
}

.profile-main > .profile-copy {
    min-width: 0;
}

.profile-main > .availability-card {
    max-width: 100%;
}

/* Avatar Photo */
.profile-photo {
    position: relative;
    width: 240px;
    height: 280px;
    border-radius: 22px;
    overflow: hidden;
    background: #e8f4ef;
    box-shadow: var(--sp-shadow-md);
    border: 3px solid #ffffff;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.profile-photo:hover img {
    transform: scale(1.03);
}

.profile-photo .verified-badge-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--sp-green);
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.profile-photo .verified-badge-pill i {
    font-style: normal;
    color: var(--sp-green);
}

/* Copy & Titles */
.profile-copy {
    padding-top: 4px;
}

.profile-copy .role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sp-green-light);
    color: var(--sp-green);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 10px;
}

.profile-copy h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--sp-ink);
    line-height: 1.25;
}

.profile-copy .prof-title {
    font-size: 17px;
    color: var(--sp-muted);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.profile-copy .prof-bio-short {
    color: #4a5c57;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 620px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadata Chips Row */
.profile-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid var(--sp-line);
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-ink);
    box-shadow: var(--sp-shadow-sm);
}

.meta-chip--rating {
    background: var(--sp-gold-bg);
    border-color: #f7e2ba;
    color: #9b6204;
}

.meta-chip--rating svg,
.meta-chip--rating span.star {
    color: var(--sp-gold);
    font-size: 16px;
}

.meta-chip--price {
    background: var(--sp-green-tint);
    border-color: #c9eedf;
    color: var(--sp-green);
}

/* Action Buttons */
.profile-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-sp-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--sp-green);
    color: #ffffff;
    border: none;
    border-radius: 13px;
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 132, 90, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-sp-primary:hover {
    background: var(--sp-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 132, 90, 0.32);
}

.btn-sp-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--sp-ink);
    border: 1.5px solid var(--sp-line);
    border-radius: 13px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-sp-outline:hover {
    border-color: var(--sp-green);
    color: var(--sp-green);
    background: var(--sp-green-tint);
}

.btn-sp-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    border: 1.5px solid var(--sp-line);
    background: #ffffff;
    color: var(--sp-muted);
    font-size: 20px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sp-icon:hover {
    color: #e74c3c;
    border-color: #fbd6d2;
    background: #fff8f7;
}

.btn-sp-icon.active {
    color: #e74c3c;
}

/* --------------------------------------------------------------------------
   Availability Box (Shezlong Time-Slots Card)
   -------------------------------------------------------------------------- */
.availability-card {
    background: #ffffff;
    border: 1px solid var(--sp-line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--sp-shadow-md);
    position: relative;
}

.available-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--sp-green);
    margin-bottom: 12px;
}

.available-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    position: relative;
}

.available-pulse-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #27ae60;
    opacity: 0.6;
    animation: spPulse 2s infinite ease-out;
}

@keyframes spPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.availability-card h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--sp-ink);
}

.slot-buttons-list {
    display: grid;
    gap: 8px;
}

.slot-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid var(--sp-line);
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
}

.slot-btn b {
    color: var(--sp-green);
    font-size: 14.5px;
    font-weight: 800;
}

.slot-btn:hover {
    border-color: var(--sp-green);
    background: var(--sp-green-tint);
}

.slot-btn.is-selected {
    border-color: var(--sp-green);
    background: var(--sp-green-light);
    color: var(--sp-green);
}

.slot-btn.is-selected b {
    color: var(--sp-green);
}

.availability-card .slot-note {
    display: block;
    font-size: 12px;
    color: var(--sp-muted);
    margin-top: 14px;
    line-height: 1.5;
}

.availability-card .btn-book-slot-now {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Profile Content Section
   -------------------------------------------------------------------------- */
.sp-content-section {
    padding: 36px 0 70px;
}

/* Tabs */
.sp-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--sp-line);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-tabs-nav::-webkit-scrollbar {
    display: none;
}

.sp-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.sp-tab-btn:hover {
    color: var(--sp-ink);
}

.sp-tab-btn.is-active {
    color: var(--sp-green);
    border-bottom-color: var(--sp-green);
    font-weight: 800;
}

/* Layout Grid */
.sp-profile-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: flex-start;
}

/* Cards */
.sp-card {
    background: var(--sp-card-bg);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 26px;
    box-shadow: var(--sp-shadow-sm);
    margin-bottom: 22px;
}

.sp-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--sp-ink);
    margin: 0 0 16px;
}

.sp-card p {
    color: #4a5d58;
    line-height: 1.8;
    font-size: 15.5px;
    margin: 0 0 16px;
}

/* Panels */
.sp-tab-panel {
    display: none;
}

.sp-tab-panel.is-active {
    display: block;
    animation: spFadeIn 0.3s ease;
}

@keyframes spFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info Grid (About Tab) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.info-grid-item {
    background: var(--sp-soft);
    border: 1px solid #edf3f0;
    border-radius: 14px;
    padding: 14px 18px;
}

.info-grid-item small {
    display: block;
    font-size: 12.5px;
    color: var(--sp-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.info-grid-item b {
    display: block;
    font-size: 15.5px;
    color: var(--sp-ink);
    font-weight: 800;
}

/* Tags Cloud */
.sp-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.sp-tag-item {
    background: var(--sp-green-light);
    color: #0b6848;
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid #c7eada;
}

/* Services Tab */
.services-list-container {
    display: grid;
    gap: 14px;
}

.service-item-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.25s ease;
}

.service-item-row:hover {
    border-color: #b7e0d0;
    box-shadow: 0 8px 24px rgba(0, 132, 90, 0.08);
    transform: translateY(-2px);
}

.service-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--sp-green-light);
    color: var(--sp-green);
    font-size: 22px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 900;
}

.service-details b {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: var(--sp-ink);
    margin-bottom: 5px;
}

.service-badge {
    background: #fff4db;
    color: #925805;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
}

.service-details small {
    display: block;
    color: var(--sp-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.service-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.service-price-tag {
    font-size: 17px;
    font-weight: 800;
    color: var(--sp-green);
    white-space: nowrap;
}

.btn-select-service {
    background: #ffffff;
    border: 1.5px solid var(--sp-green);
    color: var(--sp-green);
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-service:hover {
    background: var(--sp-green);
    color: #ffffff;
}

/* Reviews Tab */
.rating-big-header {
    display: flex;
    align-items: center;
    gap: 22px;
    background: #fafcfb;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.rating-score-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--sp-ink);
    line-height: 1;
}

.rating-stars-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars-col .stars-row {
    color: var(--sp-gold);
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-stars-col small {
    color: var(--sp-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.reviews-list-wrap {
    display: grid;
    gap: 16px;
}

.review-item-card {
    background: #ffffff;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 18px 20px;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author-info b {
    display: block;
    font-size: 15.5px;
    color: var(--sp-ink);
}

.review-author-info small {
    color: var(--sp-muted);
    font-size: 12.5px;
}

.review-score-stars {
    color: var(--sp-gold);
    font-size: 15px;
}

.review-comment-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #455551;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Sidebar Cards
   -------------------------------------------------------------------------- */
.sidebar-sticky-wrap {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.safety-card {
    background: #ffffff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 24px;
    box-shadow: var(--sp-shadow-sm);
}

.verified-large-banner {
    background: linear-gradient(135deg, #e4f7ee, #cceee0);
    border: 1px solid #b5e4cf;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-green);
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 14px;
}

.verified-large-banner span.icon {
    font-size: 22px;
}

.safety-features-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.safety-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #4c5d59;
    line-height: 1.5;
}

.safety-features-list li svg,
.safety-features-list li span.chk {
    color: var(--sp-green);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.quick-book-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 24px;
    box-shadow: var(--sp-shadow-sm);
    text-align: center;
}

.quick-book-sidebar-card .session-rate-label {
    font-size: 13px;
    color: var(--sp-muted);
    font-weight: 700;
}

.quick-book-sidebar-card .session-rate-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--sp-green);
    margin: 6px 0 18px;
}

.quick-book-sidebar-card .session-rate-number small {
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-muted);
}

/* --------------------------------------------------------------------------
   Mobile Sticky Booking Bar (Shezlong UX)
   -------------------------------------------------------------------------- */
.mobile-sticky-booking-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--sp-line);
    padding: 12px 18px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.09);
    z-index: 40;
    align-items: center;
    justify-content: space-between;
}

.mobile-price-display small {
    display: block;
    font-size: 11.5px;
    color: var(--sp-muted);
    font-weight: 700;
}

.mobile-price-display b {
    font-size: 20px;
    color: var(--sp-green);
    font-weight: 900;
}

/* --------------------------------------------------------------------------
   Modal Window (Booking & Confirmation)
   -------------------------------------------------------------------------- */
.sp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 39, 33, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    place-items: center;
    padding: 18px;
    z-index: 1000;
}

.sp-modal-backdrop.is-open {
    display: grid;
    animation: spFadeIn 0.25s ease;
}

.sp-modal-card {
    width: min(540px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    position: relative;
    box-shadow: var(--sp-shadow-lg);
}

.sp-modal-close-btn {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f4f2;
    color: var(--sp-ink);
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.sp-modal-close-btn:hover {
    background: #e2ebe6;
}

.sp-modal-head-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--sp-green-light);
    color: var(--sp-green);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.sp-modal-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--sp-ink);
}

.sp-modal-card p.subtitle {
    color: var(--sp-muted);
    font-size: 14px;
    margin: 0 0 20px;
}

.sp-form-field {
    margin-bottom: 16px;
}

.sp-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-ink);
    margin-bottom: 6px;
}

.sp-form-input,
.sp-form-select,
.sp-form-textarea {
    width: 100%;
    border: 1.5px solid var(--sp-line);
    border-radius: 12px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--sp-ink);
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.sp-form-input:focus,
.sp-form-select:focus,
.sp-form-textarea:focus {
    outline: none;
    border-color: var(--sp-green);
    box-shadow: 0 0 0 3px rgba(0, 132, 90, 0.12);
}

.sp-form-textarea {
    height: 85px;
    resize: vertical;
}

.sp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sp-booking-notice-box {
    background: var(--sp-green-tint);
    border: 1px solid #c9ecdf;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #215e4c;
    line-height: 1.5;
    margin: 18px 0;
}

/* Toast — top-center so it never collides with the live-chat hub (bottom-left) */
.sp-toast-notification {
    position: fixed;
    top: 96px;
    left: 50%;
    bottom: auto;
    background: #123d34;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    font-size: 14.5px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, -16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100001;
    pointer-events: none;
    max-width: min(920px, calc(100vw - 32px));
    text-align: center;
    border-right: 4px solid #12a878;
}

.sp-toast-notification.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .profile-main {
        grid-template-columns: 200px 1fr;
    }
    .profile-photo {
        width: 200px;
        height: 240px;
    }
    .availability-card {
        grid-column: 1 / -1;
    }
    .sp-profile-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-sticky-wrap {
        position: static;
    }
}

@media (max-width: 768px) {
    .profile-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-photo {
        margin: 0 auto;
        width: 180px;
        height: 210px;
    }
    .profile-copy h1 {
        font-size: 28px;
    }
    .profile-meta-strip {
        justify-content: center;
    }
    .profile-actions-bar {
        justify-content: center;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .service-item-row {
        grid-template-columns: 1fr;
        text-align: right;
    }
    .service-action-group {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--sp-line);
        padding-top: 12px;
        margin-top: 8px;
    }
    .mobile-sticky-booking-bar {
        display: flex;
    }
    .sp-content-section {
        padding-bottom: 90px;
    }
    .sp-form-row {
        grid-template-columns: 1fr;
    }
}
