html, body {
    scroll-behavior: smooth;
}

/* Agenci – równa wysokość zdjęć na wszystkich urządzeniach */
.agents-flex .team-photo,
.agents-flex .r-photo-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
}
.agents-flex .r-photo-wrap img,
.agents-flex .team-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block;
}

@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1025px) {

    .agents-flex > div {width:33.333%;}
    .multiple-items {
        margin: 0px;
        width: 100%;
    }
    .featured-offer-col {
        padding: 0px;
    }

}

@media  (max-width: 991px) {
    .job-offer-header, .job-offer-content {flex-wrap:wrap;}
    .job-offer-header .job-offer-header-left, .job-offer-header .job-offer-header-right {width:100%;text-align: left;}
    .job-local-icon {margin-bottom:0px; margin-top:10px;}
    .big-offer-image {height:480px;}
    .one-offer-header {flex-wrap:wrap;}
    .job-on-start-content-list li {width:100%;padding: 0px;}

    .one-offer-header-slider {width:100%;}
    .one-offer-header-agent {width:100%;}
    .one-offer-header-agent-box {position:relative;}
    .one-offer-infoline  {flex-wrap:wrap;}
    .one-offer-infoline div {width:50%;}

    .one-offer-custom-buttons a {width:100%; margin:0px 0px 15px;}
    .one-offer-custom-buttons {margin-bottom:50px;}
    .burger {
        display: block;
        opacity: 1;
        margin-top: -8px;
        z-index:2000;

    }

    .menu-container {
        display: flex;
        position: fixed;
        background: rgba(0, 0, 0, 0.95);
        width: 400px;
        height: 100%;
        z-index: 1200;
        margin: 0px 0px;
        justify-content: center;
        align-items: center;
        right: -110%;
        top: 0;
    }
    header .main-menu {
        width: 100%;
        vertical-align: middle;
        position: initial;
        top: initial;
        left: initial;
        border: 0px;
        text-align: center;
        margin-top: initial;
        float: none;
        background-color: rgba(204, 204, 204, 0);
        box-shadow: none;
        padding: 0px;
    }

    header .navbar .main-menu ul,  header .navbar .secondary-menu ul{

        float: none;

    }


    header .navbar .secondary-menu {margin-bottom:40px;text-align: center;}
    header .navbar .secondary-menu ul li {text-align:right;}
    .parent-menu-arrow:before {display:none;}
    header .navbar .main-menu ul li {
        display: block;
        float: none;
        text-align:right;
        position:relative;

    }

    header .navbar .main-menu ul li:last-child:after {
        content: ".";
        position:absolute;
        color:#ffc82a;
        bottom:-10px;
        right:20px;
        font-size:6rem

    }

    header .navbar .main-menu ul li a {color:#fff;font-size:1.3rem;/* position: relative; */}
    header .navbar .main-menu ul li:hover ul {display:none;}
    header .navbar .secondary-menu ul li:hover ul {display:none;}
    footer:after {width:160px;background-size:contain; background-repeat:no-repeat;}


}

@media (max-width: 798px) {
    
    .footer-menu .col-xs-6{
        width:50%;
    }
    
    .footer-menu .col-sm-6{
        width:50%;
    }
    
    .proprtycityfooter{
        color: #fff;
        font-size: 13px;
        text-align: center;
    }
    
    .developerbox{
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    border-radius: 1.4rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    -webkit-transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    }
    
    .amtdevelopmenumiddle {
    display: inline-flex;
    border-top-left-radius: 0rem;
    border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
    border-bottom-left-radius: 0rem;
    width: 100%;
    font-weight: 500;
    display: table;
    }
    
    .amtdevelopcontent:first-of-type {
    border-top-left-radius: 0rem;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0rem;
    font-weight: 500;
    margin-bottom: 5px;
    }

    .amtdevelopcontent:last-of-type {
    border-top-left-radius: 0px;
    border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
    border-bottom-left-radius: 0px;
    font-weight: 500;
    margin-bottom: 5px;
    }
    
    .amtdevelopcontent {
    cursor: pointer;
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
    padding-right: 1rem;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    transition-duration: 0.4s, 0.4s;
    transition-timing-function: cubic-bezier(1, 0, 0, 1), cubic-bezier(1, 0, 0, 1);
    transition-delay: 0s, 0s;
    transition-property: background, color;
    color: rgb(123, 123, 129);
    background-color: rgb(237, 237, 238);
    margin-bottom: 5px;
    }
    
    .amtdevelopcenter{
    text-align: center;
    }
    
    .amtdevelopdiv{
    padding-top:20px;
    padding-bottom: 20px;
    }
    
    .amt-devtableheader{
    font-size: 9px;
    }
    
    .amt-devtable tbody, td, tfoot, th, thead, tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    font-size: 10px;
    }
     
    .amtjobbuttontables{
    background-color: #000;
    color: #fff;
    padding: 7px;
    border-radius: 20px;
    font-size: 6px;
    font-weight: 600;
    }
    
    .sliderdeveloper-offers .main-title {
    font-size: 0.9rem;
    padding-bottom: 10px;
    line-height: 0.3em;
    }
    
    .sliderdeveloper-offers .owl-nav {
    position: absolute;
    top: -80px;
    right: 0px;
    }

    .sliderdeveloper-offers .owl-nav button.owl-next, .sliderdeveloper-offers .owl-nav button.owl-prev {
    border-radius: 0px;
    padding: 3px 14px!important;
    background: #ffc82a;
    margin: 0px;
    border-left: 1px solid #ffffff;
    }
    
    footer{
    background: #231f20;
    color: #fff;
    padding: 0px 8px 20px;
    background-image: url('/assets/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    }
    
    footer .footer-menu ul li a {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.3rem;
    padding: 9px;
    }
    
    footer .ui-tabs .ui-tabs-panel {margin-left: 0px;}
    .one-offer-table-inner {flex-wrap:wrap;}
    .one-offer-basics {flex-wrap:wrap;}
    .one-offer-basics >div {width:100%;}
    .one-offer-table-inner-col {width:100%; border:0px;}
    .one-offer-table-inner-col .table-box {padding: 0px 0px 30px;}
    .big-offer-image {height:380px;}
    .agents-flex > div {width:50%;}
    .multiple-items {}
    .featured-offer-col {}

    .list-of-items .item {flex-wrap:wrap;}
    .list-of-items .item.oplixo-offer-card {flex-wrap:nowrap !important; flex-direction:column !important; align-items:stretch !important;}
    .list-of-items .item.oplixo-offer-card .oplixo-offer-slider { height:auto !important; float:none !important; width:100% !important; max-width:100% !important; flex:auto !important; }
    .list-of-items .item.oplixo-offer-card .oplixo-offer-content { float:none !important; width:100% !important; max-width:100% !important; flex:auto !important; position:static !important; margin:0 !important; }
    .list-of-items .item.oplixo-offer-card .oplixo-offer-slider-inner { display:block !important; width:100% !important; }
    .list-of-items .item.oplixo-offer-card .oplixo-offer-photo { height:auto !important; display:block !important; width:100% !important; }
    .list-of-items .item.oplixo-offer-card .oplixo-offer-photo img { width:100% !important; height:auto !important; object-fit:cover !important; aspect-ratio:16/10; display:block !important; }
    .list-of-items .item .item-data {width:100%}
    .list-of-items .item .item-data .item-data-inner {padding-bottom:0px}
    .list-of-items .item .item-main-image {width:100%}
    .list-of-items .item .item-data .item-bar {position:initial;width:100%;justify-content: center;align-items: center;align-self: center;flex-wrap: wrap;/* height: initial; */}
    .list-of-items .item .item-data .item-bar > div {width: 100%; /* height: 100%; *//* justify-content: center; *//* align-self: center; */}
    .list-of-items .item .item-data .item-bar > a {width:100%;/* height: 100%; *//* justify-content: center; *//* align-content: center; */}
    
    
    .search-title {
    padding-left: 16px;
    padding-right: 16px;
    }
    .page-home .main-advance-search .option-bar {
    width: 100%;
    }
    .page-home .main-advance-search .radius {
    width: 30%;
    }
    .page-home .main-advance-search .form-control-buttons {width: 70%;}
    
    .one-offer-top-left {width:50%;}
    .one-offer-top-right {width:50%; text-align:right;}
    .one-offer-top-right {color:#ffc82a;}

}



@media (max-width: 640px) {
    .main-advance-search .option-bar {width:50%}

    .property-min-price {width:50%;}
    .slider-data {width:100%;padding: 30px;}
    .slider .slider-text {font-size: 0.8em; line-height: 1.4em; padding-left: 15px; padding-right: 15px;}
    .slider h1 {font-size: 1.6rem; line-height: 1.3em;/* margin-top:50px; */color: #fff; margin-left: 15px; font-weight: 400;text-transform: uppercase;position: relative;display: inline-block;}
    .slider h1 span {font-weight: 700;}
    .slider h1:after {padding-left:10px;content: ".";font-size: 6rem;color:#ffc82a;line-height: 0.05rem;}
    .slider p {color:#fff;}
    .slider .slider-button {transition:0.4s;color:#fff;font-weight: 700;display: inline-block; padding-left: 15px;}
    .slider .slider-button:hover  {color:#ffc82a;}
    
    /* Karuzela – odstęp od poprzedniej sekcji */
    .featured-offers {
        margin-top: 20px;
    }

    /* Karuzela – nav pod tytułem, wyśrodkowany */
    .featured-offers .owl-nav,
    .virtual-tours .owl-nav {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin: 10px 0 4px;
    }
    .featured-offers .owl-nav button.owl-next,
    .featured-offers .owl-nav button.owl-prev,
    .virtual-tours .owl-nav button.owl-next,
    .virtual-tours .owl-nav button.owl-prev {
        padding: 4px 14px !important;
        font-size: 14px !important;
    }

    /* Karty karuzel – pełna szerokość bez bocznego paddingu */
    .oplixo-virtual-card {
        padding: 0 !important;
    }
    .oplixo-virtual-card-inner {
        border-radius: 12px !important;
    }
    .oplixo-virtual-image {
        height: 250px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Badże – wyraźne wypełnienie */
    .oplixo-offer-virtual-oplixo-item {
        background: #e4e4e4 !important;
        border-color: #c8c8c8 !important;
        padding: 3px 10px !important;
    }

    .one-offer-table-inner-col {padding:0px;}
    .big-offer-image {height:310px;}
    .multiple-items {}
    .featured-offer-col {}

    .departament_h4 { font-size: 16px !important; }
    .agents-flex > div { width: 100% !important; padding: 0 0 16px !important; }
    .r-photo-badges {
        bottom: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    .r-photo-pill {
        padding: 6px 12px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .agents-flex > div .team-name h5 {font-size:0.7rem;margin-bottom: 5px;}
    .agents-flex > div .team-name {padding:8px 5px;}
    .agents-flex > div .team-name a {font-size: 0.8rem;line-height: 1.3rem;display: block;}
    .agents-flex .team-description {font-size:0.8rem; line-height:1.3rem}
    .agents-flex .team-description h5 {font-size:1rem;}
    .nice-form  .form-row {flex-wrap: wrap;}
    footer:after {width:130px;background-size:contain; background-repeat:no-repeat;}

    .one-offer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 0px;
    line-height: 1.6rem;
    }
    
    .one-offer-top-price {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 0px;
    }

    /* Slider – skrócony na mobile */
    .slider {
        height: auto !important;
        min-height: 320px !important;
    }
    /* slider-data – legacy selector kept for other pages */
    .slider-data {
        padding: 90px 16px 24px !important;
        width: 100% !important;
    }
    /* Główna strona używa slider-container / oplixo-hero-copy */
    .slider-container {
        align-items: flex-start !important;
        padding-top: 0 !important;
    }
    .oplixo-hero-copy {
        padding-top: 120px !important;
        padding-bottom: 20px !important;
        box-sizing: border-box;
    }

    /* Wyszukiwarka – usuń overlap ze sliderem, pełna szerokość */
    .advance-search-front,
    .advance-search-rest {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Nadpisanie page-builder: hero h1/h2/p – stałe szerokości powodują overflow */
    h1.oplixo-hero-h1,
    h2.oplixo-hero-h2,
    p.oplixo-hero-text {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }
    h1.oplixo-hero-h1 {
        font-size: clamp(22px, 5.5vw, 32px) !important;
        line-height: 1.15 !important;
        margin-bottom: 2px !important;
    }
    h1.oplixo-hero-h1::after {
        font-size: 1.8rem !important;
        line-height: 1 !important;
        padding-left: 3px !important;
    }
    h2.oplixo-hero-h2 {
        font-size: clamp(14px, 4vw, 20px) !important;
        line-height: 1.3 !important;
        margin-top: 2px !important;
        margin-bottom: 10px !important;
    }
    h2.oplixo-hero-h2::after {
        content: none !important;
    }
    p.oplixo-hero-text {
        font-size: 13px !important;
        line-height: 1.55 !important;
        margin-top: 0 !important;
    }

    /* Nadpisanie page-builder: karta wyszukiwarki – stała szerokość 340px i height 1584px */
    #oplixo-advanced-search {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        overflow: hidden !important;
        padding: 20px 16px !important;
        box-sizing: border-box !important;
    }

}




@media (max-width: 480px) {
    .main-advance-search .option-bar {
        width: 50%;
    }

    .page-search .main-advance-search .property-city {width:70%}
    .page-search .main-advance-search .radius {width:30%}

    .main-advance-search .form-control-buttons {width: 100%;}
    .agents-flex > div {width:100%; padding: 0 0 16px;}

    .one-offer-title {
    font-size: 1.0rem;
    margin-bottom: 20px;
    padding-bottom: 0px;
    line-height: 1.6rem;
    }
    
    .one-offer-top-price {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0px;
    }

    .one-offer-id {
    margin-bottom: 3px;
    line-height: 1.5rem;
    color: #565656;
    font-size:0.7rem;
    }
    
}

@media (max-width: 640px) {
    
    .developer-info-data {
    width: 50%;
    padding: 6% 8%;
    color:#fff!important;
    }

    .developer-info-title {
    font-family: Raleway;
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 20px;
    color:#fff!important;
    }

    .developer-info-desc {
    font-size: 16px;
    margin-bottom: 40px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    /* line-height: 1.56; */
    letter-spacing: normal;
    color:#fff!important;
    }

    .developer-basic-header-h3 {
        /* padding-bottom: 20px; */
        font-size: 48px;
        letter-spacing: -0.02rem;
        /* text-transform: uppercase; */
        font-weight: 600;
        color: #fff!important;
        display: inline-block;
        text-align: center;
    }

    .developer-basic-header-h3:after {content:"."; color:#ffc82a; font-size:2.8rem; line-height:1rem}

    .developer-basic-header{
        text-align: center;
        font-size: 23px;
        padding: 35px;
    }

    .developer-basic-header:after {content:"."; color:#ffc82a; font-size:2.8rem; line-height:1rem}

    .developer-text{
        color:#fff;
    }

    .developer-info-desc p span {
    color: #ffc82a;
    font-size: 2.1rem;
    padding:5px;
    }

    .developer-strong-desc{
        color: #ffc82a;
    }

    .developer-item-more {
    padding: 10px;
    background: #ffc82a;
    color: #000;
    width: 80%;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid #ffc82a;
    }

    .table-listitem-developer{
        text-align: center;
    }

    .developer-apartments{
        margin:0 auto;
        text-align: center;
    }

    .tablepress{
        margin:0 auto;
        text-align: center; 
    }

    .tablepress .odd td {
    background-color: #f9f9f9;
    }

    .table-listitem-developer .tablepress td, .table-listitem-developer .tablepress th {
    text-align: center;
    font-size: 0.77rem;
    height: 43px;
    }

    .table-sell-position td{
        background-color: rgba(255, 162, 162, 0.19)!important;
    }

    .menu-container.showme {
        opacity: 1;
        right: 0px;
    }


    .developer-menu-main-box{
        display:block;
        margin:0 auto;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .developer-menu-item{
        display:inline-block;
        padding:17px;
        color:#000;
        line-height: 0.1em;
        background: #ffc82a;
    }

    .developer-menu-link{
        color:#000;
        font-weight: 600;
        font-size: 15px;
    }

    .developer-menu-link a:before{
        color: #000;
    }

    .developer-menu-link a:link{
        color: #000;
    }

    .developer-menu-link a:hover{
        color: #000;
    }

    .developer-menu-link a:active{
        color: #000;
    }

    .developer-localisation-content {
        display: block;
    }

    .developer-localisation-image{
        width: 100%;
        padding: 2% 2%;
    }  

    .developer-localisation-data {
        width: 100%;
        padding: 2% 3%;
    }

    .developer-localisation-title {
    font-family: Raleway;
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 20px;
    }

    .developer-top-content {
    display: block;
    }

    .developer-top-data-lf {
    width: 100%;
    padding: 1% 3% 3% 3%;
    }

    .developer-top-data {
    width: 100%;
    padding: 2% 3%;
    }

    .developh1{
       padding: 28px;  
       text-align: center!important;
       font-size: 18px!important;
    }

    .developh1:after {content:"."; color:#ffc82a; font-size:2.8rem; line-height:1rem}

    .developer-title-header{
        font-size: 36px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .developer-title-header:after {content:"."; color:#ffc82a; font-size:2.8rem; line-height:1rem}

    .developer-custom-buttons {
        transition: 0.8s;
        padding: 10px 45px;
        color: #000;
        border: 2px solid #ffc82a;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8em;
        font-weight: 600;
        display: inline-block;
        background: #ffc82a;
        border-radius: 0px;
    }

    .developer-custom-buttons a {
        text-decoration:none;
    }

    .developer-addons{
        display: block;
        justify-content: flex-end;
        place-items: flex-start;
        padding-top: 20px;
    }

    .developer-addons-left {
        width: 100%;
        text-align: right;
        padding-right: 40px;
    }

    .developer-addons-about-box{
        padding-top: 20px;
    }

    .developer-addons-left a {
        color: #ffc82a;
        font-family: 'Lato', sans-serif;
        font-weight: 700;
        font-size: 30px;
    }

    .developer-localisation-container{
        margin-top:30px;
    }
    
    
    /*tabcitypaddli*/
    .city-custom-buttons {
        transition: 0.8s;
        padding: 10px 45px;
        color: #000;
        border: 2px solid #ffc82a;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8em;
        font-weight: 600;
        display: inline-block;
        background: #ffc82a;
        border-radius: 0px;
        width:100%!important;
    }

    .city-custom-buttons a {
        text-decoration:none;
    }

    .city-street-inblock{
        display: inline-block;
        width:23.33%!important;
    }

    .leads-center-title{
        margin:0 auto;
        text-align: center;
    }
    
    .cityh2suptitle{
    font-size:14px; 
    color:#6e6e6e; 
    margin-top: 20px; 
    line-height: 1.2em;
    }

    .cityh3title{
        padding-bottom:0px!important; 
        margin:0.1rem 0px 0.1rem!important; 
        line-height: 1em!important;
    }
    
    
    .citypmiddle{
    font-size: 11px;
    line-height: 1.5em;
    padding-top: 10px;
    }

    .citybox-content{
    padding: 30px;
    box-shadow: 0px 0px 40px #d4d1dc;
    border-radius: 30px;
    background: rgb(235,117,21);
    background: linear-gradient(0deg, rgba(235,117,21,1) 0%, rgba(255,200,41,1) 100%);
    margin-top:20px;
    margin-bottom: 0px;
    width: 100%;
    min-height: 280px;
    }
    
    
   .btn-grad {
   background-image: linear-gradient(to right, #000000 0%, #434343  51%, #000000  100%);
   margin: 10px;
   padding: 5px 30px;
   text-align: center;
   text-transform: uppercase;
   transition: 0.5s;
   background-size: 200% auto;
   color: white;            
   box-shadow: 0 0 20px #eee;
   border-radius: 10px;
   display: block;
   text-align: center;
   margin: 0 auto;
   width: 100%;
   }

    .citybox-padd{
        padding:20px;
        text-align: center;
    }

    .footer-city-content{
        width: 100%;
        text-align: center;
        margin: 0 auto;
        padding: 0 16px 40px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Zwijanie col-6 z treści CMS do pełnej szerokości na mobile */
    .footer-city-content .col-6,
    .footer-city-content [class*="col-xs-6"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .footer-text-title{
        font-size:16px;
        text-align: left;
    }

    .footer-text-smtitle{
        font-size:14px;
        text-align: left;
    }

    .footer-text-smcontent{
        font-size:12px;
        text-align: left;
    }

    .footer-text-content{
        font-size:12px;
        text-align: left;
    }

    .city-readmore {overflow: hidden;transition: 1s;margin-bottom: 40px;}
    .street-readmore {overflow: hidden;transition: 1s;margin-bottom: 40px;}
    .street-readmore-center {text-align: center!important;}

    .add-your-offer-landing{
        text-align:center;
        padding: 25px;
    }

    .add-landing-more {
        padding: 10px;
        background: #000;
        color: #fff;
        width: 40%;
        text-align: center;
        justify-content: center;
        font-weight:600;
        border: 1px solid #ffc82a;
        border-radius: 40px;
    }

    .add-landing-more:hover {background: #2d2d2d; border: 1px solid #2d2d2d;color: #fff; border-radius: 40px;}
    .add-landing-more:link {background: #000; border: 1px solid #000;color: #fff; border-radius: 40px;}
    
    .form-lead{
    background: #ffc829;
    color: #000;
    position: relative;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0px!important;
    margin-left: 0px!important;
   }

   .form-lead-bottom{
    background: #ffc829;
    color: #000;
    padding: 30px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
   }
   
   .single-agent-header .single-agent-image {
    height: 400px;
    width: 100%;
    background-position: center top;
    background-size: cover;
    }
    
    .single-agent-data {
    width: 100%;
    padding: 25px 20px;
    }
    
    .single-agent-text{
        font-size:13px;
        line-height:2.4em;
    }

    /* Sekcja infoboxes – banery stackują na mobile */
    .infoboxes .col-md-6,
    .infoboxes-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .infoboxes img,
    .infoboxes-cell img {
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        display: block;
    }
    .infoboxes-cell a { height: auto !important; }

    /* Agent slider – strzałki pod slajdem, wyśrodkowane */
    .oplixo-agent-viewport {
        padding-bottom: 64px !important;
    }
    .oplixo-agent-nav {
        top: auto !important;
        bottom: 0 !important;
        transform: none !important;
    }
    .oplixo-agent-prev {
        left: calc(50% - 52px) !important;
    }
    .oplixo-agent-next {
        right: auto !important;
        left: calc(50% + 4px) !important;
    }

    /* Sekcja kroków – pionowy stack bez nachodzenia */
    .rn-steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .rn-step {
        height: auto !important;
        width: 100% !important;
    }

    /* Kafelki kategorii – wyższe i czytelniejsze na mobile */
    .infoboxescart .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .infoboxescart .carttype-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .cardtype {
        height: 160px !important;
        margin-bottom: 8px !important;
    }
    .cardtype-description h2 {
        width: 80% !important;
        padding: 10px 14px !important;
        font-size: 17px !important;
    }

}


@media (max-width: 768px) {
    .main-title { font-size: 1.4rem; padding-bottom: 10px; }
}

@media (max-width: 991px) {
    .oplixo-search-advanced-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .oplixo-search-advanced-grid > * { grid-column: span 1 !important; }
}
/* --- city page overrides --- */
.oplixo-add-offer-btn       { border-radius: 0 !important; }
.oplixo-city-view-btn       { border-radius: 0 !important; }
.oplixo-city-tabs-nav       { border-radius: 0 !important; box-shadow: none !important; }
.oplixo-city-sort-current   { font-family: inherit !important; border-radius: 0 !important; }
.oplixo-city-sort-list      { border-radius: 0 !important; }
.oplixo-city-sort-list li   { font-family: inherit !important; }

@media (max-width: 520px) {
    .oplixo-search-advanced-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .oplixo-search-advanced-grid > * { grid-column: span 1 !important; }
}

/* ── Developer listing page (/deweloper) ─────────────────────────────────── */

/* Karta dewelopera – pełna szerokość na małym mobile, 2 w rzędzie od 480px */
@media (max-width: 479px) {
    .col-sm-6.col-lg-3.padT10 {
        -webkit-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .padT10 { margin-top: 20px; }
}

/* Odstęp kart na tablecie */
@media (min-width: 480px) and (max-width: 991px) {
    .padT10 { margin-top: 24px; }
}

/* ── Developer investition page (/deweloper/{id}) ────────────────────────── */

/* Usuń stały margin-top z sekcji tabeli na małych ekranach */
@media (max-width: 767px) {
    .devpage-content-inner { padding: 0 8px; }

    /* Tytuł inwestycji */
    .devinvesth1 h1 { font-size: 1.3rem; }
    .developadress  { font-size: 0.9rem; }

    /* Nawigacja sekcji – scroll poziomy zamiast przepełnienia */
    .amtdevvghf3t .row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .amtdevelopmenumiddle { display: -webkit-flex; display: flex; flex-wrap: nowrap; width: auto; min-width: 100%; }
    .amtdevelopcontent    { -webkit-flex: 0 0 auto; flex: 0 0 auto; white-space: nowrap; font-size: 0.78rem; padding: 0.65rem 0.75rem; }
    .amtdevelopcenter.amtdevelopdiv { -webkit-flex: 0 0 auto; flex: 0 0 auto; white-space: nowrap; }

    /* Tabela mieszkań – mniejsza czcionka */
    .styled-table-devtable { font-size: 0.75rem; }
    .styled-table-devtable th,
    .styled-table-devtable td { padding: 6px 8px; }

    /* Formularz kontaktowy – pełna szerokość bez górnego marginesu */
    .invest-box-content { padding: 20px 16px; }

    /* Pasek "Sprzedane nieruchomości" */
    .oplixo-sold-section { padding: 18px 0; }
}

/* Sidebar pod treścią na mobile */
@media (max-width: 991px) {
    .devpage-sidebar { margin-top: 30px; }
}

/* Karta kategorii (szczegóły 4/8 split) – pełna szerokość na mobile */
@media (max-width: 575px) {
    .invest-box-content .col-lg-4,
    .invest-box-content .col-lg-8 {
        -webkit-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .invest-box-content .col-lg-4 .amt-5hg54wa {
        margin-bottom: 2px;
        padding-bottom: 0;
        font-weight: 600;
        color: #222;
    }
    .invest-box-content .col-lg-8 { margin-bottom: 10px; }
}

/* ── Developer listing page /deweloper – dv-* responsive ── */
@media (max-width: 991px) {
    .dv-hero  { padding: 36px 0 30px; }
    .dv-title { font-size: 2.1rem; }
    .dv-grid .padT10 {
        -webkit-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 767px) {
    .dv-hero  { padding: 28px 0 24px; }
    .dv-title { font-size: 1.75rem; }
    .dv-stats { font-size: 0.88rem; }
    .dv-tabs li a { padding: 12px 14px; font-size: 0.8rem; }
    .dv-body  { padding: 24px 0 32px; }
}
@media (max-width: 575px) {
    .dv-title { font-size: 1.5rem; letter-spacing: -0.01em; }
    .dv-grid .padT10 {
        -webkit-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}
