.index-top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 13px;
}

.index-top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.index-auth-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.index-auth-link {
    color: #666;
}

.index-auth-divider {
    color: #ddd;
}

.booking-card-container {
    max-width: 1060px;
}

.booking-label-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.booking-subtext {
    color: #999;
    font-size: 13px;
    line-height: 1.15;
}

.booking-hours-wrap {
    color: #444;
}

.booking-hours-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.booking-hours-title-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.booking-hours-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.3;
}

.booking-hours-row:last-child {
    margin-bottom: 0;
}

.booking-hours-day {
    width: 74px;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #d9dde3;
    border-radius: 999px;
    background: #f7f8fa;
}

.booking-hours-time {
    min-width: 62px;
    font-weight: 700;
    color: #222;
}

.booking-hours-sep {
    color: #999;
}

.booking-hours-note {
    color: #555;
}

.booking-contact-info {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}

.booking-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.booking-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 999px;
    background: #eef4ef;
    color: #2d5a3d;
    font-size: 11px;
    flex-shrink: 0;
}

.summary-card-link {
    display: block;
}

.main-board-tabs {
    margin: 0;
    gap: 0;
    border-bottom: 2px solid #eee;
}

.main-board-tab-btn {
    padding: 10px 12px;
    font-size: 13px;
}

.main-board-list {
    margin-top: 10px;
}

.main-board-empty {
    padding: 12px 0;
    color: #888;
    font-size: 14px;
}

.main-board-link {
    display: block;
}

.main-board-list-link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.main-board-date {
    color: #ccc;
    flex-shrink: 0;
}

.index-footer-content {
    flex-wrap: wrap;
    gap: 30px;
}

.index-footer-left {
    min-width: 300px;
}

.index-footer-logo {
    height: 40px;
    margin-bottom: 25px;
}

.index-footer-info {
    color: rgba(255, 255, 255, 0.8);
}

.index-footer-right {
    flex: 1;
    min-width: 200px;
    gap: 20px;
}

.index-footer-links {
    gap: 20px;
    font-weight: 700;
}

.index-footer-legal {
    opacity: 0.8;
}

.index-footer-legal span {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .booking-hours-row {
        display: grid;
        grid-template-columns: 68px 62px 10px minmax(0, 1fr);
        align-items: start;
        gap: 6px;
        font-size: 12px;
        line-height: 1.45;
    }

    .booking-hours-day {
        width: 68px;
        padding: 2px 6px;
        font-size: 11px;
    }

    .booking-hours-time {
        min-width: 62px;
        font-size: 12px;
    }

    .booking-hours-note {
        min-width: 0;
        word-break: keep-all;
    }

    .booking-contact-info {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.6;
    }
}

.index-footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.main-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.7);
    animation: indexPopupFadeIn 0.3s;
}

.popup-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1620px;
}

.popup-item {
    position: relative;
    width: 100%;
    margin: 0;
    opacity: 0;
    animation: indexPopupSlideUp 0.5s forwards;
}

.popup-item-html {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.popup-html-body {
    padding: 25px 20px 20px;
}

.popup-item-default {
    max-width: 380px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    padding: 40px 30px 20px;
    border: 3px solid #2d5a3d;
    border-radius: 20px;
    background: #1a1a1a;
    color: #fff;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    border: 0;
    background: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.popup-close-btn-light {
    color: #333;
}

.popup-close-btn-light:hover {
    color: #000;
}

.popup-close-btn-green {
    color: #4a8b5f;
}

.popup-close-btn-green:hover {
    color: #66bb7a;
}

.popup-image-wrap {
    margin-bottom: 20px;
    text-align: center;
}

.popup-image {
    max-width: 100px;
    height: auto;
    border-radius: 12px;
}

.popup-title {
    margin-bottom: 20px;
    color: #4a8b5f;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;
}

.popup-content {
    flex: 1;
    margin-bottom: 25px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    white-space: pre-wrap;
    word-break: keep-all;
}

.popup-link-wrap {
    margin-bottom: 20px;
    text-align: center;
}

.popup-link-placeholder {
    height: 58px;
}

.popup-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 25px;
    background: linear-gradient(135deg, #03c75a 0%, #00b050 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(3, 199, 90, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 199, 90, 0.4);
}

.popup-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #fff;
    color: #03c75a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.popup-footer-light {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.popup-footer-dark {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-hide-today {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    word-break: keep-all;
}

.popup-hide-today-light {
    color: #666;
}

.popup-hide-today-dark {
    color: #999;
}

.popup-hide-today span {
    white-space: nowrap;
}

.popup-hide-checkbox {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.popup-action-btn {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.popup-action-btn-light {
    padding: 6px 15px;
    border-radius: 15px;
    background: #555;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.popup-action-btn-light:hover {
    background: #333;
}

.popup-action-btn-dark {
    padding: 8px 20px;
    border-radius: 18px;
    background: #333;
    color: #ddd;
    font-size: 12px;
    font-weight: 600;
}

.popup-action-btn-dark:hover {
    background: #444;
}

@keyframes indexPopupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes indexPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes indexPopupFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 1250px) {
    .popup-container {
        position: relative;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0 auto;
    }

    .popup-container > .popup-item {
        position: relative;
        display: none;
        width: min(92vw, 460px);
        max-width: min(92vw, 460px);
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        transform: none;
        opacity: 1;
    }

    .popup-item.popup-item-html,
    .popup-item.popup-item-default {
        max-width: 100%;
    }

    .popup-container > .popup-item:first-child {
        display: flex;
    }
}

@media (max-width: 600px) {
    .main-popup-overlay {
        padding: 16px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .popup-container {
        position: relative;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
    }

    .popup-container > .popup-item:nth-child(n) {
        display: none;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        width: 92%;
        max-width: 92%;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .popup-container > .popup-item:first-child {
        display: flex;
    }

    .popup-item-default {
        padding: 32px 24px 20px;
        border-width: 2px;
    }

    .popup-title {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .popup-content {
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.6;
    }

    .popup-button {
        gap: 6px;
        padding: 12px 24px;
    }

    .popup-button-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }

    .popup-footer {
        gap: 10px;
    }

    .popup-close-btn {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}
