/**
 * 寵物友善地圖 - 主樣式
 * /public/places/assets/css/places.css
 *
 * @version 1.0
 * @date 2025-12-06
 */

/* ============================================
   CSS Variables (使用全域共用變數)
   ============================================ */
:root {
    /* 僅保留 places 模組專用變數 */
    --header-height: 60px;
    --bottom-nav-height: 56px;
    --controls-z-index: 100;
    --modal-z-index: 1000;
}

/* ============================================
   Page Layout - 全螢幕地圖 (保留 app-nav)
   ============================================ */

/* 地圖頁面：全寬佈局，但保留底部導航 */
/* 使用 :has() 選擇器 (現代瀏覽器) */
body:has(.places-page) {
    overflow: hidden;
}

body:has(.places-page) .app-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fallback: body class 方式 (舊瀏覽器) */
body.places-fullscreen {
    overflow: hidden;
}

body.places-fullscreen .app-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.places-page {
    position: relative;
    width: 100%;
    /* 扣除 header 和 bottom-nav 高度 */
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height, 56px));
    overflow: hidden;
}

/* 隱藏 footer */
.places-page ~ footer,
.places-page + footer {
    display: none !important;
}

/* ============================================
   Map Container - 全螢幕
   ============================================ */
.places-map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    min-height: 400px;
}

.google-map {
    width: 100%;
    height: 100%;
}

/* 地圖載入中 */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 50;
}

.map-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--paws-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.small {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

.loading-text {
    color: #666;
    font-size: 0.778rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Search Overlay - 浮動搜尋列
   ============================================ */
.places-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--controls-z-index);
    padding: 16px;
    /* background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%); */
    pointer-events: none;
}

.places-search-overlay > * {
    pointer-events: auto;
}

/* 搜尋欄 */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 8px 16px;
    box-shadow: var(--shadow-md);
   max-width: var(--container-width-lg);
    margin: 0 auto 12px;
}

.search-bar .search-icon {
    color: #999;
    margin-right: 8px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.889rem;
    background: transparent;
}

.search-bar input::placeholder {
    color: #aaa;
}

/* 搜尋歷史下拉選單 */
.search-history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-history-dropdown.show {
    display: block;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px;
    font-size: 0.722rem;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
}

.clear-history-btn {
    background: none;
    border: none;
    color: var(--paws-primary);
    font-size: 0.722rem;
    cursor: pointer;
    padding: 0;
}

.clear-history-btn:hover {
    text-decoration: underline;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-history-item:hover {
    background: #f5f5f5;
}

.search-history-item:last-child {
    border-radius: 0 0 12px 12px;
}

.search-history-item .material-icons {
    font-size: 1.111rem;
    color: #999;
}

.search-history-item .keyword {
    font-size: 0.833rem;
    color: #333;
}

.search-btn {
    background: var(--paws-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--paws-primary-dark);
}

/* 篩選器列 */
.filters-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 0.778rem;
    cursor: pointer;
    outline: none;
    min-width: 100px;
}

.filter-select:focus {
    border-color: var(--paws-primary);
}

/* 類別快捷按鈕 */
.category-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.chip {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 0.778rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #f5f5f5;
}

.chip.active {
    background: var(--paws-primary);
    color: white;
    border-color: var(--paws-primary);
}

/* 結果計數 */
.results-count {
    text-align: center;
    font-size: 0.722rem;
    color: #666;
}

/* ============================================
   Control Buttons - 控制按鈕
   ============================================ */
.places-controls {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--controls-z-index);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.control-btn.active {
    background: var(--paws-primary);
    color: white;
    border: none;
    outline: none;
}

.control-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
}

.control-btn .material-icons {
    font-size: 1.333rem;
}

/* ============================================
   List Container - 列表模式
   ============================================ */
.places-list-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    overflow-y: auto;
    padding: 180px 16px 16px;
    z-index: 60;
}

.places-list-container.hidden {
    display: none;
}

/* 列表模式半透明黑色遮罩 */
.places-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.places-map-overlay.active {
    opacity: 1;
}

.places-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 地點卡片 */
.place-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.place-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.place-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #eee;
}

.place-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.place-card-body {
    padding: 12px;
}

.place-card-title {
    font-size: 0.889rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.722rem;
    color: #666;
    margin-bottom: 4px;
}

.place-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--paws-primary);
}

