/* BISMALLAH ETHIOBIZ VERTICAL HUBS & SUPER PORTALS STYLING — v4.0.0 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --vert-primary: #1FB6AE;
    --vert-primary-hover: #149a93;
    --vert-primary-light: rgba(31, 182, 174, 0.12);
    --vert-health: #ef4444;
    --vert-health-light: rgba(239, 68, 68, 0.1);
    --vert-fix: #f59e0b;
    --vert-fix-light: rgba(245, 158, 11, 0.1);
    --vert-ride: #3b82f6;
    --vert-ride-light: rgba(59, 130, 246, 0.1);
    --vert-book: #8b5cf6;
    --vert-book-light: rgba(139, 92, 246, 0.1);
    --vert-bg-glass: rgba(255, 255, 255, 0.95);
    --vert-border: rgba(0, 0, 0, 0.06);
    --vert-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --vert-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --vert-radius: 20px;
    --vert-radius-sm: 14px;
    --vert-radius-xs: 10px;
}

/* === WRAPPER === */
.vertical-portal-wrapper {
    min-height: calc(100vh - 64px);
    background: #f8fafb;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   HERO SECTIONS
   =========================== */
.vertical-hero {
    padding: 64px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Shared gradient overlay for text readability */
.vertical-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.02) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Per-vertical hero gradients (light mode, readable text) */
.health-hero {
    background: linear-gradient(135deg, #fef2f2 0%, #f0fdf4 40%, #f0fdfa 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.12);
}
.fix-hero {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 40%, #f0fdfa 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}
.booking-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #f0fdfa 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vert-primary-light);
    color: var(--vert-primary);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 7px 18px;
    border-radius: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Title & Subtitle — high-contrast dark text */
.hero-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 12px;
    color: #021a1d;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 1.08rem;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ===========================
   SEARCH CARDS
   =========================== */
.vertical-search-card {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 6px;
    background: #fff;
    padding: 6px 6px 6px 8px;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}
.vertical-search-card:focus-within {
    box-shadow: 0 8px 32px rgba(31, 182, 174, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--vert-primary);
}
.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 14px;
    gap: 8px;
}
.search-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.search-input-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: #0f172a;
}
.search-input-group input::placeholder {
    color: #94a3b8;
}

/* Primary Action Button */
.btn-vertical-primary {
    background: var(--vert-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.btn-vertical-primary:hover {
    background: var(--vert-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(31, 182, 174, 0.35);
}
.btn-vertical-primary:active {
    transform: translateY(0);
}

/* ===========================
   SPECIALTY & CATEGORY CHIPS
   =========================== */
.section-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}
.specialty-chips-section {
    padding: 18px 24px;
    border-bottom: 1px solid var(--vert-border);
    background: #fff;
}
.specialty-chips-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.specialty-chips-scroll::-webkit-scrollbar { display: none; }

.spec-chip {
    white-space: nowrap;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 9px 20px;
    border-radius: 24px;
    font-size: 0.86rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}
.spec-chip.active, .spec-chip:hover {
    background: var(--vert-primary);
    color: #fff;
    border-color: var(--vert-primary);
    box-shadow: 0 4px 14px rgba(31, 182, 174, 0.25);
}

/* ===========================
   8 MAINTENANCE CATEGORY GRID (BizFix)
   =========================== */
.maintenance-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}
.fix-cat-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--vert-radius);
    padding: 22px 16px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}
.fix-cat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vert-fix);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.fix-cat-card:hover, .fix-cat-card.active {
    border-color: var(--vert-fix);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.18);
}
.fix-cat-card:hover::after, .fix-cat-card.active::after {
    transform: scaleX(1);
}
.fix-cat-card .cat-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.fix-cat-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1e293b;
}
.fix-cat-card p {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ===========================
   RESULTS & CARD GRIDS
   =========================== */
.results-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 4px;
}
.results-header-bar > span:first-child {
    font-weight: 700;
    color: #334155;
    font-size: 0.92rem;
}
.dispatch-badge {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

/* Consultation Type Pills */
.consultation-type-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.type-pill {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}
.type-pill.active, .type-pill:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Card Grids */
.doctor-cards-grid,
.fix-service-grid,
.booking-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ===========================
   UNIVERSAL VERTICAL CARDS
   =========================== */
.vert-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--vert-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.vert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    border-color: var(--vert-primary);
}
.vert-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vert-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.vert-card:hover .vert-card-image img {
    transform: scale(1.05);
}
.vert-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.vert-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 8px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.vert-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
    line-height: 1.3;
}
.vert-card-subtitle {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.vert-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.vert-card-rating {
    color: #f59e0b;
    font-weight: 700;
}
.vert-card-price {
    font-weight: 800;
    font-size: 1.05rem;
}

/* Doctor avatar inside card */
.doc-avatar-wrap {
    height: 160px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.doc-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Fix service icon area */
.fix-icon-wrap {
    height: 140px;
    background: linear-gradient(135deg, #fef3c7 0%, #fefce8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}
.fix-icon-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(245, 158, 11, 0.2);
}

/* Booking image area */
.book-img-wrap {
    height: 170px;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.book-img-wrap img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ===========================
   RIDE LAYOUT (Uber-style split)
   =========================== */
.ride-layout-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    height: calc(100vh - 64px);
}
@media (max-width: 992px) {
    .ride-layout-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .ride-map-container {
        min-height: 350px;
        order: -1;
    }
}
.ride-planner-card {
    padding: 28px 24px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
}
.ride-planner-card h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
}
.ride-map-container {
    height: 100%;
    min-height: 400px;
}
.ride-leaflet-map {
    width: 100%;
    height: 100%;
}

/* Form labels in ride panel */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

/* Vehicle Fleet Tier Selector */
.vehicle-tier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vehicle-tier-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--vert-radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 14px;
    background: #fff;
    position: relative;
}
.vehicle-tier-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--vert-ride);
    border-radius: 0 4px 4px 0;
    transition: height 0.25s;
}
.vehicle-tier-card:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}
.vehicle-tier-card.active {
    border-color: var(--vert-ride);
    background: #eff6ff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}
.vehicle-tier-card.active::before {
    height: 60%;
}
.vehicle-tier-card .v-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}
.vehicle-tier-card .v-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.vehicle-tier-card .v-info strong {
    font-size: 0.92rem;
    color: #1e293b;
}
.vehicle-tier-card .v-info span {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}
.vehicle-tier-card .v-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1d4ed8;
    white-space: nowrap;
}

