﻿
/* ==========================================================
   EBDAA ALKHUTAA — PUBLIC CATALOG UI
   Fields / Trainers / Activities / Activity Details
   Requires: ak-public-pages.css + Sneat Bootstrap
   ========================================================== */

.ak-cat-page {
    --cat-gold: var(--ep-gold, #a77b2d);
    --cat-gold-dark: var(--ep-gold-dark, #795518);
    --cat-gold-soft: var(--ep-gold-light, #f8efd9);
    --cat-text: var(--ep-ink, #283540);
    --cat-muted: var(--ep-muted, #74808a);
    --cat-border: var(--ep-line, #e7e5df);
    --cat-panel: var(--ep-surface, #fff);
    --cat-soft: var(--ep-soft, #f8f7f3);
    --cat-shadow: 0 7px 25px rgba(36, 42, 42, .055);
    color: var(--cat-text);
    min-width: 0;
}

    .ak-cat-page *,
    .ak-cat-page *::before,
    .ak-cat-page *::after {
        box-sizing: border-box;
    }

    .ak-cat-page .container,
    .ak-cat-page .row,
    .ak-cat-page [class*="col-"] {
        min-width: 0;
    }

.ak-cat-header {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: clamp(22px, 3vw, 38px);
    background: radial-gradient(circle at 7% 85%, rgba(184, 142, 51, .12), transparent 37%), linear-gradient(135deg, var(--cat-soft), var(--cat-panel));
    border: 1px solid var(--cat-border);
    margin-bottom: 26px;
}

    .ak-cat-header::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border: 1px solid var(--cat-border);
        border-radius: 50%;
        inset-inline-end: -65px;
        inset-block-start: -95px;
        pointer-events: none;
    }

.ak-cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--cat-gold-dark);
    background: var(--cat-gold-soft);
    font-size: .83rem;
    font-weight: 800;
    margin-bottom: 13px;
}

.ak-cat-heading {
    margin: 0 0 9px;
    font-size: clamp(1.5rem, 2.7vw, 2.25rem);
    font-weight: 900;
    color: var(--cat-text);
    line-height: 1.3;
}

.ak-cat-description {
    color: var(--cat-muted);
    line-height: 1.75;
    max-width: 700px;
    margin: 0;
    font-size: 1rem;
}

.ak-cat-header-art {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin-inline: auto;
}

/* ==========================================================
   SEARCH AND FILTERS
   ========================================================== */

.ak-cat-filters {
    border: 1px solid var(--cat-border);
    background: var(--cat-panel);
    border-radius: 16px;
    padding: 17px;
    margin-bottom: 20px;
    box-shadow: var(--cat-shadow);
}

    .ak-cat-filters .form-label {
        font-weight: 800;
        font-size: .9rem;
        margin-bottom: 8px;
    }

    .ak-cat-filters .form-control,
    .ak-cat-filters .form-select {
        min-height: 46px;
        border-radius: 10px;
    }

.ak-cat-search {
    position: relative;
}

    .ak-cat-search > i {
        position: absolute;
        top: 50%;
        inset-inline-start: 14px;
        transform: translateY(-50%);
        color: var(--cat-gold-dark);
        font-size: 1.2rem;
        z-index: 1;
        pointer-events: none;
    }

    .ak-cat-search input {
        padding-inline-start: 43px;
        padding-inline-end: 40px;
    }

.ak-cat-clear {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 0;
    border-radius: 8px;
    color: var(--cat-muted);
    background: transparent;
    cursor: pointer;
}

    .ak-cat-clear:hover {
        color: var(--cat-gold-dark);
        background: var(--cat-gold-soft);
    }

.ak-cat-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 17px;
}

    .ak-cat-result-bar h2 {
        font-size: 1.22rem;
        font-weight: 900;
        margin: 0;
        color: var(--cat-text);
    }

.ak-cat-result-label {
    color: var(--cat-muted);
    font-size: .88rem;
    font-weight: 700;
}

/* ==========================================================
   FIELD CARDS
   ========================================================== */

.ak-cat-field {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    background: var(--cat-panel);
    border: 1px solid var(--cat-border);
    box-shadow: var(--cat-shadow);
    transition: transform .2s, border-color .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}

    .ak-cat-field:hover {
        transform: translateY(-3px);
        border-color: var(--cat-gold);
        box-shadow: 0 12px 28px rgba(45, 38, 24, .08);
        color: inherit;
    }

.ak-cat-field-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ak-cat-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--cat-gold-dark);
    background: var(--cat-gold-soft);
    font-size: 1.5rem;
}

.ak-cat-field h3 {
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.5;
    color: var(--cat-text);
    margin: 0;
}

.ak-cat-field p {
    color: var(--cat-muted);
    line-height: 1.75;
    font-size: .92rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ak-cat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cat-gold-dark);
    font-size: .88rem;
    font-weight: 800;
    margin-top: auto;
}

/* ==========================================================
   TRAINER CARDS
   ========================================================== */

.ak-cat-trainer {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--cat-border);
    background: var(--cat-panel);
    border-radius: 16px;
    box-shadow: var(--cat-shadow);
    transition: transform .2s, border-color .2s;
}

    .ak-cat-trainer:hover {
        transform: translateY(-3px);
        border-color: var(--cat-gold);
    }

