/* =========================================================
   CATALOGUE.CSS — BOOK CATALOGUE / BOOK CARDS
   ========================================================= */

   CATALOGUE PAGE
   ========================================================= */

/* ---------------------------------------------------------
   Catalogue section
   --------------------------------------------------------- */

.catalogue-section {
    width: calc(100% - 64px);
    max-width: 1600px;
    margin: -25px auto 3rem;
    position: relative;
    z-index: 5;
}

.catalogue-section > .bg-white,
.catalogue-container > .bg-white {
    width: 100%;
}


/* ---------------------------------------------------------
   Catalogue layout
   Desktop: use Bootstrap col-lg-9 + col-lg-3 in HTML
   --------------------------------------------------------- */

#cataloguePanel {
    min-width: 0;
}

.catalogue-sidebar {
    width: 100%;
    position: sticky;
    top: 80px;
}


/* ---------------------------------------------------------
   Sidebar accordion
   --------------------------------------------------------- */

#catalogueAccordion {
    width: 100%;
}

.catalogue-side-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalogue-side-card:hover {
    border-color: #d9dee5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}


/* ---------------------------------------------------------
   Accordion heading
   --------------------------------------------------------- */

.catalogue-collapse-btn {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 14px;

    border: 0;
    background: #ffffff;
    color: #1f2937;

    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;

    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.catalogue-collapse-btn:hover {
    background: #f8fafc;
    color: #111827;
}

.catalogue-collapse-btn > span:first-child {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.catalogue-collapse-btn > span:first-child > span:last-child {
    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   Section icons
   --------------------------------------------------------- */

.side-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;
    font-size: 1.15rem;

    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.025);
}


/* ---------------------------------------------------------
   Collapse arrow
   --------------------------------------------------------- */

.collapse-arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: #f1f3f5;
    color: #6b7280;

    font-size: 0.78rem;

    transition:
        transform 0.25s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.catalogue-collapse-btn:hover .collapse-arrow {
    background: #e9eef5;
    color: #374151;
}

.catalogue-collapse-btn[aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
    background: #e9eef5;
    color: #374151;
}


/* ---------------------------------------------------------
   Accordion links area
   --------------------------------------------------------- */

.catalogue-side-card .collapse {
    padding: 3px 9px 10px;
}


/* ---------------------------------------------------------
   Catalogue links
   --------------------------------------------------------- */

.catalogue-side-link {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 42px;
    margin: 3px 0;
    padding: 8px 11px;

    border-radius: 10px;

    background: #ffffff;
    color: #212529;

    text-decoration: none !important;

    font-size: 0.88rem;
    font-weight: 550;
    line-height: 1.35;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.catalogue-side-link i {
    width: 22px;
    min-width: 22px;

    text-align: center;

    color: #6b7280;
    font-size: 0.96rem;

    transition: color 0.18s ease;
}


/* Light, almost-white hover state with dark text */

.catalogue-side-link:hover {
    background: #f8fafc;
    color: #111827;

    transform: translateX(2px);

    box-shadow: inset 3px 0 0 #dbe3ec;
}

.catalogue-side-link:hover i {
    color: #374151;
}


/* ---------------------------------------------------------
   Active link
   --------------------------------------------------------- */

.catalogue-side-link.active {
    background: #eef4fb;
    color: #17324d;
    font-weight: 700;

    box-shadow: inset 3px 0 0 #3b6ea5;
}

.catalogue-side-link.active i {
    color: #3b6ea5;
}

.catalogue-side-link.active:hover {
    background: #f3f7fb;
    color: #172b3d;
}


/* ---------------------------------------------------------
   DDC numbers
   --------------------------------------------------------- */

.ddc-number {
    width: 43px;
    min-width: 43px;

    padding: 5px 4px;

    text-align: center;

    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;

    font-size: 0.72rem;
    font-weight: 750;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.catalogue-side-link:hover .ddc-number {
    background: #eef1f4;
    color: #1f2937;
}

.catalogue-side-link.active .ddc-number {
    background: #dfeaf5;
    color: #17324d;
}


/* ---------------------------------------------------------
   Language badges
   --------------------------------------------------------- */

.language-dot {
    width: 31px;
    height: 31px;
    min-width: 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f3f4f6;
    color: #374151;

    font-size: 0.72rem;
    font-weight: 750;
}

.catalogue-side-link:hover .language-dot {
    background: #eef1f4;
    color: #1f2937;
}

.catalogue-side-link.active .language-dot {
    background: #dfeaf5;
    color: #17324d;
}


/* ---------------------------------------------------------
   Back to library
   --------------------------------------------------------- */

.catalogue-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 10px 14px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;
    color: #374151;

    text-decoration: none !important;

    font-size: 0.88rem;
    font-weight: 650;

    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.catalogue-home-link:hover {
    background: #f8fafc;
    color: #111827;
    border-color: #d7dde5;

    transform: translateY(-1px);

    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.07);
}

.catalogue-home-link i {
    font-size: 1rem;
}


/* ---------------------------------------------------------
   No internal sidebar scrollbar
   --------------------------------------------------------- */

.catalogue-sidebar {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .catalogue-section {
        width: calc(100% - 48px);
    }
}

@media (max-width: 991.98px) {

    .catalogue-section {
        width: calc(100% - 32px);
        margin-top: -15px;
    }

    .catalogue-sidebar {
        position: static;
        margin-top: 0;
    }

    .catalogue-side-card {
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .catalogue-collapse-btn {
        min-height: 58px;
        padding: 9px 13px;
        font-size: 0.92rem;
    }

    .side-icon {
        width: 37px;
        height: 37px;
        min-width: 37px;
    }

    .catalogue-side-link {
        min-height: 41px;
        padding: 8px 10px;
        font-size: 0.87rem;
    }
}

@media (max-width: 575.98px) {

    .catalogue-section {
        width: calc(100% - 20px);
        margin-top: -10px;
    }

    .catalogue-collapse-btn {
        min-height: 55px;
        padding: 8px 11px;
        font-size: 0.88rem;
    }

    .side-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1rem;
    }

    .collapse-arrow {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .catalogue-side-card .collapse {
        padding: 2px 7px 8px;
    }

    .catalogue-side-link {
        min-height: 40px;
        padding: 8px 9px;
        font-size: 0.85rem;
    }

    .catalogue-home-link {
        min-height: 42px;
        font-size: 0.84rem;
    }
}

.hub-values {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hub-values span {
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--bs-body-bg);
    border: 1px solid rgba(0,0,0,.08);
    font-weight: 600;
}

.hub-values i {
    color: var(--bs-primary);
    margin-right: 6px;
}
.catalogue-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: .25rem 0 1rem;
    padding: .65rem 1rem;
    border-radius: 10px;
    background: #0b3d6e;
    color: #fff;
    text-align: center;
}

.catalogue-page-title h3,
.catalogue-section-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.library-page-shell {
    width: calc(100% - 32px);
    max-width: 1600px;
    margin: -20px auto 2.5rem;
}

.library-page-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 37, 69, .06);
}

.library-main-content {
    width: 100%;
}

.catalogue-content-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
}

