/* ===================================
   single-page-sidebar.css — UPDATED TO MATCH INDEX DESIGN SYSTEM
   Uses same tokens: Sora + DM Sans, --brand #FF5A3C, --blue #003580
   =================================== */

/* ===================================
   DESIGN TOKENS — scoped to sidebar
   =================================== */
.sp-col-lg-4 {
    --brand:      #FF5A3C;
    --brand-dark: #D94427;
    --brand-lt:   rgba(255, 90, 60, .08);
    --ink:        #111827;
    --ink-soft:   #374151;
    --ink-muted:  #6B7280;
    --line:       #E5E7EB;
    --bg:         #F9FAFB;
    --white:      #FFFFFF;
    --gold:       #F59E0B;
    --green:      #059669;
    --blue:       #003580;
    --radius:     14px;
    --r-lg:       18px;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.08);
    --sh-lg:      0 8px 32px rgba(0,0,0,.14), 0 32px 64px rgba(0,0,0,.10);
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-head:  'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===================================
   LAYOUT HELPERS (sidebar scope)
   =================================== */
.sp-col-lg-4 .text-center { text-align: center; }
.sp-col-lg-4 .d-flex      { display: flex; }
.sp-col-lg-4 .align-items-center { align-items: center; }
.sp-col-lg-4 .w-100       { width: 100%; }
.sp-col-lg-4 .mb-2        { margin-bottom: 8px; }
.sp-col-lg-4 .mb-3        { margin-bottom: 14px; }
.sp-col-lg-4 .mb-4        { margin-bottom: 22px; }
.sp-col-lg-4 .mt-2        { margin-top: 8px; }
.sp-col-lg-4 .mt-3        { margin-top: 14px; }
.sp-col-lg-4 .me-1        { margin-right: 4px; }
.sp-col-lg-4 .me-2        { margin-right: 8px; }
.sp-col-lg-4 .small       { font-size: 12px; }
.sp-col-lg-4 .fw-bold     { font-weight: 700; }
.sp-col-lg-4 .opacity-75  { opacity: 0.75; }

.sp-col-lg-4 .text-muted    { color: var(--ink-muted) !important; }
.sp-col-lg-4 .text-primary  { color: var(--brand) !important; }
.sp-col-lg-4 .text-success  { color: var(--green) !important; }
.sp-col-lg-4 .text-warning  { color: var(--gold) !important; }

.sp-col-lg-4 hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 14px 0;
}

/* ===================================
   PRICING CARD
   matches index dark hero / search-hero
   =================================== */
.sp-pricing-card {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 26px;
    margin-bottom: 16px;
    box-shadow: var(--sh-lg);
    color: white;
    position: sticky;
    top: 20px;
    overflow: hidden;
    /* brand glow — same as bk-search-hero */
    position: relative;
}

.sp-pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 85% 15%, rgba(255,90,60,.25) 0%, transparent 55%),
        radial-gradient(ellipse 45% 55% at 15% 85%, rgba(255,90,60,.12) 0%, transparent 55%);
    pointer-events: none;
}

.sp-pricing-card > * { position: relative; }

.sp-price {
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1.05;
    margin-bottom: 6px;
    letter-spacing: -.03em;
}

.sp-price-unit {
    font-family: var(--font-head);
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
    margin-bottom: 0;
}

/* ===================================
   CONTACT CARD (white cards)
   =================================== */
.sp-contact-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.sp-contact-card:hover {
    box-shadow: var(--shadow-md);
}

.sp-contact-card h5 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -.01em;
}

/* Help card variant */
.sp-help-card {
    background: var(--bg);
    border-color: var(--line);
}

.sp-help-card svg {
    width: 44px;
    height: 44px;
    fill: var(--brand);
    margin-bottom: 10px;
}

.sp-help-card h6 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 7px 0;
    letter-spacing: -.01em;
}

.sp-help-card p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 14px 0;
    line-height: 1.6;
}

/* ===================================
   BUTTONS — all match bk-pcta style
   =================================== */

/* Primary book / CTA */
.sp-btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: var(--brand);
    color: white !important;
    border: none;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 90, 60, .3);
    margin-bottom: 10px;
    letter-spacing: .01em;
}

.sp-btn-book:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 90, 60, .42);
    color: white !important;
    text-decoration: none;
}

/* Secondary / contact outline button */
.sp-btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: transparent;
    color: rgba(255, 255, 255, .9) !important;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    margin-bottom: 10px;
}

.sp-btn-contact:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Used inside white cards */
.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: var(--brand);
    color: white !important;
    border: none;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 90, 60, .28);
    margin-top: 14px;
}

.sp-btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 60, .38);
    color: white !important;
    text-decoration: none;
}

/* Ghost outline — used in Help card */
.sp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: white;
    color: var(--brand) !important;
    border: 2px solid var(--brand);
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.sp-btn-outline:hover {
    background: var(--brand);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 90, 60, .28);
    text-decoration: none;
}

/* Write review button */
.sp-btn-write-review {
    width: 100%;
    padding: 13px 20px;
    background: var(--gold);
    color: var(--ink) !important;
    border: none;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .3);
}

