.market-redesign .price-search { padding: 22px; margin: 20px 0; }
.market-redesign .content { align-content: start; }
#market-overview-panel { display: grid; gap: 18px; min-width: 0; }
#market-overview-panel > *, #market-budget-panel { min-width: 0; max-width: 100%; }
#market-overview-panel > .ad-slot { justify-self: center; width: min(100%, 970px); margin-left: 0; margin-right: 0; }
.market-view-tabs { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid #dce4ea; border-radius: 8px; }
.market-view-tabs button { flex: 1; min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #536371; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 12px; }
.market-view-tabs button[aria-selected="true"] { background: #26374a; color: #fff; }
.market-view-tabs button:focus-visible { outline: 3px solid #405b78; outline-offset: 2px; }
#market-overview-panel[hidden], #market-budget-panel[hidden] { display: none !important; }
.market-budget-active .market-intro, .market-budget-active #filter-info { display: none !important; }
.market-redesign #market-budget-panel .price-search { margin-top: 0; }
.price-search h2 { margin: 0 0 6px; font-size: 20px; }
.price-search header p, .price-search-note { color: #536371; line-height: 1.7; }
#market-price-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
#market-price-form label { display: flex; flex-direction: column; gap: 6px; color: #34465a; font-size: 13px; }
#market-price-form input, #market-price-form select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #ccd6dc; border-radius: 6px; background: #fff; color: #26374a; padding: 8px; font: inherit; }
.price-search button, .price-search a { touch-action: manipulation; }
.price-search button { min-height: 44px; padding: 8px 14px; border: 1px solid #b9cecb; border-radius: 6px; background: #fff; color: #216b68; cursor: pointer; font: inherit; }
.price-search button:disabled { opacity: .5; cursor: default; }
.price-search button:focus-visible, .price-search input:focus-visible, .price-search select:focus-visible, .price-search a:focus-visible { outline: 3px solid #287c78; outline-offset: 2px; }
.price-search-actions { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.price-search button[type="submit"] { background: #216b68; color: #fff; }
.price-search-note { font-size: 12px; }
.price-search a { color: #216b68; text-underline-offset: 3px; }
#price-search-status { white-space: pre-line; font-size: 13px; line-height: 1.8; }
#price-search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.price-match { border: 1px solid #dce4e5; border-radius: 8px; padding: 16px; min-width: 0; }
.price-match h3 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.price-match .price-match-meta { font-size: 12px; color: #60717d; margin: 8px 0; }
.price-match dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; font-size: 13px; }
.price-match dt { color: #60717d; }
.price-match dd { margin: 3px 0 0; color: #26374a; font-weight: 600; }
.price-search nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
#price-search-details { margin-top: 20px; border-top: 1px solid #dce4e5; padding-top: 16px; scroll-margin-top: 24px; }
.price-detail-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.price-detail-list li { padding: 12px; border-radius: 6px; background: #f4f7f6; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.price-detail-list p { margin: 4px 0; }
@media (hover: hover) { .price-search button:not(:disabled):hover { filter: brightness(.94); } }
@media (max-width: 800px) { #market-price-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .market-redesign .price-search { padding: 16px; } #price-search-results { grid-template-columns: 1fr; } #market-price-form { gap: 10px; } }