.place-card-rating .material-icons {
    font-size: 0.889rem;
}

.place-card-category {
    background: var(--color-bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.667rem;
}

.place-card-distance {
    color: #999;
    font-size: 0.667rem;
}

/* 載入更多觸發器 */
.load-more-trigger {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.load-more-trigger.hidden {
    display: none;
}

/* ============================================
   Modal Styles
   ============================================ */
#placeDetailModal .uk-modal-dialog {
    max-width: 760px !important;
    margin: auto;
    width: calc(100% - 32px);
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
}

/* Modal 關閉按鈕 - 通用圓形大顆樣式 */
.uk-modal-close-default {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.uk-modal-close-default:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.uk-modal-close-default svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    #placeDetailModal {
        padding: 0 !important;
    }

    #placeDetailModal .uk-modal-dialog {
        width: 100%;
        max-width: 100% !important;
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
    }

    #placeDetailModal .place-modal-content {
        max-height: calc(100vh - 60px);
        min-height: calc(100vh - 60px);
    }

    #placeDetailModal .uk-modal-close-default {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        padding: 4px;
        color: white;
    }
}

/* Toast 訊息 */
.places-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.778rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.places-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.place-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Loading Overlay */
.modal-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 16px;
}

.modal-loading-overlay .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--paws-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-loading-overlay .loading-text {
    color: #666;
    font-size: 0.778rem;
}

/* Modal 導航按鈕 (緊靠 modal 兩側) */
.modal-nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(760px + 100px); /* modal 寬度 + 按鈕空間 */
    max-width: calc(100vw - 20px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1100;
}

.modal-nav .modal-nav-btn.prev {
    transform: translateX(-10px);
}

.modal-nav .modal-nav-btn.next {
    transform: translateX(10px);
}

.modal-nav-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s;
}

.modal-nav-btn:hover {
    background: var(--color-bg-light);
    transform: scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal 功能按鈕 */
.modal-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px 0;
    border-top: 1px solid #eee;
    background: white;
}

.modal-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 70px;
    background: #f5f5f5;
    border: none;
    padding: 6px 4px;
    border-radius: 10px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.modal-actions .action-btn:hover {
    background: var(--paws-primary);
    color: white;
}

.modal-actions .action-btn .material-icons {
    font-size: 1.222rem;
}

.modal-actions .action-btn .action-label {
    font-size: 0.611rem;
    white-space: nowrap;
}

/* Modal 內容區塊 */
.place-modal-photos {
    position: relative;
    background: #f5f5f5;
}

.place-modal-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.place-modal-no-photo {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ccc;
    background: #f5f5f5;
}

.place-modal-no-photo .material-icons {
    font-size: 2.667rem;
}

.place-modal-info {
    padding: 16px;
}

.place-modal-header {
    margin-bottom: 12px;
}

.place-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.place-modal-title {
    margin: 0;
    font-size: 1.111rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.place-modal-category {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--color-bg-light);
    border-radius: 12px;
    font-size: 0.667rem;
    color: #666;
}

.place-modal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.778rem;
    flex-wrap: wrap;
}

.place-modal-rating .material-icons {
    color: var(--paws-primary);
    font-size: 1rem;
}

.place-modal-rating .rating-value {
    font-weight: 600;
    color: #333;
}

.place-modal-rating .rating-count {
    color: #999;
}

.place-modal-distance {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #ddd;
    color: #666;
}

.place-modal-distance .material-icons {
    font-size: 0.889rem;
    color: #999;
}

.place-modal-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.778rem;
    line-height: 1.4;
}

.place-modal-address .material-icons {
    color: var(--paws-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.place-modal-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.place-modal-contacts .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--paws-primary);
    text-decoration: none;
    font-size: 0.778rem;
}

.place-modal-contacts .contact-item:hover {
    text-decoration: underline;
}

.place-modal-contacts .material-icons {
    font-size: 1rem;
}

/* 營業時間 */
.place-modal-hours {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.place-modal-hours .hours-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    background: #fafafa;
}

.place-modal-hours .hours-header .material-icons {
    color: #666;
    font-size: 1rem;
}

.place-modal-hours .hours-status {
    flex: 1;
    font-size: 0.778rem;
    font-weight: 500;
}

.place-modal-hours .hours-status.open {
    color: var(--color-success);
}

.place-modal-hours .hours-status.closed {
    color: var(--color-danger);
}

