/* ==============================
   WILA UNIVERSITY SPOTLIGHT
================================ */

.wila-su {
    --wsu-left-col: 58%;
    --wsu-gap: 40px;
    --wsu-list-gap: 22px;
    --wsu-per-page: 2;
    --wsu-overlay: rgba(8, 22, 17, 0.82);
    --wsu-controls-gap: 22px;

    display: flex;
    flex-direction: column;
    gap: var(--wsu-controls-gap);
    width: 100%;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.wila-su__main {
    display: grid;
    grid-template-columns: var(--wsu-left-col) minmax(0, 1fr);
    gap: var(--wsu-gap);
    align-items: stretch;
    touch-action: pan-y;
}

/* All spotlight panels share one grid cell, so the stage is always as tall as the tallest one */
.wila-su__stage {
    display: grid;
    min-width: 0;
}

.wila-su,
.wila-su * {
    box-sizing: border-box;
}

.wila-su h3,
.wila-su h4,
.wila-su p {
    margin: 0;
    padding: 0;
}

.wila-su a {
    text-decoration: none;
    box-shadow: none;
}

.wila-su img {
    display: block;
    max-width: 100%;
}

.wila-su__arrow {
    width: 1em;
    height: 1em;
    flex: none;
    transition: transform 0.25s ease;
}

/* ==============================
   SPOTLIGHT CARD
================================ */

.wila-su__spot {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid #e6ebe7;
    border-radius: 16px;
    overflow: hidden;
}

.wila-su__spot.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wila-su__spot.is-entering {
    animation: wila-su-spot-next 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.wila-su[data-dir="prev"] .wila-su__spot.is-entering {
    animation-name: wila-su-spot-prev;
}

@keyframes wila-su-spot-next {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}

@keyframes wila-su-spot-prev {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
}

.wila-su__spot-media {
    position: relative;
    flex: none;
    height: 213px;
    overflow: hidden;
    background: #dfe6e2;
}

.wila-su__spot-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wila-su__spot-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--wsu-overlay) 0%, rgba(0, 0, 0, 0) 58%);
    pointer-events: none;
    z-index: 1;
}

.wila-su__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wila-su__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.wila-su__badge--primary {
    background: #0f2a21;
    color: #ffffff;
}

.wila-su__badge--secondary {
    background: #d6ae35;
    color: #2a2208;
}

.wila-su__caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wila-su__eyebrow {
    color: #e0b93e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.wila-su__spot-title {
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.wila-su__spot-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px 20px;
}

.wila-su__spot-desc {
    color: #5b6860;
    font-size: 12px;
    line-height: 1.7;
}

.wila-su__stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: auto;
    padding: 12px 16px;
    background: #f7f4ea;
    border: 1px solid #d6d0bc;
    border-radius: 8px;
    text-align: center;
}

.wila-su__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wila-su__stat-label {
    color: #4b5a52;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wila-su__stat-value {
    color: #0f2a21;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.wila-su__stat.is-highlight .wila-su__stat-value {
    color: #2f9e44;
}

.wila-su__spot-footer {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    background: #e9f4ea;
}

.wila-su__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0f2a21;
    font-size: 11px;
    font-weight: 500;
}

.wila-su__status-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: #2f9e44;
}

.wila-su__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #0f2a21;
    color: #ffffff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.wila-su__btn:hover {
    background: #1d4a3a;
    color: #ffffff;
}

.wila-su__btn:hover .wila-su__arrow,
.wila-su-card__link:hover .wila-su__arrow {
    transform: translateX(3px);
}

/* ==============================
   LIST SIDE
================================ */

.wila-su__side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wila-su__list {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(var(--wsu-per-page), 1fr);
    gap: var(--wsu-list-gap);
    min-width: 0;
}

.wila-su-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e6ebe7;
    border-radius: 14px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.wila-su-card[hidden] {
    display: none;
}

.wila-su-card:hover {
    box-shadow: 0 8px 24px rgba(15, 42, 33, 0.07);
}

