/* Layout Responsivo e Fluido */
.post-container {
    max-width: 95%; /* Aproveita melhor o ecrã em desktop */
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    overflow: hidden; /* IMPORTANTE: Impede que o conteúdo "saia" das bordas */
}

/* Garante que NENHUMA imagem saia do ecrã */
img {
    max-width: 100%; /* IMPORTANTE: A foto nunca será maior que a largura do ecrã */
    height: auto;    /* IMPORTANTE: Mantém a proporção sem achatar a imagem */
    display: block;
}




/*factosrapidos */

.quick-facts-table {
    width: 100%;
    /* Increased max-width so it spreads out more on desktop */
    max-width: 800px; 
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    /* Increased base font size for better visibility */
    font-size: 1.15rem; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quick-facts-table thead th {
    background-color: #f8f9fa;
    padding: 18px 20px;
    text-align: left;
    /* Larger header text */
    font-size: 1.3rem; 
    border-bottom: 2px solid #eee;
    color: #2c3e50;
}

.quick-facts-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* Makes the labels (left column) stand out more */
.quick-facts-table td:first-child {
    background-color: #fafafa;
    font-weight: 700;
    width: 35%;
    color: #2c3e50;
}

/* Desktop optimization: spreads content if screen is wide enough */
@media (min-width: 768px) {
    .quick-facts-table {
        margin-left: 0;
        margin-right: auto;
        font-size: larger;
        font-weight: bolder;
    }
}








/* Hero Section */
.post-hero {
    position: relative;
    width: 100%;
    height: 50vh; /* Altura flexível baseada no ecrã */
    min-height: 300px;
}


.hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenche o espaço sem deformar */
}

/* Grelha Adaptável */
.post-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 coluna */
    gap: 30px;
    padding: 20px;
}



/* Botão de Voltar */
.back-link { text-align: center; padding: 40px 0; }
.btn-back {
    text-decoration: none;
    color: #2c5380 !important;
    font-weight: bold;
    border: 2px solid #2c5380;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-back:hover { background: #2c5380; color: white; }


/* Comentarios das fotos*/

.galeria-vertical p {

    padding-top: 15px;
    padding-left: 10px;
    justify-content: center;
}










/* Galeria */
.galeria-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.galeria-vertical figure {
    margin: 0;
    width: 100%; /* Garante que o contentor da foto ocupa a largura total */
    border: 1px solid #c0afaf;
    border-radius: 10px;
}

.galeria-vertical img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Caixa de Alerta (Warning) */
.warning-box {
    background-color: #fff3cd;
    border-left: 6px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    color: #856404;
    font-size: 0.95rem;
}

/* Mapa e Sidebar */
.map-container { margin-top: 40px; }
.map-container iframe { border-radius: 10px; width: 100%; }

.author-feedback {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #2c5380;
}

.sticky-wrapper {
    position: sticky;
    top: 20px;
}





















/* Secção de Partilha */
.share-section {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

.share-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Garante que os botões baixam em ecrãs pequenos */
}

.share-btn {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Cores Oficiais */
.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.twitter  { background-color: #1DA1F2; }

/* Ajuste para mobile */
@media (max-width: 600px) {
    .share-btn {
        width: 100%; /* Botões ocupam a largura toda no telemóvel */
        justify-content: center;
    }
}






/* Content Container */
.logistics-summary {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fdfaf3; /* Tom de papel antigo muito suave */
    border-left: 5px solid #8b4513; /* Cor "terrosa/romana" */
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Header */
.logistics-summary h3 {
    color: #8b4513;
    font-variant: small-caps;
    letter-spacing: 1px;
    margin-top: 0;
    border-bottom: 1px solid #e0d7c6;
    padding-bottom: 10px;
}

/* List Styling */
.logistics-summary ul {
    list-style-type: none;
    padding: 0;
}

.logistics-summary li {
    margin-bottom: 18px;
    padding-left: 15px;
    position: relative;
}

/* Bullet Points Customizados */
.logistics-summary li::before {
    content: "•";
    color: #8b4513;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* Highlights */
.logistics-summary strong {
    color: #5d2e0a;
}

/* Conclusion italic styling */
.logistics-summary p em {
    display: block;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #c0b283;
    color: #666;
    font-style: italic;
}




.card-image img {
    width: 100%;
    height: 450px; /* Altura fixa para alinhar todos os cartões */
    object-fit: cover;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .logistics-summary {
        padding: 20px;
        margin: 10px;
    }


}











/* ecras grandes */

@media (min-width: 1024px) {
    .post-container {
        max-width: 80%;
        padding: 40px;
    }
    p {
        font-size: 1.3rem;
        

        
    
    }
    figcaption{
        font-size: 1.5rem;
        text-align: center;
        justify-content: center;
    }

    .post-hero {
        position: relative;
        width: 100%;
        height: 50vh; /* Altura flexível baseada no ecrã */
        min-height: 45rem;
       
    }



}