/* 頁面布局 */
#default-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-light);
}

/* Tab內容區域顯示控制 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-content.active {
    display: block;
}

/* 內嵌在tab-content裡的content-block不需要外邊距 */
.tab-content .content-block {
    margin-top: 0;
    margin-bottom: 32px;
}

.tab-content .content-block:last-child {
    margin-bottom: 0;
}

/* 頭部區域樣式 */
.header-section {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 舊的麵包屑樣式已移除 - 現在使用 Figma 設計的組件 */

/* 診所標題和評分 */
.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.text-and-supporting-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.text-and-supporting-text h1.text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.33;
    margin: 0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star-icon .filled {
    color: #FDB022;
}

.star-icon i {
    font-size: 16px;
}

.rating .text {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
}

.supporting-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* 按鈕樣式 */
.actions {
    display: flex;
    gap: 12px;
}

.buttons-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.buttons-button i {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.buttons-button .text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-medium);
    transition: color var(--transition-fast);
}

.buttons-button:hover {
    background-color: var(--primary-light);
}

.buttons-button.active i {
    color: var(--primary-color);
}

.buttons-button.active .text {
    color: #B89B5E;
}

/* 診所照片展示區 */
.clinic-photos-showcase {
    width: 100%;
    overflow: hidden;
}

.photos-grid {
    display: flex;
    gap: 12px;
    padding: 0 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    flex: 1;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* 認領提示卡 */
.unclaimed-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px;
    background-color: var(--primary-light);
    border-radius: 16px;
    border-top: 2px solid var(--primary-color);
}

.heading-and-supporting-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.heading {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.claim-button {
    padding: 12px 18px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-medium);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.claim-button:hover {
    background-color: var(--primary-light);
    color: #B89B5E;
    border-color: var(--primary-color);
}

/* 選項卡導航 */
.tabs-navigation {
    position: sticky;
    top: 0;
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    /* z-index: 100; */
    box-shadow: var(--shadow-sm);
}

.horizontal-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tabs {
    display: flex;
    gap: 8px;
}

.tab-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 8px 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: #B89B5E;
    border-bottom: 2px solid #B89B5E;
}

/* 主內容區域佈局 */
.tab-contents {
    /* padding: 32px 0; */
}

.content-columns {
    flex-wrap: wrap;
    display: flex;
    gap: 24px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 診所介紹區 */
.clinic-intro-section {
    display: flex;
    flex-direction: column;
    background-color: var(--background-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* 評論摘要區 */
.rating-summary-section {
    display: flex;
    flex-direction: column;
    background-color: var(--background-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.rating-summary-content {
    display: flex;
    justify-content: space-between;
    gap: 21px;
    margin-bottom: 20px;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.star-number {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    width: 16px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 8px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: var(--primary-color);
    transition: width 0.5s ease-out;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background-color: var(--primary-light);
    border-radius: 8px;
}

.rating-number {
    font-size: 48px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.review-count {
    font-size: 16px;
    color: var(--text-muted);
}

.review-list-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: var(--primary-light);
    border-radius: 8px;
    /* transition: transform var(--transition-fast); */
}

/* .review-item:hover {
    transform: translateY(-2px);
} */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #E0E0E0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.empty-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background-color: var(--background-light);
    border-radius: 12px;
    text-align: center;
}

.write-review-btn {
    margin-top: 16px;
    padding: 10px 16px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.write-review-btn:hover {
    background-color: var(--primary-light);
    color: #B89B5E;
    border-color: var(--primary-color);
}

/* 醫生團隊區 */
.doctor-team-section {
    display: flex;
    flex-direction: column;
    background-color: var(--background-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.search-container {
    width: 240px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.search-input-wrapper i {
    color: var(--text-light);
}

.doctor-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    color: var(--text-medium);
}

.doctor-search-input::placeholder {
    color: var(--text-light);
}

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

.doctor-card {
    display: flex;
    padding: 24px;
    background-color: var(--background-light);
    border-radius: 12px;
    gap: 20px;
    transition: all var(--transition-fast);
}

.doctor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.doctor-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doctor-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.doctor-title {
    font-size: 16px;
    color: #B89B5E;
}

.doctor-description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    display: inline-flex;
    padding: 3px 8px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-medium);
    transition: all var(--transition-fast);
}

.specialty-tag:hover {
    background-color: var(--primary-light);
    color: #B89B5E;
}

/* 側邊欄樣式 */
.clinic-info-card {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.info-value {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--transition-fast);
}

.info-value i {
    color: var(--primary-color);
}

.info-value span {
    font-size: 16px;
    font-weight: 600;
    color: #B89B5E;
}

.business-hours-card {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.day,
.time {
    font-size: 16px;
    color: var(--text-muted);
}

/* 評價標籤內容樣式 */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.review-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.review-button:hover {
    background-color: var(--primary-light);
    color: #B89B5E;
    border-color: var(--primary-color);
}

.review-button i {
    color: #FDB022;
}

.rating-summary {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    background-color: var(--primary-light);
    border-radius: 12px;
}

.rating-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.count {
    font-size: 14px;
    color: var(--text-medium);
    /* min-width: 30px; */
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
}

.review-count {
    font-size: 14px;
    color: var(--text-muted);
}

.rating-and-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-date {
    font-size: 14px;
    color: var(--text-muted);
}

.review-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.helpful-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.helpful-button:hover {
    color: var(--primary-color);
}

.helpful-button i {
    font-size: 16px;
}

.helpful-button .count {
    font-size: 14px;
    color: var(--text-muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0;
    text-align: center;
}

.empty-icon {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.empty-description {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
}

.empty-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.empty-action-button:hover {
    background-color: var(--primary-light);
    color: #B89B5E;
    border-color: var(--primary-color);
}

.empty-action-button i {
    color: #FDB022;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .sidebar {
        width: 100%;
    }

    .doctor-card {
        width: 100%;
    }
}
@media (max-width: 1000px) {
    .content-columns {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .photos-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .photo-item {
        flex: 0 0 calc(50% - 6px);
    }

    .rating-summary-content {
        flex-direction: column;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .unclaimed-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-summary {
        flex-direction: column;
    }
}

@media (max-width: 576px) {

    .photos-grid {
        padding: 0 16px;
    }

    .photo-item {
        flex: 0 0 100%;
        height: 180px;
    }

    .doctor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-specialties {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
    }

    .search-container {
        width: 100%;
    }
}