/* Project Case Study: native Flatsome slider and single-project layout. */

/* Home / related-project slider -------------------------------------------- */
.home-case-study {
    --case-accent: #a86042;
    --case-white: #fff;
    --case-muted: rgba(255, 255, 255, .86);
    --case-radius: clamp(8px, .84vw, 12px);
    --case-gallery-gap: clamp(6px, .56vw, 8px);
    position: relative;
    overflow: hidden;
}

.home-case-study .section-bg::after {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(20, 22, 18, .32);
}

.home-case-study .section-bg img,
.home-case-study__banner .banner-bg,
.home-case-study__banner .banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-case-study .section-content {
    z-index: 1;
}

.home-case-study__slider .slider,
.home-case-study__slide {
    width: 100%;
}

.home-case-study__slide {
    margin: 0 !important;
}

.home-case-study__content > .col-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 660px;
    height: 100%;
}

.home-case-study__gallery > .col-inner,
.home-case-study__gallery,
.home-case-study__gallery .banner-grid-wrapper {
    height: clamp(520px, 70vw, 740px);
}

.home-case-study__label.section-label {
    width: max-content;
    margin: 0 0 clamp(16px, 2vw, 28px);
}

.home-case-study__label.section-label p {
    margin: 0;
    font-size: clamp(10px, 1.2vw, 14px);
}

.home-case-study__heading {
    margin: 0;
}

.home-case-study__heading h2 {
    color: var(--case-white);
}

.home-case-study__heading p {
    margin: clamp(6px, .56vw, 8px) 0 0;
    color: var(--case-white);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 600;
    line-height: 1.3;
}

.home-case-study__description {
    margin-top: clamp(20px, 1.95vw, 28px);
}

.home-case-study__description p {
    margin: 0;
    color: var(--case-muted);
    font-size: var(--fs-body, 16px);
    line-height: 1.5;
    text-align: justify;
}

.home-case-study__values {
    display: flex;
    align-items: stretch !important;
    gap: clamp(8px, .84vw, 12px);
    margin-top: clamp(30px, 2.78vw, 40px);
}

