/* Global Styles */
img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

@font-face {
    font-family: 'JoseonGulim';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGu.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OngleipParkDahyeon';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/Ownglyph_ParkDaHyun.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

:root {
    --primary-pink: #FF69B4;
    --light-pink: #FFB6C1;
    --bg-pink: #FFE4E1;
    --text-color: #333333;
    --label-color: #4A4A4A;
    /* Dark Gray for Labels */
    --white: #FFFFFF;
    --border-width: 4px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'JoseonGulim', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background: url('./img/background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

/* Layout */
.layout-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 85vh;
    height: auto;
    padding: 1.5rem;
    box-sizing: border-box;
    gap: 0;
    align-items: stretch;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Sidebar */
.sidebar {
    width: 200px;
    padding: 1.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 30px;
    height: fit-content;
    box-sizing: border-box;
    z-index: 1;
}

.sidebar-logo {
    margin-bottom: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.sidebar-logo-img {
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
}

.nav-item {
    position: relative;
    background-color: #ff9acd;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 18px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #FF1493;
    box-shadow: 0 5px 0 #FF1493;
    transform-style: preserve-3d;
    cursor: pointer;
}

.nav-item::before {
    content: '';
    position: absolute;
    right: -35px;
    top: 50%;
    width: 40px;
    height: 10px;
    background-color: #FF1493;
    pointer-events: none;
    transform: translateY(-50%) translateZ(-1px);
}

.nav-item:hover {
    transform: translateY(2px) translateZ(0);
}

.nav-item.active {
    background-color: #aed6ff;
    transform: translateY(3px) translateZ(0);
    box-shadow: 0 2px 0 #FF1493;
}

.nav-item .dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    transform: translateZ(1px);
}

.nav-item .dot.left {
    left: 8px;
}

.nav-item .dot.right {
    right: 8px;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Main Container */
.main-container {
    flex: 1;
    background-color: var(--white);
    border: var(--border-width) solid #FF1493;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.sub-tabs {
    display: flex;
    height: 45px;
    padding: 0 2rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.inquiry-title-header {
    display: flex;
    height: 45px;
    padding: 0 2rem;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff008c;
}

.tab {
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #CCC;
    transition: all 0.3s ease;
}

.tab.active {
    color: #888;
    font-weight: 700;
}

.tab.active::after {
    background-color: #aed6ff;
    height: 3px;
    width: 130%;
    left: -15%;
}

.main-content {
    flex: 1;
    padding: 0 5px;
}

.main-footer {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #f20874;
    font-weight: 700;
    text-shadow: 1px 1px 0px white;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.form-title {
    color: #FF1493;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-notice {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 3rem;
    /* Increased spacing between groups */
}

.main-label {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    /* Increased spacing between label and input */
    color: var(--label-color);
    font-size: 1rem;
}

.sub-label {
    font-weight: normal;
    font-size: 0.8rem;
    color: #888;
    margin-left: 5px;
}

.input-container {
    padding-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #FFB6C1;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF1493;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.add-btn,
.remove-btn {
    background-color: #FF1493;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    padding: 0;
    margin-left: 10px;
    vertical-align: middle;
}

.remove-btn {
    background-color: #888;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label,
.checkbox-group label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

/* Image Upload Box */
.image-upload-wrapper {
    display: flex;
    justify-content: flex-start;
}

.image-upload-box {
    width: 150px;
    height: 150px;
    border: 2px dashed #FFB6C1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background-color: #FFF0F5;
    transition: all 0.3s;
}

.image-upload-box:hover {
    border-color: #FF1493;
    background-color: #FFE4E1;
}

.plus-icon {
    font-size: 3rem;
    color: #FFB6C1;
    font-weight: 300;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agreement-text {
    font-size: 0.85rem;
    background-color: #FFF0F5;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background-color: #FF1493;
    color: white;
    border: none;
    box-shadow: 0 4px 0 #C71585;
}

.btn-primary:hover {
    transform: translateY(2px);
}

.btn-secondary {
    background-color: white;
    color: #FF1493;
    border: 2px solid #FF1493;
    box-shadow: 0 4px 0 #FF1493;
}

.btn-secondary:hover {
    transform: translateY(2px);
}

.placeholder-text {
    text-align: center;
    color: #AAA;
    padding: 5rem 0;
}

/* Circle List Grid */
.circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(267px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.circle-card {
    background: white;
    border: 2px solid #f8e1e7;
    border-radius: 20px;
    /* overflow: hidden; Removed to allow ribbon to stick out */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 1rem;
}

.circle-card:hover {
    transform: translateY(-5px);
    border-color: #d63384;
}

.circle-card-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 200px;
    background: #fdfafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f8e1e7;
    border-radius: 18px 18px 0 0;
    /* Added to clip image corners */
}

.circle-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.circle-card-info {
    padding: 1rem;
}

.circle-card-name {
    font-weight: bold;
    color: #d63384;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.circle-card-leaders {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.circle-card-intro {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
}

/* Notice Styles */
.notice-area {
    padding: 0 10px;
    margin-bottom: 2rem;
}

/* 공지사항 테이블 스타일은 하단 전용 섹션에서 통합 관리됩니다. */

.notice-title-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.badge-all {
    background-color: #aed6ff;
}

.badge-circle {
    background-color: #ffb6c1;
}

.badge-visitor {
    background-color: #ffd700;
}

.badge-both {
    background-color: #d8bfd8;
}

.pinned-icon {
    color: #ff1493;
    font-size: 0.8rem;
}

.locked-icon {
    color: #888;
    font-size: 0.8rem;
}

.notice-title-text {
    color: #333;
    font-size: 0.95rem;
}

.notice-date-cell {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    width: 100px;
}

/* notice-detail 관련 스타일은 하단 공지사항 전용 섹션에서 통합 관리됩니다. */

.btn-back:hover {
    background-color: #ff1493;
    color: white;
}

.notice-detail-content {
    line-height: 1.8;
    min-height: 300px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

/* Booth modal usability: allow scroll when content is tall (e.g., CKEditor) */
#booth-modal.modal-overlay {
    /* Let the whole page scroll together with the modal (no separate modal/overlay scroll) */
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    align-items: flex-start;
    padding: 1.5rem 0;
    box-sizing: border-box;
}
#booth-modal .modal-content {
    max-width: 820px;
    width: 95%;
    max-height: none;
    overflow: visible;
}
/* Make images inside booth modal responsive */
#booth-modal img,
#booth-modal .exhibit-html img {
    max-width: 100%;
    height: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid #d63384;
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-header h2 {
    color: #d63384;
    margin: 0;
}

.modal-body {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #444;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Booth Exhibit (출품정보) */
.exhibit-divider {
    height: 1px;
    border-top: 2px dashed #ffb6c1;
    margin: 1.25rem 0 1rem 0;
}
.exhibit-wrap {
    text-align: left;
}
.exhibit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.exhibit-title {
    margin: 0;
    font-size: 1rem;
    color: #d63384;
}
.exhibit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.exhibit-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(214, 51, 132, 0.08);
    border: 1px solid rgba(214, 51, 132, 0.18);
    color: #d63384;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}
.exhibit-link-prepay {
    background: rgba(173, 216, 255, 0.28);
    border-color: rgba(173, 216, 255, 0.6);
    color: #2a6f9b;
}
.exhibit-link-prepay:hover {
    background: rgba(173, 216, 255, 0.36);
}
.exhibit-link-twitter {
    background: rgba(173, 240, 232, 0.28);
    border-color: rgba(173, 240, 232, 0.6);
    color: #1f7e75;
}
.exhibit-link-twitter:hover {
    background: rgba(173, 240, 232, 0.36);
}
.exhibit-link-btn:hover {
    background: rgba(214, 51, 132, 0.12);
}
.exhibit-loading,
.exhibit-empty {
    color: #888;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-align: center;
}
.exhibit-html {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}
.exhibit-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}
.exhibit-action-btn {
    background: #d63384;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
}
.exhibit-action-btn:hover {
    background: #b82a6e;
}
.exhibit-cancel-btn {
    background: #eee;
    color: #666;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
}
.exhibit-editor-wrap {
    text-align: left;
}
.exhibit-editor-label {
    font-weight: bold;
    color: #d63384;
    margin-bottom: 0.4rem;
}
.exhibit-link-inputs {
    display: grid;
    gap: 0.6rem;
}
.exhibit-link-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.6rem;
    align-items: center;
}
.exhibit-link-row-fields {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.6rem;
}
.exhibit-link-row label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
}
.exhibit-link-row input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #f0d0d9;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: inherit;
}
.exhibit-editor-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.9rem;
}
.exhibit-editor-actions .exhibit-action-btn,
.exhibit-editor-actions .exhibit-cancel-btn {
    flex: 1;
}
/* CKEditor inside modal */
.exhibit-editor-wrap .ck-editor__editable {
    min-height: 260px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

/* Event Overview Styles */
.info-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 0rem;
}

.info-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed var(--light-pink);
}

.info-title {
    color: var(--primary-pink);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.info-subtitle {
    font-size: 0.9em;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 700;
}

.info-notice {
    font-size: 0.9rem;
    color: #888;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.info-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--bg-pink);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary-pink);
    transform: translateY(-3px);
}

.info-label {
    font-weight: 700;
    color: var(--primary-pink);
    font-size: 0.9rem;
}

.info-value {
    font-size: 1rem;
    color: var(--text-color);
}

.info-value a {
    color: var(--primary-pink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.info-value a:hover {
    border-bottom-color: var(--primary-pink);
}

.rules-section {
    background-color: #fffafb;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 30px;
    border: 2px solid var(--light-pink);
}

.rules-title {
    color: var(--primary-pink);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.rules-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-pink);
    border-radius: 2px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rules-list li {
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
    padding-left: 0;
}

.sub-rule {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
    padding-left: 1.2rem;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .rules-section {
        padding: 1.5rem;
    }
}

/* Circle Guide Page Styles */
.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #333;
}

.guide-title {
    color: #FF1493;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.guide-space-options {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.space-option {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.space-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 1.5rem;
}

.space-title {
    font-family: 'OngleipParkDahyeon', cursive;
    color: #FF1493;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.space-desc {
    font-size: 0.9rem;
    color: #333;
    font-weight: normal;
}

.guide-banner {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
}

.guide-banner-text {
    font-family: 'OngleipParkDahyeon', cursive;
    color: #FF1493;
    font-size: 1.8rem;
    display: inline-block;
    padding: 0 1rem;
}

.guide-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.guide-detail-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-item-header {
    font-family: 'OngleipParkDahyeon', cursive;
    color: #FF1493;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-item-header::before {
    display: none;
}

.guide-item-content {
    font-size: 0.9rem;
    line-height: 1.6;
    background: transparent;
    padding: 0;
}

.guide-item-content p {
    margin: 0.3rem 0;
}

.guide-sub-text {
    font-size: 0.85rem;
    color: #FF1493;
    font-family: 'OngleipParkDahyeon', cursive;
    font-weight: normal;
    margin-left: 0.5rem;
}

.guide-blue-text {
    color: #5D9CEC;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    display: block;
    font-weight: bold;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: normal;
}

.guide-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #333;
}

@media (max-width: 768px) {
    .guide-details {
        grid-template-columns: 1fr;
    }

    .guide-title {
        font-size: 2rem;
    }

    .guide-space-options {
        flex-direction: column;
        align-items: center;
    }
}

/* Application Notice Styles */
.application-notice {
    background-color: #fff0f5;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.application-notice h3 {
    color: #ff1493;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.application-notice ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.application-notice li {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.btn-check-account {
    background-color: #ff1493;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-check-account:hover {
    background-color: #d63384;
}

/* ========== 문의 페이지 스타일 ========== */

.inquiry-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 800px;
    background: #fdfafb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.inquiry-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    background: #fdfafb;
}

.inquiry-message {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
    gap: 8px;
}

.inquiry-message-received {
    justify-content: flex-start;
}

.inquiry-message-sent {
    justify-content: flex-end;
    align-items: flex-end;
}

.inquiry-message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-message-received .inquiry-message-bubble {
    background: #b0dcf5;
    color: #333(65, 65, 65);
    border-bottom-left-radius: 4px;
}

.inquiry-message-sent .inquiry-message-bubble {
    background: #b5e2dc;
    color: #333;
    border-bottom-right-radius: 4px;
}

.inquiry-message-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.inquiry-message-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.inquiry-message-time {
    font-size: 11px;
    color: #999;
    opacity: 0.7;
    margin-right: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.inquiry-message-sent .inquiry-message-time {
    margin-right: 6px;
    margin-left: 0;
}

.inquiry-message-received .inquiry-message-time {
    margin-left: 6px;
    margin-right: 0;
}

.inquiry-input-area {
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f0d0d9;
}

.inquiry-attach-btn {
    background: #d63384;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
}

.inquiry-attach-btn i {
    display: block;
}

.inquiry-attach-btn:hover {
    background: #b82a6e;
}

#inquiryInput {
    flex: 1;
    border: 1px solid #f0d0d9;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 40px;
    overflow-y: auto;
    background: #fdfafb;
    transition: border-color 0.2s;
}

#inquiryInput:focus {
    outline: none;
    border-color: #d63384;
    background: white;
}

.inquiry-send-btn {
    background: #d63384;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
}

.inquiry-send-btn i {
    display: block;
}

.inquiry-send-btn:hover {
    background: #b82a6e;
}

.inquiry-image-preview {
    background: #f8e1e7;
    padding: 12px 16px;
    border-top: 1px solid #f0d0d9;
    position: relative;
}

.inquiry-preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    display: block;
}

.inquiry-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.inquiry-preview-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #d63384;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Timeline Styles - Improved Flat Layout */
.timeline-container {
    position: relative;
    max-width: 800px;
    padding-top: 2rem;
    margin: 0 auto;
}

.timeline-month {
    position: relative;
    margin-bottom: 4rem;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    background: #ccc;
    transform: translateX(-50%);
    z-index: 0;
    display: none;
}

.timeline-month-marker {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--primary-pink);
    border-radius: 50%;
    z-index: 2;
    border: 3px solid #fff;
    font-family: 'JoseonGulim', sans-serif;
    font-weight: 900;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Month name positioning */
.timeline-month-marker::after {
    content: attr(data-month);
    position: absolute;
    font-size: 1.4rem;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
}

/* Odd months (12, 2, 4): Item on Right, Month Name on Right */
.timeline-month:nth-child(odd) .timeline-month-marker::after {
    left: 25px;
    text-align: left;
}

.timeline-month:nth-child(odd) .timeline-item {
    flex-direction: row;
    padding-left: calc(50% + 20px);
    justify-content: flex-start;
}

.timeline-month:nth-child(odd) .timeline-content {
    text-align: left;
}

/* Even months (1, 3, 5): Item on Left, Month Name on Left */
.timeline-month:nth-child(even) .timeline-month-marker::after {
    right: 25px;
    text-align: right;
}

.timeline-month:nth-child(even) .timeline-item {
    flex-direction: row-reverse;
    padding-right: calc(50% + 20px);
    justify-content: flex-start;
}

.timeline-month:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-items {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 30px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #bbb;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

.timeline-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 350px;
    border: none;
    transition: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-month:nth-child(even) .timeline-content {
    flex-direction: row-reverse;
}

.timeline-content:hover {
    transform: none;
    box-shadow: none;
}

.timeline-date {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--primary-pink);
    min-width: 35px;
}


/* Notice Board */
.notice-area {
    padding: 0;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.notice-table th {
    background-color: #fff0f5;
    padding: 1rem;
    font-size: 0.95rem;
    color: #d63384;
    border-bottom: 2px solid #f8e1e7;
    text-align: center;
    font-weight: bold;
}

.notice-table td {
    padding: 1rem;
    border-bottom: 1px solid #f8e1e7;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s;
}

.notice-table tr.pinned-row td {
    background-color: rgba(255, 105, 180, 0.05);
}

.notice-table tr:hover td {
    background-color: #fffafb;
}

.notice-table tr.pinned-row:hover td {
    background-color: rgba(255, 105, 180, 0.08);
}

.notice-title-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.pinned-icon {
    color: #d63384;
}

.locked-icon {
    color: #888;
    font-size: 0.8rem;
}

.notice-date-cell {
    color: #888;
    font-size: 0.85rem;
    text-align: right;
    width: 100px;
}

.notice-detail {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}

.notice-detail-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff1493;
    margin: 1rem 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #ffb6c1;
}

.notice-detail-content {
    line-height: 1.8;
    min-height: 300px;
}

.notice-detail-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-back {
    background: none;
    border: 2px solid #ffb6c1;
    color: #ff1493;
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #d63384;
    color: #fff;
}

.markdown-body {
    line-height: 1.7;
    color: #444;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: none;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #d63384;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-month-marker {
        left: 30px;
    }

    .timeline-month:nth-child(odd) .timeline-month-marker::after,
    .timeline-month:nth-child(even) .timeline-month-marker::after {
        left: 25px;
        right: auto;
        text-align: left;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .timeline-content {
        flex-direction: row !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        max-width: 100%;
    }
}

/* Venue Map Styles - v5 Absolute HTML Shapes */
.venue-map-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 15px;
}

