main {
    padding: 2rem;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    overflow: visible;
    max-width: 1080px;
    margin: 8rem auto;
}

.main-l {
    display: flex;
    gap: 3rem;
    flex-direction: column;
    width: 85rem;
    height: auto;
}

.main-r {
    display: block;
    position: relative;
}

.tool-box-right {
    position: sticky;
    top: calc(100vh - 13rem - 9rem);
    width: 6rem;
    height: 13rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 200;
}

#upup,
#history {
    cursor: pointer;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .1));
}

#upup {content: url('/public/upup.svg');}
#history {content: url('/public/history.svg');}

#history-box {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: 7.2rem;
    right: 0;
    width: 17rem;
    height: 59rem;
    background-color: #ffffff;
    z-index: 201;
    box-shadow: 0 4px 15px #00000020;
    border-radius: 20px;
    padding: 2rem;
    gap: 2rem;
}
#history-box.show {
    display: flex;
}

#history-box .history-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#history-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: scroll;
    overflow-x: hidden;
}
#history-items.none {
    justify-content: center;
    align-items: center;
    height: 50.6rem;
}
.history-cancel {
    content: url('/public/history-cancel.svg');
    padding: 1rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    #history-box {
        height: 45rem;
    }
    #history-items.none {
        height: 36.6rem;
    }
}
#history-items li a img {
    display: block;
    width: 100%;
    height: 10rem;
    border-radius: 20px;
    overflow: hidden;
    inset: 0;
    margin-bottom: 1.4rem;
    object-fit: cover;
    object-position: center;

}
#history-items li a p {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
    text-align: center;
}

.separator {
    width: 100%;
    height: 1px;
    border-top: 1px solid #d9d9d9;
}
@media (max-width: 960px) {
    main {
        display: block;
        padding: 3rem 2rem 2rem 2rem;
        justify-content: center;
    }

    .main-r {
        position: static;
        z-index: auto;
    }
    .tool-box-right {
        position: fixed;
        right: 1.2rem;
        bottom: 9rem;
        top: auto;
        z-index: 500;
        height: unset;
    }
}

@media (max-width: 850px) {
    main {
        width: 100%;
        margin: 9.5rem auto;
    }

    .main-l {
        display: flex;
        gap: 3rem;
        flex-direction: column;
        width: 100%;
        height: auto;
    }
}






.photo-section {
    position: relative;
    visibility: visible;
    width: 85rem;
    height: 42rem;
    display: flex;
    gap: 1rem;
    border-radius: 20px;
    overflow: hidden;
}

.photo-mini-section {
    display: flex;
    flex-direction: column;
    width: 19rem;
    gap: 1rem;
}

.photo-card {
    position: relative;
    overflow: hidden;
    background-color: #E1E3EB;
    cursor: pointer;
}

.photo-card.thumbnail {
    width: 65rem;
    height: 100%;

}

.photo-card.sub {
    flex: 1;
    height: 20.5rem;
}
.modal-close {
    cursor: pointer;
    content: url('/public/detail/modal-close.svg');
    z-index: 5;
    position: absolute;
    top: 24px;
    right: 20px;
}

.photo-more, .photo-index {
    position: absolute;
    display: block;
    color: #ffffff;
    font-size: 1.4rem;
    bottom: 12px;
    font-weight: bold;
    right: 12px;
    z-index: 10;
    cursor: pointer;
    padding: .6rem 1rem;
    background-color: #2f2f2f60;
    border-radius: 30px;
}
.photo-index {
    cursor: default;
}
.photo-more span, .photo-index span {
    color: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}


.modal-content {
    position: relative;
    z-index: 10;
    min-width: 375px;
    max-width: 850px;
    width: 100vw;
    min-height: 303px;
    height: 100vh;
    max-height: 55rem;
    margin: auto 6rem;
    display: flex;
    align-items: center;
    background-color: #585858;
    overflow: hidden;
    border-radius: 20px;
}


#modalImage,#placeImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    height: 50%;
    padding: 2rem
}

#prevBtn { left: 0; }
#nextBtn { right: 0;}


