/* 여기서부터는 Detail 페이지를 위한 CSS */

#detailContainer {
    max-width: 1200px;
    /* 박스의 최대 폭을 화면의 폭에 맞춤 */
    background-color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.image-container-left {
    max-width: 400px;
    margin: auto;
    text-align: center;
}

.image-container-left img {
    width: 75%;
    padding: 20px;
}

.image-container-right {
    max-width: 800px;
    margin: auto;
    padding: 10px;
    display: flex;
    gap: 5px !important;
    /* flex gap 속성 재정의 */
    flex-direction: column;
}

.vendor-detail {
    margin: 5px 0;
}

.drt-rentalcar-ui #optionDescription {
    font-size: 0.93em;
    color: #888;
}

/* 모달의 최대 폭 설정 */
.modal-dialog.modal-xl {
    max-width: 800px;
    /* 모달 최대 폭을 800px로 설정 */
}

/* 모달 내 이미지 중앙 정렬 */
.modal-body {
    display: flex;
    /* Flexbox를 사용하여 내용을 정렬 */
    justify-content: center;
    /* 수평 중앙 정렬 */
    align-items: center;
    /* 수직 중앙 정렬 */
    text-align: center;
    /* 텍스트 중앙 정렬, 이미지에는 필요 없지만 내용이 있을 경우를 대비 */
}

/* 이미지 스타일 */
.modal-body img {
    max-width: 100%;
    /* 이미지가 modal-body를 넘지 않도록 설정 */
    height: auto;
    /* 이미지의 원래 비율을 유지 */
}

.drt-rentalcar-ui .text-muted {
    font-weight: 500;
}

/* 보험 옵션 레이블 */
.drt-rentalcar-ui .insurance_tit {
    padding-top: 20px;
    padding-bottom: 10px;
    font-weight: 600;
}

.option-label {
    display: flex;
    align-items: center;
    padding-top: 5px;
    margin-bottom: 10px;
    gap: 7px;
}

.option-label h4 {
    margin: 0 0 0 10px;
    /* Adjust spacing as needed */
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coverage-left {
    display: flex;
    align-items: center;
}

.coverage-right {
    text-align: right;
}

/* 보험 표기 영문 스타일 */
.drt-rentalcar-ui .coverage-item .eng-text {
    font-size: 80%;
    /* 영문 텍스트 크기를 한글 대비 80%로 축소 */
    display: inline-block;
}

/* 면책금 정보 스타일 */
.drt-rentalcar-ui .coverage-item .excess-info {
    font-size: 100%;
    /* 면책금 텍스트 크기 */
    color: #0066cc;
    /* 면책금 정보를 파란색으로 표시 */
    display: inline-block;
    margin-left: 2px;
}

details {
    border-top: 1px solid #ddd;
    margin-top: 4px;
}

.toggle_btn {
    padding-top: 6px;
    padding-left: 4px;
}

.coverage-list {
    margin-top: 4px;
    padding-left: 12px;
    padding-top: 4px;
}

.additional-description {
    padding-bottom: 10px;
    margin-top: -4px;
}

.drt-rentalcar-ui .additional-description h6 {
    font-size: 15px;
    color: #777;
    font-weight: 400;
    line-height: 1.6;
}

#promotionBox {
    display: flex;
}

.promoDetail {
    padding: 10px;
    background-color: #f9fbfa;
    border: 1px solid #7dc1a2;
    border-radius: 10px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drt-rentalcar-ui .promoDetail p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0px;
}