.place-modal-hours .hours-toggle {
    transition: transform 0.2s;
}

.place-modal-hours.expanded .hours-toggle {
    transform: rotate(180deg);
}

.place-modal-hours .hours-list {
    display: none;
    padding: 8px 12px;
    font-size: 0.722rem;
}

.place-modal-hours.expanded .hours-list {
    display: block;
}

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

.place-modal-hours .hours-row .day {
    color: #666;
}

.place-modal-hours .hours-row .time {
    color: #333;
}

/* 寵物友善指南 */
.place-modal-guide {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}

.place-modal-guide .guide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.place-modal-guide .guide-header .material-icons {
    color: var(--paws-primary);
    font-size: 1.222rem;
}

.place-modal-guide .guide-title {
    font-weight: 600;
    font-size: 0.833rem;
    flex: 1;
}

.place-modal-guide .guide-score {
    font-size: 0.778rem;
}

.place-modal-guide .guide-summary {
    margin: 0 0 12px;
    font-size: 0.722rem;
    line-height: 1.5;
    color: #555;
}

.place-modal-guide .guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.place-modal-guide .guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.667rem;
}

.place-modal-guide .guide-tag .material-icons {
    font-size: 0.778rem;
}

.place-modal-guide .guide-tag.positive {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.place-modal-guide .guide-tag.info {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.place-modal-guide .guide-tips {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.722rem;
    color: #666;
}

.place-modal-guide .guide-tips .material-icons {
    color: var(--paws-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Modal 錯誤訊息 */
.place-modal-error {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

/* Modal 載入中 */
.place-modal-loading {
    padding: 60px 20px;
    text-align: center;
}

/* Modal 位置計數器 (在 modal 外部頂端) */
.modal-position-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.722rem;
    font-weight: 500;
    z-index: 1100;
    pointer-events: none;
}

/* 滑動指示器 */
.swipe-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.778rem;
    z-index: 1001;
    pointer-events: none;
    transition: opacity 0.1s;
}

.swipe-indicator.prev {
    left: 16px;
}

.swipe-indicator.next {
    right: 16px;
}

.swipe-indicator .material-icons {
    font-size: 1.333rem;
}

/* Modal 導航按鈕優化 - 按鈕在 modal 外部 */
.modal-nav-btn {
    opacity: 0.7;
    transition: all 0.2s, opacity 0.3s;
}

#placeDetailModal:hover .modal-nav-btn {
    opacity: 1;
}

.modal-nav-btn:disabled {
    opacity: 0.3 !important;
}

/* 手機版隱藏導航按鈕 */
@media (max-width: 768px) {
    .modal-nav {
        display: none;
    }

    .modal-position-counter {
        top: 10px;
    }
}

/* ============================================
   Modal V2 - Pawspass 風格
   ============================================ */

/* 照片區塊 */
.modal-photo-section {
    position: relative;
    background: #f5f5f5;
}

.modal-photo-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.modal-photo-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
}

.modal-photo-placeholder .material-icons {
    font-size: 3.556rem;
}

.modal-photo-dots {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0;
}

/* 評分覆蓋層 */
.modal-rating-overlay {
    position: absolute;
    bottom: 40px;
    left: 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.modal-rating-overlay .rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--paws-primary);
}

.modal-rating-overlay .rating-stars {
    font-size: 1rem;
    color: var(--paws-primary);
}

.modal-rating-overlay .rating-count {
    font-size: 0.778rem;
    opacity: 0.9;
}

