
/* Porto OLR logo, facility gallery and installable-app UI */
.logo-icon {
    overflow: hidden;
    background: #fff !important;
    border: 3px solid #0b74c9;
    box-shadow: 0 6px 20px rgba(5, 72, 130, .30);
}
.logo-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.08);
}

.facility-section {
    padding: 100px 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(11, 116, 201, .12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}
.facility-container { max-width: 1240px; margin: 0 auto; }
.facility-copy {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
    color: #596579;
    line-height: 1.8;
}
.facility-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 205px;
    gap: 18px;
}
.facility-card {
    position: relative;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    border-radius: 18px;
    background: #101827;
    box-shadow: 0 16px 38px rgba(12, 29, 56, .14);
    isolation: isolate;
}
.facility-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.facility-card:nth-child(2) { grid-column: span 5; }
.facility-card:nth-child(3) { grid-column: span 5; }
.facility-card:nth-child(4) { grid-column: span 6; }
.facility-card:nth-child(5) { grid-column: span 6; }
.facility-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease, filter .5s ease;
}
.facility-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(4, 12, 27, .86) 100%);
    z-index: 1;
}
.facility-card:hover img { transform: scale(1.045); filter: saturate(1.06); }
.facility-card figcaption {
    position: absolute; left: 20px; right: 20px; bottom: 17px; z-index: 2;
    color: #fff; text-align: left; font-size: 16px; font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.facility-card .facility-zoom {
    position: absolute; right: 16px; top: 16px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; background: rgba(10, 24, 50, .66); backdrop-filter: blur(8px);
}

.facility-lightbox {
    position: fixed; inset: 0; z-index: 10050;
    display: none; align-items: center; justify-content: center;
    padding: 24px; background: rgba(3, 8, 18, .93); backdrop-filter: blur(10px);
}
.facility-lightbox.open { display: flex; }
.facility-lightbox-dialog { width: min(1120px, 100%); position: relative; }
.facility-lightbox img {
    display: block; width: 100%; max-height: 78vh; object-fit: contain;
    border-radius: 16px; background: #080e19;
}
.facility-lightbox-caption { color: #fff; text-align: center; padding: 15px 60px 0; font-weight: 600; }
.facility-lightbox-close,
.facility-lightbox-arrow {
    position: absolute; z-index: 2; border: 0; color: #fff;
    background: rgba(10, 22, 44, .72); backdrop-filter: blur(10px);
    display: grid; place-items: center; cursor: pointer;
}
.facility-lightbox-close { right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; }
.facility-lightbox-arrow { top: 50%; transform: translateY(-50%); width: 48px; height: 68px; font-size: 23px; }
.facility-lightbox-prev { left: 12px; border-radius: 12px; }
.facility-lightbox-next { right: 12px; border-radius: 12px; }

.install-app-button {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 9500;
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid rgba(255,255,255,.26); border-radius: 999px;
    padding: 13px 18px; color: #fff;
    background: linear-gradient(135deg, #0b3a78, #145faf);
    box-shadow: 0 12px 30px rgba(8, 39, 86, .35);
    font: 700 14px/1 Montserrat, 'Noto Sans SC', sans-serif;
    cursor: pointer;
}
.install-app-button[hidden] { display: none !important; }
.install-help-overlay {
    position: fixed; inset: 0; z-index: 10060; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(2, 10, 25, .76); backdrop-filter: blur(8px);
}
.install-help-overlay.open { display: flex; }
.install-help-card {
    width: min(480px, 100%); border-radius: 22px; padding: 28px;
    color: #17243a; background: #fff; box-shadow: 0 26px 70px rgba(0,0,0,.32);
    position: relative;
}
.install-help-card h2 { margin: 0 40px 10px 0; color: #0b356d; }
.install-help-card p { color: #5c6879; line-height: 1.7; }
.install-help-card ol { margin: 18px 0 0; padding-left: 22px; color: #26354c; line-height: 1.85; }
.install-help-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; background: #edf2f8; color: #18375f; }

@media (max-width: 768px) {
    .facility-section { padding: 70px 14px; }
    .facility-copy { margin-bottom: 28px; font-size: 14px; }
    .facility-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
    .facility-card:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
    .facility-card:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
    .facility-card { border-radius: 13px; }
    .facility-card figcaption { left: 12px; right: 10px; bottom: 10px; font-size: 12px; line-height: 1.35; }
    .facility-card .facility-zoom { width: 32px; height: 32px; top: 10px; right: 10px; }
    .facility-lightbox { padding: 10px; }
    .facility-lightbox-caption { padding: 12px 44px 0; font-size: 13px; }
    .facility-lightbox-arrow { width: 40px; height: 58px; }
    .install-app-button { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 12px 15px; font-size: 12px; }
}
@media (max-width: 420px) {
    .facility-grid { grid-auto-rows: 132px; }
    .facility-card:nth-child(1) { grid-row: span 2; }
}
