/* FONT ===================================================== */

@font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicR.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicR_OTF.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicL.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicL_OTF.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicEL.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicEL_OTF.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicT.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicT_OTF.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicB.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicB_OTF.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }
  
  /*  Hanwha fonts ===================================================== */
  
  @font-face {
    font-family: 'Hanwha';
    src: url('/QR/fonts/HanwhaR.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Hanwha';
    src: url('/QR/fonts/HanwhaB.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }

/* ================================================================================================================================ */
/* Review List Container ================================================================================================================================ */
/* ================================================================================================================================ */

.review-list-container {
    width: 100%;
    height: auto;
    margin-top: 20px;
    padding: 0 15px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.review-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.review-item:hover {
    background-color: #f9f9f9;
}

.review-content-area {
    display: flex;
    /* flex-direction: column; */
    width: 100%;
    gap: 10px;
    padding: 0 15px;
}

.review-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.star-rating-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 6px;
}

.review-title-and-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
}

.email-date-image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.star-rating-display .star {
    font-size: 18px;
    color: #ccc;
    line-height: 1;
}

.star-rating-display .star.filled {
    color: #ff0000;
}

.review-title {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    margin-bottom: 4px;
}

.review-text {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 13px;
    display: inline;
}

.review-author-info {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-author-info span {
    display: inline-block;
}

.review-photo-area {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.review-photo-area img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 15px;
    gap: 4px;
}

.pagination a {
    color: #333;
    text-decoration: none;
    padding: 6px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 13px;
    min-width: 32px;
    text-align: center;
}

.pagination a.arrow {
    font-weight: bold;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #555;
    color: white;
    border-color: #555;
}

/* ================================================================================================================================ */
/* Review Modal ================================================================================================================================ */
/* ================================================================================================================================ */

.review-modal-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.review-modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.review-modal-header h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
}

.review-form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px dashed #ccc;
    padding: 0 0 12px 0;
    gap: 8px;
}

.review-form-group label {
    width: auto;
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.label-and-question-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    margin-right: 0;
    margin-bottom: 4px;
}

.photo-upload-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    margin-left: 0;
}

.review-form-group input[type="text"],
.review-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.review-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.author-info span {
    margin-right: 0;
    color: #333;
    font-size: 12px;
}

.star-rating-input {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-rating-input .star {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input .star:hover,
.star-rating-input .star.selected {
    color: #ff0000;
}

.satisfaction-text {
    margin-left: 0;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

.photo-upload-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.upload-btn-label {
    cursor: pointer;
}

.upload-btn {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #ccc;
    border-radius: 4px;
    background: #FAFAFA;
}

.image-preview-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.image-preview-item {
    position: relative;
}

.image-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-image-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: black;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.tooltip-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.tooltip-icon-container svg {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.tooltip-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    width: 280px;
    height: auto;
    min-height: 60px;
    padding: 12px;
    color: #000;
    font-family: 'HanwhaGothic', sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 250;
    line-height: 150%;
    background: #fff;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    z-index: 1001;
}

.tooltip-popup.show {
    display: block;
}

.tooltip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -1px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.review-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: #fff;
    flex-wrap: wrap;
}

.review-modal-footer button {
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
    flex: 1;
    min-width: 80px;
}

.review-modal-footer .submit-btn {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* ================================================================================================================================ */
/* Login Modal ================================================================================================================================ */
/* ================================================================================================================================ */

.login-modal-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.login-modal-content .review-modal-header {
    text-align: left;
    position: relative;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.close-login-modal-btn {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 24px;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

.login-modal-body p {
    font-size: 13px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
    text-align: left;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    cursor: pointer;
    gap: 8px;
}

.social-login-btn img {
    width: 20px;
    height: 20px;
}

/* ================================================================================================================================ */
/* Event Modal Styles ================================================================================================================================ */
/* ================================================================================================================================ */

.event-modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 10px;
}

.event-modal-content {
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    height: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.event-modal-header {
    position: relative;
    padding: 10px;
    padding-bottom: 0;
}

.close-event-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.close-event-modal-btn:hover {
    color: #333;
}

.event-modal-body {
    background-color: #fff;
    padding: 15px;
}

.event-modal-image-container {
    width: 100%;
    margin-bottom: 15px;
}

.event-modal-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.event-info-section {
    text-align: left;
}

.event-period {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.event-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.event-modal-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
    height: auto;
}

.event-participation-info {
    background-color: #f8f9fa;
    width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.5;
}

.event-participation-info p {
    margin-bottom: 6px;
}

.event-participate-btn {
    width: 100%;
    color: #333;
    border: solid 1px #ccc;
    padding: 12px;
    background: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.event-participate-btn:hover {
    background-color: #e6cc00;
}

/* ================================================================================================================================ */
/* Review Detail Modal Styles ================================================================================================================================ */
/* ================================================================================================================================ */

.review-detail-modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 10px;
}

.review-detail-modal-content {
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    height: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.review-detail-modal-header {
    position: relative;
    padding: 10px;
    padding-bottom: 0;
}

.close-review-detail-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.close-review-detail-modal-btn:hover {
    color: #333;
}

.review-detail-modal-body {
    background-color: #fff;
    padding: 15px;
}

.review-detail-header {
    margin-bottom: 15px;
}

.review-detail-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.review-detail-rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.review-detail-rating .star-rating-display {
    display: flex;
    gap: 3px;
}

.review-detail-rating .star-rating-display .star {
    font-size: 16px;
    color: #ddd;
}

.review-detail-rating .star-rating-display .star.filled {
    color: #ff4444;
}

.review-detail-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.review-detail-content {
    margin-bottom: 15px;
}

.review-detail-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    white-space: pre-wrap;
}

.review-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.review-detail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.review-detail-image:hover {
    transform: scale(1.05);
}