.catalogue-results {
    margin-top: .5rem;
    background: #f8fafc;
}

.catalogue-sidebar-card {
    padding: .85rem;
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .library-page-shell {
        width: calc(100% - 24px);
        margin-top: -12px;
    }

    .library-page-card,
    .catalogue-content-card {
        padding: .75rem;
    }
}

@media (max-width: 575.98px) {
    .library-page-shell {
        width: calc(100% - 12px);
    }

    .catalogue-page-title h3,
    .catalogue-section-title {
        font-size: 1rem;
    }
}
/* =========================================================
   BOOK FLIP CARD
   ========================================================= */

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.book-grid-item {
    min-width: 0;
    padding: 0;
}


/* =========================================================
   CARD CONTAINER
   ========================================================= */

.card-flip {
    width: 100%;
    height: 330px;

    position: relative;
    perspective: 1000px;

    background: transparent;
}


/* =========================================================
   FRONT + BACK
   ========================================================= */

.card-flip > .card-front,
.card-flip > .card-back {

    width: 100%;
    height: 330px;

    position: absolute;
    inset: 0;

    border-radius: 10px;

    overflow: hidden;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition:
        transform 0.45s ease,
        box-shadow 0.25s ease;

    border: 1px solid rgba(15, 37, 69, 0.14);

    box-shadow:
        0 4px 12px rgba(15, 37, 69, 0.09);
}