.sp-btn-write-review:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, .4);
}

/* Load more reviews */
.sp-btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--bg);
    color: var(--ink-soft);
    border: 1.5px solid var(--line);
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.sp-btn-load-more:hover {
    background: var(--brand-lt);
    border-color: rgba(255, 90, 60, .35);
    color: var(--brand);
    transform: translateY(-1px);
}

.sp-btn-load-more svg {
    transition: transform var(--transition);
}

.sp-btn-load-more:hover svg {
    transform: translateY(2px);
}

/* ===================================
   OWNER INFO
   =================================== */
.sp-owner-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
    margin-right: 14px;
    flex-shrink: 0;
}

.sp-contact-info { flex: 1; }

.sp-contact-name {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 3px;
    letter-spacing: -.01em;
}

/* ===================================
   ALERT
   =================================== */
.sp-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.sp-alert-info {
    background: rgba(0, 53, 128, .07);
    border: 1px solid rgba(0, 53, 128, .15);
    color: var(--blue);
}

/* ===================================
   SHARE ICONS
   =================================== */
.sp-share-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.sp-share-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-sm);
}

.sp-share-icon-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-md);
}

.sp-facebook  { background: #1877f2; }
.sp-twitter   { background: #1da1f2; }
.sp-whatsapp  { background: #25d366; }
.sp-copy      { background: var(--ink-muted); }

/* ===================================
   REVIEWS SECTION
   =================================== */
.sp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Rating overview block */
.sp-rating-overview {
    text-align: center;
    padding: 18px;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid rgba(245, 158, 11, .2);
}

.sp-rating-number {
    font-family: var(--font-head);
    font-size: 44px;
    font-weight: 800;
    color: #ea580c;
    line-height: 1;
    margin-bottom: 7px;
    letter-spacing: -.03em;
}

.sp-rating-stars {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 7px;
    letter-spacing: 2px;
}

.sp-rating-count {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: #78350f;
}

/* Rating bars */
.sp-rating-breakdown { margin: 16px 0; }

.sp-rating-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}

.sp-rating-bar-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    min-width: 52px;
}

.sp-rating-bar-track {
    flex: 1;
    height: 7px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.sp-rating-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width .4s ease;
}

.sp-rating-bar-count {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    min-width: 24px;
    text-align: right;
}

/* Individual review */
.sp-review-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.sp-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-review-header {
    display: flex;
    gap: 11px;
    margin-bottom: 10px;
}

.sp-reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--line);
}

.sp-reviewer-info { flex: 1; }

.sp-reviewer-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 2px;
}

.sp-review-date {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
}

.sp-review-rating {
    display: flex;
    gap: 2px;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 7px;
    letter-spacing: 1px;
}

.sp-review-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 6px;
}

.sp-review-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 10px;
}

.sp-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(5, 150, 105, .1);
    color: var(--green);
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(5, 150, 105, .2);
}

.sp-review-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sp-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all var(--transition);
}

.sp-helpful-btn:hover {
    background: var(--brand-lt);
    border-color: rgba(255, 90, 60, .3);
    color: var(--brand);
}

.sp-helpful-btn.marked {
    background: rgba(0, 53, 128, .08);
    border-color: rgba(0, 53, 128, .25);
    color: var(--blue);
}

/* Empty reviews state */
#reviews-section .text-center {
    padding: 32px 16px;
}

.sp-view-all-link {
    font-family: var(--font-head);
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition);
}

.sp-view-all-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* ===================================
   LOADING SPINNER
   =================================== */
.sp-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: sp-sidebar-spin 0.75s linear infinite;
}

@keyframes sp-sidebar-spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   REVIEW FORM (inside modal)
   =================================== */
.sp-review-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sp-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sp-form-label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.sp-form-input,
.sp-form-textarea,
select.sp-form-input {
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
}

.sp-form-input:focus,
.sp-form-textarea:focus,
select.sp-form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-lt);
}

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

/* Star rating in review form */
.sp-star-rating {
    display: flex;
    gap: 6px;
    font-size: 34px;
    line-height: 1;
}

.sp-star {
    cursor: pointer;
    transition: all .18s ease;
    color: var(--line);
    user-select: none;
}

.sp-star:hover,
.sp-star.active {
    color: var(--gold);
    transform: scale(1.12);
}

/* ===================================
   TOAST ANIMATIONS (injected by JS)
   Override for brand consistency
   =================================== */
.bk-toast {
    font-family: var(--font-head) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991px) {
    .sp-col-lg-4 {
        margin-top: 24px;
    }

    .sp-pricing-card,
    .sp-contact-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .sp-pricing-card {
        padding: 20px;
    }

    .sp-price {
        font-size: 34px;
    }

    .sp-contact-card {
        padding: 18px;
    }

    .sp-btn-book,
    .sp-btn-contact,
    .sp-btn-primary {
        padding: 13px 18px;
        font-size: 14px;
    }

    .sp-share-icon-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .sp-owner-avatar {
        width: 48px;
        height: 48px;
    }

    .sp-rating-number {
        font-size: 36px;
    }
}