@charset "UTF-8";

body {
    margin: 0;
    background-color: #f6f8fb;
    color: #1f2937;
    font-family: Arial, "Noto Sans KR", sans-serif;
}

.hospital-list-wrap * {
    box-sizing: border-box;
}

.hospital-list-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 40px 70px 40px;
    box-sizing: border-box;
}

.hospital-list-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    margin: 0 0 12px;
    border-radius: 999px;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 800;
}

.hospital-list-header h1 {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -1px;
}

.hospital-search-form {
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-radius: 14px;
}

.hospital-search-form input[type="text"] {
    flex: 1;
    height: 54px;
    padding: 0 20px;
    border: 2px solid #0ea5e9;
    border-right: none;
    border-radius: 14px 0 0 14px;
    outline: none;
    font-size: 16px;
    font-weight: 600;
}

.hospital-search-form button {
    width: 100px;
    height: 54px;
    border: none;
    background-color: #0ea5e9;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 0 14px 14px 0;
    cursor: pointer;
}

.hospital-search-form button:hover {
    background-color: #0284c7;
}

.hospital-filter-wrap {
    margin-bottom: 24px;
    padding: 24px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.filter-box {
    margin-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 18px;
}

.filter-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.filter-title span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
    margin-left: 6px;
}

.filter-content-wrap {
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-content-wrap.is-minimized {
    display: none;
}

.filter-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-toggle-filter {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-toggle-filter:hover {
    background: #f1f5f9;
    color: #4b5563;
}

.pill-group {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
}

.pill-group.wrap-group {
    flex-wrap: wrap;
}

.pill-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pill-check input {
    display: none;
}

.pill-check:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pill-check:has(input:checked) {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 16px;
}

.reset-button {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.reset-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.status-toggles {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.status-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.status-btn:hover {
    color: #0f172a;
}

.status-btn.active {
    background: #fff;
    color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sort-select {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    cursor: pointer;
}

.sort-select:focus {
    border-color: #0ea5e9;
}

.hospital-result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-count-area .result-count {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
}

.result-count-area strong {
    color: #0ea5e9;
    font-size: 20px;
}

.user-location-area {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.current-location-text {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.current-location-text strong {
    color: #0ea5e9;
}

.btn-location-select {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
}

.btn-location-select:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.hospital-card-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.hospital-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.hospital-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15),
    0 0 20px rgba(14, 165, 233, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 1);
    z-index: 10;
}

.hospital-card .hospital-image img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.hospital-card:hover .hospital-image img {
    transform: scale(1.08);
}

.go-detail-link {
    cursor: pointer;
}

.go-detail-link:hover {
    opacity: 0.9;
}

.hospital-image {
    width: 100%;
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
}

.hospital-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image span {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #ffffff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.14);
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-overlay p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hospital-card:hover .hover-overlay {
    opacity: 1;
}

.hospital-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.title-left {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.title-right {
    flex-shrink: 0;
}

.btn-list-zzim {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
    padding: 0;
    line-height: 1;
}

.btn-list-zzim .icon-heart {
    font-size: 26px;
}

.btn-list-zzim .count {
    font-size: 15px;
    font-weight: 800;
    color: #94a3b8;
}

.btn-list-zzim:hover .icon-heart, .btn-list-zzim.active .icon-heart {
    color: #ef4444;
}

.btn-list-zzim:hover .count, .btn-list-zzim.active .count {
    color: #ef4444;
}

.district-badge {
    display: inline-block;
    padding: 4px 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background-color: #ecfeff;
    color: #0891b2;
    font-size: 12px;
    font-weight: 800;
}

/* ★ 수정된 병원 이름 & 링크 관련 클래스 ★ */
.hospital-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.hospital-name .name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-link-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.website-link-icon:hover {
    background-color: #e0f2fe;
    color: #0ea5e9;
    transform: scale(1.1);
}

.website-link-icon svg {
    width: 14px;
    height: 14px;
}

.h-distance {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d1fae5;
}

.h-distance strong {
    font-size: 14px;
}

.hospital-detail-list {
    margin-top: 10px;
    flex-grow: 1;
    min-width: 0;
}

.hospital-detail-list p {
    margin: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    min-width: 0;
}

.detail-label {
    width: 55px;
    flex-shrink: 0;
    color: #111827;
    font-weight: 800;
}

.txt-ellipsis {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}

.empty-list {
    padding: 80px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    text-align: center;
    color: #64748b;
}

.empty-list strong {
    display: block;
    font-size: 18px;
    color: #334155;
    margin-bottom: 8px;
}

.pagination-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.page-item .page-link:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.page-item.active .page-link {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.page-item.disabled .page-link {
    background-color: #f9fafb;
    color: #d1d5db;
    pointer-events: none;
    border-color: #e5e7eb;
}

.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.location-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: popUp 0.3s ease;
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.location-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-modal-header .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.btn-go-myloc {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.btn-go-myloc:hover {
    background: #dcfce7;
}

.location-modal-header button#btnCloseModal {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ef4444"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center center;
    transform: translate(-50%, -100%);
    z-index: 10;
    pointer-events: none;
}

.location-modal-footer {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.location-modal-footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.location-modal-footer p strong {
    color: #0ea5e9;
}

.btn-primary {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    background: #0ea5e9;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #0284c7;
}

@media (max-width: 1400px) {
    .hospital-list-wrap {
        padding: 40px 40px 70px 40px;
    }
}

@media (max-width: 1300px) {
    .hospital-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hospital-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hospital-list-wrap {
        padding: 36px 20px 60px;
    }

    .list-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .status-toggles {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hospital-card-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hospital-list-header h1 {
        font-size: 28px;
    }

    .hospital-filter-wrap {
        padding: 20px;
        border-radius: 18px;
    }

    .hospital-result-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-location-area {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hospital-search-form {
        flex-direction: column;
        gap: 8px;
        box-shadow: none;
        border-radius: 0;
    }

    .hospital-search-form input[type="text"] {
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        height: 48px;
    }

    .hospital-search-form button {
        width: 100%;
        border-radius: 10px;
        height: 48px;
    }
}

.hospital-result-area {
    transition: opacity 0.18s ease;
}

.hospital-result-area.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.sub-animal-box {
    display: none;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.gps-location-name {
    color: #334155;
    font-weight: 600;
}

.custom-location-text-wrap {
    display: none;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 2px solid #cbd5e1;
}

.custom-location-name {
    color: #0ea5e9;
}

.hospital-image-link {
    cursor: pointer;
}

.hospital-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.hospital-status-badges {
    margin-bottom: 6px;
}

.badge-status-open {
    background: #dcfce7;
    color: #059669;
    margin-left: 4px;
}

.badge-status-end {
    background: #fee2e2;
    color: #e11d48;
    margin-left: 4px;
}

.badge-status-holi {
    background: #f1f5f9;
    color: #64748b;
    margin-left: 4px;
}

.badge-status-shut {
    background: #cbd5e1;
    color: #334155;
    margin-left: 4px;
}

.badge-status-susp {
    background: #fef08a;
    color: #b45309;
    margin-left: 4px;
}

.hospital-name-text {
    cursor: pointer;
    white-space: normal !important;
    display: block;
    line-height: 1.35;
    margin-bottom: 8px;
    word-break: keep-all;
}

.rating-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-dist-margin {
    margin: 0;
}

.h-rating-review.static-inline {
    position: static !important;
    margin: 0;
    font-size: 0.9rem;
    display: inline-block;
}

.rating-star-icon {
    color: #f59e0b;
    font-weight: bold;
}

.rating-rev-cnt {
    color: #64748b;
}

.hidden-element {
    display: none;
}

.detail-info-break {
    color: #d97706;
    font-weight: 600;
}

.detail-info-holi {
    color: #ef4444;
    font-weight: 600;
}

.map-relative-wrap {
    position: relative;
}

.select-map-container {
    width: 100%;
    height: 350px;
    background: #e2e8f0;
}

.suspend-modal-content {
    max-width: 400px;
    text-align: center;
    padding: 30px 20px;
}

.suspend-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.suspend-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.suspend-notice-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid #e2e8f0;
    max-height: 160px;
    overflow-y: auto;
}

.suspend-notice-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.suspend-notice-text {
    font-size: 14px;
    color: #334155;
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
}

.suspend-notice-box::-webkit-scrollbar {
    width: 6px;
}

.suspend-notice-box::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

.suspend-notice-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.suspend-notice-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.suspend-warning {
    font-size: 15px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 20px;
}

.suspend-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-suspend-no, .btn-suspend-yes {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-suspend-no {
    background: #f1f5f9;
    color: #475569;
}

.btn-suspend-yes {
    background: #0ea5e9;
    color: #fff;
}