.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-more-back {
    display: block;
    position: absolute;
    width: 19rem;
    height: 20.5rem;
    bottom: 0;
    right: 0;
    background-color: #00000060;
}

.photo-more, .photo-index {
    position: absolute;
    display: none;
    color: #ffffff;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    cursor: pointer;
    padding: .6rem 1rem;
    background-color: #2f2f2f60;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
}
.photo-index {
    display: block;
}
@media (max-width: 768px) {

    .modal-backdrop {
        background: rgba(0, 0, 0);
    }
    .modal-content {
        margin: 0;
        height: auto;
        aspect-ratio: 4/3;
        border-radius: 0;
        overflow: visible;
    }
    .modal-close {
        position: fixed;
        top: 30px;
        right: 20px;

    }
    .nav-btn {
        display: none;
    }
    .photo-more {
        display: block;
    }
    .photo-index {
        display: block;
        position: fixed;
        bottom: 30px;
        right: 20px;
    }
}
/* ===================== */
#nav-prev-warpper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 3rem;
}

#nav-prev-warpper ol {
    display: flex;
    align-items: center;
}

#nav-prev-warpper ol li {
    display: flex;
    align-items: center;
    padding: 0 .2rem
}

#nav-prev-warpper ol .nav-prev {
    color: #585858;
    cursor: pointer;
    white-space: nowrap;
}
#nav-prev-warpper ol .nav-current {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
#nav-prev-warpper ol .nav-prev::after {
    content: '>';
    margin-left: .3rem;
}

.content-warpper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.item-head-title {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.head-info-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.head-info-row>div {
    color: #585858;
}
.no-price {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.no-price-svg {
    content: url('/public/no-price.svg');
}

/* ===================== */

.calendar-warpper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.calendar-head {
    width: 33.5rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#search-label {
    display: flex;
    align-items: center;
    height: 100%;
}
#search-value {
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    font-family: 'Noto Sans KR', sans-serif;
    padding: 1rem 2rem;
}
#search-value::-webkit-date-and-time-value,
#search-value::-webkit-datetime-edit,
#search-value::-webkit-datetime-edit-text,
#search-value::-webkit-datetime-edit-month-field,
#search-value::-webkit-datetime-edit-day-field,
#search-value::-webkit-datetime-edit-year-field {
    font-family: 'Noto Sans KR', 'Noto Sans JP', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo',
    'Helvetica Neue', Arial, sans-serif;
}

#search-value::-webkit-clear-button,
#search-value::-webkit-inner-spin-button {
    display: none;
}
#search-value::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: 0;
    cursor: pointer;
}

.calendar-head div {
    display: flex;
    align-items: center;
}

.detail-price-warpper {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.detail-price-warpper.at400 {
    display: none;
}
.on-load {
    filter: blur(3px);
    opacity: 0.3;
}
.on-load::after {
    content: url("/public/detail/loading.svg");
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#top-no-price {
    flex-direction: row;
    justify-content: flex-start;
}

@media (max-width: 786px) {
    .calendar-warpper {
        flex-direction: column-reverse;
        gap: 1.4rem;
    }

    .calendar-head {
        width: 100%;
    }

    .detail-price-warpper {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .head-info-row {
        align-items: flex-start;
    }
}
/* ============================ */


.item-price-warpper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.item-price-header {
    display: flex;
    justify-content: space-between;
}

.price-list-warpper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-height: 35.2rem;
}

.price-list-warpper .price-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    padding: 2.4rem 0;
    height: 35.2rem;
    overflow-y: hidden;
    transition: height .2s ease;
}

.price-list-header {
    height: 4.4rem;
}

.price-list ol {
    width: 100%;
    height: 21.9rem;
    overflow-y: hidden;
}

.padding-30 {
    padding: 0 3rem;
}

.price-day {
    display: flex;
    cursor: pointer;
    justify-content: space-between;
    height: 7.2rem;
}

.price-day:hover {
    background-color: #f6f7fb;
}