.wila-su-card {
    cursor: pointer;
}

.wila-su-card.is-entering {
    animation: wila-su-in 0.4s ease both;
    animation-delay: calc(var(--wsu-i, 0) * 80ms);
}

@keyframes wila-su-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wila-su-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wila-su-card__thumb {
    position: relative;
    flex: none;
    width: 66px;
    height: 66px;
    border-radius: 6px;
    overflow: hidden;
    background: #dfe6e2;
}

.wila-su-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wila-su-card__code {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 3px 7px;
    background: #0f2a21;
    color: #ffffff;
    border-top-left-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.wila-su-card__head {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wila-su-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wila-su-card__tag {
    padding: 3px 7px;
    background: #e4f0e7;
    color: #0f2a21;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wila-su-card__rank {
    color: #c9a227;
    font-size: 11px;
    font-weight: 600;
}

.wila-su-card__title {
    color: #0f2a21;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.wila-su-card__loc {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5f6f67;
    font-size: 11px;
}

.wila-su-card__pin {
    width: 11px;
    height: 11px;
    flex: none;
    color: #2f9e44;
}

.wila-su .wila-su-card__desc {
    margin: 14px 0;
    color: #5b6860;
    font-size: 12px;
    line-height: 1.65;
}

.wila-su-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 14px;
    border-top: 1px solid #e8ece9;
}

.wila-su-card__facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #5b6860;
    font-size: 11px;
}

.wila-su-card__facts strong {
    color: #10211a;
    font-weight: 700;
}

.wila-su-card__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c4cec8;
}

.wila-su-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2f9e44;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.wila-su-card__link:hover {
    color: #0f2a21;
}

/* ==============================
   PAGINATION & NAVIGATION
================================ */

.wila-su__controls {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.wila-su__controls[hidden] {
    display: none;
}

.wila-su__nav {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #ffffff;
    color: #0f2a21;
    border: 1px solid #d5ddd8;
    border-radius: 50px;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.wila-su__nav svg {
    width: 16px;
    height: 16px;
}

.wila-su__nav:hover:not(:disabled) {
    background: #0f2a21;
    color: #ffffff;
    border-color: #0f2a21;
}

.wila-su__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wila-su__nav:focus-visible,
.wila-su__page:focus-visible {
    outline: 2px solid #2f9e44;
    outline-offset: 2px;
}

.wila-su__pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.wila-su__ellipsis {
    color: #5b6860;
    font-size: 12px;
    line-height: 1;
    padding: 0 2px;
}

/* Dots */

.wila-su__pagination--dots {
    gap: 8px;
}

.wila-su__pagination--dots .wila-su__page {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd8d3;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.wila-su__pagination--dots .wila-su__page.is-active {
    width: 22px;
    background: #0f2a21;
}

/* Numbers */

.wila-su__pagination--numbers {
    gap: 6px;
}

.wila-su__pagination--numbers .wila-su__page {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    background: #ffffff;
    color: #0f2a21;
    border: 1px solid #d5ddd8;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.wila-su__pagination--numbers .wila-su__page.is-active {
    background: #0f2a21;
    color: #ffffff;
    border-color: #0f2a21;
}

/* Fraction */

.wila-su__fraction {
    color: #0f2a21;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.wila-su__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .wila-su {
        --wsu-gap: 28px;
    }

    .wila-su__spot-title {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .wila-su {
        --wsu-gap: 24px;
    }

    .wila-su__main {
        grid-template-columns: minmax(0, 1fr);
    }

    .wila-su__spot-media {
        height: 200px;
    }

    .wila-su__spot-body {
        padding: 16px;
    }

    .wila-su__spot-footer {
        padding: 12px 16px;
    }

    .wila-su__stats {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .wila-su__list {
        grid-template-rows: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wila-su-card.is-entering,
    .wila-su__spot.is-entering {
        animation: none;
    }

    .wila-su__arrow,
    .wila-su__nav,
    .wila-su__pagination--dots .wila-su__page {
        transition: none;
    }
}