/* =========================================================
   FRONT
   ========================================================= */

.card-front {

    transform: rotateY(0deg);

    z-index: 2;

    background: #f1f3f5;
}


/* =========================================================
   BACK
   ========================================================= */

.card-back {

    transform: rotateY(180deg);

    z-index: 1;

    background: #ffffff;

    overflow-y: auto;

    border: 1px solid #dfe5ec;

    box-shadow:
        0 6px 16px rgba(15, 37, 69, 0.12);
}


/* =========================================================
   FLIP
   ========================================================= */

.card-flip:hover .card-front {

    transform: rotateY(-180deg);

}

.card-flip:hover .card-back {

    transform: rotateY(0deg);

    z-index: 3;

}


/* Small lift */

.card-flip:hover {

    transform: translateY(-2px);

}


/* =========================================================
   BOOK COVER IMAGE
   ========================================================= */

.cover-img {

    width: 100%;
    height: 330px;

    display: block;

    object-fit: cover;

    background: #f1f3f5;

    transition: opacity 0.2s ease;
}


/*
 * Broken image state.
 * JavaScript adds this class when the image fails.
 */

.cover-img.cover-image-error {

    display: none;

}


/* =========================================================
   BOOK COVER FALLBACK
   ========================================================= */

.cover-fallback {

    width: 100%;
    height: 330px;

    display: none;

    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    padding: 18px;

    text-align: center;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(255,255,255,.10),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #163a63 0%,
            #0b2545 55%,
            #071a30 100%
        );

    color: #ffffff;
}


/*
 * JavaScript adds .show when the cover image fails.
 */

.cover-fallback.show {

    display: flex;

}


/* =========================================================
   DECORATIVE BOOK SPINE
   ========================================================= */

.cover-fallback::before {

    content: "";

    position: absolute;

    left: 14px;
    top: 0;
    bottom: 0;

    width: 4px;

    background: rgba(255,255,255,.18);

    box-shadow:
        7px 0 0 rgba(255,255,255,.05);

}


/* =========================================================
   DECORATIVE CIRCLE
   ========================================================= */

.cover-fallback::after {

    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -45px;
    top: -45px;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 50%;

}


/* =========================================================
   FALLBACK CONTENT
   ========================================================= */

.cover-fallback-content {

    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

}


/* =========================================================
   BOOK ICON
   ========================================================= */

.cover-fallback-icon {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 16px;

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.22);

    box-shadow:
        0 8px 20px rgba(0,0,0,.18);

    font-size: 28px;

}


/* =========================================================
   FALLBACK LABEL
   ========================================================= */

.cover-fallback-label {

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    opacity: .75;

    margin-bottom: 10px;

}


/* =========================================================
   FALLBACK TITLE
   ========================================================= */

