/* Homepage only. Advertiser artwork and links use the existing ad system. */
.market-home { background: #f7f9fb; color: #263241; font-family: "Microsoft JhengHei", Arial, sans-serif; }
.market-home > .container { box-shadow: none; background: #f7f9fb !important; }
.market-home main { background: #f7f9fb; }
.market-home #yes319Navbar.fixed-top { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.market-home #yes319Navbar > .container-fluid { padding-inline: 12px; }
.market-home #yes319Navbar .wrap-links > a { transition: color .18s, border-color .18s; }
.market-home #yes319Navbar .wrap-links > a:is(.active,:hover) { color: #a52427; border-bottom-color: #a52427; }
.market-home header > .banner { width: calc(100% - 24px); min-height: 150px; padding: 40px 60px; margin-inline: 12px; border-radius: 12px; overflow: hidden;margin-top:6px; }
.market-home header > .banner > .bg { inset: 0; width: auto; height: auto; border-top: 0; }
.market-home header > .banner > .bg > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.market-home header > .banner > .banner-adss { height: 70px; float: none; margin: 0; justify-content: flex-end; }
.home-shell { padding: 16px 6px 40px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(332px, 28%, 360px); gap: 24px; align-items: start; }
.home-primary { min-width: 0; }
.home-hero { margin-bottom: 24px; padding: 28px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.home-kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #a52427; font-size: 13px; font-weight: 700; }
.home-kicker span { color: #788698; font-weight: 400; }
.home-hero h1 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.8px; line-height: 1.4; color: #263241; }
.home-mobile-break { display: none; }
.home-intro { margin: 0; color: #647386; font-size: 14px; line-height: 1.8; }
.market-home #homepageSearchZone { gap: 14px; padding: 0; margin: 22px 0 0; border: 0; border-radius: 0; }
.market-home #homepageSearchZone > .hd { gap: 5px; border-bottom: 1px solid #e5ebf2; }
.market-home #homepageSearchZone > .hd > a { flex: none; max-width: none; padding: 0 12px 11px; border-radius: 0; font-size: 14px; font-weight: 600; color: #647386; }
.market-home #homepageSearchZone > .hd > a:first-child { padding-left: 0; }
.market-home #homepageSearchZone > .hd > a.active { color: #a52427; background: transparent; box-shadow: inset 0 -3px #a52427; }
.market-home #homepageSearchZone > .hd > a:hover { color: #a52427; background: transparent; }
.market-home #homepageSearchZone > .hd > a.active::before,.market-home #homepageSearchZone > .hd > a.active::after { display: none; }
.home-search-hint { margin: 0; color: #788698; font-size: 12px; line-height: 1.5; }
.market-home #homepageSearchZone > .bd > div { min-height: 50px; border-color: #c7d3e0 !important; background: #fff; }
.market-home #homepageSearchZone_qs { min-width: 0; width: 0; background: transparent; font-size: 14px !important; }
.market-home #dropdownMenuCity { min-width: 78px; color: #263241; font-size: 14px; border-right: 1px solid #e5ebf2 !important; border-radius: 0; }
.market-home #homepageSearch-btn { background: #a52427 !important; font-size: 14px !important; min-width: 80px; }
.market-home #homepageSearch-btn:hover { background: #841d20 !important; }
.market-home #homepageSearchZone > .ft { display: none; }
.market-home #dropdownMenuCity + .home-city-menu { width: 620px; max-width: calc(100vw - 48px); max-height: min(540px, calc(100dvh - 120px)); padding: 20px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dce5ee; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px #2632411c; }
.home-city-menu-heading { display: flex; align-items: baseline; gap: 12px; padding-bottom: 15px; margin-bottom: 4px; border-bottom: 1px solid #edf1f5; }
.home-city-menu-heading strong { color: #263241; font-size: 16px; font-weight: 700; }
.home-city-menu-heading span { color: #8b98a8; font-size: 12px; }
.home-city-tabs { display: none; }
.home-city-region { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 14px; padding: 12px 0; }
.home-city-region + .home-city-region { border-top: 1px solid #edf1f5; }
.home-city-region:last-child { padding-bottom: 0; }
.home-city-region h3 { margin: 0; padding-top: 10px; color: #788698 !important; font-size: 12px !important; font-weight: 600; line-height: 18px; }
.home-city-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.market-home #homepageSearchZone .home-city-option { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 38px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: #364a61; background: transparent; font-size: 14px; font-weight: 400; line-height: 20px; text-decoration: none; }
.market-home #homepageSearchZone .home-city-option:hover { border-color: #dce5ee; background: #f7f9fb; color: #263241; }
.market-home #homepageSearchZone .home-city-option.is-selected { border-color: #ecc9cb; background: #fff1f1; color: #a52427; font-weight: 600; }
.home-city-option.is-selected::after { content: '✓'; flex-shrink: 0; font-size: 12px; }
.market-home #homepageSearchZone .home-city-option:focus-visible { outline: 2px solid #a52427; outline-offset: 1px; }
@media (max-width: 767.98px), (max-height: 500px) {
    .market-home #dropdownMenuCity + .home-city-menu { padding: 16px; max-height: none; overflow: visible; }
    .home-city-menu-heading { flex-wrap: wrap; gap: 3px 10px; padding-bottom: 12px; }
    .home-city-menu-heading span { font-size: 11px; }
    .home-city-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; padding: 12px 0; }
    .home-city-tabs button { min-height: 40px; padding: 6px 3px; border: 1px solid #e0e7ee; border-radius: 7px; background: #f7f9fb; color: #647386; font-size: 13px; }
    .home-city-tabs button[aria-pressed="true"] { border-color: #a52427; background: #fff1f1; color: #a52427; font-weight: 600; }
    .home-city-tabs button:focus-visible { outline: 2px solid #a52427; outline-offset: 1px; }
    .home-city-region { display: none; padding: 0; }
    .home-city-region.is-active { display: block; }
    .home-city-region + .home-city-region { border-top: 0; }
    .home-city-region h3 { display: none; }
    .home-city-options { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 44px; min-height: 144px; align-content: start; gap: 6px; }
    .market-home #homepageSearchZone .home-city-option { min-height: 44px; padding: 8px 6px; font-size: 13px; }
    .home-city-option[data-home-city="082"] { grid-column: span 2; }
}
.home-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 14px; color: #788698; font-size: 12px; }
.home-popular a { color: #54677e; text-decoration: none; white-space: nowrap; }
.home-popular a:hover { color: #a52427; text-decoration: underline; }
.home-locations,.home-news { padding: 24px 28px; margin-bottom: 24px; background: #fff; border: 1px solid #e0e7ee; border-radius: 12px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-section-label { display: block; margin-bottom: 6px; color: #788698; font-size: 12px; }
.home-section-heading h2 { margin: 0; color: #263241; font-size: 22px; font-weight: 700; line-height: 1.5; }
.home-text-link { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; color: #54677e; font-size: 12px; text-decoration: none; }
.home-text-link:hover { color: #a52427; }
.home-location-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: center; }
.home-region { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid #edf1f5; }
.home-region:first-child { padding-top: 0; border: 0; }
.home-region h3 { margin: 0; color: #8d9aaa !important; font-size: 12px !important; font-weight: 400; line-height: 2; }
.home-region > div { display: flex; flex-wrap: wrap; gap: 4px 15px; }
.home-region a { padding: 2px 0; color: #364a61; font-size: 14px; line-height: 1.8; text-decoration: none; white-space: nowrap; }
.home-region a:hover { color: #a52427; text-decoration: underline; }
.home-taiwan-map { padding: 0 0 0 5px; margin-top: -28px; }
.home-map-city-name { min-height: 28px; margin: 0; color: #a52427; font-size: 16px; font-weight: 700; line-height: 28px; text-align: center; }
.home-taiwan-map #map_tw > div { display: none; }
.home-taiwan-map #map_tw svg path { fill: #d7e4ee; }
.home-taiwan-map #map_tw svg a:nth-child(2n) g > path { fill: #c0d2e2; }
.home-taiwan-map #map_tw a > g:hover > path { fill: #a52427 !important; }
.home-taiwan-map .svg-map-label { display: none; }
.home-news .yes2026-news-list > li { padding: 18px 0; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.home-news .yes2026-news-list > li:first-child { padding-top: 0; }
.home-news .yes2026-news-list > li:last-child { padding-bottom: 0; border: 0; }
.home-news .yes2026-news-title { font-size: 15px; line-height: 1.7; text-decoration: none; }
.home-news .yes2026-news-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.8; }
.home-ad-column { display: grid; gap: 18px; width: auto; min-width: 0; padding: 0; margin: 0; }
.home-ad-mobile-heading { display: none; }
.home-ad-panel { min-width: 0; padding: 14px; border: 1px solid #e7edf3; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px #26324108; }
.home-ad-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid #edf1f5; }
.home-ad-heading h2 { margin: 0; color: #364a61; font-size: 15px; font-weight: 700; line-height: 1.6; }
.home-ad-label { padding: 2px 5px; border: 1px solid #edf1f5; border-radius: 4px; background: #f8fafc; color: #7b8794; font-size: 9.5px; line-height: 1.4; letter-spacing: .5px; }
.home-ad-artwork { display: grid; gap: 12px; }
.home-ad-panel .yesad300x105,.home-ad-panel .yesad145x165x2 { padding-bottom: 0 !important; }
.home-ad-panel .yesad145x165x2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.home-ad-panel :is(.yesad300x105,.yesad145x165x2,.yesad300x250) > a { display: block; overflow: hidden; border: 1px solid #e0e7ee; border-radius: 8px; background: #f7f9fb; transition: border-color .15s, box-shadow .15s; }
.home-ad-panel :is(.yesad300x105,.yesad145x165x2,.yesad300x250) > a:hover { border-color: #9aaec2; box-shadow: 0 3px 10px #26324112; }
.home-ad-panel :is(.yesad300x105,.yesad145x165x2,.yesad300x250) img { display: block; width: 100%; height: auto; padding: 0; border-radius: 0; object-fit: contain; }
.home-ad-panel .yesad145x165x2 > :is(div,ins) { grid-column: 1 / -1; }
.home-ad-panel .yesad145x165x2 > br { display: none; }
.home-ad-panel .banner-adss { float: none; width: 100%; height: 70px; margin: 0 !important; }
.home-ad-panel .banner-adss > div { width: 100%; height: 70px; }
@media (max-width: 991.98px) {
	.market-home .home-layout { grid-template-columns: minmax(0, 1fr); }
	.home-ad-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin: 0 0 24px; }
}
@media (max-width: 767.98px) {
	.home-ad-panel { padding: 16px; }
}
@media (max-width: 359.98px) {
	/* Keep the existing 300px fallback ad format inside narrow phone viewports. */
	.home-ad-panel { min-width: 302px; margin-left: calc((100% - 302px) / 2); padding: 0; }
	.home-ad-heading { margin: 0 0 10px; padding: 14px; }
	.home-ad-artwork { padding-bottom: 12px; }
}
.home-restored { margin: 0 0 24px; }
.home-listings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.home-restored .home-listing-panel { float: none; width: auto; min-width: 0; margin: 0; padding: 24px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; overflow: hidden; }
.home-restored .box-2 > .title { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; background: transparent; color: #263241; font-size: 20px; font-weight: 700; }
.home-restored .box-2 > .title > :is(i,svg) { color: #a52427; font-size: 16px; }
.home-restored .box-2 > .content { padding: 0; border: 0; overflow: auto; }
.home-price-drop > .content,.home-hot-properties > .content { height: auto !important; }
.home-restored table { width: 100%; table-layout: fixed; font-size: 13px; color: #364a61; }
.home-restored th { color: #788698; font-size: 12px; font-weight: 400; }
.home-restored td,.home-restored th { padding: 7px 4px; border-bottom: 1px solid #edf1f5; }
.home-restored .link2 { color: #364a61; text-decoration: none; }
.home-restored .link2:hover { color: #a52427; text-decoration: underline; }
.home-restored .home-feed-carousel .carousel-inner { min-height: 216px; }
.home-restored .home-feed-carousel td { height: 36px; line-height: 21px; }
.home-restored .home-feed-carousel .home-feed-city { width: 76px; white-space: nowrap; }
.home-restored .home-feed-carousel .home-feed-phone { width: 100px; white-space: nowrap; }
.home-restored .home-ranking .line22 { height: 36px; padding: 7px 0; border-bottom: 1px solid #edf1f5; font-size: 13px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-restored .home-feed-carousel .carousel-indicators { position: static; justify-content: flex-start; gap: 8px; margin: 16px 0 0; padding: 4px; }
.home-restored .home-feed-carousel .carousel-indicators button { flex: 0 0 8px; box-sizing: border-box; width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 50%; background-color: #a52427; }
.home-showcase { display: grid; gap: 24px; }
.home-showcase .home-listing-panel > .box-2 { margin: 0; padding: 0; border: 0; background: transparent; }
@media (max-width: 767.98px) {
	.home-listings-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.home-restored .home-listing-panel { padding: 20px 16px; }
	.home-restored .box-2 > .title { font-size: 20px; }
	.home-price-drop table,.home-hot-properties table { min-width: 420px; }
}
.home-services { padding: 24px 0; border-top: 1px solid #e0e7ee; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-service { display: flex; align-items: flex-start; gap: 14px; padding: 24px; background: #fff; border: 1px solid #e0e7ee; border-radius: 10px; color: #263241; text-decoration: none; }
.home-service > :is(i,svg) { color: #a52427; font-size: 20px; margin-top: 3px; }
.home-service > div { flex: 1; }
.home-service h3 { margin: 0 0 8px; color: #263241 !important; font-size: 16px; font-weight: 700; }
.home-service p { margin: 0; color: #788698; font-size: 13px; line-height: 1.8; }
.home-service > span { color: #8d9aaa; }
.home-service:hover { border-color: #afbecd; color: #a52427; }
.home-network { border-top: 1px solid #e0e7ee; border-bottom: 1px solid #e0e7ee; }
.home-network > summary { display: flex; align-items: center; gap: 14px; padding: 20px 0; color: #364a61; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.home-network > summary::-webkit-details-marker { display: none; }
.home-network > summary span { color: #788698; font-size: 12px; font-weight: 400; }
.home-network > summary > :last-child { margin-left: auto; }
.home-network[open] > summary > :last-child { transform: rotate(180deg); }
.home-network-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 0 24px; }
.home-network-content .box-3 { float: none; padding: 0 !important; margin: 0; border: 0; background: transparent; }
.home-network-content .title { padding: 0; margin-bottom: 12px; background: transparent; color: #364a61 !important; font-size: 14px !important; }
.home-network-content .box-3 > div { display: contents; }
.home-network-content .link1 { display: inline-block !important; margin: 0 16px 8px 0; color: #647386; font-size: 12px; }
.market-home .home-shell :is(a,button,input,summary):focus-visible { outline: 3px solid #4870a6; outline-offset: 3px; }
@media (min-width: 1200px) { .home-location-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 26px; } }
@media (min-width: 768px) and (max-width: 991.98px) {
	.home-layout { gap: 20px; }
	.home-hero,.home-locations,.home-news { padding: 22px; }
	.market-home #homepageSearchZone > .hd > a { padding-left: 7px; padding-right: 7px; font-size: 13px; }
	.home-service-grid { gap: 12px; }
	.home-service { padding: 18px; }
}
@media (max-width: 767.98px) {
	.home-shell { padding-top: 12px; }
	.home-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.home-hero,.home-locations,.home-news { padding: 22px; border-radius: 10px; }
	.home-hero h1 { font-size: 30px; }
	.home-location-grid { display: block; }
	.home-taiwan-map { display: none; }
	.home-service-grid { grid-template-columns: 1fr; gap: 12px; }
	.home-service { padding: 20px; }
	.home-network-content { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 575.98px) {
	.home-kicker { font-size: 12px; }
	.home-kicker span { width: 100%; }
	.home-mobile-break { display: block; }
	.home-hero,.home-locations,.home-news { padding: 20px 16px; }
	.home-hero h1 { margin-top: 15px; font-size: 29px; }
	.home-intro { font-size: 13px; }
	.home-search-hint { font-size: 11px; }
	.market-home #homepageSearchZone > .hd { gap: 0; justify-content: space-between; }
	.market-home #homepageSearchZone > .hd > a { padding: 0 4px 10px; font-size: 12px; }
	.market-home #homepageSearchZone > .bd > div { min-height: 46px; }
	.market-home #dropdownMenuCity { padding: 8px; min-width: 62px; }
	.market-home #homepageSearch-btn { width: 65px !important; min-width: 65px; }
	.market-home .clear_homepageSearchZone_qs { right: 69px; }
	.market-home #homepageSearchZone_qs { padding: 10px 26px 10px 8px !important; font-size: 13px !important; }
	.home-section-heading { gap: 8px; }
	.home-section-heading h2 { font-size: 20px; }
	.home-text-link { font-size: 11px; gap: 5px; }
	.home-region { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
	.home-region > div { gap: 5px 14px; }
	.home-region a { font-size: 13px; }
	.home-news .yes2026-news-list > li { gap: 12px; }
	.home-news .yes2026-news-title { font-size: 14px; }
	.home-network > summary { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 767.98px) {
	.market-home { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
	.home-shell { display: flex; flex-direction: column; }
	.home-layout { order: 0; }
	.home-services { order: 1; margin-top: 0; }
	.home-restored { order: 2; }
	.home-network { order: 3; }
	.home-popular { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.home-popular > span { grid-column: 1 / -1; }
	.home-popular a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 1px solid #e0e7ee; border-radius: 7px; background: #f7f9fb; font-size: 13px; }
	.home-popular a:hover { border-color: #aebdce; background: #edf2f7; text-decoration: none; }
	.home-ad-mobile-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: #54677e; font-size: 13px; font-weight: 700; }
	.home-ad-mobile-heading small { color: #788698; font-size: 11px; font-weight: 400; }
	.home-ad-column { grid-auto-flow: column; grid-auto-columns: 332px; grid-template-columns: none; gap: 12px; align-items: start; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px 20px; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: thin; }
	.home-ad-column > .home-ad-panel { padding: 14px; margin-left: 0; scroll-snap-align: start; }
	.market-home .function-box { display: flex; align-items: center; gap: 8px; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #dce5ed; background: #fffffffa; box-shadow: 0 -4px 16px #2632410a; }
	.market-home .function-box > div[title] { flex: 1; min-width: 0; }
	.market-home .function-box #add-ball:empty { display: none; }
	.market-home .function-box .box-ball { width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid #dce5ed; border-radius: 8px; background: #f7f9fb; color: #364a61 !important; font-size: 13px; line-height: 42px; box-shadow: none; }
	.market-home .function-box #home-ball { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: normal; }
	.market-home .function-box #my319m-ball { border-color: #157f82; background: #157f82; color: #fff !important; }
	.market-home #my319m-ball br { display: none; }
	.market-home .function-box #back_top { position: relative; flex: 0 0 36px; width: 36px; padding: 0; font-size: 16px; }
	.market-home .function-box #back_top > :is(i,svg) { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
	.home-shell :is(a,button,summary) { scroll-margin-bottom: 84px; }
}
@media (max-width: 575.98px) {
	.home-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359.98px) {
	.home-ad-column { grid-auto-columns: 302px; padding: 4px 1px 12px; }
	.home-ad-column > .home-ad-panel { padding: 0; }
}