.home-case-study__values > .home-case-study__value {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: clamp(160px, 14.31vw, 206px);
    padding: clamp(14px, 1.12vw, 16px) clamp(16px, 1.67vw, 24px);
    overflow: hidden;
    border-radius: var(--case-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(102, 52, 37, .55)), rgba(0, 0, 0, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}

.home-case-study__values > .home-case-study__value::before {
    position: absolute;
    inset: 0;
    padding: 1px;
    content: '';
    border-radius: inherit;
    background: radial-gradient(140% 120% at 50% 115%, rgba(255, 255, 255, .7), rgba(255, 255, 255, .3) 35%, rgba(255, 255, 255, .08) 65%, transparent);
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.home-case-study__value h3 {
    position: relative;
    margin: 0;
    color: var(--case-white);
    font-family: var(--font-body, inherit) !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.home-case-study__value p {
    position: relative;
    margin: clamp(10px, 1.12vw, 14px) 0 0;
    color: var(--case-muted);
    font-size: var(--fs-body, 16px);
    line-height: 1.45;
}

.home-case-study__button {
    align-self: flex-start;
    min-height: clamp(38px, 3.06vw, 44px);
    margin: clamp(28px, 2.78vw, 40px) 0 0 !important;
    font-size: clamp(9px, .84vw, 12px);
}

.home-case-study__gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 2fr 1fr;
    gap: var(--case-gallery-gap);
    height: 100%;
    margin: 0;
}

.home-case-study__gallery-grid > .grid-col {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.home-case-study__gallery-grid > .grid-col:first-child {
    grid-column: 1 / 3;
}

.home-case-study__gallery-grid .col-inner,
.home-case-study__banner.banner,
.home-case-study__banner .banner-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.home-case-study__banner.banner {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--case-radius);
}

.home-case-study__banner .banner-bg img {
    transition: transform .45s ease;
}

.home-case-study__banner:hover .banner-bg img {
    transform: scale(1.025);
}

.home-case-study__banner--main::after {
    position: absolute;
    z-index: 1;
    inset: 45% 0 0;
    content: '';
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
    pointer-events: none;
}

.home-case-study__banner .banner-layers {
    z-index: 2;
    width: 100%;
    max-width: none;
    height: 100%;
}

.home-case-study__banner .banner-layers .text-box {
    right: 0;
    bottom: 0;
    left: 0;
    padding-inline: clamp(12px, 2.5vw, 24px);
}

.home-case-study__caption p {
    margin: 0;
    color: var(--case-white);
    font-size: clamp(17px, 1.67vw, 24px);
    line-height: 1.25;
}

.home-case-study__slider .flickity-page-dots {
    right: auto;
    bottom: -24px;
    left: 50%;
    display: flex;
    width: auto;
    gap: 5px;
    margin: 0;
    transform: translateX(-50%);
}

.home-case-study__slider .flickity-page-dots .dot {
    width: 7px;
    height: 7px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    opacity: 1;
    transition: width .3s ease, background-color .3s ease;
}

.home-case-study__slider .flickity-page-dots .dot.is-selected {
    width: 24px;
    background: var(--case-accent) !important;
}

.home-case-study__slider .flickity-button,
.home-case-study__slider .flickity-prev-next-button {
    z-index: 3;
    color: #fff;
}

/* Single Case Study --------------------------------------------------------- */
.case-study-single {
    --font-body: "Plus Jakarta Sans", Arial, sans-serif;
    --project-shell-width: 1200px;
    --project-hero-height: auto;
    --project-hero-height-mobile: auto;
    --project-hero-gap: 8px;
    --project-hero-radius: 16px;
    --project-body-size: 16px;
    --project-detail-padding: 24px;
    --project-detail-overlay: rgba(241, 233, 223, .92);
    color: var(--color-text, #3e3732);
    font-family: var(--font-body);
}

.case-study-hero {
    padding: 30px 0 0;
}

.case-study-single .case-study-breadcrumb {
    width: min(var(--project-shell-width), calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 16px;
    font-size: 14px;
    line-height: 1.4;
}

.case-study-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

/* Figma 9361:1599: left 570/350; right 460/460; 8px gutters.
   Three tracks let the left top tile cross the right column's seam. */
.case-study-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1137fr) minmax(0, 440fr);
    grid-template-rows: minmax(0, var(--project-hero-top-row, 460fr)) minmax(0, var(--project-hero-middle-row, 102fr)) minmax(0, var(--project-hero-bottom-row, 350fr));
    gap: var(--project-hero-gap);
    height: var(--project-hero-height);
    aspect-ratio: 1585 / 928;
}

.case-study-gallery__item {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--project-hero-radius);
}

.case-study-gallery__item--1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.case-study-gallery__item--2 {
    grid-column: 2;
    grid-row: 1;
}

.case-study-gallery__item--3 {
    grid-column: 1;
    grid-row: 3;
}

.case-study-gallery__item--4 {
    grid-column: 2;
    grid-row: 2 / 4;
}

.case-study-gallery + .case-study-gallery {
    margin-top: var(--project-hero-gap);
}

.case-study-gallery--count-1 .case-study-gallery__item {
    grid-area: 1 / 1 / 4 / 3;
}

.case-study-gallery--count-2 .case-study-gallery__item--1 {
    grid-row: 1 / 4;
}

.case-study-gallery--count-2 .case-study-gallery__item--2,
.case-study-gallery--count-3 .case-study-gallery__item--2 {
    grid-row: 1 / 4;
}

.case-study-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-hero__quote {
    max-width: 100%;
    margin: 36px auto 0;
    color: #663425;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-align: center;
}

.case-study-detail {
    padding: 36px 0 64px;
}

.case-study-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1008fr) minmax(0, 540fr);
    align-items: start;
    gap: 36px;
}

.hotel_group_bg.case-study-detail__content {
    box-sizing: border-box;
    padding: var(--project-detail-padding);
    border-radius: 24px;
    background-color: #f1e9df;
    background-image: linear-gradient(var(--project-detail-overlay), var(--project-detail-overlay)), var(--project-detail-bg, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.case-study-detail__header .section-label {
    display: table;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.case-study-detail__header h2 {
    color: #663425;
}

.case-study-detail__subtitle {
    margin: 8px 0 0;
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 600;
    line-height: 1.333;
}

.case-study-detail__intros {
    display: grid;
    grid-template-columns: minmax(0, 435fr) minmax(0, 499fr);
    gap: 24px;
    margin-top: 36px;
}

.case-study-detail__intros p {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.375;
}

.case-study-detail__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px,  2.4vw, 24px);
    margin: 36px 0;
}

.case-study-feature {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 12px);
    min-width: 0;
}

