/*
 * Krupaluji adjustments on top of the Construct template.
 * The Krupaluji logo is white on transparent, so the header uses the template's "dark" variant;
 * this file makes the dark variant consistent (curve behind the logo, hover colour, mobile menu).
 */

/* ---------- header (dark variant) ---------- */
.krupaluji-header.header-style-2.dark .main-bar {
    background-color: #2d3239;
}
.krupaluji-header.header-style-2.dark .top-bar {
    background-color: #23272d;
    border-color: #23272d;
}
.krupaluji-header.header-style-2.dark .top-bar,
.krupaluji-header.header-style-2.dark .top-bar a {
    color: #c9ccd1;
}
.krupaluji-header.header-style-2.dark .top-bar a:hover {
    color: #8a2829;
}
.krupaluji-header .header-curve .dez-logo:before,
.krupaluji-header .header-curve .dez-logo:after,
.krupaluji-header.header-curve .dez-logo:before,
.krupaluji-header.header-curve .dez-logo:after {
    background-color: #2d3239;
}
.krupaluji-header.header-style-2.dark .header-nav .nav > li > a {
    color: #e5e7ea;
}
.krupaluji-header.header-style-2.dark .header-nav .nav > li.active > a,
.krupaluji-header.header-style-2.dark .header-nav .nav > li:hover > a {
    color: #8a2829;
}
.krupaluji-header .dez-logo img {
    width: auto;
    height: auto;
    max-height: 82px;
}
.krupaluji-header .is-fixed .dez-logo img {
    max-height: 64px;
}
.krupaluji-header .top-bar .social-line li {
    display: inline-block;
}
.krupaluji-header .top-bar .dez-topbar-right ul {
    text-align: right;
}
.krupaluji-header .navicon span {
    background: #fff;
}

@media only screen and (max-width: 991px) {
    /* slide-in mobile menu has a light panel in the template: keep text readable */
    .krupaluji-header .header-nav .nav > li > a {
        color: #2d3239 !important;
    }
    .krupaluji-header .header-nav .nav > li.active > a,
    .krupaluji-header .header-nav .nav > li:hover > a {
        color: #c99a00 !important;
    }
    .krupaluji-header .header-nav .logo-header-xmenu {
        background: #2d3239;
        padding: 10px 15px;
    }
    .krupaluji-header .dez-logo img {
        max-height: 56px;
    }
}
@media only screen and (max-width: 575px) {
    .krupaluji-header .top-bar .dez-topbar-left span {
        font-size: 12px;
    }
}

/* ---------- inner banner ---------- */
.dez-bnr-inr .breadcrumb-row {
    background: transparent;
    padding: 10px 0 0;
}
.dez-bnr-inr .breadcrumb-row li,
.dez-bnr-inr .breadcrumb-row li:last-child {
    color: #fff;
    display: inline-block;
}
.dez-bnr-inr .breadcrumb-row a {
    color: #ffffff;
}
.dez-bnr-inr {
    position: relative;
}
.dez-bnr-inr.overlay-black-middle:after {
    z-index: 0;
}
.dez-bnr-inr .container {
    position: relative;
    z-index: 1;
}

/* ---------- gallery ---------- */
.krupaluji-gallery .gallery-filters ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.krupaluji-gallery .gallery-filters ul li {
    display: inline-block;
    cursor: pointer;
}
.krupaluji-gallery .gallery-filters ul li.active a {
    color: #8a2829;
}
.krupaluji-gallery .dez-gallery-listing {
    padding: 0;
}
.krupaluji-gallery .dez-gallery-listing img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.krupaluji-gallery .dez-gallery-listing .card-container {
    margin-bottom: 0;
}
.krupaluji-gallery .overlay-icon a {
    cursor: pointer;
}
@media (max-width: 575px) {
    .krupaluji-gallery .dez-gallery-listing img {
        height: 150px;
    }
}

