/* 診所詳情頁面統一樣式 */

/* Import Inter font for better design consistency */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* 引入通用樣式 */
@import url('common-buttons.css');
@import url('common-rating.css');

/* ========== 主要內容區域 ========== */
.header-section {
    padding: 0 32px;
    margin-bottom: 8px;
}

.main-content-area {
    max-width: 1280px;
    margin: 0 auto;
}

.content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 8px;
}

/* ========== 文本和支援文本區域 ========== */
.text-and-supporting-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.text-and-supporting-text .text {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.333;
    color: #181D27;
    margin: 0 0 4px 0;
}

/* ========== 評分區域 ========== */
.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

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

.star-icon {
    width: 20px;
    height: 20px;
}

.rating .stars .star-icon i {
    font-size: 18px;
}

.rating .stars .star-icon i.filled {
    color: #FCD34D;
}

.rating .stars .star-icon i.far {
    color: #D1D5DB;
}

.rating .text {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #181D27;
    margin: 0;
}

/* ========== 支援文本 ========== */
.supporting-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #535862;
}



/* ========== 按鈕區域 ========== */
.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 8px;
}

.actions button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #D5D7DA;
    border-radius: 999px;
    background: white;
    color: #414651;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.429;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05),
        inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05),
        inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.actions button:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
}

.actions button i {
    color: #A4A7AE;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 返回按鈕 (手機版) ========== */
.back-button {
    display: none;
    align-items: center;
    gap: 6px;
    color: #535862;
    text-decoration: none;
    margin-bottom: 20px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.429;
}

.back-button i {
    color: #A4A7AE;
    width: 20px;
    height: 20px;
}

/* ========== 診所照片輪播 ========== */
.clinic-photos-carousel {
    width: 100%;
    margin: 24px 0;
    overflow: hidden;
    position: relative;
}

.swiper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.swiper-wrapper {
    height: 100%;
    align-items: center;
}

.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 458px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ========== 未認領橫幅 ========== */
.unclaimed-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 32px;
    background: #FAFAFA;
    border-radius: 16px;
    border-top: 2px solid #BE9F34;
    margin: 32px 0;
}

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

.unclaimed-banner .heading {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    color: #181D27;
    margin: 0;
}

.unclaimed-banner .supporting-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.556;
    color: #535862;
    margin: 0;
}

.claim-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: 1px solid #D5D7DA;
    border-radius: 999px;
    background: white;
    color: #414651;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05),
        inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05),
        inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.claim-button:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
}

/* ========== 選項卡導航 ========== */
.tabs-navigation {
    margin: 32px 0;
}

.horizontal-tabs {
    border-bottom: 1px solid #E9EAEB;
}

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

.tab-button {
    position: relative;
    padding: 8px 8px 12px;
    background: transparent;
    border: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5555;
    color: #717680;
    cursor: pointer;
}

.tab-button.active {
    color: #835E25;
}

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #B89B5E;
}

/* ========== 頁面容器 ========== */
.page-container {
    padding: 24px 0 48px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ========== Swiper 樣式 ========== */
.swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50% !important;
    margin-top: -22px !important;
    transition: all 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.swiper-button-next {
    right: 20px !important;
}

.swiper-button-prev {
    left: 20px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

/* ========== Toast 提示 ========== */
.clinic-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* ========== 評價摘要樣式已移至 common-rating.css ========== */

/* ========== 側邊欄樣式 ========== */
.clinic-intro-main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: 360px;
}

.clinic-info-card,
.business-hours-card {
    background: white;
    border: 1px solid #E9EAEB;
    border-radius: 12px;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    padding: 24px;
    min-width: 0;
}

.card-title {
    font-family: Inter;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.56;
    color: #181D27;
    margin: 0 0 24px 0;
}

.info-item {
    margin-bottom: 24px;
    min-width: 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    color: #535862;
    margin-bottom: 8px;
}

.info-value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
    width: 100%;
}

.info-value i {
    width: 20px;
    height: 20px;
    color: #BE9F34;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-value span {
    font-family: Inter;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #835E25;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.info-value:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* ========== 營業時間樣式 ========== */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 16px;
    border-bottom: none;
}

