/**
 * Service Stations Page Styles
 * Shared styles for Community Digital Service Stations pages (TC, EN, SC)
 */



.bodyArea .mainContent {
   /* font-size: 1.2em; */
    overflow: visible;
}

.bodyArea .mainContent h2 {
    font-size: 2em !important;
}

h3 {
    margin-bottom: 0.5rem !important;
}

.contentArea {
    overflow: visible;
}

.contentArea>*:not(script) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mainContent p {
    margin: 0.5rem;
}

input#datepickerFrom,
input#datepickerTo {
    padding: 4px 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    min-height: 40px;
    background-color: #fff;
}

input#datepickerFrom::placeholder,
input#datepickerTo::placeholder {
    color: #757575;
}

div.mainContent p,
div.mainContent li {
    text-align: left;
}

.table-container {
    overflow: visible;
    padding: 8px;
}

.swipe {
    display: none;
}

#map {
    height: 450px;
    width: 100%;
    max-width: 1150px;
    margin: 0;
    position: relative;
    top: 0;
}

.copyright-url {
    position: absolute;
    bottom: 0px;
    right: 75px;
    padding: 0 4px;
    max-width: 280px;
    font-family: sans-serif;
    font-size: 12px;
    background-color: #FFFFFF;
    height: 20px;
    text-align: center;
}

.copyright-logo {
    position: absolute;
    bottom: 3px;
    right: 25px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    background: url(https://api.hkmapservice.gov.hk/mapapi/landsdlogo.jpg);
    background-size: 28px;
    background-color: #FFFFFF;
}

.leaflet-container .leaflet-control-attribution {
    width: 210px;
    position: absolute;
    bottom: 5px;
    right: 10px;
    padding: 0 4px;
    font-family: sans-serif;
    font-size: 12px;
    background: transparent;
}

.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 8px;
}

.type-mobile-booth {
    background-color: #28a745;
    color: #ffffff;
}

.type-center {
    background-color: #f05524;
    color: #ffffff;
}

.filter-trigger {
    cursor: pointer;
    color: #007790;
    text-decoration: none;
    transition: color 0.2s ease;
}

.filter-trigger:hover {
    color: #007790;
    text-decoration: underline;
}

.filter-trigger:focus {
    outline: 2px solid #007790;
    outline-offset: 2px;
}

button:focus,
input:focus {
    outline: 2px solid #007790;
    outline-offset: 2px;
}

.paginator a:focus {
    outline: none;
}

.type-toggle-btn {
    padding: 5px 15px;
    margin: 0 3px;
    border: 2px solid #007790;
    background-color: #fff;
    color: #007790;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.type-toggle-btn:hover {
    background-color: #e6f4f7;
}

.type-toggle-btn.active {
    background-color: #007790;
    color: #fff;
}

.leaflet-popup {
    z-index: 1100 !important;
}

.leaflet-popup-pane {
    z-index: 1100 !important;
}

.markterAdjust {
    margin-top: -1em;
    margin-bottom: -0.5em;
    margin-left: -0.5em;
}

.mainContent .div_data_table_3>table {
    font-size: 1.1em;
}

@media (max-width: 767px) {

    /*
    .mainContent {
        margin-top: 0.5rem !important;
        padding-top: 0 !important;
    }*/

    .listStyleInline {
        margin-bottom: 0.5rem !important;
    }

    .swipe {
        display: block;
    }

    .table-container {
        box-sizing: border-box;
        overflow-x: auto;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    table {
        box-shadow: none !important;
    }

    .mainContent .div_data_table_3>table {
        min-width: 1000px;
        font-size: 1.1em;
    }

    /* Keep active filter items inline on mobile */
    .active-filter-item {
        display: inline-block !important;
        margin-bottom: 4px;
    }

    .typeToggleContainer {
        display: inline-block !important;
        margin-left: 8px !important;
    }

    .type-toggle-btn {
        font-size: 11px;
        padding: 5px 8px;
        margin: 0 2px;
        white-space: nowrap;
    }
}

/* Extra small screens (320px width) */
@media (max-width: 380px) {
    .type-toggle-btn {
        font-size: 10px;
        padding: 4px 6px;
        margin: 0 1px;
    }

    .flatpickr-calendar {
        font-size: 12px !important;
    }
}