/* 標籤覆蓋層 */
.modal-tags-overlay {
    position: absolute;
    bottom: 8px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.modal-tag {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.722rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
}

.modal-tag.primary {
    background: var(--paws-primary);
    color: white;
}

/* 資訊列表 */
.modal-info-list {
    padding: 16px;
    background: white;
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-info-item:last-child {
    border-bottom: none;
}

.modal-info-item .info-icon {
    color: var(--paws-primary);
    font-size: 1.222rem;
    flex-shrink: 0;
}

.modal-info-item .info-content {
    flex: 1;
}

.modal-info-item .info-label {
    font-size: 0.667rem;
    color: #999;
    margin-bottom: 2px;
}

.modal-info-item .info-value {
    font-size: 0.833rem;
    color: #333;
    font-weight: 500;
}

/* 地點名稱列 + 複製按鈕 */
.place-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-name-row > span:first-child {
    color: var(--paws-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.copy-url-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-url-btn:hover {
    background: var(--paws-primary);
    color: white;
}

.copy-url-btn .material-icons {
    font-size: 0.889rem;
}

.copy-url-btn.copied {
    background: var(--color-success);
    color: white;
}

/* 操作按鈕 (不固定，隨內容捲動) */
.modal-actions-fixed {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.modal-actions-fixed .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: none;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    color: #666;
    font-size: 0.611rem;
    flex: 1;
    transition: all 0.2s;
}

.modal-actions-fixed .action-btn:hover {
    background: var(--paws-primary);
    color: white;
}

.modal-actions-fixed .action-btn .material-icons {
    font-size: 1.222rem;
}

.modal-actions-fixed .action-btn.active {
    color: var(--paws-primary);
}

.modal-actions-fixed .action-btn.active .material-icons {
    color: var(--paws-primary);
}

/* Section 區塊 */
.modal-section {
    padding: 16px;
    border-top: 8px solid #f5f5f5;
}

.modal-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--paws-primary);
}

.modal-section .section-header .material-icons {
    color: var(--paws-primary);
    font-size: 1.222rem;
}

.modal-section .section-title {
    font-size: 0.889rem;
    font-weight: 600;
    flex: 1;
    display: contents;
}

/* 營業時間卡片 */
.hours-list-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px 16px;
}

.hours-list-card .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.778rem;
}

.hours-list-card .hours-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.hours-list-card .hours-row .day {
    color: #666;
}

.hours-list-card .hours-row .time {
    color: #333;
    font-weight: 500;
}

/* 評論區塊 */
.reviews-summary-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.reviews-summary-card .big-number {
    font-size: 2.667rem;
    font-weight: 700;
    color: var(--paws-primary);
    line-height: 1;
}

.reviews-summary-card .summary-stars {
    font-size: 1.111rem;
    color: var(--paws-primary);
    margin: 8px 0;
}

.reviews-summary-card .summary-count {
    font-size: 0.778rem;
    color: #666;
}

/* 評論列表 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paws-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.reviewer-avatar .avatar-initial {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: var(--paws-primary);
    margin-bottom: 2px;
}

.reviewer-stars {
    font-size: 0.778rem;
    color: var(--paws-primary);
}

.review-time {
    font-size: 0.667rem;
    color: #999;
}

.review-text {
    font-size: 0.778rem;
    line-height: 1.6;
    color: #333;
}

/* Guide tags (通用) */
.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.722rem;
}

.guide-tag .material-icons {
    font-size: 0.889rem;
}

.guide-tag.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.guide-tag.info {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.guide-summary {
    margin: 0 0 12px;
    font-size: 0.778rem;
    line-height: 1.6;
    color: #555;
}

.guide-tips {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 8px;
    font-size: 0.722rem;
    color: #666;
}

.guide-tips .material-icons {
    color: var(--paws-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.guide-score {
    margin-left: auto;
}

/* ============================================
   Featured Pet Guide - 便條紙/活頁樣式
   ============================================ */
.pet-guide-featured {
    position: relative;
    background: linear-gradient(180deg, #fffef5 0%, #fff9e6 100%);
    border-radius: 4px 4px 12px 12px;
    margin: 16px;
    padding: 24px 16px 16px !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(245, 166, 35, 0.1);
    /* 便條紙底部撕裂效果 */
    border-bottom: 3px solid #f5a623;
}

/* 活頁孔裝飾 */
.pet-guide-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        transparent 10px,
        #f5a623 10px, #f5a623 14px,
        transparent 14px, transparent 40px,
        #f5a623 40px, #f5a623 44px,
        transparent 44px, transparent 70px,
        #f5a623 70px, #f5a623 74px,
        transparent 74px, transparent 100px,
        #f5a623 100px, #f5a623 104px,
        transparent 104px
    );
    border-radius: 4px 4px 0 0;
}

/* 左側裝飾線 */
.pet-guide-featured::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: rgba(245, 166, 35, 0.3);
    border-radius: 1px;
}

.pet-guide-featured .section-header.featured {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: none;
    padding-bottom: 12px;
    margin-bottom: 16px;
    padding-left: 20px;
}

.pet-guide-featured .section-header.featured .material-icons {
    color: var(--paws-primary);
    font-size: 1.444rem;
}

.pet-guide-featured .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #5a4a2a;
    flex: 1;
}

