/* ===================================================
   CUSTOM CARD STYLING ENHANCEMENTS
   =================================================== */

/* ===== PACKAGE & OFFERS CARDS - ADD BORDERS ===== */
.destination-item.style-four.package-card-enhanced {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding-bottom: 48px;
    /* Further reduced space for the button to make card more compact */
    position: relative;
    background: #fff;
    margin-bottom: 20px;
}

.destination-item.style-four.package-card-enhanced:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Internal Spacing Fixes */
.destination-item.style-four.package-card-enhanced .content {
    padding: 16px 20px 4px 20px !important;
}

.destination-item.style-four.package-card-enhanced .destination-footer {
    padding: 10px 20px 0px 20px !important;
    margin-top: 6px;
    border-top: 1px dashed #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align price to left */
    gap: 10px;
}

.destination-item.style-four.package-card-enhanced .ratting {
    display: none !important;
}

/* Positioning the Book Now Button properly */
.destination-item.style-four.package-card-enhanced .theme-btn.style-three {
    position: absolute;
    bottom: 16px;
    right: 18px;
    left: auto;
    top: auto;
    transform: none;
    z-index: 5;
    padding: 6px 22px;
    font-size: 13px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    opacity: 1;
    visibility: visible;
}

.destination-item.style-four.package-card-enhanced:hover .theme-btn.style-three {
    background: var(--secondary-color);
    color: #fff;
}

/* Add border to hot deals cards */
.hot-deals-active .destination-item.package-card-enhanced {
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hot-deals-active .destination-item.package-card-enhanced:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== FEATURES AREA REDESIGN - MODERN CARD LAYOUT ===== */
.features-area-three {
    margin: 0 auto;
    padding: 50px 0 0 0;
}

.features-area-three .row {
    margin: 0 -15px;
}

.destination-active .slick-list,
.hot-deals-active .slick-list {
    margin: 0 -10px;
}

/* Redesigned Feature Items - Modern & Clean */
.feature-item.style-three {
    padding: 35px 30px !important;
    margin-bottom: 30px;
    border-radius: 16px;
    height: 260px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Subtle gradient overlay */
.feature-item.style-three::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-item.style-three:hover::after {
    opacity: 1;
}

.feature-item.style-three:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Icon styling - larger and more prominent */
.feature-item.style-three .icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    display: block;
}

.feature-item.style-three:hover .icon {
    transform: scale(1.08);
}

/* Content styling */
.feature-item.style-three .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-item.style-three .content h3 {
    font-size: 22px !important;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600 !important;
}

.feature-item.style-three .content p {
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    opacity: 0.92;
}

/* Desktop: 4 items in a row */
@media only screen and (min-width: 992px) {

    .features-area-three .col-xxl-3,
    .features-area-three .col-xl-4 {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 0 15px;
    }
}

/* Tablet: 2 items in a row */
@media only screen and (max-width: 991px) and (min-width: 768px) {
    .features-area-three .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 12px;
    }

    .feature-item.style-three {
        min-height: 220px;
        padding: 30px 25px !important;
        margin-bottom: 24px;
    }

    .features-area-three {
        padding: 50px 0 0 0;
    }
}

/* Mobile: FULL WIDTH STACKED (1 per row) - Much Better! */
@media only screen and (max-width: 767px) {
    .features-area-three {
        padding: 50px 0 0 0;
    }

    .features-area-three .row {
        margin: 0;
    }

    .features-area-three [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .feature-item.style-three {
        min-height: auto;
        padding: 30px 25px !important;
        margin-bottom: 20px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .feature-item.style-three .icon {
        font-size: 44px;
        margin-bottom: 0;
        flex-shrink: 0;
        width: 60px;
        text-align: left;
    }

    .feature-item.style-three .content {
        flex: 1;
    }

    .feature-item.style-three .content h3 {
        font-size: 19px !important;
        margin-bottom: 8px;
    }

    .feature-item.style-three .content p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Extra small mobile - Keep full width but slightly smaller */
@media only screen and (max-width: 575px) {
    .features-area-three {
        padding: 50px 0 0 0;
    }

    .feature-item.style-three {
        padding: 25px 20px !important;
        margin-bottom: 16px;
        gap: 16px;
        height: 160px;
    }

    .feature-item.style-three .icon {
        font-size: 40px;
        width: 55px;
    }

    .feature-item.style-three .content h3 {
        font-size: 17px !important;
        margin-bottom: 6px;
    }

    .feature-item.style-three .content p {
        font-size: 13px;
        line-height: 1.55;
    }
}

/* ===== DESTINATION CARDS - ROUNDED SQUARE IMAGES ===== */
/* Strong override to ensure rounded square instead of circular */
.destination-item.style-two .image,
.destination-active .destination-item.style-two .image {
    border-radius: 12px !important;
    overflow: hidden;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

/* Force fix for card images */
.destination-item.style-four.package-card-enhanced .image img {
    height: 250px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Force fix for blog images */
.blog-item.style-two .image img {
    height: 250px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.destination-item.style-two .image img,
.destination-active .destination-item.style-two .image img {
    border-radius: 12px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

/* Ensure consistent image container dimensions */
.destination-active .destination-item.style-two .image {
    width: 100%;
    height: 180px;
    display: block;
}

.destination-active .destination-item.style-two .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add subtle border to destination cards */
.destination-item.style-two {
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.destination-item.style-two:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for destination cards */
@media only screen and (max-width: 575px) {
    .destination-active .destination-item.style-two .image {
        height: 150px;
    }
}

/* ===== ADDITIONAL POLISH ===== */

/* Smooth transitions for all interactive elements */
.package-card-enhanced,
.feature-item.style-three,
.destination-item.style-two {
    will-change: transform;
}

/* Ensure proper spacing in sliders */
.destination-active .slick-slide {
    padding: 0 10px;
}

.hot-deals-active .slick-slide {
    padding: 0 10px;
}

/* Fix margin on first and last slides */
.destination-active .slick-list,
.hot-deals-active .slick-list {
    margin: 0 -10px;
}

/* Enhanced Button Styles - Rounder, Smaller (From Sightseeing Page) */
.theme-btn.compact-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 50px !important;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.theme-btn.compact-btn:hover {
    color: #fff !important;
}

/* Get Quote - Vibrant Orange */
.theme-btn.btn-get-quote {
    background: #F7921E !important;
    border: 1px solid #F7921E !important;
    color: #fff !important;
}

.theme-btn.btn-get-quote:hover {
    background: #d87b0e !important;
}

/* View Details - Dark Blue/Black */
.theme-btn.btn-view-details {
    background: #1C231F !important;
    border: 1px solid #1C231F !important;
    color: #fff !important;
}

.theme-btn.btn-view-details:hover {
    background: #2C3E50 !important;
}

/* Fix Icons inside buttons */
.theme-btn.compact-btn i {
    margin-left: 8px !important;
    transform: none !important;
}

/* Inquire - WhatsApp Green */
.theme-btn.btn-inquire {
    background: #25D366 !important;
    border: 1px solid #25D366 !important;
    color: #fff !important;
}

.theme-btn.btn-inquire:hover {
    background: #128C7E !important;
}

/* ===== BANNER FIXES FOR DESTINATION PAGES ===== */
.page-banner-area.banner-compact.bgs-cover {
    background-position: center top !important;
    min-height: 400px !important;
}

/* Mobile responsive for banner */
@media only screen and (max-width: 767px) {
    .page-banner-area.banner-compact.bgs-cover {
        min-height: 280px !important;
    }
}