.ak-cat-trainer-photo {
    height: 182px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--cat-gold-soft);
}

    .ak-cat-trainer-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

        .ak-cat-trainer-photo img.ak-cat-placeholder-image {
            object-fit: contain;
            width: 120px;
            height: 120px;
            padding: 15px;
        }

.ak-cat-trainer-info {
    padding: 17px;
}

.ak-cat-trainer-name {
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--cat-text);
    margin-bottom: 5px;
}

.ak-cat-trainer-degree {
    color: var(--cat-gold-dark);
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 6px;
}

.ak-cat-trainer-specialization {
    color: var(--cat-muted);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.ak-cat-experience {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 10px;
    font-size: .8rem;
    background: var(--cat-soft);
    color: var(--cat-muted);
    border-radius: 8px;
}

/* ==========================================================
   ACTIVITY CARDS
   ========================================================== */

.ak-cat-activity {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cat-border);
    border-radius: 16px;
    background: var(--cat-panel);
    box-shadow: var(--cat-shadow);
    transition: transform .2s, border-color .2s;
}

    .ak-cat-activity:hover {
        transform: translateY(-3px);
        border-color: var(--cat-gold);
    }

.ak-cat-activity-cover {
    position: relative;
    height: 175px;
    background: var(--cat-gold-soft);
    overflow: hidden;
}

    .ak-cat-activity-cover img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.ak-cat-activity-badges {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ak-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 50px;
    background: rgba(255,255,255,.96);
    color: #35404a;
    font-size: .77rem;
    font-weight: 800;
    line-height: 1.1;
}

.ak-cat-badge--gold {
    background: #ffefc9;
    color: #745011;
}

.ak-cat-badge--green {
    background: #e1f3e8;
    color: #166144;
}

.ak-cat-badge--gray {
    background: #e9edf0;
    color: #4c5660;
}

.ak-cat-activity-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.ak-cat-activity-field {
    font-size: .82rem;
    font-weight: 800;
    color: var(--cat-gold-dark);
    margin-bottom: 8px;
}

.ak-cat-activity-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--cat-text);
    line-height: 1.5;
    margin-bottom: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ak-cat-metadata {
    display: grid;
    gap: 10px;
    font-size: .91rem;
    color: var(--cat-muted);
}

    .ak-cat-metadata > div {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        min-width: 0;
    }

    .ak-cat-metadata i {
        color: var(--cat-gold-dark);
        font-size: 1.16rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .ak-cat-metadata span {
        overflow-wrap: anywhere;
    }

.ak-cat-activity-bottom {
    margin-top: auto;
    padding-top: 16px;
}

.ak-cat-activity-divider {
    height: 1px;
    background: var(--cat-border);
    margin-bottom: 13px;
}

.ak-cat-price {
    font-size: 1.23rem;
    font-weight: 900;
    color: var(--cat-gold-dark);
}

    .ak-cat-price small {
        font-size: .78rem;
        font-weight: 700;
    }

.ak-cat-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 13px;
}

    .ak-cat-actions > * {
        min-height: 43px;
        flex: 1 1 120px;
        border-radius: 10px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }

