/* ============================================
   1. SECTION WRAPPER & BACKGROUND
============================================ */
.hc-part-2 {
    background-image: url('https://www.highchaparral.se/wp-content/uploads/2025/01/paper-texture-web.jpg');
    background-size: cover;       /* Ensures full coverage */
    background-position: center;  /* Centers the texture */
    background-repeat: no-repeat; /* Prevents tiling */
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Color themes */
.hc-part-2.light {
    background-color: #b4abaa8f;
    background-blend-mode: darken;
}
.hc-part-2.dark {
    background-color: #332522;
    background-blend-mode: multiply;
}

/* ============================================
   2. EQUIPMENT & SEATING LISTS
============================================ */
.hc-part-2 .equipment ul,
.seating, .properties ul {
    margin: 1em 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.2rem;
    width: 100%;
}
.hc-part-2 .seating {
    margin: 0.5em 0 1.5em 0;
}
.hc-part-2 .seating .seat-icon {
    width: 30px;
    height: auto;
}
.hc-part-2 .seating .seat-option {
    display: flex;
    color: #f7f2e7;
    gap: 14px;
}
.hc-part-2 .equipmentm, .hc-part-2 .properties {
    color: #f7f2e7;
}
.hc-part-2 .equipment p, .hc-part-2 .properties p {
    margin-bottom: 0;
    text-transform: uppercase;
}
.hc-part-2 .equipment ul, .hc-part-2 .properties ul {
    margin: 0;
}
.hc-part-2 .equipment li, .hc-part-2 .properties li {
    color: #f7f2e7;
    margin-bottom: 0.25em;
}
.hc-part-2 .equipment li.disabled {
    text-decoration: line-through;
    display: none;
}
.card-content-small.dark .equipment li.disabled {
    color: #5a5a5a;
}
.card-content-small.dark .equipment, .card-content-small.dark .properties, .card-content-small.dark .equipment li, .card-content-small.dark .properties li, .card-content-small.dark .seating .seat-option {
    color: #2f2f2f;
}
.card-content-small.light .equipment li.disabled {
    color: #888;
}
.card-content-small.light .equipment, .card-content-small.light .properties, .card-content-small.light .equipment li, .card-content-small.light .properties li, .card-content-small.light .seating .seat-option {
    color: #f7f2e7;
}
/* ============================================
   3. OVERLAYS & DECORATIVE ELEMENTS
============================================ */
.hc-part-1-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(
        to bottom,
        rgba(139, 120, 108, 1) 10%,
        rgba(139, 120, 108, 0) 100%
    );
    z-index: 3;
}

/* ============================================
   4. CARD DIMENSIONS (CSS VARIABLES)
============================================ */
:root {
    --card-height: 440px;
    --card-width: calc(var(--card-height) / 1.5);
}

