/* ========================================
   Tour Booking Manager - Frontend Styles
   ======================================== */

/* --- Filtros --- */
.tbm-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.tbm-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tbm-filter-group {
    flex: 1;
    min-width: 200px;
}

.tbm-filter-input,
.tbm-filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.tbm-filter-input:focus,
.tbm-filter-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tbm-filter-btn {
    padding: 10px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.tbm-filter-btn:hover {
    background: #005a87;
}

/* --- Grid de Pacotes --- */
.tbm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* --- Card --- */
.tbm-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.tbm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tbm-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.tbm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.tbm-card-body {
    padding: 20px;
}

.tbm-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.tbm-card-local {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tbm-card-valor {
    margin: 0 0 16px;
    font-size: 13px;
    color: #888;
}

.tbm-valor-destaque {
    font-size: 24px;
    font-weight: 800;
    color: #0073aa;
}

/* --- Botões --- */
.tbm-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.tbm-btn-primary {
    background: #0073aa;
    color: #fff;
}

.tbm-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.tbm-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.tbm-btn-full {
    width: 100%;
}

/* --- Paginação --- */
.tbm-pagination {
    text-align: center;
    margin: 40px 0;
}

.tbm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.tbm-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.tbm-pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

.tbm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* ========================================
   Página de Detalhes
   ======================================== */

.tbm-single-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Hero */
.tbm-hero {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.tbm-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbm-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.tbm-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
}

.tbm-hero-local {
    font-size: 16px;
    margin: 0 0 8px;
    opacity: 0.9;
}

.tbm-hero-valor {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

/* Conteúdo detalhes */
.tbm-detalhes-content {
    max-width: 800px;
    margin: 0 auto;
}

.tbm-detalhes-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #0073aa;
    display: inline-block;
}

.tbm-detalhes-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* Galeria */
.tbm-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.tbm-galeria-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.tbm-galeria-item:hover {
    transform: scale(1.03);
}

.tbm-galeria-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Agência */
.tbm-agencia-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
}

.tbm-agencia-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 8px;
}

.tbm-agencia-nome {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}

.tbm-agencia-contato {
    color: #666;
    margin: 0;
}

/* Área pré-reserva */
.tbm-pre-reserva-area {
    text-align: center;
    margin: 48px 0 24px;
    padding: 32px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
    border-radius: 16px;
}

/* ========================================
   Modal
   ======================================== */

.tbm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.tbm-modal.active {
    display: flex;
}

.tbm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.tbm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: tbm-modal-in 0.3s ease-out;
}

@keyframes tbm-modal-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tbm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.tbm-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.tbm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.tbm-modal-close:hover {
    color: #333;
}

.tbm-modal-body {
    padding: 24px;
}

/* ========================================
   Formulário
   ======================================== */

.tbm-form .tbm-form-group {
    margin-bottom: 18px;
}

.tbm-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.tbm-form input[type="text"],
.tbm-form input[type="email"],
.tbm-form input[type="tel"],
.tbm-form input[type="number"],
.tbm-form input[type="date"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tbm-form input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tbm-form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.tbm-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tbm-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   Responsivo
   ======================================== */

@media (max-width: 768px) {
    .tbm-grid {
        grid-template-columns: 1fr;
    }

    .tbm-hero {
        height: 280px;
    }

    .tbm-hero-title {
        font-size: 24px;
    }

    .tbm-hero-valor {
        font-size: 20px;
    }

    .tbm-filters-form {
        flex-direction: column;
    }

    .tbm-filter-group {
        min-width: 100%;
    }

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

@media (max-width: 480px) {
    .tbm-card-image {
        height: 180px;
    }

    .tbm-galeria-grid {
        grid-template-columns: 1fr;
    }
}
