/* On very small screens, stack vertically */
@media (max-width: 767px) {
    .featured-img a {
        height: 350px !important;
    }
}

/* Make the image container a positioning context */
.cs-room-item .featured-img {
    position: relative;
}

/* Ensure the main image anchor stays below the overlay/button */
.cs-room-item .featured-img > a {
    position: relative;
    z-index: 1;
}

/* Put the overlay (with the button) above the image link */
.cs-room-item .featured-img .overlay-label {
    position: absolute;   /* if not already */
    right: 10px;
    z-index: 5;
    pointer-events: auto; /* make sure it can receive clicks */
    width: fit-content;
}

/* If your theme disables pointer events on overlay-label, override it */
.cs-room-item .featured-img .overlay-label,
.cs-room-item .featured-img .overlay-label * {
    pointer-events: auto !important;
}

/* Add-to-list button overlay style */
.dv-add-to-list-btn {
    position: absolute;
    z-index: 5;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    width: fit-content;
}
.room-top-section .dv-add-to-list-btn {
    left: 20px !important;
}
/* Hover / active state */
.dv-add-to-list-btn:hover {
    background: #b99d75;
    color: #ffffff;
}

/* Optional: different style when in list */
.dv-add-to-list-btn.dv-in-list {
    background: #b99d75;
    color: #ffffff;
}

/* Dropdown behavior for our banner search */
/* === Dream Villas search banner overrides === */

/* Each dropdown field is a positioning context */
.dv-search-filter .cs-form-field.cs-has-dropdown {
    position: relative;
}

/* Use top-based positioning instead of theme's bottom/translate */
.dv-search-filter .cs-form-field .csf-dropdown {
    /* override theme defaults */
    bottom: auto !important;
    top: 100% !important;
    left: 0;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;

    margin-top: 0;         /* remove extra gap under the green bar */
    min-width: 100%;       /* make dropdown the same width as its field */
}

/* Make dropdown actually visible when field is open */
.dv-search-filter .cs-form-field.open .csf-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    min-width: 320px;
}

.dv-location-content {
    max-width: 1000px;
    margin: 40px auto;
}

.dv-location-content p {
    font-size: 1.1rem !important;
    font-weight: 400;
    line-height: 1.7;
    color: #333632;
}

/* HIDE BADGE BY DEFAULT */
.dv-list-badge {
    display: none;
    text-decoration: none;
    margin-left: 20px;
}

/* SHOW ONLY WHEN JS ADDS THIS CLASS */
.dv-list-badge.dv-has-items {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Circle style */
.dv-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;    /* white circle */
    color: #000000;         /* black number */
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

/* Container so the image has a predictable size */
.thumbnail-gallery li {
    overflow: hidden;
}

/* Real image with a placeholder behind it */
.dv-property-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Placeholder while the real image is loading */
    background: url('https://marbelladreamvillas.com/wp-content/uploads/2025/12/no-image.jpg')
                center center / cover no-repeat #f5f5f5;
}

/* If your main menu uses flex, this helps push badge to far right */
.main-navigation .menu,
.main-menu,
.nav-primary .menu {
    display: flex;
    align-items: center;
}

