@media(max-width: 1199px){
    .banner_slider .slide .content{
        width: 90%;
        max-width: 800px;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .rcp_form{
        position: relative;
        width: 100%;
        right: 0;
        margin-top: 20px;
    }
    .rcp_form nav .nav-tabs{
        background: #fff;
    }
    .video_prop iframe{
        height: 400px;
    }
    /* .embed-placeholder{
        height: 400px;
    }
    .embed-placeholder iframe{
        width: 100%;
        height: 400px;
    } */

    /* Popup Form Styles */
    .modal-dialog {
        max-width: 90%;
        margin: 1.75rem auto;
    }
}
@media(max-width: 991px){
    header{
        background: var(--skin-color--);
        position: sticky;
        top: 0;
        z-index: 99;

    }
    .header nav .read_more{
        background: #fff;
        color: var(--skin-color--);
        border: 1px solid #fff;
    }
    header .menu_btn span.cross::before, header .menu_btn span.cross::after {
        background: #fff;
    }
    .header .menu_btn span {
        transition: 0.3s;
        background: #fff;
    }
    .banner_slider{
        /* padding-top: 100px; */
    }
    header .menu_btn{
        display: flex;
    }
    .header nav ul{
        position: absolute;
        top: 100%;
        flex-direction: column;
        background: var(--red--);
        padding: 20px 20px 30px 30px;
        right: -200px;
        border-radius: 0 0 0 50px;
        transition: 0.5s ease-in-out;
    }
    .header nav ul.active{
        right: 0;
        transition: 0.5s ease-in-out;
    }
    .header nav ul li a{
        padding: 0 10px;
    }
    .header nav ul li a::before{
        display: none;
    }
    .header nav ul li a.active{
        color: var(--skin-color--);
    }
    .banner_slider .slide .content{
        width: 90%;
        max-width: 700px;
        background: rgba(0, 0, 0, 0.85);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .banner_slider .slide .content h2{
        color: #fff;
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .banner_slider .slide .content span{
        color: #fff;
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .banner_slider .slide .content .cta-button{
        display: inline-block;
        visibility: visible;
        opacity: 1;
    }
    .rcp_form {
        margin-top: 25px;
        padding-top: 20px;
    }
    .rcp_form nav .nav-tabs{
        box-shadow: rgba(100, 100, 111, 0.2) 0px -5px 13px 0px;
    }
    .luxury_properties_slider{
        padding-left: 0;
    }
    .luxury_properties_slider .slick-arrow.slick-prev{
        left: 10px;
    }
    .side_bar{
        margin-top: 25px;
    }
    .villa-detail-img{
        gap: 20px;
        height: auto;
        margin-top: 20px;
    }
    .villa-detail-img .big-img{
        width: 100%;
    }
    .villa-detail-img .small-img{
        flex-direction: row;
        width: 100%;
    }
    .top-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .top-contact-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .top-contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
        padding: 8px 15px;
    }

    .top-contact-item span {
        display: inline-block;
        font-size: 14px;
    }

    .top-social {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    /* Popup Form Styles */
    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-header h5 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .form_input {
        margin-bottom: 1.25rem;
    }

    .form_input input,
    .form_input textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
@media(max-width: 768px){
    .banner_slider{
        clip-path: none;
        height: 100vh;
        min-height: 500px;
    }
    .preloader img {
        width: 50%;
    }
    .banner_slider .slick-dots{
        bottom: 20px;
    }
    .banner_slider .slick-arrow{
        opacity: 1;
        visibility: visible;
    }
    .banner_slider .slick-arrow.slick-next{
        right: 15px;
    }
    .banner_slider .slick-arrow.slick-prev{
        left: 15px;
    }

    .banner_slider .slide {
        height: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .banner_slider .slide .content{
        width: 90%;
        max-width: 600px;
        padding: 25px;
        background: rgba(0, 0, 0, 0.85);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .banner_slider .slide .content h2{
        color: #fff;
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .banner_slider .slide .content span{
        color: #fff;
        font-size: 0.9rem;
        margin-bottom: 20px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .banner_slider .slide .content .cta-button{
        display: inline-block;
        visibility: visible;
        opacity: 1;
        background: #E74C3C;
        color: #fff;
        border: 2px solid #E74C3C;
    }
    .banner_slider .slick-dots{
        bottom: 1%;
    }
    .banner_slider .slick-dots li button{
        background: #0004;
    }
    .banner_slider .slick-dots li.slick-active button{
        background: var(--red--);
    }
    .post_req{
        flex-wrap: wrap;
        background: #fff;
    }
    .post_req::before{
        display: none;
    }
    .post_req .post_req_slider {
        width: 100%;
        flex-shrink: 1;
        position: relative;
        margin-bottom: 2%;
    }
    
    .post_req .post_req_slider::before, .post_req .post_req_slider::after{
        content: '';
        position: absolute;
        width: 30%;
        height: 110%;
        transform: skewX(-20deg);
    }
    .post_req .post_req_slider::before{
        background: #fff;
        right: -18%;
        top: 0;
        z-index: 2;
    }
    .post_req .post_req_slider::after{
        background: #f3eedd;
        right: -20%;
        top: 0;
        z-index: 3;
    }

    .post_req .your_request{
        position: relative;
        width: 100%;
        padding: 20px 0;
        transform: skewX(0deg);
    }

    .post_req .your_request .content{
        transform: skewX(0deg);
    }
    .inner_banner{
        padding-top: 160px;
        padding-bottom: 100px;
    }
    header.active{
        /* transform:translateY(-12px); */
    }
    .floating_icon{
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        padding: 5px 20px;
        background: var(--skin-color--);
    }
    .floating_icon ul{
        flex-direction: row;
        justify-content: space-between;
    }
    .hot_properties_new .hot_properties_img{
        width: 100%;
    }
    .hot_properties_new .content{
        width: 100%;
    }
    .video_prop iframe{
        height: 300px;
    }
    .property_sec .property_type ul li{
        width: 45.5%;
    }
    /* .embed-placeholder{
        height: 300px;
    }
    .embed-placeholder iframe{
        height: 300px;
    } */
    .top-contact-item {
        max-width: 250px;
        padding: 6px 12px;
    }

    .top-contact-item span {
        font-size: 13px;
    }

    .top-contact-item i {
        font-size: 16px;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Hide filter section on homepage for mobile */
    body.home .rcp_form,
    body.home .property-search,
    body.home .search-filters {
        display: none !important;
    }
    
    /* Keep filter visible on property listing pages */
    body:not(.home) .rcp_form,
    body:not(.home) .property-search,
    body:not(.home) .search-filters {
        display: block;
    }

    .featured-projects-wrapper {
        position: relative;
        overflow: hidden;
        padding: 0 15px;
    }

    .featured-projects-slider {
        position: relative;
        display: block;
    }

    .featured-project-slide {
        padding: 10px;
    }

    .featured-projects-slider .slick-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        background: rgba(44, 62, 80, 0.8);
        border: none;
        border-radius: 50%;
        color: #fff;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .featured-projects-slider .slick-prev {
        left: 10px;
    }

    .featured-projects-slider .slick-next {
        right: 10px;
    }

    .featured-projects-slider .slick-arrow:hover {
        background: rgba(44, 62, 80, 1);
    }

    .featured-projects-slider .slick-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex !important;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .featured-projects-slider .slick-dots li {
        margin: 0;
    }

    .featured-projects-slider .slick-dots button {
        width: 10px;
        height: 10px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(44, 62, 80, 0.5);
        font-size: 0;
        cursor: pointer;
    }

    .featured-projects-slider .slick-dots li.slick-active button {
        background: rgba(44, 62, 80, 1);
    }

    /* About Section Mobile Styles */
    .things_bg {
        padding: 40px 0;
    }

    .about-content {
        padding: 30px 15px;
        margin: 0 15px;
    }

    .section-tag {
        padding: 6px 15px;
        font-size: 12px;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .experience-badge {
        padding: 12px 25px;
        margin: 15px 0;
    }

    .badge-content .years {
        font-size: 2rem;
    }

    .badge-content .text {
        font-size: 0.9rem;
    }

    .section-description {
        margin: 20px auto;
        font-size: 1rem;
        padding: 0 10px;
    }

    .about-stats {
        margin: 30px 0;
    }

    .stat-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    .learn-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Filter section mobile styles */
    .rcp_form {
        width: 95%;
        padding: 15px 8px;
        background: #fff;
        margin: 0 auto;
    }

    /* Property type buttons container */
    .rcp_form nav {
        width: 100%;
        margin-bottom: 15px;
        padding: 0;
    }

    .rcp_form nav .nav-tabs {
        width: 100%;
        display: flex;
        gap: 4px;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        justify-content: space-between;
    }

    /* Individual buttons */
    .rcp_form nav .nav-tabs .nav-link {
        padding: 4px;
        font-size: 10px;
        color: #333;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 3px;
        white-space: normal;
        line-height: 1;
        min-height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 32%;
        flex: none;
    }

    .rcp_form nav .nav-tabs .nav-link.active {
        background: #2C3E50;
        color: #fff;
        border-color: #2C3E50;
    }

    /* Form fields */
    .rcp_form .tab-content {
        padding: 0 5px;
    }

    .rcp_form .tab-content .form-group {
        margin-bottom: 10px;
    }

    .rcp_form .tab-content .form-control,
    .rcp_form .tab-content .form-select,
    .rcp_form .tab-content .select2-container {
        width: 100% !important;
        height: 40px;
        padding: 6px 10px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        background: #fff;
        font-size: 13px;
    }

    /* Find Properties button */
    .rcp_form .tab-content form button {
        width: 100%;
        padding: 10px;
        background: #2C3E50;
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 500;
        margin-top: 10px;
    }

    /* Popup Form Styles */
    .modal-dialog {
        margin: 0.75rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h5 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .form_input {
        margin-bottom: 1rem;
    }

    .form_input label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }

    .form_input input,
    .form_input textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .form_input button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .captcha-section {
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .captcha-section p {
        font-size: 0.85rem;
    }
}
@media(max-width: 600px){
    .banner_slider .slide .content h2{
        font-size: 22px;
    }
    .banner_slider .slide .content span{
        font-size: 20px;
    }
    .rcp_form nav .nav-tabs{
        padding: 15px 0;
    }
    .rcp_form nav .nav-tabs .nav-link{
        padding: 0 10px;
        font-size: 12px;
    }
    .about_property .nav-tabs .nav-link{
        font-size: 12px;
    }
    .about_property .nav-tabs{
        gap: 10px;
    }
    .video_prop iframe{
        height: 250px;
    }
    /* .embed-placeholder{
        height: 250px;
    }
    .embed-placeholder iframe{
        height: 250px;
    } */
}

/* @media(max-width: 400px){
    .property_sec .property_type ul li{
        width: 100%;
    }
} */

@media(max-width: 480px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-contact-item {
        max-width: 220px;
        padding: 5px 10px;
    }

    .top-contact-item span {
        font-size: 12px;
    }

    .top-contact-item i {
        font-size: 14px;
    }
}

@media(max-width: 576px){
    .banner_slider,
    .banner_slider .slide {
        height: 80vh;
        min-height: 400px;
    }

    .banner_slider .slide .content{
        width: 95%;
        padding: 20px;
        background: rgba(0, 0, 0, 0.9);
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .banner_slider .slide .content h2{
        font-size: 1.5rem;
    }

    .banner_slider .slick-arrow{
        width: 35px;
        height: 35px;
    }

    .banner_slider .slick-dots{
        bottom: 15px;
    }

    .banner_slider .slick-dots button{
        width: 10px;
        height: 10px;
    }

    /* Reinforce hiding filters on smaller mobile screens */
    body.home .rcp_form,
    body.home .property-search,
    body.home .search-filters {
        display: none;
    }

    .about-content {
        padding: 25px 12px;
        margin: 0 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.75rem;
    }

    /* Popup Form Styles */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header {
        padding: 0.875rem;
    }

    .modal-header h5 {
        font-size: 1.1rem;
    }

    .modal-header .close-btn {
        width: 28px;
        height: 28px;
        right: 0.875rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .form_input {
        margin-bottom: 0.875rem;
    }

    .form_input label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .form_input input,
    .form_input textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .form_input button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .captcha-section {
        padding: 0.875rem;
        margin-top: 0.625rem;
        border-radius: 6px;
    }

    .captcha-section p {
        font-size: 0.8rem;
        margin: 0.5rem 0;
    }

    .error-message {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .success-message {
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
        margin-bottom: 1rem;
    }
}

@media(min-width: 769px) {
    .featured-projects-wrapper {
        width: 100%;
    }
    
    .featured-projects-slider {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .featured-project-slide {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Large screens */
@media(min-width: 1200px) {
    .featured-projects-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Popup Form Styles */
.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
    width: 95%;
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #fff;
}

.modal-header {
    background: linear-gradient(135deg, #233e62 0%, #1a2f4a 100%);
    padding: 1.5rem;
    border: none;
    position: relative;
}

.modal-header h5 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    width: 100%;
}

.modal-header .close-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-header .close-btn:hover {
    background: rgba(44, 63, 81, 0.15);
    transform: translateY(-50%) scale(1.15) rotate(90deg);
}

.modal-header .close-btn::before,
.modal-header .close-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #2c3f51;
    border-radius: 1px;
    transition: background 0.3s;
}

.modal-header .close-btn::before {
    transform: rotate(45deg);
}

.modal-header .close-btn::after {
    transform: rotate(-45deg);
}

.modal-body {
    padding: 2rem;
}

.form_input button {
    background: #2c3f51 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form_input button:hover {
    background: #233e62 !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 15px rgba(44, 63, 81, 0.15);
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    .modal-body {
        padding: 1.5rem;
    }
    .modal-header,
    .modal-footer {
        padding: 1.25rem;
    }
    .form_input button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    .modal-header .close-btn {
        width: 28px;
        height: 28px;
        right: 0.875rem;
    }
}