﻿
:root {
    /* Colors */
    --body-color: rgba(255, 255, 255, 1);
    --title-text-color: #9e9e9e;
    --box-shadow: -4px -1px 7px 0px rgba(7, 20, 35, 0.2);
    --smart-color: #3662db;
    --green-color: #28a745;
    --rich-green: #165443;
    --red-color: red;
    /* Map Stage */
    --stage-border-color: #ccc;
    --stage-background-color: #f6f5f5;
    --stage-default-color: #676e76;
    --stage-clicked-color: #00aea4;
    --stage-explanation-text-color: #676e76;
    /* upload */
    --primary-color: rgb(85, 125, 101);
    /* --primary-dark-color: #39e8d4; */
    --white-color: #fff;
    --black-color: black;
    --black-10-color: rgba(0, 0, 0, 0.1);
    --black-20-color: rgba(0, 0, 0, 0.1);
    --black-50-color: rgba(0, 0, 0, 0.5);
    --transition: all 300ms ease-in-out;
    /* output */
    --each-keyword-output-color: #75bbee;
    --keyword-color: #888;
    /* validation */
    --error-message-color: red;
    /* sub topic map */
    --map-border-color1: rgb(255, 98, 0);
    --map-border-color2: rgb(0, 179, 255);
    --map-background-color1: rgb(255, 162, 96);
    --map-background-color2: rgb(135, 221, 252);
    --uploaded-file-border: rgb(73, 73, 73);
    --uploaded-file-border-hover: rgba(176, 196, 246, 0.1);
    --search-input-border: gray;
    --access-time-btn-color: black;
    --access-time-close: #aaa;
    --access-table-border: rgb(126, 126, 126);
    --image-slider-background: #b1bab7;
    --explanation-title-color: #252525;
    /* sub topic edit */
    --save-edit-button: rgb(62, 150, 252);
    --save-edit-button-hover: rgb(213, 242, 252);
    --sub-topic-modal-btn-border: green;
    --save-sub-topic-button: rgb(236, 243, 36);
    --save-sub-topic-button-close: rgb(0, 255, 30);
    /* location Opinion */
    --stars-default-color: #ccc;
    --stars-active-color: #f9ca1f;
    --card-background: rgba(249, 251, 255, 1);
}

.container {
    max-width: 100% !important;
    padding:0 !important;
}

.detailsContainer {
    position: relative;
    min-width: 100%;
    min-height: 100vh;
    background: var(--body-color);
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction:column;
    align-items: center;
}

.contentState {
    padding: 5px 10px;
    border-radius: 15px;
    color: var(--white-color);
    margin-left: 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size:13px;
}

/* number input style */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.indexLocationContent {
    width: 78%;
}

.indexLocationContent .imageSliderContainer {
    background-color: var(--white-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
}

.imageSliderContainer .image_slider {
    width: 100%;
    height: 800px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.carousel {
    min-height: 100%;
}

#carouselExampleIndicators {
    min-height: 150px;
}

.carousel-item img {
    width: 100%;
    height: 800px;
    border-radius: 10px;
    object-fit:cover;
}

.carousel-item video {
    width: 100%;
    height: 530px;
    border-radius: 10px;
    object-fit:cover;
}

.provinceName {
    display: flex;
    padding: 15px 15px;
    background: var(--white-color);
    align-items: center;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-bottom: 5px;
}

.subTopicOutputDiv > .imageContainer img {
    border-radius: 5px;
    margin: 10px;
    object-fit: cover;
}

.imageContainer {
    width: 272px;
    height: 249px;
}

.imageContainer img {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

#name_output {
    font-size: 28px;
    word-wrap: break-word;
    white-space: normal;
}

.explanation {
    min-height: 260px;
    background-color: var(--white-color);
    border-radius: 4px;
    padding: 20px;
    white-space: normal;
    text-align: justify;
    font-size:17px;
}
#subtopic_output,
#subTopicOutputDiv {
    text-align: justify;
}
.explanation .title {
    color: var(--explanation-title-color);
    font-size: 20px;
    font-weight: 600;
    margin: 10px;
}
#subTopicMap{
    display:flex;
    flex-wrap:wrap;
}
#stageOneExp {
    text-align: justify;
    margin: 5px;
    white-space: normal;
    word-wrap: break-word;
}

.card_title_container {
    display: flex;
    padding: 5px 0;
}

.card_title {
    margin-top:5px;
    padding: 10px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid var(--black-color);
}

.card_exp {
    padding: 4px;
    white-space: normal;
}

.each_card_title {
    min-width: 60px;
    display: flex;
    justify-content: center;
    margin-left: 10px;
    margin-bottom:5px;
    text-decoration: none;
    color: var(--text-editor-border-text-color);
    background: inherit;
    border-radius: 20px;
    padding: 5px;
    border: 1px solid var(--map-border-color1);
    font-size: 17px;
}

    .each_card_title:nth-child(2n) {
        border: 1px solid var(--map-border-color2);
    }

    .each_card_title:hover {
        background: var(--map-background-color1);
        color: var(--text-editor-border-text-color);
    }

    .each_card_title:nth-child(2n):hover {
        background: var(--map-background-color2);
        color: var(--text-editor-border-text-color);
    }

#subtopic_output .each_card {
    background-color: inherit;
}

#subtopic_output .textinputs {
}
#subTopicMap{
    display:flex;
}
.textinputs {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
}

#subtopic_output .sub_image img {
    border-radius: 10px;
}