.promoDetail.promo-disabled {
    background-color: #e0e0e0;
    border-color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.promoDetail.promo-disabled:hover {
    background-color: #e0e0e0;
}

.fleet-image {
    max-width: 300px;
}

/* 차량 타이틀 표시 개선 - 모바일/데스크탑 모두 적용 */
.car-title-container {
    display: flex;
    flex-direction: column;
}

.drt-rentalcar-ui .car-title-ko {
    font-size: var(--drt-font-card);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.drt-rentalcar-ui .car-title-en {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

/* 차량 모델명에 대한 여백 완전 재정의 */
.drt-rentalcar-ui h6.vehicle-model-name {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
    font-size: 16px;
}

/* 차량 옵션 정보에 대한 여백 완전 재정의 */
.drt-rentalcar-ui .carOption {
    margin-top: 2px !important;
    margin-bottom: 15px !important;
    padding-top: 0 !important;
    line-height: 1.3 !important;
}

/* 버튼 상단 여백 추가 */
#toSearchPage,
.btn-primary.btn-lg {
    margin-top: 10px !important;
}

@media (max-width: 1000px) {
    .paid_info_fix {
        margin-bottom: 66px;
    }
}

@media (max-width: 768px) {

    /* 모바일 화면에서 레이아웃 변경 (이미지 2와 같은 형태로) */
    #rt-images {
        display: flex;
        flex-direction: row !important;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    /* 이미지 컨테이너 조정 */
    .image-container-left {
        width: auto !important;
        max-width: none !important;
        order: 2;
        flex: 1;
        padding-right: 10px;
    }

    /* 차량 이미지 크기 조정 */
    .image-container-left img {
        width: 100% !important;
        max-width: 150px !important;
        height: auto;
        padding: 0 !important;
    }

    /* 로고 및 텍스트 컨테이너 조정 */
    .image-container-right {
        width: auto !important;
        max-width: none !important;
        order: 1;
        padding: 0 !important;
        flex: 0 0 auto;
        margin-right: 10px;
        align-items: flex-start !important;
    }

    /* 로고 크기 조정 */
    .image-container-right img[width="60"] {
        width: 50px !important;
        margin-right: 5px;
    }

    /* 차량 정보 컨테이너 */
    .car-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }

    /* 차량 타이틀 간격 조정 */
    .car-title-container {
        margin-top: 0 !important;
    }

    /* 한글 차량명 스타일 */
    .drt-rentalcar-ui .car-title-ko {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }

    /* 영문 차량명 스타일 */
    .drt-rentalcar-ui .car-title-en {
        font-size: 13px !important;
    }

    /* 차량 모델명 */
    .drt-rentalcar-ui .vehicle-model-name {
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        font-size: 16px !important;
    }

    /* 차량 옵션 정보 */
    .drt-rentalcar-ui .carOption {
        margin-top: 2px !important;
        margin-bottom: 10px !important;
        font-size: 14px !important;
    }

    /* 버튼 크기 및 여백 조정 */
    .drt-rentalcar-ui #toSearchPage,
.drt-rentalcar-ui .btn-primary.btn-lg {
        margin-top: 5px !important;
        font-size: 15px !important;
        padding: 8px 16px !important;
    }

    /* 보험 항목 컨테이너를 flex-wrap으로 설정하여 내용이 넘칠 때 줄바꿈 */
    .drt-rentalcar-ui .coverage-item .include_tx {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        line-height: 1.5;
    }

    /* 뱃지를 항상 한 줄에 표시 */
    .coverage-item .badge {
        margin-right: 4px;
        margin-bottom: 2px;
    }

    /* 영문 텍스트를 새 줄에 표시 */
    .drt-rentalcar-ui .coverage-item .eng-text {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 1px;
        margin-bottom: 0;
        line-height: 1.3;
    }

    /* 면책금 정보를 영문과 같은 줄에 표시 (인라인으로 유지) */
    .drt-rentalcar-ui .coverage-item .excess-info {
        display: inline;
        margin-left: 4px;
        line-height: 1.3;
    }

    /* 포함사항 간 간격 줄이기 */
    .coverage-div {
        margin-bottom: 4px;
    }

    /* 모바일에서는 기본적으로 추가 옵션 섹션 숨김 */
    #additionalOptions {
        display: none;
    }

    /* 토글이 열려있을 때만 보이도록 설정 */
    #toggle_open.on #additionalOptions {
        display: block;
    }
}

@media (max-width: 600px) {
    .vendor_logo_box {
        flex-direction: column;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .vendor-logo {
        margin-right: 0 !important;
    }
}

@media (max-width: 500px) {
    .vendor-container {
        padding: 10px 8px;
    }

    .coverage-list {
        padding-left: 8px;
        padding-right: 4px;
    }

    /* 모바일에서 보험 항목 간격 더 줄이기 */
    .coverage-div {
        margin-bottom: 2px;
        padding-bottom: 2px;
    }

    /* 이미지 컨테이너 추가 조정 */
    .image-container-left img {
        max-width: 120px !important;
    }

    .image-container-right img[width="60"] {
        width: 40px !important;
    }
}