/* Features layout (optional, for nicer columns) */
.dv-search-filter .dv-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.dv-search-filter .dv-feature-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dv-search-filter .dv-feature-col label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* Desktop: hide Neighborhood label text, keep for accessibility */
@media (min-width: 992px) {
    .dv-search-filter .cs-neighborhood .cs-form-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Desktop: control alignment of Neighborhood/Features text inside the bar */
@media (min-width: 992px) {
    .dv-search-filter .cs-neighborhood .field-input-wrap input[type="text"],
    .dv-search-filter .cs-features .field-input-wrap input[type="text"] {
        text-align: left;
        font-size: 1rem;
    }
}

/* Desktop: hide top label for Features on desktop */
@media (min-width: 992px) {
    .dv-search-filter .cs-features > .field-wrap > .cs-form-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Header: summary + sort inline */
.dv-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Let the text wrap if needed on small screens */
.dv-results-header .dream-villas-result-summary {
    margin: 0;
}

/* Make the sort bar compact in this header */
.dv-results-sort .cs-reservation-form.dv-sort-bar {
    margin: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.dv-results-sort .cs-reservation-form.dv-sort-bar .cs-form-wrap {
    display: flex;
    align-items: center;
}

.dv-results-sort .cs-reservation-form.dv-sort-bar .cs-form-field.cs-sort {
    margin: 0;
    min-width: 300px;
}
.fav-contact-form {
        margin: 40px auto;
}
.fav-contact-form h2 {
        margin-bottom: 20px;
}

/* On very small screens, stack header vertically */
@media (max-width: 767px) {
    .dv-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dv-results-sort {
        width: 100%;
    }
}

/* Example: favourites contact form on wide screens */
@media (min-width: 1200px) {
    .fav-contact-form {
        max-width: 75%;
        max-width: 800px; 
        margin: 40px auto;
    }
}

/* === HERO SECTION (replaces .elementor-3108 .elementor-element-fdff74a) === */

.dv-search-hero {
    position: relative;
    background-color: #000000;
    background-position: center center;
    background-size: cover;
    margin-top: 0;
    margin-bottom: 0;
    transition:
        background 0.3s,
        border 0.3s,
        border-radius 0.3s,
        box-shadow 0.3s;
}

/* If you want to use background-image on the section instead of the parallax <img>,
   you can set it inline in PHP and these properties will handle it. */

.dv-search-hero-inner {
    min-height: 70vh; /* from Elementor: elementor-element-fdff74a > .elementor-container */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.dv-search-hero-overlay {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background-color: #000000;
    opacity: 0.55;
    transition:
        background 0.3s,
        border-radius 0.3s,
        opacity 0.3s;
    pointer-events: none;
}

/* Title widget padding/margin (from .elementor-element-90d8805 > .elementor-widget-container) */
.dv-search-hero-title-container {
    margin: 90px 0 0 0;
    padding: 100px 0 150px 0;
}

/* Optional: ensure hero text is readable */
.dv-search-hero .cs-title-wrap {
    color: #ffffff;
}

/* === SEARCH BANNER SECTION BELOW HERO (replaces 49f5d98, b45dd2c, f60c41f) === */

.dv-search-banner {
    position: relative;
    margin-top: -54px;
    margin-bottom: 0;
    z-index: 9;
}

/* Column background color (from .elementor-element-b45dd2c) */
.dv-search-banner-column .elementor-widget-wrap {
    background-color: #53624E;
    transition:
        background 0.3s,
        border 0.3s,
        border-radius 0.3s,
        box-shadow 0.3s;
}

/* Extra transition for overlay if you add one */
.dv-search-banner-column .elementor-background-overlay {
    transition:
        background 0.3s,
        border-radius 0.3s,
        opacity 0.3s;
}

/* Padding inside the shortcode widget (from .elementor-element-f60c41f > .elementor-widget-container) */
.dv-search-banner-container {
    padding: 30px 30px 30px 30px;
}
.dv-property-single .cs-room-basic-info {
    --icon-size: 28px;
    margin: 25px 0 0;
}
.dv-property-single .item-subtitle {
    margin-top: 20px;
    font-size: 15px;
    font-size: 0.9375rem;
    color: var(--secondary-color);
}

.dv-property-single .post-header {
    margin-bottom: 40px;
}
.dv-property-single .cs-info-box-wrap {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: calc(0px - var(--box-gap) / 2);
    width: calc(100% + var(--box-gap));
}
.dv-property-single .cs-info-box-content {
    position: relative;
    flex: 1 1 auto;
}
.dv-property-single .cs-info-box-title {
    font-size: 17px;
}
.dv-property-single .cs-info-box-img {
    flex: 0 0 auto;
    line-height: 0;
}
.dv-property-single .cs-info-box-item, .dv-property-single .cs-item-container {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}
.dv-property-single .cs-info-box-img {
    margin-right: 16px;
}
.dv-property-single .cs-item-container {
    align-items: center;
}
.dv-property-single .cs-info-box-item {
    padding: calc(20px / 2);
}
.dv-property-single .cs-info-box-img i {
    color: #B99D75;
    font-size: 30px;
}
@media screen and (min-width: 600px) {
    .dv-property-single .cs-info-box-item{
        width: 50%;
    }   
}
.cs-room-booking .room-booking-title .base-price2 {
    font-size: 18px;
    font-size: 1.125rem;
    font-weight: 500;
}  
.cs-room-booking .room-booking-title {
    /*display: block;*/
}
.cs-room-booking .room-booking-title h4 {
    font-size: 1.5rem;
    text-transform:capitalize;
}
.dv-property-single .entry-content h4 {
        margin-top: 30px;
        margin-bottom: 15px;
}    
.similar-articles-title {
    padding-top: 70px;
    margin-bottom: 50px;
    border-top: 1px solid var(--border-color);
    font-size: 30px;
    font-size: 1.875rem;
}
.item-price{
    font-style: italic;
}
.item-amount{
    font-style: normal;
    font-size: 17px;
    font-weight: 500;
    color: #b99d75;
}