:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --light-text: #777777;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.search-form {
    display: flex;
    background: #f1f3f5;
    border-radius: 25px;
    padding: 5px 15px;
    width: 300px;
}

.search-form input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-form button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--secondary-color);
}

main {
    padding: 40px 0;
}

.hero {
    text-align: center;
    padding-bottom: 40px;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    color: var(--light-text);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    position: relative;
    border: 1px solid #eee;
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.card-info i {
    width: 18px;
    color: var(--primary-color);
}

.card-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 12px;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-stats i {
    color: #ffd700;
}

/* Detail Page */
.detail-header {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.detail-container {
    display: flex;
    gap: 40px;
}

.detail-main {
    width: 100%;
}

.detail-side {
    flex: 1;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.detail-info-grid {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.info-label {
    font-weight: 700;
    width: 80px;
    color: var(--secondary-color);
}

.info-value {
    flex: 1;
}

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

.thumb-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.review-title a {
    color: var(--primary-color);
}

.review-content {
    font-size: 14px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

footer {
    background: #333;
    color: #fff;
    padding: 50px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    margin: 0 10px;
    color: #bbb;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .search-form {
        width: 100%;
        margin-top: 10px;
    }

    header .container {
        flex-direction: column;
    }

    /* Pagination */
    .pg-btn {
        padding: 8px 16px;
        border: 1px solid #ddd;
        border-radius: 6px;
        text-decoration: none;
        color: #444;
        font-size: 14px;
        background: #fff;
        transition: all 0.2s;
    }

    .pg-btn:hover {
        background: #f8f9fa;
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .pg-btn.active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        font-weight: bold;
    }

    .detail-container {
        flex-direction: column;
    }
}

.site-link {
    display: inline-block;
    padding: 8px 15px;
    background: #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 500;
}

.site-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.action-btns {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 16px;
    cursor: pointer;
}

.btn-booking {
    background: #00c73c;
    color: #fff;
}

.btn-inquiry {
    background: #007bff;
    color: #fff;
}

.btn-map {
    background: #6c757d;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}