/**
 * Style for Nathan Hotel Offers Page Template
 */

.offers-title {
    margin-bottom: 24px;
}

/* Category Filter Tabs */
.offers-filter {
    display: flex;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
}

.offers-filter__item-btn {
    border: none;
    cursor: pointer;
    padding: 0 0 10px 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 18px;
}

.offer-detail-banner {
    position: relative;
}

.main-content.offers-page {
    padding: 100px 0 160px;
}

.offers-filter__item-btn:not(:hover) {
    color: var(--color-black) !important;
}

.offers-filter__item-btn:hover {
    color: var(--color-orange) !important;
}

.offers-filter__item-btn.is-active {
    color: var(--color-orange) !important;
}

/* Grid Layout */
.offers-grid-wrapper {
    position: relative;
    min-height: 200px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 20.5px;
}

.offers-grid.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Loading Spinner */
.offers-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.offers-grid-wrapper.is-loading .offers-loader {
    display: block;
}

.offers-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(213, 155, 115, 0.2);
    border-radius: 50%;
    border-top-color: #d59b73;
    animation: offers-spin 1s ease-in-out infinite;
}

@keyframes offers-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Offer Card */
.offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    --bevel-clippath: 70% 0, 100% 20%, 100% 100%, 0 100%, 0 0;
    border-radius: 5px;
}

.offer-card__image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.offer-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 90%;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 5px;
}

.offer-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.65, 0, .35, 1);
    transform: scale(1.1);
}

.offer-card:hover .offer-card__image {
    transform: scale(1);
}

/* Discount Tag */
.offer-card__discount {
    position: absolute;
    top: 28px;
    left: 29px;
    background: #F3EDE4;
    padding: 6px 10px;
    border-radius: 5px;
    color: var(--color-dark-brown);
    font-size: 18px;
}

/* Action Button Over Image */
.offer-card__arrow-btn {
    position: absolute;
    bottom: 27px;
    right: 27px;
    width: 60px;
    height: 55px;
    background-color: var(--color-orange);
    border-radius: 5px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: translateX(-5px);
    transition: transform 0.6s ease, opacity 0.4s ease !important;
    padding-bottom: 0 !important;
    opacity: 0;
    background-image: none !important;
    --bevel-clippath: 70% 0, 100% 35%, 100% 100%, 0 100%, 0 0;
}

.offer-detail-gallery,
.offer-detail-hero-image {
    --bevel-clippath: 0 0, 90% 0, 100% 20%, 100% 100%, 10% 100%, 0 80%;
}

.offer-card:hover .offer-card__arrow-btn {
    opacity: 1;
    transform: translateX(0);
}

.offer-card__arrow-btn img {
    width: 17px;
    height: 13px;
    display: block;
}

.offers-content {
    margin-bottom: 30px;
}

.offers-content h2 {
    color: var(--color-dark-grey-blue);
}

.press-page .offers-content h2 {
    color: var(--color-light-brown);
}

/* Card Text Content */
.offer-card__title {
    margin: 0 0 20px 0;
}

.offer-card__title a {
    color: inherit !important;
}

.offer-card__title a:hover {
    color: var(--color-orange) !important;
}

.offer-card__divider {
    border-bottom: 1px solid #E1E1E1;
    margin-bottom: 20px;
}