.cover-fallback-title {

    max-width: 90%;

    font-size: .95rem;

    font-weight: 800;

    line-height: 1.35;

    display: -webkit-box;

    -webkit-line-clamp: 4;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


/* =========================================================
   FALLBACK DECORATIVE LINE
   ========================================================= */

.cover-fallback-line {

    width: 45px;

    height: 2px;

    margin: 13px auto;

    border-radius: 10px;

    background: rgba(255,255,255,.55);

}


/* =========================================================
   FALLBACK ACCESSION NUMBER
   ========================================================= */

.cover-fallback-accno {

    font-size: .68rem;

    font-weight: 600;

    opacity: .65;

}


/* =========================================================
   BACK CARD CONTENT
   ========================================================= */

.card-back .card-body {

    padding: 14px;

}


.book-title {

    font-size: .95rem;

    line-height: 1.3;

    margin-bottom: .55rem;

}


.book-meta {

    font-size: .78rem;

    line-height: 1.4;

}


.card-back p {

    margin-bottom: .4rem;

}

/* =========================================================
   BOOK DETAILS - BACK SIDE
   ========================================================= */

.card-back {
    background: #ffffff;
    color: #263238;
}

.book-details {
    height: 100%;
    padding: 15px;

    display: flex;
    flex-direction: column;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.book-details-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;

    color: #163a63;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    margin-bottom: 7px;
}


/* ---------------------------------------------------------
   AUTHOR
   --------------------------------------------------------- */

.book-author {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 0.95rem;
    font-weight: 600;

    color: #000;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author i {
    flex-shrink: 0;
    color: #000;
    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   DIVIDER
   --------------------------------------------------------- */

.book-details-divider {
    height: 1px;

    margin: 9px 0 7px;

    background: #e8edf2;
}


/* ---------------------------------------------------------
   INFORMATION LIST
   --------------------------------------------------------- */

.book-info-list {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


/* ---------------------------------------------------------
   INFORMATION ROW
   --------------------------------------------------------- */

.book-info-row {
    display: flex;

    align-items: center;

    min-height: 21px;

    gap: 8px;
}


/* Label */

.book-info-label {
    flex: 0 0 72px;

    display: flex;
    align-items: center;

    gap: 3px;

    font-size: 0.88rem;
    font-weight: 700;

    color: #000;
}

.book-info-label i {
    width: 14px;

    text-align: center;

    color: #000;
}


/* Value */

.book-info-value {
    min-width: 0;

    flex: 1;

    font-size: 0.88rem;
    font-weight: 600;

    color: #000;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-align: right;
}


/* ---------------------------------------------------------
   STATUS
   --------------------------------------------------------- */

.book-status-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 8px;
    padding-top: 7px;

    border-top: 1px solid #edf0f3;
}

.book-status-label {
    font-size: 0.80rem;

    font-weight: 800;

    letter-spacing: 1px;

    color: #ad0312;
}


/* Status badge */

.book-status-badge {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 3px 8px;

    border-radius: 20px;

    font-size: 0.82rem;

    font-weight: 700;
}

.book-status-badge i {
    font-size: 0.65rem;
}


/* Available */

.status-available {
    background: #e9f8ef;
    color: #21864b;
}


/* Issued */

.status-issued {
    background: #fff1f1;
    color: #c0392b;
}


/* ---------------------------------------------------------
   ACTION BUTTON
   --------------------------------------------------------- */

.book-card-action {
    margin-top: auto;

    padding-top: 7px;

    text-align: center;
}

.book-action-btn {
    min-width: 110px;

    border-radius: 7px;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: .2px;

    padding: 5px 12px;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .book-details {
        padding: 12px;
    }

    .book-details-title {
        font-size: 0.85rem;
    }

    .book-info-label {
        flex-basis: 65px;
    }

    .book-info-value {
        font-size: 0.65rem;
    }

    .book-action-btn {
        font-size: 0.62rem;
        padding: 4px 9px;
    }
}
/* =========================================================
   SEARCH RESULT HEADER
   ========================================================= */



.search-result-keyword {
    font-size: 1.35rem;
    font-weight: 800;
    color: #c62828;
    line-height: 1.3;
}



.search-result-count {
    display: flex;
    align-items: baseline;
    gap: 5px;

    padding: 7px 13px;

    background: #198754;
    color: #fff;

    border-radius: 10px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);

    white-space: nowrap;
}

.search-result-count .count-number {
    font-size: 1.15rem;
    font-weight: 800;
}

.search-result-count .count-label {
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 575.98px) {

    .search-result-keyword {
        font-size: 1.1rem;
    }

    .search-result-label {
        font-size: 0.78rem;
    }

    .search-result-count {
        padding: 6px 9px;
    }

    .search-result-count .count-number {
        font-size: 1rem;
    }

}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

    .book-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


@media (max-width: 767.98px) {

    .book-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

    }

    .card-flip,
    .card-flip > .card-front,
    .card-flip > .card-back {

        height: 250px;

    }

}


