:root {
    --black-bg: rgba(24, 24, 24, 0.8);
    --text-yellow: #ffcc00;
    --text-dark-gray: #3E3E3E;
    --light-bg: #F3F3F3;
    --title-black: #2E2E2E;
    --content-gray: #808080;
    --default-yellow: #F6C900;
}

.cafe-page .page-header img {
    object-fit: cover;
    object-position: center;
}

.cafe-page .page-header .title-box {
    width: 35%;
    background-color: var(--black-bg);
}

.cafe-page .page-header .box-title, .cafe-page .reserve-title, .cafe-page .page-title {
    font-size: 48px;
}

.cafe-page .page-header .box-subtitle {
    font-size: 16px;
    color: var(--text-yellow);
}

.cafe-page .page-header .reserve-btn {
    height: 42px;
    background-color: var(--light-bg);
    color: var(--text-dark-gray);
}

.cafe-page .cafe-content:not(:first-child) {
    min-height: 600px;
}

.cafe-page .cafe-content .content-box {
    width: 50%;
}

.cafe-page .cafe-content .content-title {
    font-size: 32px;
    color: var(--title-black);
}

.cafe-page .cafe-content .content-text, .cafe-page .page-text {
    font-size: 16px;
    color: var(--content-gray);
}

.cafe-page .cafe-content .images-content {
    width: 30%;
    height: 100%;
}

.cafe-page .cafe-content .images-content img {
    object-fit: cover;
    height: calc(50% - 1rem);
}

.cafe-page .cafe-content .form-content {
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cafe-page .cafe-content .form-content form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cafe-page .cafe-content .form-content .form-group {
    margin-bottom: 1rem;
}

.cafe-page .cafe-content .form-content .form-control {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 14px;
}

.cafe-page .cafe-content .form-content textarea.form-control {
    height: 100%;
    min-height: 120px;
}

.cafe-page .cafe-content .form-content .btn-reserve {
    background-color: var(--default-yellow);
    border: none;
    height: 45px;
    margin-top: auto;
    color: var(--text-dark-gray);
}

.cafe-page .cafe-content .form-content .btn-reserve:hover {
    background-color: var(--default-yellow);
    opacity: 0.9;
}

.cafe-page .reserve-title, .cafe-page .page-title {
    color: var(--title-black);
}

.cafe-page .menu-btn {
    width: 320px;
    height: 42px;
    background-color: var(--default-yellow);
}

.cafe-page .menu-btn:hover {
    background-color: var(--default-yellow);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cafe-page .page-header .title-box {
        width: 50%;
    }
    .cafe-page .page-header .box-title {
        font-size: 30px;
    }
    .cafe-page .cafe-content .content-box {
        width: 100%;
    }
    .cafe-page .cafe-content .images-content, .cafe-page .cafe-content .form-content {
        width: 100%;
    }
    .cafe-page .cafe-content .form-content .form-group {
        flex-direction: column;
    }
    .cafe-page .cafe-content .form-content .form-group .form-control {
        width: 100%;
    }
    .cafe-page .cafe-content:not(:first-child) {
        min-height: fit-content;
    }
}

@media (max-width: 576px) {
    .cafe-page .page-header .title-box {
        width: 75%;
    }
    .cafe-page .page-header {
        height: 320px !important;
    }
    .cafe-page .menu-btn {
        width: 290px;
    }    
    .cafe-page .page-text {
        width: 100% !important;
    }
}

.cafe-page .images-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* height: 600px; */
    height: max-content;
}

.cafe-page .images-grid .grid-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.cafe-page .images-grid .image-box {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cafe-page .images-grid .image-box img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cafe-page .images-grid .image-box.full-height {
    flex: 6;
}

.cafe-page .images-grid .image-box.half-height {
    /* height: calc(50% - 0.75rem); */
    flex: 3;
}

.cafe-page .images-grid .placeholder-box {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

.cafe-page .images-grid .instagram-box {
    /* height: calc(50% - 0.75rem); */
    flex: 3;
    background-color: var(--black-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.cafe-page .images-grid .instagram-title {
    color: white;
    font-size: 24px;
    text-align: center;
}

.cafe-page .images-grid .instagram-text {
    color: white;
    font-size: 16px;
    text-align: center;
    margin: 0;
}

.cafe-page .images-grid .instagram-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.cafe-page .images-grid .instagram-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cafe-page .images-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .cafe-page .images-grid .grid-column .image-box, .cafe-page .images-grid .instagram-box {
        /* max-height: 420px; */
        min-height: 400px;
    }
    .cafe-page .images-grid .image-box.half-height, .cafe-page .images-grid .instagram-box {
        flex: 6;
    }
    .cafe-page .page-header .box-title, .cafe-page .reserve-title, .cafe-page .page-title {
        font-size: 32px;
    }
}

/* Menu Popup Styles */
.menu-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000000000;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-popup.active {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.menu-popup-content {
    max-width: 90%;
    background-color: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu-popup-content.maximized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background-color: #000;
    z-index: 3000000001;
}

.menu-popup-content.maximized .menu-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

.menu-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: move;
    user-select: none;
    -webkit-user-drag: none;
}

.menu-image.zoomed {
    cursor: grab;
}

.menu-image.zoomed:active {
    cursor: grabbing;
}

.menu-actions {
    position: absolute;
    top: 20px;
    left: 24px;
    display: flex;
    gap: 8px;
    z-index: 3000000002;
}

.menu-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.menu-action-btn:hover {
    opacity: 0.8;
}

.menu-action-btn i {
    font-size: 20px;
    color: white;
}

.close-btn {
    background-color: transparent;
}

.close-btn:hover {
    background-color: transparent;
}

.close-btn i {
    color: white;
    font-size: 24px;
}

/* Fullscreen styles */
.menu-image:fullscreen {
    background-color: #000;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

.menu-image:fullscreen .menu-actions {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 3000000002;
}

/* Reset styles when exiting fullscreen */
.menu-image:not(:fullscreen) {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    position: static;
}