/**
 * GLIZ Elementor Widgets CSS
 * Comprehensive styling for all GLIZ Elementor widgets
 */

/* ============================
   GLOBAL WIDGET STYLES
   ============================ */

.gliz-recent-tours-widget {
    position: relative;
    margin-bottom: 30px;
}

.gliz-widget-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
}

/* Loading/AJAX functionality removed - using simple Elementor controls instead */

/* Filter tabs removed - using simple Elementor controls instead */

/* ============================
   TOURS GRID STYLES
   ============================ */

.gliz-tours-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

/* Grid columns based on settings */
.gliz-tours-grid.columns-1 {
    grid-template-columns: 1fr;
}

.gliz-tours-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gliz-tours-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gliz-tours-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gliz-tours-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive grid */
@media (max-width: 1200px) {

    .gliz-tours-grid.columns-4,
    .gliz-tours-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .gliz-tours-grid.columns-3,
    .gliz-tours-grid.columns-4,
    .gliz-tours-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gliz-filter-tabs {
        justify-content: center;
    }

    .gliz-filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gliz-tours-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================
   TOUR CARD STYLES
   ============================ */

.gliz-tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
}

.gliz-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================
   GLIZ SEARCH WIDGET
   ============================ */

.gliz-search-widget {
    width: 100%;
}

.gliz-search-full,
.gliz-search-small {
    width: 100%;
}

.gliz-search-full .gliz-search-full-inner {
    width: 100%;
}

.gliz-search-small-form {
    width: 100%;
}

.gliz-search-small-inner {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.gliz-search-small-form:focus-within .gliz-search-small-inner,
.gliz-search-small-inner:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.18);
}

.gliz-search-small-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.gliz-search-small-icon svg {
    stroke: currentColor;
}

.gliz-search-small-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #111827;
    padding: 0;
}

.gliz-search-small-input::placeholder {
    color: #9ca3af;
}

.gliz-search-small-button {
    border: none;
    outline: none;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
}

.gliz-search-small-button svg {
    stroke: currentColor;
}

.gliz-search-small-button:hover {
    background: #dc2626;
}

.gliz-search-small-button:active {
    transform: scale(0.96);
}

/* Featured badge */
.gliz-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff5722;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* Tour image */
.gliz-tour-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.gliz-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gliz-tour-card:hover .gliz-tour-image img {
    transform: scale(1.05);
}

.gliz-tour-image a {
    display: block;
    height: 100%;
}

/* Tour content */
.gliz-tour-content {
    padding: 20px;
}

.gliz-tour-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.gliz-tour-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gliz-tour-title a:hover {
    color: #007bff;
}

.gliz-tour-type {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Tour details */
.gliz-tour-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
}

.gliz-tour-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gliz-tour-details i {
    color: #007bff;
    width: 12px;
}

/* Tour price */
.gliz-tour-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: auto;
    flex-direction: column;
}

.gliz-price-amount {
    font-size: 20px;
    font-weight: 700; 
}

.gliz-price-period {
    font-size: 14px;
    color: #6c757d;
}

/* Load more functionality removed - using simple Elementor controls instead */

/* ============================
   ERROR & EMPTY STATES
   ============================ */

.gliz-no-tours-found,
.gliz-error-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.gliz-no-tours-found p,
.gliz-error-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

.gliz-retry-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.gliz-retry-btn:hover {
    background: #c82333;
}

/* ============================
   PRICE FILTER STYLES (Future)
   ============================ */

.gliz-price-filter {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gliz-price-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gliz-price-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.gliz-price-filter-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.gliz-price-filter-btn:hover {
    background: #218838;
}

/* ============================
   ELEMENTOR EDITOR STYLES
   ============================ */

.elementor-widget-gliz_recent_tours_v2 .elementor-widget-container {
    overflow: visible;
}

/* Editor preview improvements */
.elementor-editor-active .gliz-tour-card:hover {
    transform: none;
}

.elementor-editor-active .gliz-filter-tab {
    pointer-events: none;
}

/* ============================
   RTFR (RIGHT TO LEFT) SUPPORT
   ============================ */

[dir="rtl"] .gliz-featured-badge {
    left: auto;
    right: 15px;
}

[dir="rtl"] .gliz-tour-details {
    direction: rtl;
}

[dir="rtl"] .gliz-price-amount {
    margin-left: 5px;
    margin-right: 0;
}

/* ============================
   ACCESSIBILITY IMPROVEMENTS
   ============================ */

.gliz-filter-tab:focus,
.gliz-load-more-btn:focus,
.gliz-retry-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Screen reader text */
.gliz-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
 

/* ============================
   ANIMATION CLASSES
   ============================ */

.gliz-fade-in {
    animation: glizFadeIn 0.5s ease-in;
}

.gliz-slide-up {
    animation: glizSlideUp 0.5s ease-out;
}

@keyframes glizFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glizSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}