@media (max-width: 480px) {

    .book-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

    }

    .card-flip,
    .card-flip > .card-front,
    .card-flip > .card-back {

        height: 230px;

    }

}
/* =========================================================

/* =========================================================
   RESERVATION MODAL
   ========================================================= */

.catalogue-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;

    box-shadow:
        0 18px 50px rgba(15, 37, 69, 0.22);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.catalogue-modal .modal-header {
    padding: 18px 20px;

    background: #123f68;
    color: #fff;

    border: 0;
}

.modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.modal-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;

    color: #fff;
    font-size: 1.1rem;
}

.catalogue-modal .modal-title {
    margin: 0;

    color: #fff;

    font-size: 1rem;
    font-weight: 700;
}

.modal-heading small {
    display: block;

    max-width: 360px;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.75rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalogue-modal .btn-close {
    margin-left: auto;

    filter: brightness(0) invert(1);

    opacity: 0.85;
}

.catalogue-modal .btn-close:hover {
    opacity: 1;
}


/* ---------------------------------------------------------
   BODY
   --------------------------------------------------------- */

.catalogue-modal .modal-body {
    padding: 24px 22px 22px;

    background: #fff;
}


/* ---------------------------------------------------------
   CARD NUMBER LABEL
   --------------------------------------------------------- */

.reserve-label {
    display: block;

    margin-bottom: 7px;

    color: #123f68;

    font-size: 0.82rem;
    font-weight: 600;
}

.reserve-label i {
    margin-right: 5px;

    color: #174e78;
}


/* ---------------------------------------------------------
   INPUT
   --------------------------------------------------------- */

.reserve-input {
    position: relative;

    width: 100%;

    margin-bottom: 20px;
}

.reserve-input > i {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    color: #174e78;

    font-size: 1rem;

    pointer-events: none;
}

.reserve-input .form-control {
    width: 100%;
    height: 46px;

    padding: 10px 14px 10px 42px;

    background: #fff;

    border: 1px solid #cbd8e2;
    border-radius: 9px;

    color: #111;

    font-size: 0.88rem;

    box-shadow: none;
}

.reserve-input .form-control::placeholder {
    color: #697580;
}

.reserve-input .form-control:hover {
    border-color: #9eb4c5;
}

.reserve-input .form-control:focus {
    border-color: #3276a3;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(50, 118, 163, 0.12);
}


/* ---------------------------------------------------------
   ACTION BUTTONS
   --------------------------------------------------------- */

.reserve-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    width: 100%;

    margin-top: 4px;
}

.reserve-actions .btn {
    min-width: 96px;
    height: 40px;

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 0.8rem;
    font-weight: 600;

    white-space: nowrap;
}

.reserve-actions .btn-primary {
    background: #3276a3;
    border-color: #3276a3;
}

.reserve-actions .btn-primary:hover {
    background: #286589;
    border-color: #286589;
}

.reserve-actions .btn-light {
    background: #f1f4f6;
    border-color: #d7e0e7;

    color: #3f4650;
}

.reserve-actions .btn-light:hover {
    background: #e6ebef;
    border-color: #c8d3dc;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .catalogue-modal .modal-body {
        padding: 20px 16px 18px;
    }

    .catalogue-modal .modal-header {
        padding: 15px 16px;
    }

    .modal-icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .modal-heading small {
        max-width: 230px;
    }

    .reserve-actions {
        justify-content: stretch;
    }

    .reserve-actions .btn {
        flex: 1;
        min-width: 0;
    }

}
/* =========================================================
   BROWSE BY AUTHOR
   ========================================================= */

.catalogue-page-intro {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
    padding: 14px 16px;

    background: #f5f8fb;
    border: 1px solid #dce5ec;
    border-left: 4px solid #3276a3;

    border-radius: 10px;
}

