/* SECTION */
.trending-section {
    /* padding: 40px 0; */
    background: #fff;
    padding: 60px;
}

/* HEADER */
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-title {
    font-size: 22px;
    font-weight: 700;
    padding: 0px 12px;
}

/* ARROWS */
.trending-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: .3s;
}

.nav-btn:hover:not(:disabled) {
    background: #3B3F7F;
    color: #fff;
}

/* GRID */
.trending-carousel {
    display: flex;
    flex-wrap: wrap;
}

.trending-post-item {
    width: 50%;
    padding: 12px;
    display: none;
}

/* CARD */
.trending-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-overlay {
    position: absolute;
    inset: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff;
}

.trending-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

/* META */
.trending-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: .9;
}

.trending-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trending-meta i {
    color: #fff;
}

/* COUNTRY BOX */
.properties-box {
    background: #e8fbef;
    padding: 24px;
    border-radius: 18px;
}

.properties-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.properties-subtitle {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.country-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.country-flag {
    font-size: 28px;
}

.country-name {
    font-size: 10px;
    font-weight: 600;
}



/* ARROWS WRAPPER */
.trending-nav {
    display: flex;
    gap: 12px;
}

/* ARROW BUTTON */
.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;              /* reference style */
    border: 1.5px solid #D0D5DD;      /* visible border */
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: #101828;                   /* ICON COLOR FIX */
}

/* ICON SIZE */
.nav-btn i {
    font-size: 22px;
    color: inherit;
}

/* HOVER STATE */
.nav-btn:hover:not(:disabled) {
    background: #3B3F7F;
    border-color: #3B3F7F;
    color: #ffffff;
}

/* DISABLED STATE */
.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ENQUIRY BOX */
.enquery-box {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enquery-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.properties-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* WPForms Styling */
.wpforms-form {
    width: 100%;
}

.wpforms-field {
    margin-bottom: 12px;
}

.wpforms-field input,
.wpforms-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.wpforms-field textarea {
    resize: vertical;
    min-height: 80px;
}

.wpforms-submit button {
    background: #3B3F7F;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: background 0.3s;
}

.wpforms-submit button:hover {
    background: #2a2d5a;
}

/* MOBILE AND TABLET */
@media (max-width: 991px) {
    .trending-nav {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .trending-section {
        padding: 20px 0 40px 0 !important;
        background: #fff;
        margin-top: 0 !important;
        overflow: hidden;
    }
    
    .mobile-spacer-top {
        margin-top: 4rem !important;
    }
    
    .trending-header {
        padding:0px;
    }

    .trending-carousel {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 10px;
        padding: 0 20px; /* Add padding to container so cards hit edge */
    }

    .trending-carousel::-webkit-scrollbar {
        display: none;
    }

    .trending-post-item {
        width: 100%;
        flex-shrink: 0;
        scroll-snap-align: center; /* Center snap */
        display: block;
        padding: 0;
    }
    
    /* Override Aspect Ratio for Mobile */
    .trending-thumb-wrapper {
        aspect-ratio: 4/3 !important; /* Taller image for mobile */
    }
    
    /* Pagination Dots */
    .trending-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .trend-dot {
        width: 8px;
        height: 8px;
        background: #D1D5DB;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .trend-dot.active {
        background: #000;
        width: 8px; 
    }
}


