@charset "UTF-8";
/*
gymDetail, gymList.jsp에 해당하는 css
*/

/* gymDetail, gymList 관련 CSS 중 헤더/푸터 제외 */

/* 공통 설정 */
body {
    font-family: 'Arial', sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
    color: #333;
}

.gym-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.gym-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.location {
    font-size: 14px;
    color: #888;
}

.image-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 12px;
    margin: 20px 0;
    height: clamp(340px, 52vw, 560px);
    overflow: hidden;
    border-radius: 14px;
}

.main-photo {
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    background: #f2f2f2;
    border-radius: 14px;
}

.thumbnail-container {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(110px, 1fr);
    gap: 8px;
    overflow-y: auto;
    align-content: start;
}

.thumbnail {
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.thumbnail:hover {
    opacity: .85;
    transform: scale(.98);
}

@media (max-width: 720px) {
    .gym-container { padding: 14px; }
    .image-gallery {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .main-photo { aspect-ratio: 4 / 3; }
    .thumbnail-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        grid-auto-rows: 90px;
        overflow: visible;
    }
    .thumbnail { min-height: 90px; }
}

.tab-menu {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 3px solid transparent;
}

.tab.selected {
    font-weight: bold;
    border-color: #ff5c5c;
    color: #ff5c5c;
}

.gym-info,
.review-summary,
.review-list,
.inquiry-list {
    margin-top: 30px;
}

.membership-table table,
.inquiry-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.membership-table th, .membership-table td,
.inquiry-list th, .inquiry-list td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.review-list .review {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.review-rating {
    color: #ff9900;
    font-weight: bold;
}

.rating-breakdown div {
    margin-bottom: 5px;
}

/* 하단 고정 버튼 영역 */
.action-bar {
    margin-top: 40px;
    text-align: center;
}

/* 회원권 구매 버튼 스타일 */
.action-bar button {
    background-color: #ff5c5c;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.2s;
}

.action-bar button:hover {
    background-color: #e14e4e;
    transform: translateY(-2px);
}

.action-bar button:active {
    background-color: #cc4444;
    transform: translateY(0);
}

/* Unified gym detail theme */
body { font-family: ns-r, "Noto Sans KR", sans-serif; background: var(--canvas, #f4f3f2); color: var(--ink, #20232a); }
.gym-container { max-width: 1160px; margin: 42px auto; padding: clamp(20px, 4vw, 42px); }
.gym-header h1 { margin: 0 0 5px; color: var(--ink); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.05em; }
.location { color: var(--muted); }
.image-gallery { margin: 28px 0; border-radius: 20px; background: var(--surface-soft); }
.main-photo { border-radius: 20px; }
.thumbnail { border: 2px solid transparent; border-radius: 13px; }
.thumbnail:hover { border-color: var(--brand-500); opacity: 1; }
.image-gallery-three { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); height: clamp(360px, 48vw, 540px); gap: 12px; }
.image-gallery-three .thumbnail-container { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: hidden; }
.image-gallery-three .thumbnail { min-height: 0; border-radius: 16px; }
.image-gallery-three .placeholder-photo { cursor: default; opacity: .42; filter: grayscale(.3); }
.image-gallery-three .placeholder-photo:hover { border-color: transparent; transform: none; opacity: .42; }
@media (max-width: 720px) {
    .image-gallery-three { grid-template-columns: 1fr; height: auto; }
    .image-gallery-three .main-photo { aspect-ratio: 4 / 3; }
    .image-gallery-three .thumbnail-container { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .image-gallery-three .thumbnail { aspect-ratio: 4 / 3; }
}
.tab-menu { gap: 6px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 18px; border-radius: 10px 10px 0 0; color: var(--ink-soft); }
.tab:hover { color: var(--brand-700); background: var(--brand-50); }
.tab.selected { color: var(--brand-700); border-color: var(--brand-700); background: var(--brand-50); }
.gym-info, .review-summary, .review-list, .inquiry-list { margin-top: 28px; }
.review-list .review, .inquiry-list section { margin: 12px 0; padding: 20px; }
.membership-table th, .membership-table td, .inquiry-list th, .inquiry-list td { border-color: var(--line); padding: 13px; }
.membership-table th, .inquiry-list th { color: var(--brand-900); background: #faf5f5; }
.action-bar button { background: var(--brand-700); border-radius: 11px; }
.action-bar button:hover { background: var(--brand-800); }
.gym-entry-form{display:grid;gap:10px;margin:26px 0;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fafafa}
.gym-entry-form textarea{min-height:150px}.gym-entry-form button{justify-self:end;min-width:120px}
.entry-meta{color:var(--muted);font-size:14px}.gym-answer{padding:14px;border-left:4px solid var(--brand-500);border-radius:8px;background:var(--brand-50)}
.entry-actions{display:flex;align-items:flex-end;gap:8px;margin-top:14px}.entry-actions form{display:flex;align-items:center;gap:8px;margin:0}.entry-actions form:first-child{flex:1}.entry-actions form:first-child input[name="content"],.entry-actions form:first-child input[name="title"]{flex:1;min-width:0}.entry-actions .delete-button{color:var(--danger);border-color:#f0cbd1;background:#fff}.empty-entry{padding:36px;text-align:center;color:var(--muted)}
@media(max-width:700px){.entry-actions,.entry-actions form{align-items:stretch;flex-direction:column}.entry-actions form:first-child input{width:100%}.entry-actions button{width:100%}}
