/* Portfolio rebuild 2026: property finder + Pagefind search styles (Ameurope palette). */
.pf-summary { margin: 10px 0 18px; padding: 10px 14px; background: #efefef; color: #5b3d17; }
.pf-summary .pf-reset { margin-left: 12px; color: #7a9a1f; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pf-card { background: #fff; border: 1px solid #e3e3e3; display: flex; flex-direction: column; }
.pf-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef2e4; overflow: hidden; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-status { position: absolute; top: 10px; left: 10px; background: #c00; color: #fff; font-size: 11px; font-weight: bold; text-transform: uppercase; padding: 3px 8px; }
.pf-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.pf-body h3 { font-size: 15px; line-height: 1.35; margin: 4px 0 8px; text-transform: none; }
.pf-body h3 a { color: #7a9a1f; }
.pf-mls { font-family: 'Abel', sans-serif; color: #5b3d17; font-size: 13px; }
.pf-price { color: #c00; font-weight: bold; font-size: 16px; }
.pf-where, .pf-meta { font-size: 12px; color: #666; margin-top: 4px; }
.pf-body p { font-size: 13px; color: #555; margin: 8px 0; flex: 1; }
.pf-more { align-self: flex-start; background: #7a9a1f; color: #fff !important; padding: 6px 12px; border-radius: 4px; font-size: 12px; text-decoration: none; }
.pf-pager { margin-top: 24px; }
.pf-none, .pf-loading { padding: 30px 0; color: #666; }

/* Header search (Pagefind) */
#search_block .pagefind-header { position: relative; max-width: 360px; }
#search_block .pagefind-header form { display: flex; gap: 6px; margin: 8px 0; }
#search_block .pagefind-header input[type=search] { flex: 1; height: 32px; border: 0; border-radius: 4px; padding: 0 10px; color: #333; }
#search_block .pagefind-header button { height: 32px; border: 0; border-radius: 4px; background: #7a9a1f; color: #fff; padding: 0 14px; }
.search-page { --pagefind-ui-primary: #7a9a1f; --pagefind-ui-text: #333; --pagefind-ui-border: #ccc; --pagefind-ui-tag: #efefef; --pagefind-ui-font: inherit; margin-bottom: 40px; }
.search-page .pagefind-ui__result-link { color: #7a9a1f; }
.pagefind-ui__result-excerpt mark, .search-page mark { background: #e4efc4 !important; color: #2f4a00 !important; padding: 0 2px; }
#top_menu .title, .languages .title { display: none; }
.top .text-right { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: nowrap; }
.top .text-right #top_menu, .top .text-right .languages { float: none; position: static; margin: 0; }
.top .text-right .languages ul li { margin: 0 0 0 6px; }
#top_menu ul li { width: auto !important; }
#block-views-hot_deals-block_1 > div > h2, #block-views-hot_deals-block_1 > .blockinner > h2 { display: none; }
@media (max-width: 767px) { .top .text-right { justify-content: center; } }

/* ---------- Modern forms (2026) ---------- */
:root { --am-green: #7a9a1f; --am-green-dark: #627c17; --am-brown: #5b3d17; --am-border: #d6d9cf; --am-focus: rgba(122,154,31,.25); }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=tel], select, textarea,
.form-text, .form-select, .form-textarea {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  height: 44px; padding: 0 14px; font: inherit; font-size: 14px; line-height: 1.4; color: #333;
  background-color: #fff; border: 1px solid var(--am-border); border-radius: 8px; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease; max-width: 100%;
}
textarea, .form-textarea { height: auto; min-height: 120px; padding: 10px 14px; }
select, .form-select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b3d17' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--am-green); box-shadow: 0 0 0 4px var(--am-focus); }
input::placeholder, textarea::placeholder { color: #9aa092; }
input[type=submit], button[type=submit], .form-submit, .pf-btn {
  -webkit-appearance: none; appearance: none; height: 44px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--am-green); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
input[type=submit]:hover, button[type=submit]:hover, .form-submit:hover { background: var(--am-green-dark); }
input[type=submit]:active, button[type=submit]:active { transform: translateY(1px); }

/* Property finder (Views exposed form) */
#views-exposed-form-Listing-page-1 { margin: 0 0 24px; }
#views-exposed-form-Listing-page-1 .views-exposed-form { background: #f4f5f0; border: 1px solid #e6e8df; border-radius: 12px; padding: 20px; }
#views-exposed-form-Listing-page-1 .views-exposed-widgets {
  display: grid; grid-template-columns: minmax(110px, .8fr) minmax(220px, 1.6fr) minmax(160px, 1.2fr) minmax(140px, 1fr) auto;
  gap: 16px; align-items: end; float: none; margin: 0;
}
#views-exposed-form-Listing-page-1 .views-exposed-widgets::before, #views-exposed-form-Listing-page-1 .views-exposed-widgets::after { display: none; }
#views-exposed-form-Listing-page-1 .views-exposed-widget { float: none; padding: 0; margin: 0; width: auto; min-width: 0; }
#views-exposed-form-Listing-page-1 .views-exposed-widget > label {
  display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--am-brown);
}
#views-exposed-form-Listing-page-1 .form-item { margin: 0; padding: 0; }
#views-exposed-form-Listing-page-1 input.form-text, #views-exposed-form-Listing-page-1 select { width: 100%; }
#views-exposed-form-Listing-page-1 .views-widget-filter-field_property_price_value .views-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#views-exposed-form-Listing-page-1 .views-widget-filter-field_property_price_value .views-widget label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#views-exposed-form-Listing-page-1 .views-submit-button input { width: 100%; margin: 0; }
@media (max-width: 991px) {
  #views-exposed-form-Listing-page-1 .views-exposed-widgets { grid-template-columns: 1fr 1fr; }
  #views-exposed-form-Listing-page-1 .views-widget-filter-field_property_price_value { grid-column: 1 / -1; }
  #views-exposed-form-Listing-page-1 .views-submit-button { grid-column: 1 / -1; }
}
@media (max-width: 480px) { #views-exposed-form-Listing-page-1 .views-exposed-widgets { grid-template-columns: 1fr; } }

/* Header search */
#search_block .pagefind-header form { gap: 0; }
#search_block .pagefind-header input[type=search] { height: 38px; border-radius: 8px 0 0 8px; border-color: transparent; }
#search_block .pagefind-header button { height: 38px; border-radius: 0 8px 8px 0; padding: 0 16px; }

/* Pagefind UI */
.search-page .pagefind-ui__search-input { height: 52px; border-radius: 10px; border: 1px solid var(--am-border); font-size: 16px; }
.search-page .pagefind-ui__search-input:focus { border-color: var(--am-green); box-shadow: 0 0 0 4px var(--am-focus); }
.search-page .pagefind-ui__button { border-radius: 8px; border-color: var(--am-green); color: var(--am-green); }

/* Summary bar */
.pf-summary { border-radius: 10px; display: flex; align-items: center; justify-content: space-between; }
.pf-summary .pf-reset { font-weight: 600; text-decoration: none; }
.pf-card { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s ease, transform .2s ease; }
.pf-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.pf-more { border-radius: 8px; }
.static-contact { background: #f4f5f0; border: 1px solid #e6e8df; border-radius: 12px; padding: 20px 24px; }
.view-Listing .view-filters, .view-filters { background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.pf-summary { justify-content: flex-start; gap: 6px; }
.pf-summary .pf-reset { margin-left: auto; }
#search_block .pagefind-header input[type=search] { border-right: 0; min-width: 220px; }
#search_block .pagefind-header button { background: #fff; color: var(--am-brown); border: 1px solid #fff; font-weight: 700; }
#search_block .pagefind-header button:hover { background: #f1f3ea; }
.pagefind-header form { display: flex; gap: 0 !important; }
.pagefind-header input[type=search] { border-radius: 8px 0 0 8px !important; border-right: 0 !important; height: 40px !important; }
.pagefind-header button { height: 40px !important; border-radius: 0 8px 8px 0 !important; background: #fff !important; color: #5b3d17 !important; border: 1px solid #fff !important; border-left: 1px solid #e6e8df !important; font-weight: 700; padding: 0 16px; }
.pagefind-header button:hover { background: #f1f3ea !important; }
