/*
Theme Name: My Travel Standalone
Description: 旅宿專輯 WordPress 主題 v4.2：整合飯店、行程與景點搜尋及完整模板。
Version: 4.2.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.8; color: #1f1f1f; background: #faf9f6; }
a { color: #b48b3c; text-decoration: none; }

.fullon-hotel-wrapper {
    --fh-primary: #b48b3c;
    --fh-primary-dark: #8c6a28;
    --fh-bg: #faf9f6;
    --fh-card-bg: #ffffff;
    --fh-text: #1f1f1f;
    --fh-text-muted: #4a4a4a;
    --fh-border: #dcd9d0;
    --fh-radius: 18px;
    --fh-shadow: 0 10px 28px rgba(0,0,0,0.08);
    font-size: 18px;
    padding: 0 18px 40px 18px;
    width: 100%;
}
.fullon-hotel-wrapper .fh-container { max-width: 1320px; margin: 0 auto; }

/* Sticky Hero Header */
.fullon-hotel-wrapper .hero-sticky-header {
    position: sticky; top: 0; z-index: 100; background-color: var(--fh-bg);
    padding-top: 18px; padding-bottom: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); margin-bottom: 32px;
}
.fullon-hotel-wrapper .brand-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    background: var(--fh-card-bg); padding: 24px 36px; border-radius: var(--fh-radius); border: 1px solid var(--fh-border);
}
.fullon-hotel-wrapper .brand-logo { max-height: 75px; width: auto; object-fit: contain; }
.fullon-hotel-wrapper .brand-title { font-size: 2.8rem; font-weight: 900; color: #111; line-height: 1.2; margin: 0; }
.fullon-hotel-wrapper .brand-subtitle { font-size: 1.2rem; color: var(--fh-text-muted); margin-top: 6px; font-weight: 600; }
.fullon-hotel-wrapper .brand-tags { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.fullon-hotel-wrapper .tag { background: #f0ebd8; color: var(--fh-primary-dark); padding: 6px 18px; border-radius: 10px; font-size: 1rem; font-weight: 800; }
.fullon-hotel-wrapper .tag-rating { background: #fef3c7; color: #d97706; }
.fullon-hotel-wrapper .tag-city { background: #e0f2fe; color: #0284c7; }
.fullon-hotel-wrapper .tag-district { background: #f1f5f9; color: #475569; }

/* 相冊牆 */
.fullon-hotel-wrapper .gallery-section { margin-bottom: 40px; }
.fullon-hotel-wrapper .gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    border-radius: var(--fh-radius);
    overflow: hidden;
    box-shadow: var(--fh-shadow);
}
.fullon-hotel-wrapper .gallery-grid img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.fullon-hotel-wrapper .gallery-grid .main-img { grid-row: span 2; }

.fullon-hotel-wrapper .layout-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; }
.fullon-hotel-wrapper .card { background: var(--fh-card-bg); border: 1px solid var(--fh-border); border-radius: var(--fh-radius); padding: 36px; margin-bottom: 30px; box-shadow: var(--fh-shadow); }
.fullon-hotel-wrapper .section-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 24px; border-bottom: 4px solid #f4f2ed; padding-bottom: 12px; color: #111111; }

/* 特色設施 */
.fullon-hotel-wrapper .amenities-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.fullon-hotel-wrapper .amenity-chip { background: #f7f6f2; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 400; color: #333333; }

.fullon-hotel-wrapper .transport-box { background: #faf8f2; border-radius: 14px; padding: 20px; border: 1px solid #eee8d5; }
.fullon-hotel-wrapper .transport-item { margin-bottom: 10px; font-size: 1.1rem; }
.fullon-hotel-wrapper .transport-label { font-weight: 900; color: var(--fh-primary-dark); }

.fullon-hotel-wrapper .promo-banner-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%); border: 2px solid #e8d7b5; border-radius: 18px; padding: 24px; align-items: center; }
.fullon-hotel-wrapper .promo-img { width: 100%; height: 160px; object-fit: cover; border-radius: 14px; }
.fullon-hotel-wrapper .promo-title { font-size: 1.5rem; font-weight: 900; color: #111; margin: 0 0 8px 0; }
.fullon-hotel-wrapper .promo-desc { font-size: 1.1rem; color: var(--fh-text-muted); margin-bottom: 16px; }

/* FAQ & 須知 */
.fullon-hotel-wrapper .faq-item { border: 1px solid var(--fh-border); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.fullon-hotel-wrapper .faq-item details { padding: 18px 22px; background: #fff; }
.fullon-hotel-wrapper .faq-item summary { font-size: 1.25rem; font-weight: 900; cursor: pointer; color: #111; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fullon-hotel-wrapper .faq-item summary::-webkit-details-marker { display: none; }
.fullon-hotel-wrapper .faq-item summary::after { content: '＋'; font-size: 1.4rem; color: var(--fh-primary); }
.fullon-hotel-wrapper .faq-item details[open] summary::after { content: '－'; }
.fullon-hotel-wrapper .faq-answer { font-size: 1.1rem; color: var(--fh-text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid #f4f2ed; line-height: 1.6; }

.fullon-hotel-wrapper .rule-box h5 { font-weight: 900; font-size: 1.2rem; margin: 0 0 6px 0; color: #111; }
.fullon-hotel-wrapper .rule-box p { font-size: 1.1rem; color: var(--fh-text-muted); margin: 0; }

.fullon-hotel-wrapper .booking-sticky-box { position: sticky; top: 140px; }
.fullon-hotel-wrapper .info-item { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 2px solid var(--fh-border); font-size: 1.15rem; }
.fullon-hotel-wrapper .btn-affiliate-main { display: block; background-color: var(--fh-primary); color: #ffffff !important; padding: 18px 24px; border-radius: 14px; text-decoration: none; font-weight: 900; font-size: 1.3rem; text-align: center; }

@media (max-width: 768px) {
    .fullon-hotel-wrapper .hero-sticky-header { position: relative; top: 0; padding: 10px 0; margin-bottom: 16px; }
    .fullon-hotel-wrapper .brand-header { padding: 16px; }
    .fullon-hotel-wrapper .brand-title { font-size: 1.8rem; }
    .fullon-hotel-wrapper .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }
    .fullon-hotel-wrapper .gallery-grid .main-img { grid-row: span 1; }
    .fullon-hotel-wrapper .layout-grid { grid-template-columns: 1fr; }
    .fullon-hotel-wrapper .promo-banner-card { grid-template-columns: 1fr; }
    .booking-sticky-box { position: relative !important; top: 0 !important; }
}

.search-page-wrapper { background: #faf9f6; padding: 32px 16px 60px; font-size: 16px; }
.sp-container { max-width: 1200px; margin: 0 auto; }
.sp-header { text-align: center; margin-bottom: 22px; }
.sp-title { font-size: 2.2rem; font-weight: 900; color: #111; margin: 0; }
.sp-lead { color: #666; margin-top: 6px; }
.search-filter-form-compact { background: #fff; border: 1px solid #dcd9d0; border-radius: 14px; padding: 18px 20px; margin-bottom: 26px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.compact-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 130px; gap: 12px; align-items: center; }
.search-input-sm, .search-select-sm { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .95rem; background: #fff; }
.c-field-btn { display: flex; gap: 8px; align-items: center; }
.btn-search-sm { background: #b48b3c; color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; font-weight: 800; cursor: pointer; flex-grow: 1; }
.btn-reset-sm { color: #666; font-weight: 700; font-size: .9rem; text-decoration: underline; white-space: nowrap; }
.results-heading { font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; color: #111; }
.search-hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.search-card { background: #fff; border: 1px solid #dcd9d0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.sc-img-wrap { position: relative; height: 200px; }
.sc-img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }
.sc-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.sc-tag { font-size: .8rem; font-weight: 800; padding: 3px 7px; border-radius: 4px; }
.sc-tag.rating { background: #fef3c7; color: #a85c05; }
.sc-tag.city { background: #e0f2fe; color: #0274a8; }
.sc-tag.dist { background: #f1f5f9; color: #475569; }
.sc-title { font-size: 1.25rem; font-weight: 900; margin: 0 0 6px; line-height: 1.4; }
.sc-title a { color: #111; }
.sc-subtitle, .sc-excerpt { font-size: .95rem; color: #5f6368; margin-bottom: 12px; }
.sc-footer { margin-top: auto; padding-top: 10px; }
.btn-view-detail { display: block; background: #b48b3c; color: #fff !important; text-align: center; padding: 9px 12px; border-radius: 8px; font-weight: 800; }
.no-results-box { background: #fff; padding: 30px; text-align: center; border-radius: 14px; border: 1px solid #dcd9d0; color: #666; }
.travel-pagination { margin-top: 32px; }
.travel-pagination .page-numbers { display: flex; justify-content: center; gap: 8px; list-style: none; }
.travel-pagination a, .travel-pagination span { display: inline-flex; min-width: 38px; height: 38px; padding: 0 10px; align-items: center; justify-content: center; background: #fff; border: 1px solid #dcd9d0; border-radius: 8px; color: #333; }
.travel-pagination .current { background: #b48b3c; color: #fff; border-color: #b48b3c; }
.itinerary-single { margin-top: 36px; }
.itinerary-featured { margin: 24px 0; }
.itinerary-featured img, .generic-featured { width: 100%; height: auto; border-radius: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
    .compact-grid { grid-template-columns: 1fr; }
    .search-hotel-grid { grid-template-columns: 1fr; }
    .sp-title { font-size: 1.75rem; }
}
