/**
 * Estilos para o Template de Arquivo de Destinos
 *
 * CSS para a página customizada de destinos do WP Travel Engine,
 * incluindo grid responsivo, cards com overlay, e toolbar de ordenação.
 *
 * @package WTE_Sliders
 */

/* ============================================
   Container Principal
   ============================================ */

.wte-destinations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
}

.wte-destinations-title {
    font-size: 42px;
    font-weight: 700;
    color: #1b4264;
    margin-bottom: 10px;
    line-height: 1.2;
}

.wte-destinations-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Barra de Ferramentas (Contagem e Ordenação)
   ============================================ */

.wte-destinations-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wte-destinations-count {
    font-size: 16px;
    font-weight: 500;
    color: #1b4264;
}

.wte-destinations-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wte-destinations-sort label {
    font-size: 14px;
    font-weight: 500;
    color: #1b4264;
    margin: 0;
}

.wte-destinations-sort select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1b4264;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.wte-destinations-sort select:hover {
    border-color: #00c7e4;
}

.wte-destinations-sort select:focus {
    border-color: #00c7e4;
    box-shadow: 0 0 0 3px rgba(0, 199, 228, 0.1);
}

/* ============================================
   Grid de Destinos
   ============================================ */

.wte-destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0;
}

/* ============================================
   Card de Destino
   ============================================ */

.wte-destination-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 350px;
    position: relative;
}

.wte-destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wte-destination-card-inner {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 35px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
}

/* ============================================
   Overlay com Gradiente
   ============================================ */

.wte-destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.wte-destination-card:hover .wte-destination-overlay {
    opacity: 0.85;
}

/* ============================================
   Conteúdo do Card (Nome e Descrição)
   ============================================ */

.wte-destination-content {
    padding: 10px;
    padding-left: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 60%;
}

.wte-destination-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.wte-destination-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

/* ============================================
   Seção de Preço
   ============================================ */

.wte-destination-price {
    position: relative;
    z-index: 2;
    text-align: right;
    color: #ffffff;
}

.wte-destination-price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.wte-destination-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.wte-destination-price-per {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   Estado Vazio
   ============================================ */

.wte-destinations-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.wte-destinations-empty h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1b4264;
    margin-bottom: 10px;
}

.wte-destinations-empty p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   Responsivo: Tablet (992px e abaixo)
   ============================================ */

@media (max-width: 992px) {
    .wte-destinations-container {
        padding: 40px 20px;
    }

    .wte-destinations-title {
        font-size: 36px;
    }

    .wte-destinations-subtitle {
        font-size: 16px;
    }

    .wte-destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wte-destination-card {
        height: 280px;
    }

    .wte-destination-name {
        font-size: 22px;
    }

    .wte-destination-description {
        font-size: 13px;
    }

    .wte-destination-price-value {
        font-size: 20px;
    }
}

/* ============================================
   Responsivo: Tablet Pequeno (768px e abaixo)
   ============================================ */

@media (max-width: 768px) {
    .wte-destinations-toolbar {
        padding: 18px 20px;
    }

    .wte-destinations-count {
        font-size: 14px;
    }

    .wte-destinations-sort label {
        font-size: 13px;
    }

    .wte-destinations-sort select {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ============================================
   Responsivo: Mobile (640px e abaixo)
   ============================================ */

@media (max-width: 640px) {
    .wte-destinations-container {
        padding: 30px 15px;
    }

    .wte-destinations-title {
        font-size: 30px;
    }

    .wte-destinations-subtitle {
        font-size: 15px;
    }

    .wte-destinations-toolbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .wte-destinations-count {
        width: 100%;
        text-align: center;
    }

    .wte-destinations-sort {
        width: 100%;
        justify-content: center;
    }

    .wte-destinations-sort select {
        flex: 1;
        max-width: 200px;
    }

    .wte-destinations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wte-destination-card {
        height: 300px;
    }

    .wte-destination-card-inner {
        padding: 20px;
    }

    .wte-destination-name {
        font-size: 20px;
    }

    .wte-destination-description {
        font-size: 13px;
    }

    .wte-destination-price-value {
        font-size: 19px;
    }

    .wte-destinations-empty {
        padding: 40px 15px;
    }

    .wte-destinations-empty h2 {
        font-size: 24px;
    }

    .wte-destinations-empty p {
        font-size: 15px;
    }
}

/* ============================================
   Responsivo: Mobile Pequeno (480px e abaixo)
   ============================================ */

@media (max-width: 480px) {
    .wte-destinations-title {
        font-size: 26px;
    }

    .wte-destinations-subtitle {
        font-size: 14px;
    }

    .wte-destination-card {
        height: 280px;
    }

    .wte-destination-card-inner {
        padding: 18px;
    }

    .wte-destination-name {
        font-size: 19px;
    }

    .wte-destination-description {
        font-size: 12px;
    }

    .wte-destination-price-label {
        font-size: 11px;
    }

    .wte-destination-price-value {
        font-size: 18px;
    }

    .wte-destination-price-per {
        font-size: 10px;
    }
}