/* Site notice popup (independent from booking date popup) */
.site-notice-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto; /* mobile/tablet can scroll */
}

body.site-popup-open{
    overflow: hidden;
}

/* Compact card (mobile-like on all breakpoints) */
.site-notice{
    width: min(480px, 100%);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.30);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

.site-notice__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.site-notice__title{
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.site-notice__close{
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.site-notice__body{
    padding: 14px 16px 16px;
    overflow: auto;
    min-height: 0; /* allow flex child scrolling */
}

.site-notice__img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.site-notice__content{
    margin-top: 4px;
}

.site-notice__actions{
    margin-top: 12px;
    text-align: right;
}

.site-notice__btn{
    display:inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration:none;
}

.site-notice__btn--primary{
    border-color: #0d6efd;
}

.site-notice-overlay.is-open{
    display: flex;
}

/* Desktop: no internal scroll; keep compact like mobile */
@media (min-width: 992px){
    .site-notice-overlay{ overflow: hidden; }
    .site-notice__body{ overflow: hidden; }
    .site-notice__img{ max-height: calc(100vh - 240px); }
    .site-notice__content{ max-height: 120px; overflow: hidden; }
}
