/* Tricore Projects Carousel Widget Styling v1.0.5 */
/* All rules scoped under .tricore-project-carousel-wrapper */

/* ============================================
   CRITICAL: Embedded Swiper base CSS
   Elementor does NOT load Swiper CSS for custom widgets.
   These rules are required for the carousel to display.
   ============================================ */
.tricore-project-carousel-wrapper .swiper {
    overflow: hidden !important;
    position: relative;
    width: 100%;
    padding-bottom: 50px;
    padding-top: 10px;
    list-style: none;
    z-index: 1;
}

.tricore-project-carousel-wrapper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex !important;
    transition-property: transform;
    box-sizing: content-box;
}

.tricore-project-carousel-wrapper .swiper-slide {
    flex-shrink: 0 !important;
    width: 100%;
    height: auto;
    position: relative;
    transition-property: transform;
}

.tricore-project-carousel-wrapper .swiper-slide-invisible-blank {
    visibility: hidden;
}

.tricore-project-carousel-wrapper .swiper-notification {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0;
    z-index: -1000;
}

/* ============================================
   WRAPPER
   ============================================ */
.tricore-project-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* ============================================
   CARD CONTAINER
   ============================================ */
.tricore-project-carousel-wrapper .tricore-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #F9F6F2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(40, 53, 71, 0.04);
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tricore-project-carousel-wrapper .tricore-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(40, 53, 71, 0.08);
}

/* ============================================
   CARD IMAGE
   ============================================ */
.tricore-project-carousel-wrapper .tricore-project-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #EFECE7;
}

.tricore-project-carousel-wrapper .tricore-project-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.tricore-project-carousel-wrapper .tricore-project-card:hover .tricore-project-card-image {
    transform: scale(1.06);
}

.tricore-project-carousel-wrapper .tricore-project-card-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #8A9BA8;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   CARD CONTENT
   ============================================ */
.tricore-project-carousel-wrapper .tricore-project-card-content {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    flex-grow: 1;
}

.tricore-project-carousel-wrapper .tricore-project-card-title {
    font-family: inherit;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    color: #283547 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    transition: color 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   LOCATION
   ============================================ */
.tricore-project-carousel-wrapper .tricore-project-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6C7A89;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 16px;
}

.tricore-project-carousel-wrapper .tricore-location-icon {
    display: flex;
    align-items: center;
    color: #D16B3D;
    flex-shrink: 0;
}

.tricore-project-carousel-wrapper .tricore-location-icon svg {
    width: 12px;
    height: 15px;
    fill: currentColor;
}

.tricore-project-carousel-wrapper .tricore-location-text {
    line-height: 1;
}

/* ============================================
   SPECIFICATIONS / BADGES
   ============================================ */
.tricore-project-carousel-wrapper .tricore-project-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    margin-top: auto;
}

.tricore-project-carousel-wrapper .tricore-spec-item {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    background-color: #FAF8F6;
    border: 1px solid #EFECE7;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #283547;
    line-height: 1;
}

.tricore-project-carousel-wrapper .tricore-spec-bhk .tricore-spec-label {
    opacity: 0.7;
    font-weight: 400;
    margin-right: 4px;
}

.tricore-project-carousel-wrapper .tricore-spec-bhk .tricore-spec-val {
    font-weight: 600;
}

.tricore-project-carousel-wrapper .tricore-spec-status.tricore-status-ongoing {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-color: #C8E6C9;
}

.tricore-project-carousel-wrapper .tricore-spec-status.tricore-status-upcoming {
    background-color: #FFF3E0;
    color: #E65100;
    border-color: #FFE0B2;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.tricore-project-carousel-wrapper .tricore-project-card-cta,
.tricore-project-carousel-wrapper .tricore-project-card-cta-disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #D16B3D !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 5px;
    width: max-content;
}

.tricore-project-carousel-wrapper .tricore-project-card-cta .tricore-cta-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tricore-project-carousel-wrapper .tricore-project-card-cta:hover {
    color: #283547 !important;
}

.tricore-project-carousel-wrapper .tricore-project-card-cta:hover .tricore-cta-arrow {
    transform: translateX(6px);
}

.tricore-project-carousel-wrapper .tricore-project-card-cta-disabled {
    cursor: default;
    opacity: 0.6;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */
.tricore-project-carousel-wrapper .swiper-button-prev,
.tricore-project-carousel-wrapper .swiper-button-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #D16B3D;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    top: 50%;
    margin-top: -38px;
    box-shadow: 0 4px 12px rgba(40, 53, 71, 0.1);
    z-index: 10;
    cursor: pointer;
}

.tricore-project-carousel-wrapper .swiper-button-prev {
    left: -22px;
}

.tricore-project-carousel-wrapper .swiper-button-next {
    right: -22px;
}

@media (max-width: 768px) {
    .tricore-project-carousel-wrapper .swiper-button-prev {
        left: 5px;
    }
    .tricore-project-carousel-wrapper .swiper-button-next {
        right: 5px;
    }
}

.tricore-project-carousel-wrapper .swiper-button-prev::after,
.tricore-project-carousel-wrapper .swiper-button-next::after {
    font-family: swiper-icons;
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
}

.tricore-project-carousel-wrapper .swiper-button-prev::after {
    content: 'prev';
}

.tricore-project-carousel-wrapper .swiper-button-next::after {
    content: 'next';
}

.tricore-project-carousel-wrapper .swiper-button-prev:hover,
.tricore-project-carousel-wrapper .swiper-button-next:hover {
    background-color: #283547;
}

.tricore-project-carousel-wrapper .swiper-button-prev:hover {
    transform: scale(1.05) translateY(-5%);
}

.tricore-project-carousel-wrapper .swiper-button-next:hover {
    transform: scale(1.05) translateY(-5%);
}

.tricore-project-carousel-wrapper .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   PAGINATION DOTS
   ============================================ */
.tricore-project-carousel-wrapper .swiper-pagination {
    position: absolute;
    text-align: center;
    transition: opacity 0.3s;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.tricore-project-carousel-wrapper .swiper-pagination-bullets {
    bottom: 10px !important;
    left: 0;
    width: 100%;
}

.tricore-project-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background-color: #CCCCCC;
    opacity: 0.6;
    margin: 0 5px !important;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
}

.tricore-project-carousel-wrapper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background-color: #D16B3D;
    opacity: 1;
}
