/* css/tables.css */

/* --- HERO OVERRIDE VOOR DEZE PAGINA --- */
.hero.places {
    background: url('../img/food.jpg') no-repeat center center/cover;
    height: 50vh;
}

.hero.todo {
    background: url('../img/piedmont-region-italy.png') no-repeat center center/cover;
    height: 50vh;
}

.hero.places > .hero__content,
.hero.todo > .hero__content
{
    top: 30vh;
}


/* --- SECTIE STIJLEN --- */
.tips-section {
    padding: 4rem 20px;
}

.tips-table-container {
    margin-bottom: 4rem;
    background-color: var(--color-primary);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
}

.tips-table-container h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* --- CULINAIRE TIPS SECTIE --- */
.culinary-tips-section {
    padding: 4rem 20px 0 20px;
    background-color: var(--color-background);
    margin-bottom: 4rem;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.02);
}

.culinary-tips-section .container {
    max-width: 900px;
}

.culinary-tips-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.culinary-tips-section .separator {
    margin-bottom: 2rem;
}

.culinary-tips-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.culinary-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.culinary-tips-list li {
    background-color: var(--color-primary);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.culinary-tips-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.culinary-tips-list h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.culinary-tips-list p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: left;
    margin-bottom: 0;
}

/* --- TABEL STIJLEN --- */
.tips-location-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--color-divider);
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
}

.tips-location-header:first-of-type {
    margin-top: 0;
}

.tips-location-header h4 {
    margin-bottom: 0;
    color: var(--color-text-primary);
}

.tips-location-header span {
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.tips-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tips-table th,
.tips-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    word-wrap: break-word;
}

.tips-table th {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-text-primary);
    background-color: #fdfbf8;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Vaste kolombreedtes */
.tips-table th:nth-of-type(1) { width: 35%; }
.tips-table th:nth-of-type(2) { width: 20%; }
.tips-table th:nth-of-type(3) { width: 45%; }

.tips-table tbody tr:hover {
    background-color: #fdfbf8;
}

.tips-table a {
    text-decoration: underline;
    font-weight: bold;
}

.tips-table a:hover {
    color: #000;
}

/* --- FLOATING BACK BUTTON --- */
.floating-back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border);
    z-index: 999;
    transition: all var(--transition-speed);
}

.floating-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background-color: var(--color-text-primary);
    color: var(--color-primary);
}

.floating-back-btn svg {
    width: 24px;
    height: 24px;
}


/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Responsive stijl voor de back button */
    .floating-back-btn {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    /* Responsive stijlen voor culinaire tips */
    .culinary-tips-section {
        padding: 2.5rem 15px;
        margin-bottom: 3rem;
    }

    .culinary-tips-section p {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .culinary-tips-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .culinary-tips-list li {
        padding: 1.25rem;
    }

    .culinary-tips-list h4 {
        font-size: 1.2rem;
    }

    .culinary-tips-list p {
        font-size: 0.9rem;
    }

    /* Responsive stijlen voor tabellen */
    .tips-table-container {
        padding: 1.5rem;
    }

    .tips-location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .tips-table thead {
        display: none;
    }

    .tips-table, .tips-table tbody, .tips-table tr, .tips-table td {
        display: block;
        width: 100%;
    }

    .tips-table tr {
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--color-divider);
    }

    .tips-table tr:last-child {
        margin-bottom: 0;
    }

    .tips-table td {
        padding: 0.75rem 0;
        border-bottom: 1px dotted var(--color-border);
        position: relative;
        padding-left: 45%;
        text-align: left;
    }

    .tips-table tr td:last-child {
        border-bottom: none;
    }

    .tips-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        font-weight: bold;
        color: var(--color-text-primary);
        white-space: nowrap;
        text-align: left;
    }
}

/* --- ANIMATIE INITIELE STAAT --- */
.content-section {
    opacity: 0;
    transform: translateY(50px);
}