.case-study-feature img {
    width: 48px;
    height: 48px;
    flex: none;
    object-fit: contain;
}

.case-study-feature p {
    margin: 0;
    font-size: var(--fs-body-sm);
    font-weight: 500;
    line-height: 1.375;
    text-wrap: balance;
}

.case-study-detail__values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--project-values-gap, 12px);
    margin-top: 36px;
}

.case-study-detail__values > div {
    min-width: 0;
    padding: 24px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--project-values-color, #dbcab5) 75%, transparent);
    backdrop-filter: blur(21px);
}

.case-study-detail__values h3 {
    margin: 0 0 16px;
    color: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
}

.case-study-detail__values p {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.375;
}

.case-study-location__map iframe {
    display: block;
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 12px;
}

.case-study-location__phone,
.case-study-location__address {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
    margin-top: clamp(16px, 2.4vw, 24px);
    font-size: var(--fs-body);
    line-height: 1.375;
}

.case-study-location__phone svg,
.case-study-location__address svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: auto;
}

.case-study-location__phone a{
	color: inherit;
	font-size: inherit;
}

.case-study-location h3 {
    margin: 24px 0 16px;
    color: inherit;
    font-family: var(--font-body) !important;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.333;
}

.case-study-location__nearby {
    width: 100%;
    border-collapse: collapse;
}

.case-study-location__nearby td {
    padding: 11px 0;
    font-size: var(--fs-body);
    color: var(--color-text);
    border-bottom: 0px;
}

.case-study-location__nearby td:last-child {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 849px) {
    .home-case-study__content > .col-inner {
        min-height: 0;
    }

    .home-case-study__gallery {
        height: auto;
        min-height: 420px;
    }

    .home-case-study__gallery-grid {
        height: 420px;
    }

    .case-study-detail__grid {
        grid-template-columns: 1fr;
    }

    .case-study-detail__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 549px) {
    .home-case-study {
        padding: 0 !important;
    }

    .home-case-study__content > .col-inner {
        padding: 34px 18px !important;
    }

    .home-case-study__label {
        min-height: 22px;
        margin-bottom: 14px;
        padding: 4px 12px;
    }

    .home-case-study__heading h2 {
        font-size: clamp(30px, 9.5vw, 38px);
    }

    .home-case-study__heading p {
        font-size: clamp(15px, 4.5vw, 18px);
    }

    .home-case-study__description {
        margin-top: 18px;
    }

    .home-case-study__gallery-grid {
        height: 300px;
    }

    .home-case-study__values {
        flex-direction: column;
    }

    .home-case-study__values > .home-case-study__value {
        min-height: 0;
    }

    .home-case-study__value h3 {
        font-size: 16px;
    }

    .home-case-study__value p {
        font-size: 13px;
    }

    .home-case-study__caption p {
        font-size: clamp(15px, 4.5vw, 19px);
    }

    .case-study-single .case-study-breadcrumb {
        width: min(var(--project-shell-width), calc(100% - 24px));
    }

    .case-study-hero {
        padding-top: 20px;
    }

    .case-study-gallery {
        height: var(--project-hero-height-mobile);
    }

    .case-study-hero__quote {
        margin-top: 22px;
        font-size: 26px;
    }

    .case-study-detail {
        padding: 28px 0 36px;
    }

    .hotel_group_bg.case-study-detail__content {
        padding: 28px 18px;
    }

    .case-study-detail__intros,
    .case-study-detail__values {
        grid-template-columns: 1fr;
    }

    .case-study-detail__intros {
        gap: 16px;
    }

    .case-study-detail__features {
        gap: 14px;
    }

    .case-study-detail__values > div {
        padding: 15px 16px;
    }

    .case-study-location__map iframe {
        min-height: 260px;
    }
}
