body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #0057b7;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.lang-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-select select {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #d0d6e0;
    background: #fff;
    font-size: 0.9rem;
}

.auth-status {
    font-size: 0.9rem;
    color: #555;
}

.auth-button {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: #0057b7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-button.hidden {
    display: none;
}

.auth-page {
    background: radial-gradient(circle at top, #ffffff 0%, #eef3fb 40%, #e7edf7 100%);
    min-height: 100vh;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: transparent;
    box-shadow: none;
    position: static;
}

.auth-back {
    text-decoration: none;
    color: #0057b7;
    font-weight: 700;
}

.auth-status-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 2rem 1rem 4rem;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: min(460px, 92vw);
    box-shadow: 0 20px 50px rgba(15, 35, 75, 0.15);
}

.auth-message {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #f1f3f8;
    color: #344054;
    display: none;
}

.auth-message.info,
.auth-message.success,
.auth-message.error {
    display: block;
}

.auth-message.success {
    background: #e8f7ee;
    color: #19663c;
}

.auth-message.error {
    background: #fdecec;
    color: #8a1f1f;
}

#hero {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/%EA%B2%BD%EB%B3%B5%EA%B6%81%EF%BC%8F%E6%99%AF%E7%A6%8F%E5%AE%AE_Gyeongbokgung_%2853618347305%29.jpg/2560px-%EA%B2%BD%EB%B3%B5%EA%B6%81%EF%BC%8F%E6%99%AF%E7%A6%8F%E5%AE%AE_Gyeongbokgung_%2853618347305%29.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#hero > * {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#hero button {
    background-color: #c41e3a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.ask-page {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
}

.ask-hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 4rem 1.5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.ask-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ask-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2d4e7b;
}

.ask-hero h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    margin: 0;
    color: #0f1f3a;
}

.ask-subtitle {
    font-size: 1.1rem;
    color: #435067;
    margin: 0;
    max-width: 520px;
}

.ask-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.ask-email {
    margin: 0;
    font-weight: 600;
    color: #1e3a5f;
}

.ask-hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 18px 40px rgba(15, 35, 75, 0.12);
}

.ask-hero-card h2 {
    margin-top: 0;
}

.ask-hero-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #41516a;
}

.ask-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.ask-detail {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 35, 75, 0.08);
}

.ask-detail h3 {
    margin-top: 0;
    color: #1d3252;
}

.ask-note {
    max-width: 900px;
    margin: 0 auto 3.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
}

.ask-note h2 {
    margin-top: 0;
    color: #0f1f3a;
}

.ask-note p {
    margin-bottom: 0;
    color: #4a596f;
    font-size: 1.05rem;
}

#hero button:hover {
    background-color: #a0182f;
}

section {
    padding: 4rem 1rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.culture-grid, .destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.culture-item, .destination-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.culture-item:hover, .destination-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.destination-item img,
.culture-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.destinations-cta {
    margin-top: 2.5rem;
    display: grid;
    gap: 0.6rem;
    justify-items: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    background-color: #0057b7;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 87, 183, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 87, 183, 0.3);
}

.destinations-cta p {
    margin: 0;
    color: #555;
}

.cities-page {
    background: linear-gradient(180deg, #f5f8ff 0%, #f4f4f4 70%, #f0f2f6 100%);
}

.cities-hero {
    padding: 5rem 1rem 3.5rem;
    background: radial-gradient(circle at top, #ffffff 0%, #eef3fb 45%, #dfe8f7 100%);
}

.cities-hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.cities-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.cities-hero p {
    font-size: 1.1rem;
    color: #4a5565;
    margin: 0 auto;
    max-width: 720px;
}

.cities-section {
    padding: 3rem 1rem 4rem;
}

.cities-controls {
    max-width: 1100px;
    margin: 0 auto 2rem;
    display: grid;
    gap: 1.5rem;
}

.cities-search label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cities-search input {
    width: min(420px, 100%);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid #d0d6e0;
    font-size: 0.95rem;
    background: #fff;
}

.cities-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-empty {
    color: #667085;
    font-size: 0.95rem;
}

.city-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e6f0ff;
    color: #0b3d91;
    font-weight: 600;
    font-size: 0.85rem;
}

.ghost {
    border: none;
    background: #f0f3f8;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.cities-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.city-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
    border: 2px solid transparent;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.city-card input {
    accent-color: #0057b7;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.city-card.selected {
    border-color: #0057b7;
    box-shadow: 0 10px 24px rgba(0, 87, 183, 0.2);
}

.city-name {
    margin: 0;
    font-size: 1.1rem;
}

.city-region {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #0057b7;
    font-weight: 600;
}

.cities-helper {
    text-align: center;
    margin-top: 2rem;
    color: #667085;
}

.cities-map {
    padding: 3rem 1rem 1rem;
}

.cities-map-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
}

.map-stage h2 {
    margin-top: 0;
}

.map-hint {
    margin: 0.4rem 0 1.5rem;
    color: #667085;
}

.map-frame {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(15, 35, 75, 0.12);
    min-height: 520px;
    display: grid;
    place-items: center;
}

.map-svg {
    width: min(340px, 70vw);
    height: auto;
}

.city-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #c41e3a;
    box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.18);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.city-pin:hover,
.city-pin:focus {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 10px rgba(196, 30, 58, 0.25);
    outline: none;
}

.map-preview {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 35, 75, 0.12);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.preview-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(120deg, #e6eefc 0%, #f7f9ff 50%, #e6eefc 100%);
    background-size: cover;
    background-position: center;
}

.preview-image.has-image {
    background-color: #d7e0f5;
}

.preview-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.preview-body h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.preview-body p {
    margin: 0;
    color: #4a5565;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

.image-credits {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.image-credits a {
    color: #fff;
    text-decoration: underline;
}

.board-section {
    background-color: #f8f9fb;
    text-align: left;
}

.board-section h2 {
    text-align: left;
}

.board-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.board-header p {
    margin: 0.5rem 0 0;
    color: #555;
}

.board-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#board-search {
    width: min(380px, 100%);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid #d0d6e0;
    font-size: 0.95rem;
}

.board-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(280px, 1fr);
}

.board-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.board-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

#board-form label {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#board-form input,
#board-form textarea {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #d0d6e0;
    font-size: 0.95rem;
    font-family: inherit;
}