.venue-shape-map {
    position: relative;
    width: 600px;
    height: 900px;
    /* Fixed aspect ratio to prevent crushing */
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'JoseonGulim', sans-serif;
    margin: 0 auto;
    flex-shrink: 0;
    /* Prevent flex crushing */
    overflow: hidden;
    /* Bind curves */
}

/* 1. Floor Plan */
.shape-hall-bg {
    position: absolute;
    top: 25%;
    left: 2%;
    width: 65%;
    height: 52%;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    z-index: 1;
}

.shape-wall-curve {
    position: absolute;
    top: 25%;
    left: 2%;
    width: 65%;
    height: 30%;
    /* Only top part */
    border-top: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 50% / 100% 100% 0 0;
    /* Semi-circle attempt */
    transform: translateY(-50%);
    /* Pull up */
    z-index: 1;
    /* Simplification: Just making a large container */
}

/* 2. Structures */
.shape-structure {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 6px;
    z-index: 2;
}

.structure.elevator {
    top: 3%;
    left: 55%;
    width: 20%;
    height: 8%;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
}

.structure.corridor {
    top: 40%;
    left: 20%;
    width: 10%;
    height: 35%;
    background: #f1f5f9;
    border: none;
}

.structure.staff-room {
    top: 30%;
    left: 70%;
    width: 20%;
    height: 15%;
}