/* lightbox above the sticky header */
.lg-outer,
.lg-backdrop {
    z-index: 100000;
}

/* ---------- footer ---------- */
.krupaluji-footer .logo-footer img {
    width: auto;
    max-height: 90px;
}
.krupaluji-footer .widget_getintuch li a {
    color: inherit;
}
.krupaluji-footer .footer-bottom .text-right a {
    margin-left: 15px;
}
@media (max-width: 767px) {
    .krupaluji-footer .footer-bottom .text-left,
    .krupaluji-footer .footer-bottom .text-right {
        text-align: center !important;
    }
    .krupaluji-footer .footer-bottom .text-right a {
        margin: 0 8px;
    }
}

/* filter links: readable on the light section background */
.krupaluji-gallery .gallery-filters ul li a {
    color: #2d3239;
}
.krupaluji-gallery .gallery-filters ul li.active a,
.krupaluji-gallery .gallery-filters ul li:hover a {
    color: #c99a00;
}

/* ================= site-wide pages ================= */
body {
    overflow-x: hidden;
}
.kr-richtext {
    text-align: left;
}
.kr-richtext img,
.kr-richtext table {
    max-width: 100%;
    height: auto;
}
.section-head .kr-richtext {
    text-align: center;
    max-width: 100%;
    margin: 15px auto 0;
}
.kr-subhead {
    margin: 10px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8a2829;
    display: inline-block;
}

/* hero */
.kr-hero {
    position: relative;
    background: #000;
}
.kr-hero .carousel-item img {
    width: 100%;
    height: 70vh;
    min-height: 380px;
    max-height: 640px;
    object-fit: cover;
}
.kr-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}
.kr-hero-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.kr-hero-caption .container {
    pointer-events: auto;
}
.kr-hero-caption h1 {
    font-size: 46px;
    line-height: 1.2;
    max-width: 720px;
    margin-bottom: 15px;
}
.kr-hero-caption p {
    max-width: 620px;
    margin: 15px 0 25px;
}
.kr-hero-caption .site-button,
.kr-hero-caption .site-button-secondry {
    margin: 0 10px 10px 0;
}
.kr-hero .carousel-control-prev,
.kr-hero .carousel-control-next {
    z-index: 3;
}
@media (max-width: 767px) {
    .kr-hero .carousel-item img {
        height: 56vh;
        min-height: 320px;
    }
    .kr-hero-caption h1 {
        font-size: 28px;
    }
}

/* feature + stat boxes */
.kr-feature {
    padding: 30px 15px;
    border: 1px solid #e5e5e5;
    background: #fff;
    height: 100%;
}
.kr-feature .icon-lg {
    font-size: 38px;
    color: #8a2829;
}
.icon-lg {
    font-size: 38px;
}

/* tables */
.kr-floor-table th {
    background: #2d3239;
    color: #fff;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .kr-floor-table table,
    .kr-floor-table thead,
    .kr-floor-table tbody,
    .kr-floor-table tr,
    .kr-floor-table td {
        display: block;
        width: 100%;
    }
    .kr-floor-table thead {
        display: none;
    }
    .kr-floor-table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        background: #fff;
    }
    .kr-floor-table td {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        text-align: right;
        border: 0;
        border-bottom: 1px solid #eee;
    }
    .kr-floor-table td:before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
    }
}

/* amenities */
.kr-amenity {
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
    height: 100%;
}
.kr-amenity .dez-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* projects */
.kr-project {
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
}
.kr-project .kr-project-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.kr-project .site-button-secondry {
    margin-left: 6px;
}
.kr-readmore {
    color: #c99a00;
    font-weight: 600;
}

/* contact */
.kr-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 28px 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.kr-company {
    color: #2d3239;
    margin: 0 0 20px;
}
.kr-col-head {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 15px;
    text-transform: uppercase;
}
.kr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kr-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    line-height: 24px;
}
.kr-list i {
    width: 16px;
    margin-top: 4px;
    color: #c99a00;
    text-align: center;
}
.kr-list a {
    color: inherit;
}
.kr-captcha-q {
    font-weight: 700;
    font-style: italic;
}
.kr-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}
.kr-map-wrap {
    margin-top: 0;
}