#board-form textarea {
    resize: vertical;
}

.board-auth-hint {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f1f3f8;
    color: #455062;
    font-size: 0.9rem;
}

.board-auth-hint.is-warning {
    background: #fff7e6;
    color: #8a5a00;
}

.board-error {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fdecec;
    color: #8a1f1f;
    font-size: 0.9rem;
    display: none;
}

.board-error.visible {
    display: block;
}

#board-form input:disabled,
#board-form textarea:disabled {
    background: #f3f4f6;
    color: #9aa3af;
}

#board-form button:disabled,
.comment-form button:disabled,
.auth-form button:disabled {
    background: #c5cedb;
    cursor: not-allowed;
    box-shadow: none;
}

.board-form-actions {
    display: flex;
    gap: 0.75rem;
}

.board-form-actions button {
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.board-form-actions .primary {
    background-color: #0057b7;
    color: #fff;
}

.board-form-actions .primary:hover {
    background-color: #004294;
}

.board-form-actions .ghost {
    background-color: #f0f3f8;
    color: #333;
}

.board-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.board-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.board-item {
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.board-item:hover {
    border-color: #0057b7;
    box-shadow: 0 8px 16px rgba(0, 87, 183, 0.12);
}

.board-item.active {
    border-color: #0057b7;
    background-color: #f1f6ff;
}

.board-item h4 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #666;
}

.board-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.board-tag {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: #e6f0ff;
    color: #0057b7;
    font-size: 0.75rem;
}

.board-detail-content h4 {
    margin-top: 0;
}

.board-detail-content .board-meta {
    margin-bottom: 1rem;
}

.board-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.board-detail-actions button {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.board-detail-actions .edit {
    background-color: #f5c04c;
    color: #1f1f1f;
}

.board-detail-actions .delete {
    background-color: #f06060;
    color: #fff;
}

.board-comments {
    margin-top: 1.5rem;
}

.board-comments h5 {
    margin-bottom: 0.75rem;
}

.comment-item {
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #f4f6fa;
    margin-bottom: 0.6rem;
}

.comment-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.comment-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.comment-form input,
.comment-form textarea {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #d0d6e0;
    font-size: 0.9rem;
    font-family: inherit;
}

.comment-form button {
    justify-self: start;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: #0057b7;
    color: #fff;
    cursor: pointer;
}

.board-empty {
    color: #666;
    text-align: center;
    padding: 2rem 0;
}

.board-items .board-empty {
    list-style: none;
    padding: 1.5rem;
    border: 1px dashed #d0d6e0;
    border-radius: 10px;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: min(420px, 92vw);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    background: #f1f3f8;
    cursor: pointer;
    font-weight: 600;
}

.auth-tab.active {
    background: #0057b7;
    color: #fff;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
}

.auth-form input {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #d0d6e0;
    font-size: 0.95rem;
    font-family: inherit;
}

.auth-form button.primary {
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background-color: #0057b7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.auth-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 1024px) {
    .board-layout {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

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

    .board-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cities-selected {
        flex-direction: column;
        align-items: flex-start;
    }

    .cities-map-inner {
        grid-template-columns: 1fr;
    }

    .map-preview {
        position: static;
    }
}