.structure.restroom-m {
    top: 45%;
    left: 85%;
    width: 12%;
    height: 8%;
}

.structure.restroom-f {
    top: 55%;
    left: 85%;
    width: 12%;
    height: 8%;
}

.structure.garden {
    top: 85%;
    left: 55%;
    width: 40%;
    height: 10%;
    background: #f0fdf4;
    border: 2px dashed #86efac;
    color: #15803d;
    font-size: 16px;
    font-weight: bold;
}

/* 3. Booths */
.shape-booth {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #334155;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    z-index: 3;
}

.shape-booth:hover {
    transform: scale(1.1);
    z-index: 10;
}

.shape-booth.blue {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.shape-booth.green {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.shape-booth.empty {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    cursor: default;
}

.shape-label-aisle {
    position: absolute;
    top: 60%;
    left: 25%;
    font-size: 30px;
    font-weight: 900;
    color: #e2e8f0;
    transform: rotate(90deg);
    z-index: 0;
}

.map-bottom-garden {
    margin-top: 30px;
    height: 120px;
    background: #f0fdf4;
    border: 2px dashed #86efac;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    font-weight: bold;
    font-size: 18px;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .venue-html-map {
        padding: 15px;
    }

    .booth-grid-vertical {
        gap: 10px 20px;
    }

    .booth-node {
        font-size: 12px;
    }
}

/* Partners grid mobile tweaks */
@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 0.75rem !important;
        padding: 0.5rem 0 3rem 0 !important;
    }
    .partner-card {
        padding: 0.85rem 0.7rem !important;
        line-height: 1.5;
    }
    .partner-card-name {
        font-size: 1.05rem !important;
        line-height: 1.5;
    }
    .partner-card-handle {
        font-size: 0.85rem !important;
        line-height: 1.5;
    }
}

