/* store_details.css - 從 s_store_details.php 搬移 */
body { font-family: 'Noto Sans TC', sans-serif; background-color: #f5f5f5; }
h1.store-name { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px !important; }
.gender-icon { width: 24px; height: 24px; margin-right: 0.5rem; vertical-align: middle;}
.card-header .masseur-actions { gap: 0.5rem; }
.masseur-action-btn { padding: 0.25rem 0.5rem !important; line-height: 1.5; vertical-align: middle; }
.card-header .report-left-btn i.fa-user-clock, .card-header .report-left-btn i.fa-user-check { margin-right: 3px; }
.report-status-msg { font-size: 0.7rem; height: 1em; display: inline-block; margin-left: 5px;}
.store-features { padding-top: 10px; border-top: 1px solid #eee; margin-top: 10px; line-height: 1.9; }
.store-features .badge { font-size: 0.78rem; padding: 0.35em 0.7em; font-weight: 500; }
.store-features .badge i { margin-right: 4px; vertical-align: middle; }
.store-card { background: white; border-radius: 8px; padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.store-cover { width: 100%; height: 300px; object-fit: cover; border-radius: 8px 8px 0 0; margin-bottom: 15px; background-color: #eee;}
.store-cover.no-photo { background-color: #e9ecef; display:flex; align-items:center; justify-content:center; color:#aaa; font-size:1.5rem;}
.store-info { padding: 10px 0; }
.info-item { display: flex; align-items: center; color: #666; font-size: 0.9rem; margin-bottom: 8px; }
.info-item i { width: 20px; margin-right: 8px; color: #007bff; text-align: center; flex-shrink: 0; }
.info-item a { color: #007bff; text-decoration: none; word-break: break-all; }
.info-item a:hover { text-decoration: underline; }
.share-buttons { display: flex; gap: 0.5rem; }
.share-buttons .btn { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.store-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 15px 0; }
.store-photo { position: relative; padding-top: 75%; border-radius: 8px; overflow: hidden; cursor: pointer; background-color: #eee; }
.store-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.store-photo:hover img { transform: scale(1.05); }
.hidden-photo { display: none; }
.nav-tabs {
  margin-bottom: 1.2rem;
  border-bottom: 1.5px solid #dee2e6;
  gap: 8px;
}
.nav-tabs .nav-link {
  border-radius: 8px 8px 0 0;
  padding: 0.7rem 1.5rem;
  font-size: 15px;
  font-weight: 500;
  background: #f8f9fa;
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  color: #495057;
  transition: background 0.2s, color 0.2s;
}
.nav-tabs .nav-link.active {
  background: #fff;
  color: #0d6efd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-bottom: 2px solid #fff;
  z-index: 2;
}
.nav-tabs .nav-link:hover {
  background: #e9ecef;
  color: #0d6efd;
}
.tab-content { background: white; border-radius: 0 8px 8px 8px; padding: 20px; border: 1px solid #dee2e6; border-top: none; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
#map-container { width: 100%; border-radius: 8px; margin-bottom: 15px; background-color: #eee; }
.masseur-grid { display: grid; gap: 1rem; }
.masseur-card { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eee; }
.card-header { background: #f8f9fa; padding: 0.6rem 0.8rem; border-bottom: 1px solid #eee; }
.masseur-name { font-weight: 500;}
.rating-brief { padding: 0.8rem; }
.rating-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.rating-item { padding: 0.5rem 0.35rem; text-align: center; background: #f8f9fa; border-radius: 6px; border: 1px solid #eee; }
.rating-value { font-size: 1rem; font-weight: bold; color: #007bff; margin-bottom: 2px; }
.rating-label { font-size: 0.7rem; color: #6c757d; text-transform: uppercase; }
.report-left-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.card-header .masseur-actions { margin-left: auto; flex-shrink: 0; }
.review-card { padding: 15px; border-bottom: 1px solid #eee; } .review-card:last-child { border-bottom: none; }
.reviewer-info { display: flex; align-items: flex-start; margin-bottom: 10px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; object-fit: cover; background-color: #f0f0f0; }
.reviewer-details { flex: 1; }
.reviewer-name { font-size: 14px; font-weight: 500; }
.review-date { font-size: 12px; color: #666; }
.review-rating .fas, .review-rating .far { font-size: 12px; color: #fbbc05; }
.review-content { font-size: 14px; margin-left: 52px; white-space: pre-wrap; word-break: break-word; }
.comment-item { padding: 10px 0; border-bottom: 1px dotted #eee; } .comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; color: #666; }
.comment-content { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.comment-toggle { font-size: 0.85rem; color: #007bff; cursor: pointer; text-decoration: none;} .comment-toggle:hover { text-decoration: underline;}
.fullscreen-photo { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 1050; }
.fullscreen-photo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.fullscreen-photo .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 30px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; } .fullscreen-photo .nav-btn:hover { opacity: 1; }
.fullscreen-photo .prev-btn { left: 15px; } .fullscreen-photo .next-btn { right: 15px; }
.top-masseur-item { padding: 6px 8px; border-radius: 4px; margin: 4px 0; background: #f8f9fa; display: flex; justify-content: space-between; align-items: center; gap: 8px;}
.rank-info { display: flex; align-items: center; gap: 6px; overflow: hidden; flex-grow: 1;}
.rank-number { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; background: #dee2e6; border-radius: 3px; font-size: 11px; font-weight: bold; flex-shrink: 0; }
.rank-number.top-3 { background: #ffd700; color: #000; }
.gender-icon-small { width: 14px; height: 14px; flex-shrink: 0;}
.masseur-details { display: flex; flex-direction: column; overflow: hidden; }
.masseur-details .masseur-name { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masseur-details .store-link { font-size: 0.75rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rating-badges { display: flex; gap: 4px; flex-shrink: 0; }
.rating-badge { padding: 1px 4px; background: #e9ecef; border: 1px solid #dee2e6; border-radius: 3px; font-size: 10px; white-space: nowrap; }
.rating-badge.total { background-color: #cce5ff; border-color: #b8daff; font-weight: bold; }
.sidebar-card { background: white; border-radius: 8px; padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.pagination-container { display: flex; justify-content: center; margin-top: 20px; }
.pagination { display: flex; list-style: none; padding: 0; } .pagination li { margin: 0 3px; } .pagination li a, .pagination li span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; font-size: 14px; } .pagination li a { background: #f8f9fa; color: #007bff; border: 1px solid #dee2e6; } .pagination li a:hover { background: #e9ecef; } .pagination li.active span { background: #007bff; color: white; border: 1px solid #007bff; } .pagination li.disabled span { color: #6c757d; border: 1px solid #dee2e6; background: #f8f9fa; }
.action-bar { display: flex; justify-content: flex-end; padding-bottom: 10px; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.alert-info { padding: 20px; background-color: #f8f9fa; border: 1px dashed #dee2e6; border-radius: 8px; text-align: center; }
.business-hours-container { position: relative; } .business-hours-toggle { color: #007bff; cursor: pointer; font-size: 0.9rem; margin-left: 5px; } .business-hours-full { display: none; margin-top: 5px; font-size: 0.85rem; line-height:1.6; } .business-hours-full.show { display: block; } .business-hours-full .today { color: #007bff; font-weight: 500; }
.left-masseurs-section h5 a { text-decoration: none; transition: color 0.2s ease; }
.left-masseurs-section h5 a:hover { color: #5a6268 !important; }
.left-masseurs-section h5 a .fa-chevron-down { transition: transform 0.3s ease; }
.left-masseurs-section h5 a[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.likely-left-masseur { opacity: 0.75; border-left: 4px solid #ffc107; transition: opacity 0.3s ease; }
.likely-left-masseur:hover { opacity: 1; }
.likely-left-masseur .card-header { background-color: #fffadc; }
.likely-left-masseur .masseur-action-btn.disabled { background-color: #e9ecef !important; border-color: #ced4da !important; color: #6c757d !important; cursor: not-allowed !important; opacity: 0.65 !important; }
.likely-left-masseur .masseur-action-btn.disabled:hover { background-color: #e9ecef !important; border-color: #ced4da !important; color: #6c757d !important; }
@media (max-width: 768px) {
    .store-cover { height: 200px; }
    .store-photos { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .rating-stats { grid-template-columns: repeat(2, 1fr); }
    .review-content { margin-left: 0; margin-top: 5px; font-size: 13px;}
    .reviewer-info { margin-bottom: 5px;}
    .card-header .report-left-btn .d-none.d-md-inline { display: inline !important; }
    .card-header .masseur-actions { gap: 0.3rem; }
    .card-header .d-flex.justify-content-between { flex-wrap: wrap; }
    .masseur-actions { margin-top: 5px; width: 100%; justify-content: flex-end; }
    .top-masseur-item { flex-wrap: wrap; }
    .rating-badges { margin-top: 5px; width: 100%; justify-content: flex-start; }
}
.badge-user-ratings { background: #e0f3ff; color: #007bff; font-size: 12px; border-radius: 12px; padding: 0.15em 0.7em; font-weight: 500; vertical-align: middle; } 