.guide-score-badge {
    background: linear-gradient(135deg, #f5a623 0%, #e09000 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.722rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(245, 166, 35, 0.3);
}

.guide-tags-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 20px;
}

/* 便條紙內的區塊都需左邊距 */
.pet-guide-featured .guide-section-block,
.pet-guide-featured .guide-tips-highlight,
.pet-guide-featured .guide-details,
.pet-guide-featured .guide-confidence {
    margin-left: 20px;
}

.guide-tag.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.guide-tag.neutral {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.guide-tips-highlight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.778rem;
    color: #333;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-tips-highlight .material-icons {
    color: var(--paws-primary);
    font-size: 1.111rem;
    flex-shrink: 0;
}

.guide-details {
    margin-top: 8px;
}

.guide-details summary {
    cursor: pointer;
    color: var(--paws-primary);
    font-size: 0.778rem;
    font-weight: 500;
}

.guide-details summary:hover {
    text-decoration: underline;
}

.guide-summary-full {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.722rem;
    line-height: 1.6;
    color: #555;
    max-height: 300px;
    overflow-y: auto;
}

/* Guide Section Blocks */
.guide-section-block {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.778rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.guide-block-title .material-icons {
    font-size: 1rem;
    color: var(--paws-primary);
}

.guide-block-content {
    font-size: 0.722rem;
    line-height: 1.7;
    color: #555;
}

/* 友善指南文字標示 */
.guide-yes {
    color: #22c55e;
    font-weight: 600;
}

.guide-no {
    color: #ef4444;
    font-weight: 600;
}

.guide-uncertain {
    color: #f59e0b;
    font-weight: 600;
}

.guide-tips-highlight .tips-content {
    flex: 1;
}

.guide-tips-highlight .tips-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--paws-primary);
}

.guide-tag.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.guide-details summary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-details summary .material-icons {
    font-size: 1rem;
}

.guide-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
    font-size: 0.667rem;
    color: #888;
}

.guide-confidence .material-icons {
    font-size: 0.889rem;
    color: #4caf50;
}

/* ============================================
   Favorites Sidebar - 收藏側邊欄 (UIkit Offcanvas)
   ============================================ */
/* UIkit offcanvas overrides */
#favoritesSidebar .uk-offcanvas-bar {
    width: 350px !important;
    max-width: 90vw !important;
    padding: 0;
    background: white;
    color: #333;
}

/* 關閉按鈕樣式 - 確保在白色背景上可見 */
#favoritesSidebar .uk-offcanvas-close {
    color: #333;
}

#favoritesSidebar .uk-offcanvas-close:hover {
    color: #000;
}

.favorites-offcanvas {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
}

.close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
}

/* 側邊欄圓形關閉按鈕 */
.sidebar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-close-btn:hover {
    background: #e0e0e0;
}

.sidebar-close-btn .material-icons {
    font-size: 20px;
    color: #666;
}

.sidebar-tabs {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
    border-bottom: 1px solid #eee;
}