/* ==========================================================
   DETAILS PAGE
   ========================================================== */

.ak-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--cat-muted);
    font-size: .88rem;
    margin-bottom: 19px;
}

    .ak-detail-breadcrumb a {
        color: var(--cat-muted);
        text-decoration: none;
    }

        .ak-detail-breadcrumb a:hover {
            color: var(--cat-gold-dark);
        }

.ak-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 19px;
    border: 1px solid var(--cat-border);
    background: var(--cat-panel);
    box-shadow: var(--cat-shadow);
    margin-bottom: 24px;
}

.ak-detail-hero-image {
    min-height: 310px;
    background: var(--cat-gold-soft);
    overflow: hidden;
}

    .ak-detail-hero-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ak-detail-hero-content {
    padding: clamp(20px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .ak-detail-hero-content h1 {
        font-size: clamp(1.55rem, 2.6vw, 2.3rem);
        color: var(--cat-text);
        line-height: 1.38;
        font-weight: 900;
    }

.ak-detail-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-top: 20px;
}

.ak-detail-quick-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    border-radius: 11px;
    background: var(--cat-soft);
    padding: 12px;
}

    .ak-detail-quick-item i {
        color: var(--cat-gold-dark);
        font-size: 1.25rem;
    }

    .ak-detail-quick-item small {
        display: block;
        font-size: .78rem;
        color: var(--cat-muted);
    }

    .ak-detail-quick-item strong {
        display: block;
        font-size: .95rem;
        color: var(--cat-text);
        margin-top: 3px;
        overflow-wrap: anywhere;
    }

.ak-detail-section {
    border: 1px solid var(--cat-border);
    background: var(--cat-panel);
    border-radius: 16px;
    padding: clamp(20px, 2.6vw, 30px);
    margin-bottom: 18px;
    box-shadow: var(--cat-shadow);
    scroll-margin-top: 100px;
}

    .ak-detail-section h2 {
        display: flex;
        align-items: center;
        gap: 11px;
        color: var(--cat-text);
        font-size: 1.22rem;
        font-weight: 900;
        margin-bottom: 18px;
    }

        .ak-detail-section h2 i {
            color: var(--cat-gold-dark);
            font-size: 1.35rem;
        }

.ak-detail-description {
    color: var(--cat-muted);
    line-height: 1.95;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ak-detail-schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.ak-detail-schedule-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--cat-border);
    border-radius: 11px;
}

    .ak-detail-schedule-item > i {
        color: var(--cat-gold-dark);
        font-size: 1.25rem;
    }

    .ak-detail-schedule-item small {
        display: block;
        color: var(--cat-muted);
    }

    .ak-detail-schedule-item strong {
        display: block;
        line-height: 1.6;
        color: var(--cat-text);
    }

.ak-detail-booking {
    position: sticky;
    top: 90px;
    overflow: hidden;
    border: 1px solid var(--cat-border);
    border-radius: 16px;
    background: var(--cat-panel);
    box-shadow: var(--cat-shadow);
}

.ak-detail-booking-head {
    padding: 24px;
    background: var(--cat-soft);
    border-bottom: 1px solid var(--cat-border);
}

.ak-detail-booking-body {
    padding: 22px;
}

.ak-detail-booking-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-block: 12px;
    border-bottom: 1px solid var(--cat-border);
    font-size: .91rem;
}

    .ak-detail-booking-row:last-child {
        border-bottom: 0;
    }

    .ak-detail-booking-row span {
        color: var(--cat-muted);
    }

    .ak-detail-booking-row strong {
        text-align: end;
        overflow-wrap: anywhere;
    }

