/* Ecolife: changes from client brief, 2026-12-04. Load after styles.css. */
.eco-project-discount { display: none; }
body.front-page #section-popular-projects .item.project > .image { position: relative; }
body.front-page #section-popular-projects .eco-project-discount {
    position: absolute; display: flex; align-items: center; justify-content: center;
    left: 12px; bottom: 12px; width: 54px; height: 54px; z-index: 3;
    border-radius: 50%; background: #ffdf32; color: #151515;
    font-size: 16px; font-weight: 700; line-height: 1; box-sizing: border-box;
}
#section-similar-villages .item.village > .image {
    height: clamp(150px, 17vw, 230px) !important; min-height: 0 !important;
    width: 100%; overflow: hidden;
}
#section-similar-villages .item.village > .image img { width: 100%; height: 100%; object-fit: cover; }
#section-similar-villages .item.village > .title {
    position: static !important; color: inherit; max-width: none; margin-top: 14px;
    font-size: clamp(16px, 1.4vw, 22px); line-height: 1.25; overflow-wrap: anywhere;
}
#section-similar-villages .item.village .tags { top: 12px; left: 12px; right: 12px; gap: 5px; }
#section-similar-villages .item.village .tag { padding: 5px 9px; font-size: 11px; max-width: 100%; }
#section-similar-villages .item.village ul { margin-top: 12px; }
#section-similar-villages .eco-other-villages:not(.slick-initialized) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 20px; }
#section-similar-villages .eco-other-villages .slick-slide { min-width: 0; }
#section-similar-villages .eco-other-villages .slick-arrow { z-index: 5; }
#section-similar-villages .eco-other-villages .slick-arrow.prev { right: auto; left: -12px; }
#section-similar-villages .eco-other-villages .slick-arrow.next { left: auto; right: -12px; }
#section-similar-villages .eco-other-villages .slick-arrow { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px #0002; }
#section-similar-villages .eco-other-villages .slick-arrow svg { width: 20px; height: auto; }
#section-similar-villages .eco-other-villages .slick-arrow.slick-hidden { display: none; }
#page-cottage-category .eco-compact-tabs .tabs > .nav {
    display: flex !important; flex-flow: row wrap !important; justify-content: flex-start !important;
    align-items: center !important; gap: 8px !important; margin-bottom: 24px !important;
}
#page-cottage-category .eco-compact-tabs .tabs > .nav > .item {
    width: auto !important; flex: 0 0 auto !important; max-width: 100%; margin: 0 !important;
    padding: 8px 13px !important; min-height: 36px; box-sizing: border-box;
    font-size: 14px !important; line-height: 1.25; border: 1px solid #d5d9d5;
    border-radius: 10px; white-space: normal; overflow-wrap: anywhere;
}
#page-cottage-category .eco-compact-tabs .tabs > .nav > .item.active { border-color: #16a21a; color: #16851b; }
#page-cottage-category .eco-compact-tabs .tabs > .nav > .item::before { display: none; }
.eco-ready-houses [hidden] { display: none !important; }
.eco-ready-houses .eco-ready-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 24px; }
.eco-ready-houses .eco-ready-filter { border: 0; border-bottom: 2px solid transparent; background: none; padding: 6px 0; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.eco-ready-houses .eco-ready-filter.active { color: #16851b; border-color: #16851b; }
.eco-ready-houses .eco-ready-filter:focus-visible, .eco-ready-houses .eco-ready-pagination button:focus-visible { outline: 2px solid #16851b; outline-offset: 3px; }
.eco-ready-houses .eco-ready-status { margin: 20px 0 0; font-size: 13px; color: #646464; text-align: center; }
.eco-ready-houses .eco-ready-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 30px; }
.eco-ready-houses .eco-ready-pagination button { border: 1px solid #d9ded9; background: #fff; color: inherit; border-radius: 20px; min-width: 38px; min-height: 38px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.eco-ready-houses .eco-ready-pagination button.active { background: #16851b; border-color: #16851b; color: #fff; }
.eco-ready-houses .eco-ready-pagination button:disabled { opacity: .4; cursor: default; }
.eco-ready-houses .eco-ready-list { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.eco-ready-houses .eco-ready-list > .item { min-width: 0; width: auto !important; margin: 0 !important; }
.eco-free-plots { margin: 32px 0; }
.eco-free-plots iframe { display: block; width: 100%; max-width: 100%; border: 0; height: 720px; }
.socials .eco-max span { font-size: 7px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
@media (min-width: 1440px) { .eco-ready-houses .eco-ready-list { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1100px) { .eco-ready-houses .eco-ready-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; } }
@media (max-width: 767px) {
    body.front-page #section-popular-projects .eco-project-discount { width: 44px; height: 44px; font-size: 13px; left: 8px; bottom: 8px; }
    #section-similar-villages .item.village > .image { height: clamp(150px, 48vw, 230px) !important; }
    #section-top-slider .slider .item .wrapper, #section-top-slider .slider .item .numbers { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
    #section-top-slider .slider .item .wrapper .title { font-size: clamp(20px, 6vw, 30px) !important; line-height: 1.16 !important; }
    #section-top-slider .slider .item .wrapper .text { font-size: clamp(15px, 4.3vw, 21px) !important; line-height: 1.28 !important; }
    #section-top-slider .slider .item .wrapper .title *, #section-top-slider .slider .item .wrapper .text * { font-size: inherit !important; line-height: inherit !important; }
    #section-top-slider .slider .item .wrapper .title, #section-top-slider .slider .item .wrapper .text, #section-top-slider .slider .item .numbers .txt, #section-banner-text .text { white-space: normal !important; overflow-wrap: anywhere; word-break: normal; max-width: 100%; }
    #section-top-slider .slider .item .numbers .num { font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.15; }
    #section-top-slider .slider .item .numbers .txt { font-size: 12px !important; line-height: 1.3; }
    #section-banner-text .text { font-size: 15px !important; line-height: 1.4; min-width: 0; }
    #section-banner-text .text h1, #section-banner-text .text h2, #section-banner-text .text h3 { font-size: clamp(20px, 5.5vw, 26px) !important; line-height: 1.2; }
    #page-cottage-category .eco-compact-tabs .tabs > .nav { gap: 6px !important; margin-bottom: 16px !important; }
    #page-cottage-category .eco-compact-tabs .tabs > .nav > .item { font-size: 12px !important; min-height: 36px; padding: 7px 10px !important; }
    .eco-ready-houses .eco-ready-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .eco-free-plots { margin: 20px 0; }
    .eco-free-plots .block-title { font-size: 24px; line-height: 1.2; margin: 20px 0; }
}
@media (max-width: 479px) { .eco-ready-houses .eco-ready-list { grid-template-columns: minmax(0,1fr); gap: 20px; } }

/* FIX 2: native ready-house block on the home page only. Original village page layout is untouched. */
body.front-page #section-ready-house { margin: 40px 0; }
body.front-page #section-ready-house .pdo-wrapper .list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
body.front-page #section-ready-house .pdo-wrapper .list > .item { min-width: 0; width: auto !important; margin: 0 !important; }
body.front-page #section-ready-house .nav-filter.sort { margin-bottom: 24px; }
@media (min-width: 1440px) { body.front-page #section-ready-house .pdo-wrapper .list { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1100px) { body.front-page #section-ready-house .pdo-wrapper .list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; } }
@media (max-width: 767px) { body.front-page #section-ready-house { margin: 24px 0; } body.front-page #section-ready-house .pdo-wrapper .list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } }
@media (max-width: 479px) { body.front-page #section-ready-house .pdo-wrapper .list { grid-template-columns: minmax(0,1fr); } }