/* location Opinion */
.locationDetailOpinionWrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.locationDetailOpinionContainer {
    background: var(--white-color);
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.locationDetailOpinionTitle {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.locationDetailOpinionRate {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

    .locationDetailOpinionRate label {
        margin-bottom: 10px;
        font-weight: 600;
    }

    .locationDetailOpinionRate .stars {
        display: flex;
        align-items: center;
        gap: 15px;
    }

.stars i {
    color: var(--stars-default-color);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .stars i:hover {
        color: var(--stars-active-color);
    }

    .stars i.active {
        color: var(--stars-active-color);
    }

.locationDetailOpinionName {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    margin-bottom: 30px;
}

.locationDetailOpinionText {
    resize: none;
    outline: none;
    border: 2px solid var(--primary-color);
    width: 100%;
    height: 300px;
    border-radius: 10px;
    padding: 8px;
    font-size: 15px;
}

.locationDetailOpinionName input {
    width: 300px;
    height: 45px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    margin-top: 10px;
    padding: 8px;
    outline: none;
    font-size: 15px;
}

.locationDetailSendButton button {
    margin-top: 35px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    height: 40px;
    width: 100px;
    background: var(--primary-color);
    color: var(--white-color);
    margin-right: auto;
    margin-left: 0;
}

.locationDetailCommentsContainer {
    display: flex;
    flex-direction: column;
    min-height: 100px;
    padding: 10px;
    margin-top: 20px;
}

.locationDetailEachComment {
    border: 2px solid var(--black-20-color);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.locationDetailEachCommentRateAndDate {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.locationDetailEachCommentRateAndDate img {
    width: 25px;
    height: 25px;
}

.locationDetailEachCommentUserName {
    margin-bottom: 10px;
}

.locationDetailEachCommentText {
    white-space: normal;
}

/* locationCards */
.provinceAttractions .provinceAttractionsTitle {
    font-size: calc(14px + (18 - 14) * ((100vw - 300px) / (1600 - 300)));
}

.provinceAttractionsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--green-color);
    margin-top: 78px;
    padding-bottom: 5px;
    font-weight: 600;
}

.provinceAllAttractionsButton {
    border: none;
    color: var(--white-color);
    background: var(--rich-green);
    border-radius: 10px;
    padding: 4px 10px;
    box-shadow: var(--box-shadow);
}

.eachLocationCard {
    background-color: var(--card-background);
    border-radius: 10px;
    display: flex;
    margin-bottom: 40px;
}

    .eachLocationCard:first-child {
        margin-top: 30px;
    }

.eachLocationCard {
    display: flex;
    height: 270px;
    width: 100%;
}

    .eachLocationCard:hover {
        box-shadow: var(--box-shadow);
    }

.eachLocationCardImage {
    width: 28%;
    height: 100%;
}

    .eachLocationCardImage img {
        width: 100%;
        height: 100%;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

.eachLocationCardDetails {
    color: var(--black-text-color);
    font-size: 14.5px;
    width: 72%;
    text-align: right;
    position: relative;
}

.locationNameAndRate {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eachLocationCardDetails .locationName {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 20px;
    white-space: normal;
    word-wrap: break-word;
    text-align: right;
}

.locationRate {
    background: var(--green-color);
    padding: 5px 10px;
    border-radius: 5px;
}

.locationAddress {
    padding: 10px;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
}

.eachLocationCardDetailsBox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-bottom: 38px;
    padding: 13px;
}

.eachLocationCardDetailsBox .title {
    color: var(--black-50-color);
}

.locationPhone,
.locationPrice,
.locationVisitTime {
    margin: 5px;
}

.locationPropertyAndMoreButton {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    border-top: 1px solid var(--black-20-color);
    padding: 0px 15px 0px 0;
    width: 100%;
}

.locationProperty {
    display: flex;
    justify-content: space-between;
}

.locationPropertyIcon {
    font-size: 23px;
    color: var(--black-50-color);
    margin-left: 20px;
}

.moreButton {
    height: 100%;
    padding: 10px;
    background: var(--red-color);
    display: flex;
    align-items: center;
    border-bottom-left-radius: 10px;
    color: var(--white-color);
    cursor: pointer;
    margin-left:0;
    margin-right:auto;
}

.moreButton i {
    margin-right: 3px;
}

.locationCardsFilter {
    width: 25%;
    background: inherit;
    border: 2px solid var(--black-10-color);
    margin-top: 30px;
    margin-right: 15px;
    height: 725px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow-y: auto;
    z-index: 10;
}

.contentInformation {
    display: flex;
    justify-content: space-between;
    padding: 10px 2px;
    font-size: 17px;
}

.writerName,
.writeDate {
    margin-bottom: 5px;
}

.dateWrapper{
    display:flex;
    flex-direction:column;
}
/* responsive */
@media (max-width: 680px) {
    .eachLocationCard {
        flex-direction: column;
        height: auto;
    }

    .eachLocationCardImage {
        width: 100%;
        height: 265px;
    }

    .eachLocationCardImage img {
        border-bottom-right-radius: 0px;
        border-top-left-radius: 10px;
    }

    .eachLocationCardDetails {
        width: 100%;
    }
}

@media (max-width: 457px) {
    .indexLocationContent {
        width: 100%;
    }

    .container {
        padding: 5px;
    }

    .explanation {
        padding: 5px;
    }
}


@media(max-width:425px){
    .carousel-item img,
    .imageSliderContainer .image_slider {
        height: 250px;
    }
}