.sidebar-tabs .tab {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    background: var(--color-bg-light);
    border-radius: 16px;
    font-size: 0.722rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-tabs .tab.active {
    background: var(--paws-primary);
    color: white;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* Favorites List Items */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.fav-item:hover {
    background: #e9ecef;
}

.fav-item-info {
    flex: 1;
    min-width: 0;
}

.fav-item-name {
    font-weight: 500;
    font-size: 0.778rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: #333;
}

.fav-item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.667rem;
    color: #666;
}

.fav-item-meta .material-icons {
    font-size: 0.778rem;
    color: var(--paws-primary);
}

.fav-item-category {
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.611rem;
    margin-left: 8px;
    border: 1px solid #e0e0e0;
}

.fav-item-photo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.fav-item-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.fav-item-edit,
.fav-item-remove {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.fav-item-edit .material-icons,
.fav-item-remove .material-icons {
    font-size: 1rem;
}

.fav-item-edit:hover {
    color: var(--paws-primary);
}

.fav-item-remove:hover {
    color: var(--color-danger);
}

/* Category Selector Modal */
.favorite-category-select {
    text-align: center;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-option {
   padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #eeeeee;
    font-size: 0.778rem;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
    display: flex;
    gap: 10px;
}

.category-option:hover {
    background: var(--paws-primary);
    color: white;
    border-color: var(--paws-primary);
}

.category-option.active {
    background: var(--paws-primary);
    color: white;
    border-color: var(--paws-primary);
}

/* Modal Action Button Active State */
.modal-actions .action-btn.active {
    color: var(--color-danger);
}

.modal-actions .action-btn.active .material-icons {
    color: var(--color-danger);
}

/* Toast Notification */
.places-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.778rem;
    z-index: calc(var(--modal-z-index) + 100);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.places-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   InfoWindow Styles (Google Maps)
   ============================================ */
.place-info-window {
    max-width: 280px;
    overflow: hidden;
}

/* Google Maps InfoWindow 容器 - 移除預設 scrollbar */
.gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style-iw-c {
    padding: 12px !important;
}

.place-info-window h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.place-info-window p {
    margin: 0;
    font-size: 0.722rem;
    color: #666;
    line-height: 1.4;
}

.place-info-window .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.778rem;
}

.place-info-window .btn-detail {
    padding: 8px 16px;
    font-size: 0.778rem;
}

/* InfoWindow 照片 */
.info-window-photo {
    margin: -12px -12px 12px -12px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.info-window-photo img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.info-window-content {
    padding: 0;
}

/* ============================================
   Responsive - 手機版
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* 搜尋區塊滑動隱藏/顯示動畫 */
    .places-search-overlay {
        padding: 12px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .places-search-overlay.search-hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .search-bar {
        padding: 6px 12px;
    }

    .search-bar input {
        font-size: 0.778rem;
    }

    .filters-row {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter-select {
        min-width: auto;
        font-size: 0.722rem;
        padding: 6px 10px;
    }

    .category-chips {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .chip {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 0.722rem;
    }

    /* 手機版控制按鈕放在右側 (固定位置) */
    .places-controls {
        position: fixed;
        right: 12px;
        bottom: calc(var(--bottom-nav-height) + 16px);
        top: auto;
        transform: none;
        flex-direction: column;
        gap: 8px;
        z-index: var(--controls-z-index);
    }

    .control-btn {
        width: 44px;
        height: 44px;
        box-shadow: var(--shadow-md);
    }

    /* 列表容器調整 - 需要空間給底部導航 */
    .places-list-container {
        padding: 160px 8px calc(var(--bottom-nav-height) + 16px);
        transition: padding-top 0.3s ease;
    }

    /* 搜尋區塊隱藏時減少頂部間距 */
    .places-list-container.search-collapsed {
        padding-top: 16px;
    }

    /* 兩欄顯示 */
    .places-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* 調整卡片樣式適應兩欄 */
    .place-card-image {
        height: 100px;
    }

    .place-card-body {
        padding: 8px;
    }

    .place-card-title {
        font-size: 0.778rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
    }

    .place-card-meta {
        flex-wrap: wrap;
        gap: 4px;
    }

    .place-card-category {
        display: none;
    }

    /* 收藏側邊欄全螢幕 */
    .favorites-sidebar {
        width: 100%;
        right: -100%;
    }

    /* Modal 導航按鈕隱藏 (用滑動代替) */
    .modal-nav.desktop-only {
        display: none;
    }
}

/* ============================================
   Desktop Only
   ============================================ */
@media (min-width: 769px) {
    .desktop-only {
        display: flex;
    }
}

/* ============================================
   Slider Auto-play Fix (防止頁面跳頂)
   ============================================ */
/* 隱藏 Modal 照片區的 slider dots */
.modal-photo-section .uk-dotnav,
.modal-photo-section .uk-slider-nav {
    display: none !important;
}

.modal-photo-section [uk-slider] {
    outline: none;
}

.modal-photo-section .uk-slider-items {
    scroll-behavior: auto !important;
}

.modal-photo-section .uk-slider-items li {
    outline: none;
}

.modal-photo-section .uk-slider-items li:focus,
.modal-photo-section .uk-slider-items li:focus-visible {
    outline: none;
}

.modal-photo-section img {
    outline: none;
}

/* 防止 slider 觸發父容器滾動 */
#placeDetailModal .uk-modal-dialog {
    scroll-behavior: auto;
}

/* ============================================
   Nearby Places Section
   ============================================ */
.nearby-section {
    padding: 16px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.nearby-places-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nearby-place-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}

.nearby-place-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.nearby-photo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.nearby-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.nearby-photo-placeholder .material-icons {
    font-size: 1.556rem;
}

.nearby-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nearby-name {
    font-size: 0.778rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.667rem;
    color: #888;
}

.nearby-category {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.nearby-rating {
    color: #f5a623;
}

.nearby-distance {
    color: #666;
}

.nearby-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.nearby-empty .material-icons {
    font-size: 2.667rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.nearby-empty p {
    margin: 0;
    font-size: 0.778rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

/* ============================================
   Modal Tutorial Overlay - 導覽提示
   ============================================ */
.modal-tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: tutorialFadeIn 0.3s ease forwards;
}

@keyframes tutorialFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tutorial-content {
    background: white;
    border-radius: 16px;
    padding: 30px 24px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: tutorialSlideUp 0.3s ease forwards;
}

@keyframes tutorialSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-icon {
    font-size: 2.667rem;
    color: var(--paws-primary);
    margin-bottom: 16px;
}

.tutorial-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.tutorial-desc {
    font-size: 0.778rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.tutorial-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tutorial-hint .material-icons {
    font-size: 1.556rem;
    color: var(--paws-primary);
}

.tutorial-hint-text {
    font-size: 0.778rem;
    color: #333;
    font-weight: 500;
}

/* 桌面版提示樣式 */
.tutorial-desktop .tutorial-hint {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
}

/* 行動版提示樣式 - 滑動手勢動畫 */
.tutorial-mobile .tutorial-hint {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

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

.swipe-hand {
    font-size: 1.778rem;
    animation: swipeHand 1.5s ease-in-out infinite;
}

@keyframes swipeHand {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

.swipe-arrows {
    display: flex;
    gap: 4px;
}

.swipe-arrows .material-icons {
    font-size: 1.111rem;
    color: #1976d2;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.swipe-arrows .material-icons:first-child {
    animation-delay: 0s;
}

.swipe-arrows .material-icons:last-child {
    animation-delay: 0.75s;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.tutorial-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--paws-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.889rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-btn:hover {
    background: var(--paws-primary-dark);
    transform: translateY(-1px);
}

.tutorial-btn:active {
    transform: translateY(0);
}

/* Pet Guide Modal 樣式已移至 pet-guide-form.css 和 pet-guide-modal.php */

/* 確認對話框要在最上層 */
.uk-modal-container > .uk-modal:not(.pet-guide-modal):not(#placeDetailModal) {
    z-index: 1100 !important;
}

/* ============================================
   收藏分類選擇器 (Dropdown 版本)
   ============================================ */
.fav-category-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.fav-category-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.fav-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.fav-category-panel {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 400px;
    padding: 0 0 env(safe-area-inset-bottom, 20px) 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.fav-category-dropdown.show .fav-category-panel {
    transform: translateY(0);
}

.fav-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 1rem;
}

.fav-category-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.fav-category-options {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
}

.fav-category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.fav-category-btn:hover {
    background: #e9ecef;
}

.fav-category-btn.active {
    background: var(--paws-primary);
    color: #fff;
}

.fav-category-btn.active .material-icons {
    color: #fff;
}

.fav-category-btn .material-icons {
    color: var(--paws-primary);
}

/* ============================================
   User Avatar Marker - 用戶位置頭像標記
   ============================================ */
.user-avatar-marker {
    z-index: 100;
}

.avatar-marker-inner {
    position: relative;
    width: 44px;
    height: 44px;
}

.avatar-marker-inner img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4285F4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* 脈衝動畫效果 */
.avatar-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.3);
    z-index: 1;
    animation: avatarPulse 2s infinite;
}

@keyframes avatarPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

/* ============================================
   InfoWindow 操作按鈕
   ============================================ */

/* 隱藏 Google Maps 預設的關閉按鈕 */
.gm-style-iw-c button.gm-ui-hover-effect {
    display: none !important;
}

.info-window-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: stretch;
}

.info-window-actions .btn-detail {
    flex: 1;
    padding: 8px 16px;
    background: var(--paws-primary, #f5a623);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.info-window-actions .btn-detail:hover {
    background: #e09515;
}

.info-window-actions .btn-close {
    width: 40px;
    min-height: 36px;
    padding: 0;
    background: #f1f1f1;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.info-window-actions .btn-close:hover {
    background: #e0e0e0;
    color: #333;
}

.info-window-actions .btn-close .material-icons {
    font-size: 20px;
}