.price-day .price-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.price-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.price-right .price-value {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-line-seperator {
    width: calc(100% - 6rem);
    height: 1px;
    border-top: 1px solid #d9d9d9;
    margin: 0 auto;
}

.more-price {
    position: absolute;
    width: 36rem;
    bottom: 2.6rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
}

.price-list.active {
    height: 49.6rem;

    ol {
        height: 36.4rem;
    }
}

/* ============================ */
.review-section,
.description-section,
.group-review {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.review-item {
    width: 16.2rem;
    height: 26.4rem;
    background-color: #f6f7fb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.4rem 1rem;
    border-radius: 10px;
    cursor: pointer;
}

.review-item .site-logo {
    width: 6rem;
    height: 5rem;
    background-color: #ffffff;
    border-radius: 10px;
}

.score.review {
    width: 8rem;
    height: 5rem;
}

.agoda {
    background: url('/public/detail/agoda.png') no-repeat center / contain;
}

.tripcom {
    background: url('/public/detail/tripcom.png') no-repeat center / contain;
}

.jyaran {
    background: url('/public/detail/jyaran.png') no-repeat center / contain;
}

.googlePlace {
    background: url('/public/detail/googlePlace.png') no-repeat center / contain;
}

.tripadvisor {
    background: url('/public/detail/tripadvisor.png') no-repeat center / contain;
}
.comment-svg {
    background: url('/public/detail/comment.svg') no-repeat center / contain;
    width: 2.2rem;
    height: 2.2rem;
}
#comment-num::after {
    content: '개';
}
.today-ranku-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 5rem;
    height: 2.8rem;
    color: #fff;
}
.today-ranku-detail::before {
    content: url('/public/detail/today-ranku-left.svg');
    width: 1.2rem;
    height: 1.9rem;
}
.today-ranku-detail::after {
    content: url('/public/detail/today-ranku-right.svg');
    width: 1.2rem;
    height: 1.9rem;
}

/* ============================ */
.hotel-description {
    display: -webkit-box;
    /* 플렉스 비슷한 박스로 만들어줌 */
    -webkit-box-orient: vertical;
    /* 세로 방향으로 박스 정렬 */
    -webkit-line-clamp: 2;
    /* 최대 줄 수 */
    overflow: hidden;
    /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis;
    /* ... 표시 */
    line-height: 1.4;
    /* 줄 높이 (선택사항) */
    max-height: calc(1.4em * 2);
    /* 브라우저 호환성 보강 (선택사항) */
}

/* ============================ */
.group-flex-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-flex {
    display: flex;
    gap: 1rem;
}

@media (max-width: 786px) {
    .group-flex {
        flex-direction: column;
    }
}

.group-flex .group {
    flex: 1;
    display: flex;
    min-height: 4.6rem;
    max-height: 4.6rem;
    justify-content: space-between;
    align-items: center;
    border: none;
    outline: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 1.2rem 2rem;
}

.group.best {
    outline: 2px solid #784aff;
    outline-offset: -1px;
}

.group.full {
    background-color: #000000;
    color: #ffffff;
}

.group-name {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-align: center;
}

.ranku-noback-svg {
    content: url("/public/favi-noback.svg");
    width: 2.8rem;
    height: 2.8rem;
}

.banner-row {
    display: none;
    width: 100%;
    height: 12rem;
    border-radius: 10px;
    overflow: hidden;

}

.banner-row div {
    width: 100%;
    height: 100%;
    background: url('/public/banner/ago-1080row.png') no-repeat center / contain;
}

@media (max-width: 1080px) {
    .photo-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 2rem 2rem 2rem;
    }

    .photo-section {
        position: inherit;
        width: 100vw;
        min-width: 375px;
        height: calc((100vw / 4) * 3);
        min-height: 280px;
        left: -2rem;
        border-radius: 0;
    }

    .photo-card.thumbnail {
        width: 100vw;
    }

    .photo-mini-section {
        display: none;
    }

    #nav-prev-warpper {
        margin-bottom: 1.4rem;
    }

    .item-head-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-warpper {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .score {
        width: 7.2rem;
        height: 4.6rem;
    }

    .price-list-warpper {
        flex-direction: column;
        height: auto;
    }

    .price-list-warpper .price-list {
        flex: unset;
        max-width: 42rem;
        min-width: 33.5rem;
    }

    .more-price {
        width: calc(100% - 4rem);
    }

    .content-warpper {
        gap: 4rem;
    }

    .banner-row {
        position: inherit;
        border-radius: 0;
        left: -2rem;
        width: 100vw;
        height: 12rem;
        background: url('/public/banner/ago-768row.png') no-repeat center / contain;
    }

    .price-list.active {
        height: 49.6rem;

        ol {
            height: 36.4rem;
        }
    }
}