.offer-card__excerpt {
    color: var(--color-dark-grey-blue);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card__excerpt p {
    color: inherit;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Style */
.offers-pagination-wrapper {
    margin-top: 100px;
    display: flex;
    justify-content: center;
}

.offers-pagination {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.offers-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    background-color: rgba(255, 255, 255);
    background-image: none !important;
    opacity: 0.3;
    border: none;
    transition: all 0.3s ease !important;
    cursor: pointer;
    padding-bottom: 0 !important;
}

.offers-pagination .page-numbers.current {
    opacity: 1;
    cursor: default;
}

.offers-pagination a.page-numbers:hover {
    opacity: 1;
}

.offers-pagination .page-numbers.dots {
    background-color: transparent;
    border-color: transparent;
    cursor: default;
    color: #b9b5a9;
}

/* Pagination Arrows */
.offers-pagination .page-numbers.prev,
.offers-pagination .page-numbers.next {
    background-color: transparent;
    min-width: auto;
    width: auto;
    height: 38px;
    padding: 0 15px;
    box-shadow: none !important;
    opacity: 1;
    margin: 0 14px;
}

.offers-pagination .page-numbers img {
    width: 17px;
    height: 13px;
    display: inline-block;
    vertical-align: middle;
}

.offers-pagination .arrow-prev {
    transform: rotate(180deg);
}

.offers-pagination .page-numbers.prev.disabled,
.offers-pagination .page-numbers.next.disabled {
    pointer-events: none;
    opacity: 0.3;
}

.offers-pagination .page-numbers.prev:hover:not(.disabled),
.offers-pagination .page-numbers.next:hover:not(.disabled) {
    opacity: 0.7;
}

/* =====================================================================
   Offer Detail Page Template Styles
   ===================================================================== */
.offer-detail-page {
    padding: 60px 0 0;
}

.offer-detail__back {
    margin-bottom: 50px;
}

.offer-detail__back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.offer-detail__title {
    margin-bottom: 70px;
}

/* Swiper Gallery */
.offer-detail-gallery {
    width: 100%;
    height: 600px;
    position: relative;
}

.offer-detail-gallery .swiper-slide {
    width: 100%;
    height: 100%;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.offer-detail-gallery .swiper-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Nav & Fraction Pagination */
.gallery-nav-wrapper {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 30px;
}

.gallery-nav-wrapper .swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.gallery-pagination {
    font-size: 18px;
    color: var(--color-white) !important;
    width: auto !important;
    text-align: center;
    display: inline-block;
}

/* Fallback Hero Image */
.offer-detail-hero-image {
    width: 100%;
    height: 480px;
    margin-bottom: 60px;
    --bevel-clippath: 0 0, calc(100% - 100px) 0, 100% 100px, 100% 100%, 100px 100%, 0 calc(100% - 100px);
}

.offer-detail-hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    max-width: 100% !important;
}

/* Two Columns Content Grid */
.offer-detail__content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    padding: 110px 0;
}

.offer-detail__section-title {
    margin-bottom: 20px;
}

/* Tags */
.offer-detail__tags {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.offer-detail__tag {
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 5px;
}

.offer-detail__tag.tag-discount {
    background-color: #F3EDE4;
    color: var(--color-dark-brown);
}

.offer-detail__tag.tag-category {
    background-color: transparent;
    border: 1px solid var(--color-light-brown);
    color: var(--color-light-brown);
}

/* Intro Text */
.offer-detail__excerpt {
    margin-bottom: 40px;
    max-width: 562px;
}

/* Book Now Button Grid */
.offer-detail__book-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    width: fit-content;
}

.offer-detail__offering-list {
    margin-bottom: 50px;
}

.offer-detail__book-btn-grid .button {
    --bevel-clippath: 0 0, 89.22% 0, 100% 38.18%, 100% 100%, 10.78% 100%, 0 61.82%;
    padding: 16px 26px;
    font-size: 14px;
    font-weight: 700;
}

/* Meta Info (Date & Time) */
.offer-detail__meta-info {
    margin-bottom: 50px;
}

.offer-detail__meta-item {
    display: flex;
    margin-bottom: 20px;
    gap: 30px;
    font-size: 18px;
}

.offer-detail__meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 140px;
}

/* Promotion Image Link Wrapper */
.offer-detail__promo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid #E1E1E1;
    padding-top: 40px;
}

/* Promotion Image Link */
.offer-detail__promo-link {
    font-family: var(--font-lato);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--color-light-brown) !important;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    width: fit-content;
}

.offer-detail__promo-link:hover {
    color: var(--color-orange) !important;
}

.offer-detail__promo-arrow {
    width: 14px;
    height: 10px;
    transition: transform 0.3s ease;
}

.offer-detail__promo-link:hover .offer-detail__promo-arrow {
    transform: translateX(3px);
}



/* Page Press - Gallery Popup */
body.press-popup-open {
    overflow: hidden;
}

.press-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 70px 0;
    box-sizing: border-box;
}

.press-popup.is-active {
    opacity: 1;
    pointer-events: auto;
}

.press-popup__overlay {
    position: absolute;
    inset: 0;
    background-color: #FAF7F1;
}

.press-popup__content {
    position: relative;
    width: 90%;
    max-width: 680px;
    height: 100%;
    z-index: 10;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.press-popup__close {
    position: absolute;
    top: 70px;
    right: 65px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-orange);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease !important;
    z-index: 1;
    background-image: none !important;
    padding-bottom: 0 !important;
}

.press-popup__close img {
    width: 18px;
    height: 18px;
    transition: filter 0.3s ease;
}

.press-popup__close:hover {
    background-color: var(--color-orange);
}

