/* ==========================================================================
   OtabiRoute Visual Page Builder — Global Frontend & Canvas Styles
   ========================================================================== */

:root {
    --pb-primary: #d90429;
    --pb-primary-hover: #b80020;
    --pb-dark: #0f172a;
    --pb-gray-50: #f8fafc;
    --pb-gray-100: #f1f5f9;
    --pb-gray-200: #e2e8f0;
    --pb-gray-600: #475569;
    --pb-gray-900: #0f172a;
}

/* ── Section Container & Stream ────────────────────────────────────────── */
.page-builder-content-stream {
    width: 100%;
    position: relative;
}

.builder-section-wrapper {
    position: relative;
    transition: outline 0.2s ease, box-shadow 0.2s ease;
}

/* In Canvas Editor Mode: Outline and Action Pill */
.in-builder-mode .builder-section-wrapper {
    cursor: pointer;
}
.in-builder-mode .builder-section-wrapper:hover {
    outline: 2px dashed rgba(217, 4, 41, 0.45);
    outline-offset: -2px;
}
.in-builder-mode .builder-section-wrapper.active-editing {
    outline: 3px solid #d90429 !important;
    outline-offset: -3px;
    box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.2);
}

.builder-section-hidden {
    opacity: 0.7;
    position: relative;
}

/* ── Rich Text Typography Formatting ───────────────────────────────────── */
.cms-page-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}

.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4,
.cms-page-content h5 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.cms-page-content h1 { font-size: 2rem; }
.cms-page-content h2 { font-size: 1.65rem; }
.cms-page-content h3 { font-size: 1.35rem; }
.cms-page-content h4 { font-size: 1.15rem; }

.cms-page-content p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.cms-page-content p:last-child {
    margin-bottom: 0;
}

.cms-page-content ul,
.cms-page-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
}

.cms-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.cms-page-content a {
    color: #d90429;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.cms-page-content a:hover {
    color: #b80020;
}

.cms-page-content strong {
    color: #0f172a;
    font-weight: 700;
}

.cms-page-content blockquote {
    border-left: 4px solid #d90429;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    color: #475569;
    font-style: italic;
}

.cms-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.cms-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cms-page-content th,
.cms-page-content td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.cms-page-content th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

/* ── Interactive Cards Hover FX ────────────────────────────────────────── */
.pb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.07) !important;
}

/* ── Pricing Tables ────────────────────────────────────────────────────── */
.pb-pricing-section {
    padding: 4.5rem 0;
    background: #f8fafc;
}
.pb-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}
.pb-pricing-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pb-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.pb-pricing-card-featured {
    border-color: #0071eb;
    box-shadow: 0 8px 24px rgba(0, 113, 235, 0.12);
}
.pb-pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #0071eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 9999px;
}
.pb-pricing-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}
.pb-pricing-price-wrap {
    margin: 1rem 0 1.5rem 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pb-pricing-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.pb-pricing-card-featured .pb-pricing-price {
    color: #0071eb;
}
.pb-pricing-period {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}
.pb-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.pb-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
}
.pb-pricing-features i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}
.pb-pricing-btn-wrap .pb-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pb-btn-primary {
    background: #0071eb;
    color: #ffffff;
}
.pb-btn-primary:hover {
    background: #005fca;
}
.pb-btn-outline {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
}
.pb-btn-outline:hover {
    background: #f8fafc;
    border-color: #0071eb;
    color: #0071eb;
}

/* ── Testimonials ──────────────────────────────────────────────────────── */
.pb-testimonials-section {
    padding: 4.5rem 0;
    background: #ffffff;
}
.pb-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}
.pb-testimonial-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pb-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}
.pb-testimonial-stars .star-filled { color: #f59e0b; }
.pb-testimonial-stars .star-empty { color: #cbd5e1; }
.pb-testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    border: none;
    background: none;
    padding: 0;
}
.pb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pb-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.pb-testimonial-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.pb-testimonial-author-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}
.pb-testimonial-name {
    color: #0f172a;
    font-weight: 800;
}
.pb-testimonial-loc {
    color: #64748b;
}
.pb-testimonial-trip {
    color: #0071eb;
    font-weight: 600;
    font-size: 0.78rem;
}