/* ================= Amenities carousel (testimonial design) ================= */
.kr-amenities {
    padding-bottom: 60px;
}
.kr-amenity-item {
    padding: 10px 8px 20px;
}
.kr-amenity-pic {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #2d3239;
    border: 5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kr-amenity-pic img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.kr-amenity-badge {
    position: absolute;
    right: -4px;
    bottom: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #8a2829;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kr-amenity-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.kr-amenities .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* carousel buttons (yellow squares, as in the template) */
.kr-nav {
    margin-top: 25px;
}
.kr-nav-btn {
    width: 36px;
    height: 36px;
    margin: 0 3px;
    border: 0;
    background: #8a2829;
    color: #fff;
    font-size: 20px;
    line-height: 36px;
    cursor: pointer;
    transition: background 0.2s;
}
.kr-nav-btn:hover {
    background: #fff;
    color: #2d3239;
}

/* ================= Our Project (tabs + carousel) ================= */
.kr-projects .site-filters a {
    margin: 0 4px 8px;
}
.kr-projects .site-filters .active > [class*="site-button"],
.kr-projects .site-filters a.active {
    color: #fff;
    background-color: #8a2829;
}
.kr-projects .kr-project-slide p {
    color: #fff;
}
.kr-projects .kr-project-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.kr-projects .kr-readmore {
    color: #8a2829;
    font-weight: 600;
}
.kr-projects .site-button-secondry {
    margin-left: 6px;
}
@media (max-width: 991px) {
    .kr-projects .kr-project-slide .text-white {
        margin-top: 20px;
    }
    .kr-projects .kr-project-img {
        max-height: 300px;
    }
}

/* ================= project picture slider ================= */
.kr-slider {
    position: relative;
    overflow: hidden;
    background: #000;
}
.kr-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 420px;
}
.kr-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.6s ease,
        visibility 0.6s;
}
.kr-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.kr-slide a,
.kr-slide img {
    display: block;
    width: 100%;
    height: 100%;
}
.kr-slide img {
    object-fit: cover;
}
.kr-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: #8a2829;
    color: #fff;
    font-size: 20px;
    line-height: 36px;
    cursor: pointer;
    opacity: 0.9;
}
.kr-slider-btn:hover {
    background: #fff;
    color: #2d3239;
}
.kr-slider-prev {
    left: 0;
}
.kr-slider-next {
    right: 0;
}
.kr-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    text-align: center;
}
.kr-slider-dots button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.kr-slider-dots button.is-active {
    background: #8a2829;
    border-color: #8a2829;
}
@media (max-width: 991px) {
    .kr-slider-track {
        max-height: 300px;
    }
}

/* ================= hero: centred caption (template style) ================= */
.kr-hero-caption {
    justify-content: center;
    text-align: center;
}
.kr-hero-caption h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: 56px;
    font-weight: 700;
}
.kr-hero-tag {
    color: #fff;
    font-style: italic;
    font-size: 22px;
    margin: 0 0 6px;
}
.kr-hero-line {
    width: 70px;
    height: 2px;
    background: #fff;
    margin: 0 auto 22px;
}
.kr-hero-btn {
    display: inline-block;
    margin: 0 6px 10px;
    padding: 12px 22px;
    background: #fff;
    color: #2d3239;
    font-size: 14px;
    border: 0;
}
.kr-hero-btn:hover {
    background: #8a2829;
    color: #fff;
}
.kr-hero-btn-alt {
    background: #8a2829;
    color: #fff;
}
.kr-hero-btn-alt:hover {
    background: #fff;
    color: #2d3239;
}
.kr-hero-dots {
    z-index: 3;
    margin-bottom: 18px;
}
.kr-hero-dots button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    border: 2px solid #fff !important;
    background: transparent !important;
    opacity: 1 !important;
    margin: 0 5px !important;
}
.kr-hero-dots button.active {
    background: #fff !important;
}
@media (max-width: 991px) {
    .kr-hero-caption h1 {
        font-size: 40px;
    }
}
@media (max-width: 575px) {
    .kr-hero-caption h1 {
        font-size: 28px;
    }
    .kr-hero-tag {
        font-size: 17px;
    }
}