.hours-item:last-child {
    margin-bottom: 0;
}

.day {
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #535862;
}

.time {
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #535862;
}

/* ========== 按鈕樣式已移至 common-buttons.css ========== */

/* ========== 空狀態樣式 ========== */
.empty-reviews-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 24px;
    color: #9ca3af;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ========== 響應式設計 ========== */

/* 小於1000px - 調整側邊欄順序和寬度 */
@media (max-width: 999px) {
    .content-columns {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .info-sidebar {
        width: 100% !important;
        order: -1;
        gap: 16px;
    }

    .clinic-intro-main-content {
        order: 2;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .clinic-toast {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
}

/* 平板版響應式 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-section {
        padding: 0 24px;
        margin-bottom: 12px;
    }

    .clinic-photos-carousel {
        min-height: 320px;
    }

    .swiper {
        height: 280px;
    }
    
    .swiper-slide {
        width: 458px;
    }

    .swiper-slide img {
        height: 320px;
    }

    .unclaimed-banner {
        margin: 0 24px 28px 24px;
        padding: 24px 28px;
    }

    .tabs-navigation {
        margin-bottom: 20px;
    }

    .actions {
        gap: 6px;
    }

    .actions button {
        padding: 10px 14px;
    }

    .page-container {
        padding: 24px 0 40px;
    }
}

/* 手機版響應式 (最大 767px) */
@media (max-width: 767px) {
    .page-container {
        padding: 16px 0 32px;
    }

    .header-section {
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .clinic-photos-carousel {
        min-height: 200px;
        margin: 16px 0;
    }

    .swiper {
        height: 200px;
        border-radius: 8px;
    }
    
    .swiper-slide {
        border-radius: 8px;
        width: 286px;
    }

    .swiper-slide img {
        border-radius: 8px;
    }

    .unclaimed-banner {
        padding: 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .tabs-navigation {
        margin-bottom: 16px;
    }

    .back-button {
        display: flex;
    }

    .text-and-supporting-text .text {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .content {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 12px;
    }

    .actions {
        gap: 8px;
    }

    .actions button {
        padding: 10px 12px;
        gap: 4px;
        font-size: 13px;
    }

    .rating {
        margin: 6px 0;
        gap: 6px;
    }

    .swiper-slide:nth-child(1) {
        width: 240px;
    }

    .swiper-slide:nth-child(2) {
        width: 230px;
    }

    .swiper-slide:nth-child(3),
    .swiper-slide:nth-child(4),
    .swiper-slide:nth-child(7) {
        width: 180px;
    }

    .swiper-slide:nth-child(5) {
        width: 180px;
    }

    .swiper-slide:nth-child(6) {
        width: 180px;
    }

    .swiper-slide img {
        height: 200px;
        border-radius: 8px;
    }

    .unclaimed-banner .heading {
        font-size: 18px;
        line-height: 1.556;
    }

    .unclaimed-banner .supporting-text {
        font-size: 16px;
        line-height: 1.5;
    }

    .unclaimed-banner .actions {
        align-self: stretch;
    }

    .claim-button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .swiper-slide {
        margin-right: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px !important;
    }

    .swiper-button-next {
        right: 16px !important;
    }

    .swiper-button-prev {
        left: 16px !important;
    }

    .swiper-pagination {
        bottom: 16px !important;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* 超小螢幕 (最大 480px) */
@media (max-width: 480px) {
    .clinic-photos-carousel {
        min-height: 180px;
    }

    .swiper {
        height: 180px;
    }
    
    .swiper-slide {
        width: 286px;
    }

    .swiper-slide img {
        height: 200px;
    }

    .text-and-supporting-text .text {
        font-size: 18px;
    }

    .actions button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .unclaimed-banner {
        padding: 16px 20px;
    }

    .claim-button {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ========== 額外的美化樣式 ========== */
.text-and-supporting-text {
    gap: 6px;
}

.content,
.actions,
.rating,
.text-and-supporting-text {
    transition: all 0.2s ease;
}

.actions button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

.claim-button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
} 