/* --- LAYOUT GERAL DA PÁGINA DE PACOTES --- */
.pacotes-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.pacotes-header {
    text-align: center;
    margin-bottom: 40px;
}

.pacotes-title {
    color: var(--azul-profundo);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pacotes-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* --- BARRA DE PESQUISA --- */
.pacotes-search-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
}

.pacotes-search-container input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pacotes-search-container input:focus {
    border-color: var(--azul-ceu);
    box-shadow: 0 4px 15px rgba(135, 219, 250, 0.4);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 24px;
}

/* --- A GRELHA RESPONSIVA --- */
.pacotes-grid {
    display: grid;
    /* Força 4 colunas do mesmo tamanho no Desktop/Portátil */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsividade: Tablets e ecrãs médios */
@media (max-width: 1024px) {
    .pacotes-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    }
}

/* Responsividade: Telemóveis */
@media (max-width: 600px) {
    .pacotes-grid {
        grid-template-columns: 1fr; /* 1 coluna empilhada */
    }
}

/* --- O CARD ESTILO DECOLAR (CLICÁVEL) --- */
.pacote-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.pacote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--azul-ceu);
}

.pacote-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e9ecef; /* Fundo de carregamento */
}

.pacote-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.pacote-tag-datas {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pacote-tag-datas span {
    font-size: 16px;
}

/* --- INFORMAÇÕES DO PACOTE --- */
.pacote-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pacote-destino {
    color: var(--azul-profundo);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.pacote-titulo {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 12px;
}

.pacote-hotel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.pacote-hotel span {
    font-size: 18px;
    color: var(--laranja-averah);
}

/* --- ÍCONES DE INCLUSÃO --- */
.pacote-icones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.icone-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #555;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.icone-item span {
    font-size: 16px;
    color: var(--azul-profundo);
}

/* --- PREÇO (DESTAQUE) --- */
.pacote-preco-box {
    text-align: right;
    margin-top: auto;
    margin-bottom: 15px;
}

.preco-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.preco-destaque {
    color: var(--laranja-averah);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
}

.preco-parcelas {
    font-size: 1.1rem;
    color: #333;
}

.preco-entrada {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

/* --- DISCLAIMER --- */
.pacote-disclaimer {
    font-size: 0.65rem;
    color: #aaa;
    text-align: center;
    line-height: 1.3;
    margin-top: 10px;
}