/* ================= floor plan cards carousel ================= */
.kr-scroller-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.kr-scroller-track::-webkit-scrollbar {
    display: none;
}
.kr-scroller-item {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    min-width: 0;
}
@media (max-width: 991px) {
    .kr-scroller-item {
        flex-basis: calc((100% - 24px) / 2);
    }
}
@media (max-width: 575px) {
    .kr-scroller-item {
        flex-basis: 100%;
    }
}
.kr-scroller .kr-nav {
    margin-top: 20px;
}
.kr-floor-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #e8e8e8;
}
.kr-floor-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eceff1;
}
.kr-floor-media a,
.kr-floor-media img {
    display: block;
    width: 100%;
    height: 100%;
}
.kr-floor-media img {
    object-fit: cover;
}
.kr-floor-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #8a2829;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    font-size: 14px;
}
.kr-floor-body {
    padding: 22px 20px 24px;
}
.kr-floor-title {
    margin: 0 0 12px;
    font-size: 20px;
}
.kr-floor-meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    color: #666;
    font-size: 14px;
}
.kr-floor-meta li {
    margin-bottom: 6px;
}
.kr-floor-meta i {
    width: 18px;
    margin-right: 4px;
    color: #8a2829;
}
.kr-floor-meta strong {
    color: #2d3239;
    margin-left: 4px;
}
.kr-floor-price {
    margin: 0 0 16px;
    font-size: 15px;
}
.kr-floor-price strong {
    color: #8a2829;
    font-size: 18px;
    margin-left: 4px;
}
.kr-hero-caption p.kr-hero-tag {
    max-width: none;
    margin: 0 0 6px;
    text-align: center;
}

/* floor plan: background + side arrows */
.kr-floorplan {
    padding-bottom: 60px;
}
.kr-scroller {
    position: relative;
}
.kr-side-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    margin: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.kr-side-prev {
    left: -20px;
}
.kr-side-next {
    right: -20px;
}
@media (max-width: 1230px) {
    .kr-side-prev {
        left: 4px;
    }
    .kr-side-next {
        right: 4px;
    }
}
.kr-floorplan .kr-floor-card {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.stacked-gallery {
    position: relative;
    width: 100%;
    height: 480px;
    /* background: #f4f0df; */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stacked-card {
    position: absolute;
    width: 42%;
    height: 90%;
    left: 50%;
    top: 50%;

    transform: translate(calc(-50% + var(--position) * 42%), -50%)
        scale(var(--scale));

    z-index: var(--z-index);

    background: #fff;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

    transition: all 0.5s ease;
}

.stacked-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: -38px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #7c7054;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 15px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
}

.gallery-arrow.prev {
    left: 15px;
}

.gallery-arrow.next {
    right: 15px;
}

/* Tablet */
@media (max-width: 768px) {
    .stacked-gallery {
        height: 350px;
    }

    .stacked-card {
        width: 55%;
        height: 80%;
        padding: 5px;
        transform: translate(calc(-50% + var(--position) * 32%), -50%)
            scale(var(--scale));
    }
}

/* Mobile */
@media (max-width: 480px) {
    .stacked-gallery {
        height: 280px;
    }

    .stacked-card {
        width: 65%;
        height: 75%;
        transform: translate(calc(-50% + var(--position) * 25%), -50%)
            scale(var(--scale));
    }
}