/* Partners grid base */
.partners-grid {
    line-height: 1.5;
}
.partner-card-name,
.partner-card-handle {
    line-height: 1.5;
}

/* Venue Map (Image + Hotspots) */
.venue-map-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0d0d9;
}
.venue-map-img {
    display: block;
    width: 100%;
    height: auto;
}
.venue-map-hotspots {
    position: absolute;
    inset: 0;
}
.booth-hotspot {
    position: absolute;
    background: rgba(255, 105, 180, 0);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.booth-hotspot:hover,
.booth-hotspot:active,
.booth-hotspot:focus {
    background: rgba(255, 105, 180, 0);
    border: none;
    outline: none;
}

/* Partner Deals (Discount Info) Styles */
.partner-deals-group {
    margin-bottom: 2.5rem;
}
.partner-deals-brand {
    text-align: center;
    margin-bottom: 0.8rem;
}
.partner-deals-brand-role {
    font-size: 1.1rem;
    color: #ff69b4;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.partner-deals-brand-name {
    font-size: 1.8rem;
    color: #ff1493;
    font-weight: 900;
}
.partner-deals-brand-name a,
.partner-deals-brand-name a:visited,
.partner-deals-brand-name a:hover,
.partner-deals-brand-name a:active,
.partner-deals-brand-name a:focus {
    color: inherit;
    text-decoration: none;
}
.partner-deals-note {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.partner-deals-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}
.partner-deals-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.partner-deals-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.deal-card {
    background: #fff;
    border: 3px solid #bde3ff;
    border-radius: 25px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    position: relative;
}
.deal-card-title {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1rem;
    font-weight: bold;
}
.deal-card-discount {
    font-size: 2.2rem;
    color: #ff1493;
    font-weight: 900;
    margin-bottom: 1rem;
}
.deal-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}
.partner-deals-divider {
    height: 1px;
    border-top: 2px dashed #ffb6c1;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .partner-deals-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .deal-card {
        min-height: auto;
        padding: 1.2rem;
    }
    .partner-deals-brand-name {
        font-size: 1.5rem;
    }
    .deal-card-discount {
        font-size: 1.8rem;
    }
}