/* ── Statistics Counter ────────────────────────────────────────────────── */
.pb-stats-section {
    padding: 3.5rem 0;
    background: #0f172a;
    color: #ffffff;
}
.pb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.pb-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}
.pb-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.pb-stat-card.theme-blue .pb-stat-icon { background: rgba(0, 113, 235, 0.2); color: #60a5fa; }
.pb-stat-card.theme-gold .pb-stat-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pb-stat-card.theme-green .pb-stat-icon { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pb-stat-card.theme-rose .pb-stat-icon { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.pb-stat-number {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
}
.pb-stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Notice Banner ─────────────────────────────────────────────────────── */
.pb-notice-section {
    padding: 1.25rem 0;
}
.pb-notice-section.alert-amber { background: #fef3c7; color: #92400e; border-bottom: 1.5px solid #fde68a; }
.pb-notice-section.alert-blue { background: #eff6ff; color: #1e40af; border-bottom: 1.5px solid #bfdbfe; }
.pb-notice-section.alert-green { background: #ecfdf5; color: #065f46; border-bottom: 1.5px solid #a7f3d0; }
.pb-notice-section.alert-red { background: #fef2f2; color: #991b1b; border-bottom: 1.5px solid #fecaca; }
.pb-notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.pb-notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.pb-notice-content { flex: 1; }
.pb-notice-title { display: block; font-size: 0.95rem; font-weight: 800; }
.pb-notice-desc { margin: 2px 0 0 0; font-size: 0.88rem; }
.pb-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: currentColor;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Icon List ─────────────────────────────────────────────────────────── */
.pb-icon-list-section { padding: 4rem 0; }
.pb-icon-list-grid { display: grid; gap: 20px; }
.pb-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pb-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pb-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pb-icon-list-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.pb-icon-list-bullet {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #0071eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.pb-icon-list-title {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.pb-icon-list-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* ── Common Header Styles ──────────────────────────────────────────────── */
.pb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.pb-section-header {
    margin-bottom: 2rem;
}
.pb-section-header.text-center {
    text-align: center;
}
.pb-eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0071eb;
    display: block;
    margin-bottom: 6px;
}
.pb-heading {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}
.pb-subheading {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ── Car & Guide Sub-Component Styles ──────────────────────────────────── */
.car-guarantees-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 1.5rem 0;
}
.car-guarantee-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 14px;
}
.car-guarantee-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.car-guarantee-card.theme-green .car-guarantee-icon { background: #ecfdf5; color: #10b981; }
.car-guarantee-card.theme-rose .car-guarantee-icon { background: #fff1f2; color: #f43f5e; }
.car-guarantee-card.theme-blue .car-guarantee-icon { background: #eff6ff; color: #0071eb; }
.car-guarantee-card.theme-gold .car-guarantee-icon { background: #fffbeb; color: #f59e0b; }
.car-guarantee-card.theme-purple .car-guarantee-icon { background: #faf5ff; color: #a855f7; }
.car-guarantee-card.theme-teal .car-guarantee-icon { background: #f0fdfa; color: #14b8a6; }
.car-guarantee-title { display: block; font-size: 0.92rem; color: #0f172a; font-weight: 800; }
.car-guarantee-sub { display: block; font-size: 0.8rem; color: #64748b; }

.car-specs-grid, .car-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}
.car-spec-item, .car-amenity-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.car-spec-icon, .car-amenity-icon {
    color: #0071eb;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.car-spec-text, .car-amenity-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.car-routes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}
.car-route-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.car-route-title { font-size: 0.95rem; font-weight: 800; color: #0f172a; }
.car-route-meta { display: flex; gap: 10px; font-size: 0.8rem; color: #64748b; margin-top: 4px; }
.car-route-price .price-num { font-size: 1.35rem; font-weight: 900; color: #0071eb; }
.car-route-price .price-cur { font-size: 0.75rem; font-weight: 700; color: #64748b; margin-left: 2px; }

.car-pickup-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .car-pickup-grid-split { grid-template-columns: 1fr; }
}
.car-pickup-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.car-pickup-step-card .step-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0071eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.car-pickup-step-card h4 { margin: 0 0 3px 0; font-size: 0.95rem; font-weight: 800; color: #0f172a; }
.car-pickup-step-card p { margin: 0; font-size: 0.84rem; color: #64748b; line-height: 1.45; }

.car-gallery-grid-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
    max-height: 440px;
}
.car-gallery-main {
    position: relative;
    height: 100%;
    min-height: 320px;
}
.car-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.car-gallery-view-all-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.car-gallery-thumbs-col {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}
.car-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.car-pricing-overview-strip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.car-po-badge-wrap {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 700;
}
.car-po-urgency { color: #ea580c; background: #fff7ed; padding: 4px 10px; border-radius: 6px; }
.car-po-cancel { color: #16a34a; background: #f0fdf4; padding: 4px 10px; border-radius: 6px; }
.car-po-rates-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.car-po-rate-card {
    flex: 1;
    min-width: 160px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
}
.car-po-rate-card .rate-label { display: block; font-size: 0.78rem; color: #64748b; font-weight: 700; }
.car-po-rate-card .rate-val { display: block; font-size: 1.45rem; font-weight: 900; color: #0071eb; margin-top: 2px; }

/* ── Responsive Adjustments ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pb-hero-section {
        padding: 3.5rem 0 3rem !important;
        min-height: auto !important;
    }
    .pb-pricing-grid, .pb-testimonials-grid, .pb-stats-grid {
        grid-template-columns: 1fr;
    }
    .car-gallery-grid-mosaic {
        grid-template-columns: 1fr;
        max-height: none;
    }
}

