main {
    padding:2rem 0;
}

section#sailboatTitle {
    padding:2rem 0 1rem 0;
}
section#sailboatTitle > article {

}

section#sailboatTitle > article > div {
    display:flex; gap: 1rem; align-items: center;

}
section#sailboatTitle > article > div > span {
    font-weight: 600;
}
section#sailboatTitle > article > div > span:first-child {
    color: #3d83e7;
    font-size: .875rem;
    padding:0 1rem;
    border:1px solid #3d83e7;
    border-radius: 1rem 1rem;
}
section#sailboatTitle > article > h3 {
    font-size:2.4444rem;
}
section#sailboatImg {
    display: grid;
    grid-template-columns: 58.33333% 33.33333%;
    justify-content: space-between; /* 남는 공간은 안 씀 */
}
section#sailboatImg > article#sailboatImg {
    width:100%;
    overflow: hidden;
}
section#sailboatImg > article#sailboatImg > div.swiper {
    width:100%; overflow: hidden;
    aspect-ratio: 1/.6;
}
section#sailboatImg > article#sailboatBn {
    display:flex; flex-direction:column; gap: 2rem; justify-content: space-between;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn {
    padding:2rem 2rem;
    background: #3d85e5;
    color:#FFF;
    border-radius: 10px 10px 3rem 10px;
    display:flex;align-items:center;justify-content:center;flex-direction:column; gap: 2rem;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn > div.sailboatBn {
    font-size: 1.8889rem;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn > div.sailboatBn > h3 {
    font-weight: 600;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn > div.sailboatBnBtn {
    cursor: pointer;
    border:1px solid #FFF; padding:.25rem 1rem; font-size: .875rem; border-radius: 999px;
    transition: all .3s;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn > div.sailboatBnBtn:hover {
    color:#212121;
    border:1px solid #212121;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn2 {
    display:flex; flex-direction:column; gap: 1rem;
}
section#sailboatImg > article#sailboatBn > div#sailboatBn2 > div.sailboatBn2 {
    padding:2rem 2rem;
    background: #ebebeb;
    color:#666;
    display:flex;align-items:center;justify-content:center;flex-direction:column; gap: 2rem;
}


.swiper-slide { aspect-ratio: 4/3 }
.swiper-slide > img { width:100%; height:100%; object-fit: cover; border-radius: 1rem 1rem; }

div.sailboatTitle {
    min-height: 10rem;

}
div.sailboatTitle > span {
    color:#6a6a6a;
    border:1px solid #6a6a6a;
    padding:2px 5px;
    border-radius: 1rem 1rem;
    font-weight: 400;
}
div.sailboatTitle > span:first-child {
    color:#3d83e7;
    border:1px solid #3d83e7;
}
div.sailboatTitle > h3 {
    font-size:2.3158rem;
    padding:.5rem 0 0 0;
}
div.sailboatsTitle {
    padding-bottom: .5rem;
}
div.sailboatsTitle > p {
    font-weight: 600;
    padding:.5rem 0;
}
div.sailboatsTitle > p > span {
    font-weight: 400;
}


@media (max-width: 992px) {
    section#sailboatImg {
        grid-template-columns:1fr;
    }
}
@media (max-width: 768px) {
    section#sailboatImg {
        grid-template-columns:1fr;
    }
}
@media (max-width: 420px) {
    section#sailboatImg {
        grid-template-columns:1fr;
    }
}
.ui-box {
    position: relative;
    z-index: 1;
}

.select-box {
    color:#1e1e1e;
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 600;
}
.count-box {
    border-top: 1px solid #ececec;
}
.count-box, .select-box {
    color:#1e1e1e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid #ececec;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-minus, .btn-plus {
    width: 32px;
    height: 32px;
    font-size: 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
}
.reserve-button {
    width: 100%;
    padding: 14px;
    font-size: 1.2632rem;
    border: none;
    color: #fff;
    background: linear-gradient(to right, #3a8ef6, #4dd4ac);
    border-radius: 8px;
    margin-top: 20px;
}
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
.modal-bottom {
    display: none;
    position: fixed; bottom: 0; left: 0; width: 100%; background: #fff;
    z-index: 2999;
    border-radius: 16px 16px 0 0;
    transition: bottom 0.3s ease;
}
.modal-bottom.show {
    display: block;
}
.modal-content {
    padding: 20px;
}
/* 기본 레이아웃 */
.styled-modal {
    display: none;
    position: absolute;
    top: 47px; /* select-box 바로 아래 */
    left: 0;
    padding:2rem 2rem;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 100;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    padding: 20px;
}

.time-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 1rem;
}

.time-option:hover {
}

.label-title {
    font-size: 1rem;
    font-weight: 500;
    display: flex; flex-direction: column;
}

.label-time {
    font-size: 14px;
    color: #555;
}

.custom-check {
    width: 22px;
    height: 22px;
    border: 2px solid #000;
    border-radius: 4px;
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}

.time-option input[type="checkbox"] {
    display: none;
}

.time-option input[type="checkbox"]:checked + .label-title + .custom-check::after {
    content: "✔";
    font-size: 14px;
    color: #000;
    position: absolute;
    top: 1px;
    left: 4px;
    transform: scale(1.2);
}

.modal-close-box {
    display: flex;
    justify-content: flex-end;
}
/* 닫기 버튼 */
.modal-close {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.modal-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

div.sailboatSummary {
    margin-top: 1rem;
    background: #f4f4f4;
    border-radius: 8px;
    padding:1rem 1rem;
    color:#1e1e1e;
    font-size:0.8421rem;
    font-weight: 500;
    line-height: 2rem;
}

div#totAmountBox {
    width:100%;
    color:#2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid #ececec;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}
div#totAmountBox > strong {
    font-size:1.5789rem;
}