.catalogue-page-intro-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #e8f0f6;
    color: #123f68;

    font-size: 1.1rem;
}

.catalogue-page-intro h2 {
    margin: 0 0 3px;

    color: #123f68;

    font-size: 1rem;
    font-weight: 700;
}

.catalogue-page-intro p {
    margin: 0;

    color: #4b5560;

    font-size: .8rem;
}


/* =========================================================
   AUTHOR ALPHABET
   ========================================================= */

.author-alphabet {
    margin-bottom: 22px;
    padding: 15px;

    background: #fff;

    border: 1px solid #dce5ec;
    border-radius: 10px;
}

.author-alphabet-label {
    margin-bottom: 11px;

    color: #123f68;

    font-size: .82rem;
    font-weight: 700;
}

.author-alphabet-label i {
    margin-right: 5px;
}


.author-alphabet-grid {
    display: grid;

    grid-template-columns:
        repeat(13, minmax(0, 1fr));

    gap: 7px;
}


.author-letter {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    background: #f5f8fb;

    border: 1px solid #cbd8e2;
    border-radius: 7px;

    color: #123f68;

    font-size: .82rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.author-letter:hover,
.author-letter.active {
    background: #3276a3;
    border-color: #3276a3;

    color: #fff;
}


/* =========================================================
   AUTHOR RESULTS
   ========================================================= */

.author-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
    padding: 10px 13px;

    background: #f5f8fb;

    border: 1px solid #dce5ec;
    border-radius: 8px;

    color: #222;
}

.author-results-label {
    margin-right: 5px;

    color: #4b5560;

    font-size: .78rem;
}

.author-results-heading strong {
    color: #123f68;

    font-size: .95rem;
}

.author-results-count {
    color: #4b5560;

    font-size: .74rem;
}


/* =========================================================
   AUTHOR LIST
   ========================================================= */

.author-list-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    margin-bottom: 22px;
}

.author-list-item {
    display: flex;
    align-items: center;

    min-width: 0;

    padding: 10px 12px;

    background: #fff;

    border: 1px solid #dce5ec;
    border-radius: 8px;

    color: #222;

    text-decoration: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.author-list-item:hover {
    border-color: #9fb8ca;

    box-shadow:
        0 3px 10px rgba(18,63,104,.08);

    transform: translateY(-1px);

    color: #123f68;
}

.author-list-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 9px;

    background: #edf3f7;

    border-radius: 7px;

    color: #174e78;

    font-size: .82rem;
}

.author-list-name {
    min-width: 0;

    overflow: hidden;

    color: #222;

    font-size: .82rem;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-list-arrow {
    margin-left: auto;
    padding-left: 7px;

    color: #6b7782;

    font-size: .65rem;
}


/* =========================================================
   START MESSAGE
   ========================================================= */

.author-start-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 20px 0;
    padding: 18px;

    background: #f5f8fb;

    border: 1px dashed #c6d5df;
    border-radius: 9px;

    color: #4b5560;

    text-align: left;
}

.author-start-message > i {
    color: #3276a3;
    font-size: 1.25rem;
}

.author-start-message strong,
.author-start-message span {
    display: block;
}

.author-start-message strong {
    color: #123f68;
    font-size: .85rem;
}

.author-start-message span {
    margin-top: 2px;
    font-size: .75rem;
}


/* =========================================================
   CATALOGUE RESULT SUMMARY
   ========================================================= */

.catalogue-result-summary {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 14px;
    padding: 9px 12px;

    background: #f5f8fb;

    border: 1px solid #dce5ec;
    border-radius: 8px;

    color: #333;

    font-size: .78rem;
}

.catalogue-result-summary-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f0f6;

    border-radius: 6px;

    color: #174e78;
}

