/**
 * Trip4Travel Elementor Widgets CSS
 * Version: 1.9.5
 */

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.wptbm-elementor-tour-grid-wrap {
    width: 100%;
    box-sizing: border-box;
}

.wptbm-elementor-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Modern Tour Card
   ========================================================================== */
.wptbm-el-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.wptbm-el-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: #e2e8f0;
}

/* Thumbnail & Badges */
.wptbm-el-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}

.wptbm-el-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.wptbm-el-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.wptbm-el-card:hover .wptbm-el-thumb-img {
    transform: scale(1.08);
}

.wptbm-el-badge-theme {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wptbm-el-ribbon-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}

.wptbm-el-ribbon-featured svg {
    color: #ffffff;
}

/* Card Body */
.wptbm-el-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.wptbm-el-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.wptbm-el-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
}

.wptbm-el-route {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.wptbm-el-route svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.wptbm-el-card-title {
    margin: 0 0 14px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
}

.wptbm-el-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wptbm-el-card-title a:hover {
    color: #0284c7;
}

/* Inclusions List */
.wptbm-el-inclusions-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wptbm-el-inc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.wptbm-el-inc-pill.wptbm-inc-active {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wptbm-el-inc-pill.wptbm-inc-dimmed {
    opacity: 0.45;
    background: #f8fafc;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Agent Row */
.wptbm-el-agent-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.wptbm-el-agent-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.wptbm-el-agent-name {
    font-weight: 600;
    color: #334155;
}

/* Footer / Price / Button */
.wptbm-el-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 18px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
    gap: 12px;
    box-sizing: border-box;
}

.wptbm-el-price-box {
    display: flex;
    flex-direction: column;
}

.wptbm-el-price-from {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.wptbm-el-price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.2;
}

.wptbm-el-price-unit {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.wptbm-el-action-box {
    flex-shrink: 0;
}

.wptbm-el-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0284c7;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

.wptbm-el-btn-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* Empty State */
.wptbm-elementor-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.wptbm-empty-icon {
    display: inline-flex;
    padding: 14px;
    background: #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    margin-bottom: 16px;
}

.wptbm-elementor-empty h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.wptbm-elementor-empty p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* ==========================================================================
   Slider / Carousel Specific Styling
   ========================================================================== */
.wptbm-elementor-slider-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.wptbm-swiper-container-wrap {
    position: relative;
    width: 100%;
    padding: 10px 0 36px 0;
}

.wptbm-elementor-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.wptbm-swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.wptbm-swiper-button {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #0284c7;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.25s ease;
    padding: 0;
}

.wptbm-swiper-button:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.wptbm-swiper-button-prev {
    left: -18px;
}

.wptbm-swiper-button-next {
    right: -18px;
}

.wptbm-swiper-pagination {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.wptbm-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.wptbm-swiper-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: #0284c7;
}

/* ==========================================================================
   Search Bar Widget Styling
   ========================================================================== */
.wptbm-elementor-search-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.wptbm-el-search-box {
    display: flex;
    background: #ffffff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
}

.wptbm-search-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.wptbm-el-search-field {
    flex: 1 1 180px;
    padding: 6px 14px;
    border-right: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.wptbm-el-search-field:last-of-type {
    border-right: none;
}

.wptbm-search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.wptbm-search-label svg {
    color: #0284c7;
}

.wptbm-el-search-field input[type="text"],
.wptbm-el-search-field select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    padding: 0;
    box-shadow: none !important;
}

.wptbm-el-search-action {
    flex-shrink: 0;
    padding: 4px;
}

.wptbm-el-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.wptbm-el-search-submit:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* Vertical Layout */
.wptbm-search-vertical {
    flex-direction: column;
    border-radius: 16px;
    padding: 20px;
    gap: 16px;
}

.wptbm-search-vertical .wptbm-el-search-field {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 4px 12px 4px;
}

.wptbm-search-vertical .wptbm-el-search-field:last-of-type {
    border-bottom: none;
}

.wptbm-search-vertical .wptbm-el-search-action {
    width: 100%;
    padding: 0;
}

.wptbm-search-vertical .wptbm-el-search-submit {
    width: 100%;
    border-radius: 10px;
    padding: 14px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .wptbm-elementor-tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .wptbm-elementor-tour-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wptbm-el-search-box {
        border-radius: 16px;
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .wptbm-el-search-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 10px;
    }

    .wptbm-el-search-field:last-of-type {
        border-bottom: none;
    }

    .wptbm-el-search-action {
        width: 100%;
    }

    .wptbm-el-search-submit {
        width: 100%;
        border-radius: 10px;
    }

    .wptbm-swiper-button {
        display: none !important;
    }
}