/* GPS Button */
.btn-geo-action {
    background: var(--vert-ride);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--vert-radius-xs);
    font-weight: 700;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-geo-action:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Ride Status Box */
.ride-status-box {
    margin-top: 18px;
    animation: slideUp 0.4s ease-out;
}

/* ===========================
   BOOKING SEARCH CARD
   =========================== */
.booking-search-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--vert-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.booking-tab-switcher {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
}
.booking-tab-switcher::-webkit-scrollbar { display: none; }
.book-tab-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.86rem;
    font-family: inherit;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    min-width: 140px;
}
.book-tab-btn.active {
    color: var(--vert-book);
    border-bottom-color: var(--vert-book);
    background: rgba(139, 92, 246, 0.04);
}
.book-tab-btn:hover:not(.active) {
    color: #334155;
    background: #f8fafc;
}
.booking-inputs-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 12px;
    padding: 20px;
    align-items: end;
}
@media (max-width: 768px) {
    .booking-inputs-grid {
        grid-template-columns: 1fr;
    }
}
.booking-inputs-grid .form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

/* ===========================
   MODALS (Glassmorphism + Slide-in)
   =========================== */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease-out;
}
.modal-dialog-glass {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-header-custom {
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header-custom h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.modal-body-custom {
    padding: 24px;
}
.btn-close-modal {
    background: #f1f5f9;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}
.btn-close-modal:hover {
    background: #fef2f2;
    color: #ef4444;
}
.doc-summary-badge {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    padding: 12px 16px;
    border-radius: var(--vert-radius-sm);
    font-size: 0.88rem;
    color: #0f766e;
    margin-bottom: 18px;
    font-weight: 600;
}

/* ===========================
   FORM CONTROLS
   =========================== */
.form-control-custom {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--vert-radius-xs);
    outline: none;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-custom:focus {
    border-color: var(--vert-primary);
    box-shadow: 0 0 0 3px rgba(31, 182, 174, 0.12);
}
.form-control-custom::placeholder {
    color: #94a3b8;
}
select.form-control-custom {
    cursor: pointer;
    appearance: auto;
}
textarea.form-control-custom {
    resize: vertical;
    min-height: 60px;
}

/* Consult Mode Selector (Radio Cards) */
.consult-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mode-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: var(--vert-radius-xs);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    color: #334155;
}
.mode-radio:hover {
    background: #f0fdfa;
    border-color: var(--vert-primary);
}
.mode-radio input[type="radio"] {
    accent-color: var(--vert-primary);
    width: 16px;
    height: 16px;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE REFINEMENTS
   =========================== */
@media (max-width: 768px) {
    .vertical-hero {
        padding: 40px 16px 32px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .vertical-search-card {
        flex-direction: column;
        border-radius: var(--vert-radius);
        padding: 12px;
        gap: 10px;
    }
    .search-input-group {
        padding-left: 8px;
    }
    .btn-vertical-primary {
        border-radius: var(--vert-radius-xs);
        width: 100%;
        text-align: center;
    }
    .doctor-cards-grid,
    .fix-service-grid,
    .booking-items-grid {
        grid-template-columns: 1fr;
    }
    .maintenance-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .fix-cat-card {
        padding: 16px 10px 12px;
    }
    .fix-cat-card .cat-icon {
        font-size: 1.8rem;
    }
    .fix-cat-card h4 {
        font-size: 0.82rem;
    }
    .results-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .booking-tab-switcher {
        overflow-x: auto;
    }
    .book-tab-btn {
        min-width: 110px;
        font-size: 0.78rem;
        padding: 12px 10px;
    }
    .ride-planner-card {
        padding: 20px 16px;
    }
}

/* ===========================
   UTILITY / GAP / FLEX HELPERS
   =========================== */
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: #64748b; }
.text-center { text-align: center; }
.font-weight-bold { font-weight: 700; }
.align-items-end { align-items: flex-end; }