.catalogue-result-summary strong {
    color: #123f68;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .author-alphabet-grid {
        grid-template-columns:
            repeat(9, minmax(0, 1fr));
    }

    .author-list-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 575.98px) {

    .catalogue-page-intro {
        padding: 12px;
    }

    .catalogue-page-intro-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .catalogue-page-intro h2 {
        font-size: .9rem;
    }

    .catalogue-page-intro p {
        font-size: .74rem;
    }


    .author-alphabet {
        padding: 11px;
    }

    .author-alphabet-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 6px;
    }

    .author-letter {
        min-height: 36px;
    }


    .author-list-grid {
        grid-template-columns:
            1fr;

        gap: 7px;
    }

}
/* =========================================================
   BROWSE BY GENRE
   ========================================================= */

.genre-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 25px;
}


.genre-card {
    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 72px;

    padding: 11px 12px;

    background: #fff;

    border: 1px solid #d9e3ea;
    border-radius: 10px;

    color: #222;

    text-decoration: none;

    box-shadow:
        0 1px 3px rgba(18, 63, 104, .04);

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}


.genre-card:hover {
    border-color: #8eabc0;

    box-shadow:
        0 5px 14px rgba(18, 63, 104, .10);

    transform: translateY(-2px);

    color: #123f68;
}


.genre-card-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 11px;

    background: #edf3f7;

    border-radius: 9px;

    color: #174e78;

    font-size: 1rem;
}


.genre-card-content {
    min-width: 0;
    flex: 1;
}


.genre-card-title {
    display: block;

    color: #1f2933;

    font-size: .84rem;
    font-weight: 600;

    line-height: 1.25;
}


.genre-card-action {
    display: block;

    margin-top: 3px;

    color: #6a7580;

    font-size: .68rem;
}


.genre-card-arrow {
    flex: 0 0 auto;

    margin-left: 7px;

    color: #71808c;

    font-size: .65rem;
}


.genre-card:hover .genre-card-icon {
    background: #123f68;

    color: #fff;
}


.genre-card:hover .genre-card-arrow {
    color: #3276a3;
}


/* =========================================================
   GENRE GRID - RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

    .genre-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 767.98px) {

    .genre-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .genre-card {
        min-height: 66px;

        padding: 9px;
    }

    .genre-card-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        margin-right: 8px;

        font-size: .85rem;
    }

    .genre-card-title {
        font-size: .77rem;
    }

    .genre-card-action {
        font-size: .63rem;
    }

}


@media (max-width: 420px) {

    .genre-grid {
        grid-template-columns: 1fr;
    }

}
.catalogue-pagination {
    margin-top: 24px;
}

.catalogue-pagination .page-link {
    color: #123f68;
    border-color: #d5e0e8;
    font-size: .78rem;
}

.catalogue-pagination .page-item.active .page-link {
    background-color: #3276a3;
    border-color: #3276a3;
    color: #fff;
}

.catalogue-pagination .page-link:hover {
    background-color: #edf3f7;
    color: #123f68;
}

.catalogue-page-info {
    margin-top: 8px;
    color: #4b5560;
    font-size: .72rem;
}
.search-loading {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.search-loading.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.search-loading-card {
    min-width: 270px;
    padding: 28px 32px;

    text-align: center;

    background: #fff;
    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-spinner {
    width: 44px;
    height: 44px;

    margin: 0 auto 16px;

    border: 4px solid #e9ecef;
    border-top-color: #0d6efd;

    border-radius: 50%;

    animation: searchSpinner 0.7s linear infinite;
}

.search-loading-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.search-loading-text {
    margin-top: 6px;

    font-size: 13px;
    color: #6c757d;
}

@keyframes searchSpinner {

    to {
        transform: rotate(360deg);
    }

}

/* -------------------------------------------------
   Reservation Message
------------------------------------------------- */

.reservation-message {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

.reservation-message strong {
    color: #212529;
}

.reservation-message font[color="blue"] {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

.reservation-message a {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.reservation-message a:hover {
    text-decoration: underline;
}


/* Reservation message paragraphs */

.reservation-message p {
    margin-bottom: 0.75rem;
}


/* Mobile */

@media (max-width: 575.98px) {

    .reservation-message {
        font-size: 0.95rem;
    }

}

