/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}

@media (max-width: 800px) {
    .simpleBooking-item {
        padding-bottom: 20px !important;
    }
}


:root {
    --primary-color: #003A61;
    --accent-color: #F9B00;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --border-color: #cccccc;
    --white: #ffffff;
}

.table-section {
    background: var(--white);
    margin-bottom: 2rem;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table.contenttable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: var(--white);
    margin-bottom: 2rem;
}

@media (min-width: 769px) {
    table.contenttable {
        min-width: 100%;
    }
}

table.contenttable thead {
    background-color: var(--primary-color);
    color: var(--white);
}

table.contenttable thead th {
    text-align: right;
}

table.contenttable thead th:first-child {
    text-align: left;
}

table.contenttable th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: rgba(0, 58, 97, 0.03);
}

table.contenttable tbody th[scope="row"] {
    color: var(--primary-color);
}


table.contenttable td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--primary-color);
    text-align: right;
}

table.contenttable tbody tr {
    transition: background-color 0.2s ease;
}

table.contenttable tbody tr:hover {
    background-color: rgba(0, 58, 97, 0.05);
}

table.contenttable tbody tr:last-child td {
    border-bottom: 1px solid var(--border-color);
}

/* Add top border to tables without thead */
table.contenttable:not(:has(thead)) tbody tr:first-child td,
table.contenttable:not(:has(thead)) tbody tr:first-child th {
    border-top: 1px solid var(--border-color);
}

/* Equal column widths for 2-column tables on desktop */
@media (min-width: 769px) {
    /* Tables with thead */
    table.contenttable:has(thead tr th:nth-child(2):last-child) thead th,
    table.contenttable:has(thead tr th:nth-child(2):last-child) tbody td,
    table.contenttable:has(thead tr th:nth-child(2):last-child) tbody th {
        width: 50%;
    }

    /* Tables without thead (2 columns in tbody) */
    table.contenttable:not(:has(thead)) tbody tr:has(td:nth-child(2):last-child) td,
    table.contenttable:not(:has(thead)) tbody tr:has(td:nth-child(2):last-child) th {
        width: 50%;
    }

    /* Tables inside .box: first column auto-width (content-based), second column fills remaining space */
    .box table.contenttable:has(thead tr th:nth-child(2):last-child) thead th:first-child,
    .box table.contenttable:has(thead tr th:nth-child(2):last-child) tbody td:first-child,
    .box table.contenttable:has(thead tr th:nth-child(2):last-child) tbody th:first-child {
        width: auto;
        white-space: nowrap;
    }

    .box table.contenttable:has(thead tr th:nth-child(2):last-child) thead th:nth-child(2),
    .box table.contenttable:has(thead tr th:nth-child(2):last-child) tbody td:nth-child(2),
    .box table.contenttable:has(thead tr th:nth-child(2):last-child) tbody th:nth-child(2) {
        width: auto;
    }

    /* Tables without thead inside .box */
    .box table.contenttable:not(:has(thead)) tbody tr:has(td:nth-child(2):last-child) td:first-child,
    .box table.contenttable:not(:has(thead)) tbody tr:has(td:nth-child(2):last-child) th:first-child {
        width: auto;
        white-space: nowrap;
    }

    .box table.contenttable:not(:has(thead)) tbody tr:has(td:nth-child(2):last-child) td:nth-child(2),
    .box table.contenttable:not(:has(thead)) tbody tr:has(td:nth-child(2):last-child) th:nth-child(2) {
        width: auto;
    }
}

/* Total column styling */
.total-col {
    font-weight: 700;
    background-color: rgba(0, 58, 97, 0.03);
}

/* Empty cell styling */
table.contenttable td:empty::before {
    content: "–";
    color: var(--text-light);
}

/* Responsive card view for mobile */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .table-section {
        padding: 1rem;
    }

    table.contenttable thead {
        display: none;
    }

    table.contenttable,
    table.contenttable tbody,
    table.contenttable tr {
        display: block;
        width: 100%;
    }

    table.contenttable th[scope="row"],
    table.contenttable td {
        display: block;
        width: 100%;
    }

    table.contenttable tr {
        border: 1px solid var(--border-color);
        background: var(--white);
    }

    table.contenttable tbody th[scope="row"] {
        text-align: left;
        font-weight: 700;
        color: var(--white);
        background-color: var(--primary-color);
        padding: 0.5rem;
        margin-bottom: 0;
        font-size: 0;
    }

    table.contenttable tbody th[scope="row"]::before {
        content: attr(data-label);
        display: block;
        text-align: left;
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--white);
        background-color: var(--primary-color);
        padding: 0.5rem;
        opacity: 1;
    }

    table.contenttable td {
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        white-space: normal;
        word-wrap: break-word;
    }

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

    table.contenttable td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary-color);
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
    }

    table.contenttable td > *:first-child,
    table.contenttable td {
        padding: 0.75rem;
    }

    table.contenttable td > *:first-child {
        text-align: right;
        display: block;
        padding-right: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    table.contenttable .total-col {
        background-color: rgba(0, 58, 97, 0.05);
    }

    /* Full-width colspan section header rows on mobile */
    table.contenttable td.colspan-header {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        font-weight: 700;
        padding: 0.5rem 0.75rem !important;
        border-bottom: 1px solid var(--border-color);
    }

    table.contenttable td.colspan-header::before {
        content: none !important;
    }

    /* td-only label rows (timetable style: day | time) */
    table.contenttable tr:has(td.td-label) {
        display: grid !important;
        grid-template-columns: auto 1fr;
        border: 1px solid var(--border-color);
        margin-bottom: 0;
    }

    table.contenttable td.td-label,
    table.contenttable td.td-value {
        display: block !important;
        width: auto !important;
        padding: 0.75rem !important;
        border-bottom: none !important;
    }

    table.contenttable td.td-label {
        text-align: left !important;
        min-width: 100px;
        border-right: 1px solid var(--border-color);
        white-space: nowrap;
    }

    table.contenttable td.td-value {
        color: var(--text-dark);
        white-space: normal;
    }

    table.contenttable td.td-label::before,
    table.contenttable td.td-value::before {
        content: none !important;
    }
}

/* Print styles */
@media print {
    body {
        padding: 0;
        background: var(--white);
    }

    .table-section {
        border: none;
        padding: 0;
    }

    @media (max-width: 768px) {
        table.contenttable thead {
            display: table-header-group;
        }

        table.contenttable,
        table.contenttable tbody,
        table.contenttable tr,
        table.contenttable td {
            display: table-cell;
        }

        table.contenttable tr {
            margin: 0;
            border: none;
            padding: 0;
        }

        table.contenttable td {
            padding: 0.5rem;
            text-align: left;
        }

        table.contenttable td::before {
            display: none;
        }
    }
}

/* Remove empty paragraphs added by RTE parser around block elements */
.text-content p:empty {
    display: none;
}

/* Focus visible for keyboard navigation - using primary color for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}