/* ============================================
   5. CARD LAYOUT & IMAGE WRAPPER
============================================ */
.card-content-small {
    background-image: url('https://www.highchaparral.se/wp-content/uploads/2025/01/paper-texture-web.jpg');
    background-size: cover;       /* Ensures full coverage */
    background-position: center;  /* Centers the texture */
    background-repeat: no-repeat; /* Prevents tiling */
    position: relative;
    overflow: hidden;

    width: auto;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    perspective: 2500px;
    margin: 0;
    box-shadow: 8px 11px 20.1px rgba(0, 0, 0, 0.25);
    flex-direction: column;
}
.card-content-small.light {
    background-color: #534440;
    background-blend-mode: multiply;
}
.card-content-small.dark {
    background-color: #b4abaa8f;
    background-blend-mode: darken;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content-small .image-wrapper {
    position: relative;
    width: 100%;
    z-index: -1;
    transition: all 0.5s;
}
.card-content-small .image-wrapper .cover-image {
    transition: all 0.5s;
}
.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hc-part-2.full-mode .image-wrapper {
    max-height: 243px;
}
/* ============================================
   6. IMAGE GRADIENT OVERLAYS
============================================ */
.image-wrapper::before,
.image-wrapper::after {
    content: "";
    opacity: 0;
    width: 100%;
    height: 80px;
    position: absolute;
    left: 0;
    transition: all 0.5s;
}
.image-wrapper::before {
    top: 0;
    height: 100%;
    background-image: linear-gradient(
        to top,
        transparent 46%,
        rgba(12, 13, 19, 0.5) 68%,
        rgba(12, 13, 19) 97%
    );
}
.image-wrapper::after {
    bottom: 0;
    background-image: linear-gradient(
        to bottom,
        transparent 46%,
        rgba(12, 13, 19, 0.5) 68%,
        rgba(12, 13, 19) 97%
    );
}

/* Hover effects */
.card-content-small:hover .image-wrapper::before,
.image-wrapper::after {
    opacity: 0;
}
.card-content-small:hover .image-wrapper::after {
    height: 120px;
}

/* ============================================
   7. CARD TITLE & CHARACTER IMAGE
============================================ */
.title {
    width: 100%;
    transition: transform 0.5s;
    max-width: 100%;
}
.card-content-small:hover .title {
    transform: none;
}
.character {
    max-height: 100%;
    width: auto;
    opacity: 0;
    position: absolute;
    z-index: -1;
    transition: all 0.5s;
}
.card-content-small:hover .character {
    opacity: 1;
    transform: translate3d(0%, -4.4%, 100px);
}

/* ============================================
   8. SLIDER DECORATIVE "DIRT" ELEMENTS
============================================ */
.slider-dirt-bot,
.slider-dirt-left,
.slider-dirt-right {
    position: absolute;
    opacity: .35;
    pointer-events: none;
}
.slider-dirt-bot {
    bottom: 0;
    left: 0;
    width: 100%;
}
.slider-dirt-left {
    bottom: 0;
    left: 0;
    height: 100%;
}
.slider-dirt-right {
    bottom: 0;
    right: 0;
    height: 100%;
}

/* ============================================
   9. SWIPER CONTAINER & SLIDES
============================================ */
.swiper-container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    position: relative;
    z-index: 10;
    padding-left: 100px;
}
.hc-part-2 .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: unset !important;
}
.swiper-slide .card-link {
    height: 100%;
    transition: all 0.5s;
}
.hc-part-2 .swiper-slide .card-link:hover {
    transform: translateY(-5%);
}

/* ============================================
   10. SWIPER TEXT CONTENT INSIDE CARDS
============================================ */
.card-content-small .swiper-text-content {
    height: max-content;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}
.card-content-small .swiper-text-content .title {
    font-size: 1.4rem;
    text-align: left;
    text-decoration: none;
}
.card-content-small.light .swiper-text-content .title, .card-content-small.light .swiper-text-content p {
    color: #f7f2e7;
}
.card-content-small.dark .swiper-text-content .title, .card-content-small.dark .swiper-text-content p {
    color: #2f2f2f;
}