.ak-detail-booking-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    margin-top: 16px;
    border-radius: 11px;
    background: var(--cat-gold-soft);
    line-height: 1.7;
    font-size: .88rem;
}

    .ak-detail-booking-note i {
        color: var(--cat-gold-dark);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

.ak-detail-trainer {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border: 1px solid var(--cat-border);
    border-radius: 12px;
    height: 100%;
}

    .ak-detail-trainer img {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        object-fit: cover;
        background: var(--cat-gold-soft);
        flex-shrink: 0;
    }

    .ak-detail-trainer strong {
        display: block;
        color: var(--cat-text);
        line-height: 1.5;
    }

    .ak-detail-trainer small {
        display: block;
        color: var(--cat-muted);
        line-height: 1.5;
    }

.ak-detail-mobile-booking {
    display: none;
}

/* ==========================================================
   LOADING / EMPTY / ERROR
   ========================================================== */

.ak-cat-skeleton {
    border: 1px solid var(--cat-border);
    background: var(--cat-panel);
    border-radius: 15px;
    padding: 18px;
    min-height: 215px;
}

.ak-cat-skeleton-block {
    border-radius: 9px;
    background: linear-gradient( 100deg, var(--cat-soft) 20%, var(--cat-border) 45%, var(--cat-soft) 70% );
    background-size: 200% 100%;
    animation: ak-cat-shimmer 1.4s linear infinite;
}

@keyframes ak-cat-shimmer {
    to {
        background-position-x: -200%;
    }
}

.ak-cat-state {
    padding: 48px 20px;
    border: 1px dashed var(--cat-border);
    background: var(--cat-panel);
    border-radius: 15px;
    text-align: center;
}

    .ak-cat-state > i {
        font-size: 2.5rem;
        color: var(--cat-gold-dark);
    }

    .ak-cat-state h3 {
        font-size: 1.2rem;
        font-weight: 900;
        margin-top: 13px;
    }

    .ak-cat-state p {
        color: var(--cat-muted);
        line-height: 1.75;
        max-width: 480px;
        margin-inline: auto;
    }

.ak-cat-pagination .page-link {
    min-width: 39px;
    min-height: 39px;
    border-radius: 9px !important;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.ak-cat-pagination {
    gap: 6px;
}

/* ==========================================================
   MOBILE / TABLET
   ========================================================== */

@media (max-width: 991.98px) {
    .ak-detail-hero {
        grid-template-columns: 1fr;
    }

    .ak-detail-hero-image {
        min-height: 0;
        height: 260px;
    }

    .ak-detail-booking {
        position: static;
    }

    .ak-detail-mobile-booking {
        display: block;
        position: sticky;
        bottom: 0;
        z-index: 100;
        margin-top: 20px;
        padding: 12px;
        border-radius: 13px;
        border: 1px solid var(--cat-border);
        background: var(--cat-panel);
        box-shadow: 0 -5px 25px rgba(0,0,0,.10);
    }
}

@media (max-width: 575.98px) {
    .ak-cat-header {
        padding: 20px;
        border-radius: 15px;
    }

    .ak-cat-header-art {
        width: 100px;
        height: 100px;
    }

    .ak-cat-heading {
        font-size: 1.55rem;
    }

    .ak-cat-filters {
        padding: 14px;
    }

    .ak-cat-trainer-photo {
        height: 205px;
    }

    .ak-cat-activity-cover {
        height: 180px;
    }

    .ak-cat-activity-body {
        padding: 16px;
    }

    .ak-detail-hero-image {
        height: 210px;
    }

    .ak-detail-quick,
    .ak-detail-schedule {
        grid-template-columns: 1fr;
    }

    .ak-detail-hero-content {
        padding: 20px;
    }

    .ak-detail-mobile-booking {
        margin-inline: -4px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ak-cat-field,
    .ak-cat-trainer,
    .ak-cat-activity,
    .ak-cat-skeleton-block {
        transition: none;
        animation: none;
    }
}
