@charset "UTF-8";

/* Access Page Styles */

.access-page .address-section {
    text-align: center;
    padding: 20px 0 10px;
    font-size: 1.1em;
}

.access-page .map-section {
    width: 100%;
    margin-bottom: 60px;
    text-align: center;
}

.access-page .map-section img {
    width: 100%;
    height: auto;
}

.access-page .google-map-link {
    margin-top: 15px;
    font-weight: bold;
}

.access-page .google-map-link a {
    text-decoration: underline;
    color: #4b5320;
}

.access-page .google-map-link a:hover {
    text-decoration: none;
}

/* Info Box */
.access-page .info-box {
    border: 1px solid #ddd;
    padding: 25px 30px;
    margin-bottom: 30px;
    background: #fff;
    text-align: center;
}

.access-page .info-box h3 {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.access-page .info-box p {
    margin: 5px 0;
    line-height: 1.8;
}

/* Alert Box */
.access-page .alert-box {
    background-color: #f5f5f0;
    padding: 15px 20px;
    text-align: center;
    border: 1px solid #e0e0d0;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
}

.access-page .alert-box .warning-icon {
    color: #f57f17;
    font-weight: bold;
    margin-right: 5px;
}

/* Station Grid */
.station-grid .grid-item {
    border: 1px solid #eee;
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    height: 100%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.station-grid .grid-item p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.station-grid .grid-item .station-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.station-grid .grid-item .station-exit {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;
    min-height: 1.4em;
}

.station-grid .grid-item .station-time {
    font-size: 0.9em;
    color: #666;
}

/* Route Section */
.route-section {
    margin-bottom: 60px;
}

.route-section .subtitle-link {
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.route-box {
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.route-box h3 {
    margin: 0 0 10px 0 !important;
    border: none !important;
    font-size: 1.4em !important;
}

.route-box p {
    margin-bottom: 0;
}

.route-box .recommended {
    color: #888;
    font-size: 0.8em;
    display: block;
    margin-bottom: 5px;
}

.photo-grid li {
    margin-bottom: 20px;
}

.photo-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.station-photo-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-grid p {
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Purpose Route */
.purpose-grid .card {
    border: 1px solid #eee;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.purpose-grid .card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #ddd;
    /* placeholder */
}

.purpose-grid .card-body {
    padding: 15px;
    text-align: center;
}

.purpose-grid .card-title {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
}

.purpose-grid .card-subtitle {
    font-size: 0.8em;
    color: #888;
}

/* Car/Taxi */
.car-taxi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.info-box-wide {
    border: 1px solid #f0f0f0;
    padding: 30px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    /* Slightly rounded corners */
}

.info-box-wide h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: #4b5320;
    /* Matching green tone */
}

.info-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.note-text {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
}

.image-box-wide {
    background-color: #f7f7f3;
    /* Light beige/grey background */
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #666;
    border: 1px solid #f0f0f0;
}

/* Parking / Bike */
.parking-grid-new {
    /* Using existing col-set logic but ensuring spacing */
    margin-bottom: 20px;
}

.parking-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
}

.parking-card h4 {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.parking-card .inner-box {
    background-color: #f7f7f3;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.8;
}

.parking-card .inner-box p {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-details {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Delivery */
.delivery-section {
    text-align: center;
}

.delivery-link {
    margin-bottom: 20px;
    font-weight: bold;
}

.delivery-alert {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    display: inline-block;
}

.delivery-box {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

/* Contact */
.contact-grid .grid-item {
    background: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
}

.contact-grid dl {
    display: block !important;
}

.contact-grid dt {
    display: block !important;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    float: none !important;
    width: 100% !important;
}

.contact-grid dd {
    display: block !important;
    font-size: 0.9em;
    line-height: 1.8;
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
}

/* Responsive adjustments if not covered by col-set */
@media (max-width: 768px) {
    .station-grid .col1-4 {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .photo-grid .col1-4 {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 20px;
    }

    .photo-grid .col1-4:nth-child(2n) {
        margin-right: 0;
    }

    .parking-grid .col1-3 {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Lightbox Styles */
.lightbox-trigger {
    cursor: pointer;
    transition: opacity 0.3s;
}

.lightbox-trigger:hover {
    opacity: 0.8;
}

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    /* Handle overflow on small screens */
}

.lightbox-content img {
    max-width: 100%;
    max-height: 60vh;
    /* Leave room for detailed text */
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.lightbox-caption {
    font-size: 1.1rem;
    color: #333;
    text-align: left;
    width: 100%;
    padding: 0 10px;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 15px 10px;
    cursor: pointer;
    transition: background 0.3s;
    user-select: none;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 600px) {
    .lightbox-nav {
        padding: 10px 5px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

/* Fullsize Lightbox Mod */
.lightbox-content.is-fullsize {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    overflow: auto;
    /* Enable both scrollbars */
    display: block;
    /* Override flex to allow native scrolling behavior if needed, or keep flex but ensure children can expand */
}

/* 
   When is-fullsize is active, we want the image to NOT be restricted 
   by the viewport size (max-width/max-height), so it can overflow 
   the container and trigger scrollbars on the container.
*/
.lightbox-content.is-fullsize img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    margin: 0 auto 15px auto;
}

/* Unified Font for Parking Access Header */
.parking-access-info h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: #4b5320;
}

/* Mobile Inline Map Styles */
@media (max-width: 768px) {
    .map-container {
        width: 100%;
        height: 500px;
        /* Adjust height as needed */
        overflow: auto;
        border: 1px solid #ddd;
        background: #f9f9f9;
        margin-bottom: 10px;
    }

    .map-container img {
        width: auto;
        max-width: none;
        height: auto;
        display: block;
    }
}