@media (max-width: 660px) {}

@media (max-width: 500px) {
    .banner-row {
        position: inherit;
        border-radius: 0;
        left: -2rem;
        width: 100vw;
        height: 5.9rem;
        min-width: 375px;
        background: url('/public/banner/ago-375row.png') no-repeat center / cover;
        ;
    }
}

/* ============================ */
.content-navigation-wrapper {
    position: sticky;
    z-index: 3;
    top: 0;
    scroll-margin-top: 50px;
    box-shadow: 10px 0 0 0 rgba(255, 255, 255, 1),   /* 오른쪽 */
    -10px 0 0 0 rgba(255, 255, 255, 1);  /* 왼쪽 */
}
.content-navigation {
    width: 100%;
    height: 6rem;
    display: flex;
    background-color: #ffffff;
    justify-content: center;
    display: flex;
}
.content-navigation a{
    flex: 1;
    text-align: center;
    color: #585858;
    border-bottom: 2px solid #d7d7d7;
    cursor: pointer;
    transition: all .2s ease;
}

.content-navigation a.active{
    font-weight: bold;
    color: #000000;
    border-bottom: 2px solid #000000;
}
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.today-traffic {
    display: none;
    justify-content: center;
    align-items: center;
    width: 26.6rem;
    height: 3.6rem;
    background-color: #e53935;
    padding: 0 1rem;
    margin-bottom: 2rem;
    gap: .4rem;
    border-radius: 10px;
}
.update-timer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 18.8rem;
    height: 3.4rem;
    border-radius: 30px;
    background-color: #111111;
    text-align: center;

}
.update-timer.shaking {
    animation: tilt-shaking 1s forwards;
}
.update-timer-fire-svg {
    content: url('/public/detail/update-timer-fire.svg');
    min-width: 12px;
    min-height: 16px;
}
.shine-btn {
    position: relative;
    width: 30rem;
    height: 5rem;
    background: #FF6B00;
    color: #fff;
    border: none;
    cursor: pointer;
    overflow: hidden;
}
.shine-btn span {
    color: #fff;
}
.shine-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 100%;
    /* 폭 확 줄이기 */
    height: 100%;
    background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
        /* 조금 더 투명하게 */
    transparent 100%);
    transform: skewX(-50deg);
    opacity: 0;
    pointer-events: none;
}
.shine-btn-back {
    display: none;
}
.bottom-fix-section {
    position: sticky;
    width: 100vw;
    bottom: 0;
    height: 8rem;
    display: flex;
    background-color: #ffffff;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.bottom-fix-section .go-agoda-warpper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.go-agoda {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 850px;
}

/* hover 시 이동 */
.shine-btn:hover {
    background: #111111;
    .shine-btn-back {
        display: block;
    }
    .shine-btn-front {
        display: none;
    }
}

.shine-btn.shining::after {
    animation: shine 1s ease forwards;
}

.detail-thunder-svg {
    content: url('/public/detail/detail-thunder.svg');
    min-width: 13px;
    min-height: 1.9rem;
    display: flex;
    align-items: center;
}

@keyframes tilt-shaking {
    0%   { transform: translateX(-50%) rotate(0deg); }
    25%  { transform: translateX(-50%) rotate(2deg); }
    50%  { transform: translateX(-50%) rotate(0deg); }
}
@keyframes shine {
    0% {
        left: -40%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 140%;
        opacity: 0;
    }
}
@media (max-width: 600px) {
    .go-agoda div{
        display: none;
    }
    .go-agoda a {
        flex: 1;
    }
    .shine-btn {
        width: 100%;
    }
}
#go-agoda-discount::before {
    content: unset !important;
}