.press-popup__close:hover img {
    filter: brightness(0) invert(1);
}

.press-popup__slider-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.press-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-height: 100%;
}

.press-swiper .swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.press-swiper .swiper-slide img {
    max-width: 100%;
    max-height: calc(100vh - 240px);
    object-fit: contain;
    border-radius: 5px;
}

.press-popup .gallery-nav-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 30px;
    justify-content: center;
}

.press-popup .gallery-button-prev,
.press-popup .gallery-button-next {
    border-color: var(--color-orange);
    background-color: var(--color-orange);
    background-image: url('../images/next-icon-white.svg');
}

.page-template-page-os-press .offer-card {
    cursor: pointer;
}

.press-popup .gallery-pagination {
    color: var(--color-black) !important;
}

/* =====================================================================
   Media Query Breakpoints
   ===================================================================== */

/* Desktop / Larger Screens Override */


/* Large Tablets / Laptops */
@media (max-width: 991px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .main-content.offers-page {
        padding: 80px 0 100px;
    }

    .offers-pagination-wrapper {
        margin-top: 50px;
    }

    .offers-pagination .page-numbers.prev,
    .offers-pagination .page-numbers.next {
        margin: 0;
    }

    .offer-card {
        clip-path: var(--bevel-active, none);
    }

    .offer-card__arrow-btn {
        opacity: 1;
        transform: none;
    }

    .offer-detail__content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .offer-detail-gallery,
    .offer-detail-hero-image {
        height: 390px;
    }

    .gallery-nav-wrapper {
        bottom: 20px;
    }
}

/* Medium Tablets */
@media (max-width: 860px) {
    .press-popup__close {
        top: 34px;
        right: 20px;
    }
}

/* Mobile & Small Tablets */
@media (max-width: 767px) {
    .offer-detail-page {
        padding: 40px 0 0;
    }

    .offer-detail__related {
        padding: 80px 0 100px;
    }

    .gallery-nav-wrapper {
        bottom: 0;
    }

    .gallery-button-prev,
    .gallery-button-next {
        width: 45px;
        height: 45px;
        border-color: var(--color-orange);
        background-image: url('../images/next-icon-orange.svg');
    }

    .offer-detail__book-btn-grid {
        grid-template-columns: 1fr;
    }

    .offer-detail__book-btn-grid .offer-detail__book-btn {
        width: 100%;
        justify-content: center;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .related-title {
        font-family: var(--h1-font-family);
        font-weight: var(--h1-font-weight);
        font-size: var(--h1-font-size);
        line-height: var(--h1-line-height);
        letter-spacing: var(--h1-letter-spacing);
        text-transform: var(--h1-text-transform);
    }

    .offer-detail__title {
        margin-bottom: 30px;
        font-size: 36px;
    }

    .offer-detail__content-grid {
        border-top: 1px solid #E1E1E1;
        padding: 30px 0 60px;
        gap: 35px;
    }

    .offer-detail__tags,
    .offer-detail__excerpt,
    .offer-detail__offering-list,
    .offer-detail__meta-info {
        margin-bottom: 35px;
    }

    .offer-detail__meta-item {
        display: block;
    }

    .meta-value {
        padding-left: 34px;
    }

    .offer-detail__promo-wrapper {
        padding-top: 35px;
    }

    .offer-detail-gallery {
        padding-bottom: 0 !important;
    }

    .offer-detail-banner {
        margin-bottom: 60px;
        position: relative;
        padding-bottom: 85px;
    }

    .offer-detail-gallery,
    .offer-detail-hero-image {
        --bevel-clippath: 0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 75%;
    }

    .gallery-pagination {
        color: inherit !important;
    }

    .related-view-all {
        display: inline-block !important;
        margin-top: 40px;
    }

    .press-popup__content {
        max-width: 90%;
    }

    .press-popup__close {
        width: 45px;
        height: 45px;
    }

    .press-popup {
        padding: 60px 0;
    }

    .press-popup .gallery-nav-wrapper {
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    .press-popup__slider-container {
        padding-bottom: 100px;
    }



    .related-button-prev,
    .related-button-next {
        width: 44px !important;
        height: 44px !important;
    }

    .related-swiper-buttons .swiper-button-disabled {
        opacity: 0.3 !important;
        pointer-events: none;
    }
}

/* Small Mobile */
@media (max-width: 600px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offers-filter {
        gap: 40px;
        overflow-x: auto;
        white-space: nowrap;
        margin-right: -20px;
    }
}