/* ============================================
   11. IMAGE MASKING FOR FULL-MODE CARDS
============================================ */
.hc-part-2.full-mode .cover-image {
    aspect-ratio: 16 / 9;
    -webkit-mask-image: url('https://www.highchaparral.se/wp-content/themes/hc-theme/img/ripped-paper-mask-bottom.png');
    mask-image: url('https://www.highchaparral.se/wp-content/themes/hc-theme/img/ripped-paper-mask-bottom.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    min-height: 242px;
}
.hc-part-2 .cover-image {
    aspect-ratio: 4 / 3;
}

/* ============================================
   12. NAVIGATION CONTAINER
============================================ */
.hc-part-2 .nav-container {
    position: relative;
    margin: 48px auto 0;
    max-width: 711px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.hc-part-2 .swiper-container .nav-container .swiper-button-disabled {
    opacity: 0;
}
.hc-part-2 .nav-container .nav-inner-container {
    display: flex;
    width: max-content;
    gap: 32px;
    margin: 0 auto;
}
.hc-part-2 .nav-container .swiper-pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color themes for pagination & text */

.light .nav-container .swiper-pagination-bullet-active {
    background-color: #332522 !important;
}
.dark .nav-container .swiper-pagination-bullet-active {
    background-color: #f7f2e7 !important;
}
.dark .nav-container .swiper-pagination-bullet {
    background: #ffffff !important;
}
.light .title-text {
    color: #332522 !important;
}
.dark .title-text {
    color: #f7f2e7 !important;
}

/* Nav buttons */
.nav-container .swiper-buttons-prev,
.nav-container .swiper-buttons-next {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.nav-container .swiper-buttons-prev svg,
.nav-container .swiper-buttons-next svg {
    width: 32px;
    height: 32px;
}
.nav-container .swiper-buttons-prev:hover svg,
.nav-container .swiper-buttons-next:hover svg {
    fill: #fff;
}
.nav-container .swiper-buttons-prev.swiper-buttons-disabled,
.nav-container .swiper-buttons-next.swiper-buttons-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.dark .nav-container .swiper-buttons-prev,
.dark .nav-container .swiper-buttons-next {
    filter: invert(1);
}

/* ============================================
   13. TITLE TEXT BLOCK AND BUTTON
============================================ */
.title-text {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 60px auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.title-text h2 {
    font-size: 2rem;
}
.title-text h3 {
    font-size: 1.6rem;
}
.title-text p {
    font-size: 1.1rem;
}

/* CTA under the swiper */
.swiper-cta {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
}

.swiper-cta__button {
  min-height: 44px;            /* WCAG target size */
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   14. THREE COLUMN BLOCK
============================================ */
.hc-three-column-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #534440;
    color: #fff;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
    box-shadow: 8px 11px 20.1px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Decorative corners & bottom dirt */
.bottom-dirt {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.corner-tl, .corner-tr, .corner-bl, .corner-br {
    position: absolute;
    width: 40px;
}
.corner-tl { top: 10px; left: 10px; }
.corner-tr { top: 10px; right: 10px; }
.corner-bl { bottom: 10px; left: 10px; }
.corner-br { bottom: 10px; right: 10px; }

/* Column content */
.hc-column {
    flex: 1 1 calc(33.333% - 20px);
    text-align: center;
    padding: 10px 30px;
}
.hc-column__title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.hc-column__content {
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================
   15. RESPONSIVE QUERIES
============================================ */
@media (max-width: 1160px) {
    .hc-three-column-block {
        max-width: 900px;
    }
}
@media (max-width: 768px) {
    .hc-part-2 {
        padding: 25px;
    }
    .hc-part-2 .swiper-container {
        max-width: 100%;
        margin: auto;
    }
    .swiper-container {
        padding-left: 0;
    }
    .hc-three-column-block {
        max-width: calc(100% - 50px);
        padding: 15px;
    }
    .hc-column {
        flex: 1 1 100%;
        padding: 20px 10px;
    }
    .title-text {
        max-width: 100%;
        text-align: left;
        align-items: flex-start;
        margin: 24px auto;
    }
    .card-content-small {
        margin: 0 auto;
    }
    .title-text h2 {
        font-size: 1.8rem;
    }
    .title-text p {
        font-size: 1rem;
    }
    .card-content-small .swiper-text-content .title {
        font-size: 1.2rem;
    }
}

/* ============================================
   16. WCAG 2.2 ACCESSIBILITY
============================================ */
/* Visually hidden utility */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
    
}/* Focus ring for keyboard users */
.swiper-cta__button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  scroll-margin: 1rem;
}
/* Focus visible outline */
.hc-part-2 a:focus-visible,
.hc-part-2 [role="button"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    scroll-margin: 1rem;
}
/* Ensure nav buttons are ≥44px */
.nav-container .swiper-buttons-prev,
.nav-container .swiper-buttons-next {
    min-width: 44px;
    min-height: 44px;
}
/* Decorative dirt images don't intercept focus */
.image-text-Dirt_light-top,
.image-text-Dirt_light-right,
.image-text-Dirt_light-left,
.image-text-Dirt_light-bottom {
    pointer-events: none;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .swiper-slide,
    .swiper-container,
    .swiper-wrapper {
        animation: none !important;
        transition: none !important;
    }
}
