/* 同區分店列表樣式 */
.shop-list {
    list-style: none;
    padding: 0;
    margin: 1px 0;
}

.shop-item {
    border: 1px solid #ffd712;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-header {
    background-color: #fbeed6;
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.shop-header:hover {
    background-color: #f5b985;
}

.toggle-icon {
    margin-right: 10px;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.shop-content {
    padding: 5px 15px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.shop-content .shop-address{
    border-radius:3px;
    border-left: 3px solid #3498db;
    background:#f1f1f1;
    padding:4px;
}

.time-slots {
    margin-top: 10px;
}

.slot-group {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 3px;
}
.f-slot-group{background-color: rgb(241 228 247 / 72%);border: 1px dashed rgb(184 142 203 / 72%);}
.b-slot-group{background-color: rgba(170, 233, 248, 0.72);border:1px dashed rgba(80, 195, 221, 0.72);}
.s-slot-group{background-color: rgba(251, 211, 221, 0.72);border:1px dashed rgba(239, 134, 157, 0.72);}

.slot-label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: normal;
}

.slot-badges {
    display: block;
    line-height: 1.8;
}

.time-badge {
    display: inline-block;
    margin: 2px;
    padding:1px 2px;
    background-color: #4CAF50;
    color: white;
    border-radius: 3px;
    font-size: 13px;
}

.no-slots {
    color: #999;
    font-style: italic;
    margin: 10px 0;
}
a{text-decoration:none!important;}
.btn-book-now{float:right;border:1px solid #c7b25d;padding:2px 4px;border-radius:3px;background:#4caf50}
a.btn-book-now{color:#fff!important;}
.text-muted{color:#777;}
.modal{border-radius:10px!important;}
.modal .modal-title{font-size:18px;border-bottom:1px solid #ddd;padding-bottom:10px;font-weight:600}
.modal .close{margin-top:-5px;font-weight:normal}
.modal .modal-buttons{text-align:center;margin-top:20px}
.modal .modal-buttons button{padding:7px 20px;border:1px solid #ddd;border-radius:3px}
.modal .date{padding:8px 0 ;}

/* ============================================
   移動端（Mobile）樣式
   ============================================ */

/* Panel 內容區域樣式 */
.ui-panel-inner {
    padding: 0;
}

.ui-panel-inner [data-role="header"] {
    padding: 5px;
    background-color: #2c3e50;
    color: #fff;
    margin: 0;

}

.ui-panel-inner [data-role="header"] h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.ui-panel-inner [data-role="content"] {
    padding: 5px;
    background-color: #f8f9fa;
}

.ui-panel-inner [data-role="footer"] {

}

/* 日期顯示 */
.ui-panel-inner .date {
    padding: 5px 8px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 0;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 移動端列表樣式 */
.shop-list-mobile {
    margin: 0;
    padding: 0;
}

.shop-item-mobile {
    background-color: #fff;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* 店鋪標題區域 */
.shop-header-mobile {
    
    padding: 2px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.shop-name-mobile {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.toggle-icon-mobile {
    margin-right: 0;
    font-size: 9px;
    color: #000;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* 展開的內容區域 */
.shop-content-mobile {
    padding: 3px;
    background-color: #fff;
    border-top: 1px solid #e8e8e8;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-address-mobile {
    margin: 0 0 15px 0;
    padding: 6px 2px;
    background-color: #f1f1f1;
    border-left: 3px solid #3498db;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* 時間槽位容器 */
.time-slots-mobile {
    margin-top: 0;
}

.slot-group-mobile {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.f-slot-group-mobile {
    background-color: rgba(241, 228, 247, 0.8);
    border: 1px dashed rgba(186, 104, 200, 0.6);
}

.b-slot-group-mobile {
    background-color: rgba(170, 233, 248, 0.8);
    border: 1px dashed rgba(80, 195, 221, 0.6);
}

.s-slot-group-mobile {
    background-color: rgba(251, 211, 221, 0.8);
    border: 1px dashed rgba(239, 134, 157, 0.6);
}

.slot-label-mobile {
    display: block;
    margin-bottom: 2px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.slot-badges-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    line-height: 1;
}

.time-badge-mobile {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.time-badge-mobile:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
}
.shop-item-mobile  h2{font-weight:normal!important;}

/* 預約按鈕 */
.btn-book-now-mobile {
    margin-top: 0 !important;
    width: 100%;
    text-align: center;
    padding: 5px 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    color: #08972e !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    text-shadow:none !important;
}

.btn-book-now-mobile:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
}
.shop-item-mobile  .ui-btn{color:lightgreen!important;border:1px solid lightgreen!important;padding:5px 10px;background:#fff!important;}
.ui-panel{width:21em;}
/* 無時間槽位提示 */
.no-slots-mobile {
    color: #999;
    font-style: italic;
    margin: 15px 0;
    text-align: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-size: 13px;
}

/* 無其他店鋪數據提示 */
.ui-panel-inner > [data-role="content"] > p {
    padding: 20px;
    text-align: center;
    color: #666;
    background-color: #fff;
    border-radius: 8px;
    margin: 15px 0;
}

/* Footer 按鈕樣式 */
.ui-panel-inner [data-role="footer"] [data-role="button"] {
    margin: 0 5px;
    border-radius: 6px;
}

/* 響應式優化 */
@media (max-width: 480px) {
    .shop-name-mobile {
        font-size: 14px;
    }
    .slot-group-mobile {
        padding: 5px;
    }
    
    .time-badge-mobile {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.button-close{color:#fff!important;}
.btn-close{font-weight:500;color:#fff!important;top:.4em}



