/* ==========================================================================
   Finques Reyné & Infoal Master FW Real Estate v7 Design Overlay
   Includes Master Legacy Site Stylesheet for Universal 5-Site Compatibility
   ========================================================================== */
@import url("/templates/shaper_estate/css/fwre-design-styles.css");

/* ==========================================================================
   Corporate Branding Variables (Defaults to Corporate Pink #2CB643)
   ========================================================================== */
:root {
    --fwre-maincolor: #2CB643;
    --fwre-maincolor-hover: #1b7a2d;
    --fwre-maincolor-transparent: rgba(44, 182, 67, 0.3);
    --fwre-maincolor-shadow: rgba(44, 182, 67, 0.2);
    --fwre-maincolor-alpha: rgba(44, 182, 67, 0.08);

    --fwre-black: #323232;
    --fwre-grey: #ADADAD;
    --fwre-grey-border: #E1E1E1;
    --fwre-grey-dark: #e6e6e6;
    --fwre-grey-dark-deep: #6e7683;
    --fwre-grey-light: #F3F3F3;
    --fwre-red: #FF4C00;

    --fwre-green: #2CB643 !important;
    --fwre-green-hover: #1b7a2d !important;
    --fwre-green-alpha: rgba(44, 182, 67, 0.08) !important;
    --fwre-green-deep: #166524 !important;
    --fwre-green-light: #b8eec1 !important;

    --fwre-color-primary: #2CB643 !important;
    --fwre-color-primary-hover: #1b7a2d !important;
    --fwre-color-primary-soft: rgba(44, 182, 67, 0.08) !important;
    --fwre-color-on-primary: #ffffff !important;

    --fwre-shadow-focus: 0 0 0 3px rgba(44, 182, 67, 0.18) !important;
}

#fwre, .fwcss, .fwk-scope {
    --fwre-maincolor: #2CB643 !important;
    --fwre-maincolor-hover: #1b7a2d !important;
    --fwre-green: #2CB643 !important;
    --fwre-green-hover: #1b7a2d !important;
    --fwre-green-alpha: rgba(44, 182, 67, 0.08) !important;
    --fwre-color-primary: #2CB643 !important;
    --fwre-color-primary-hover: #1b7a2d !important;
    --fwre-color-primary-soft: rgba(44, 182, 67, 0.08) !important;
    --fwre-shadow-focus: 0 0 0 3px rgba(44, 182, 67, 0.18) !important;
}

/* ==========================================================================
   Property Listing Card Styles (Restores Exact v6 Styles)
   ========================================================================== */
#fwre .fwre-list-item {
    margin-top: 35px !important;
    border-radius: 20px !important;
    box-shadow: var(--fwre-maincolor-shadow, rgba(44, 182, 67, 0.2)) 1px 1px 5px !important;
    background: #ffffff !important;
    border: none !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#fwre .fwre-list-item:hover {
    box-shadow: 0 8px 24px rgba(44, 182, 67, 0.22) !important;
}

#fwre .fwre-item-media {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px 0 0 20px !important;
}

#fwre .fwre-grid-view .fwre-item-media {
    border-radius: 20px 20px 0 0 !important;
    width: 100% !important;
}

#fwre .fwre-item-slideshow {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

#fwre .fwre-item-slideshow .fwk-slideshow-items {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#fwre .fwre-item-slide {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#fwre .fwre-item-slide a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

#fwre .fwre-item-slideshow img,
#fwre .fwre-item-media img,
#fwre .fwre-item-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
}

/* Photo gradient footer counter */
#fwre .fwre-item-count { 
    color: #ffffff !important;
    width: 100% !important;
    padding: 30px 10px 10px !important;
    text-align: right !important;
    background: linear-gradient(rgba(0,0,0,0), var(--fwre-maincolor-transparent, rgba(44, 182, 67, 0.3))) !important;
}
#fwre .fwre-item-count svg,
#fwre .fwre-item-count span {
    color: #ffffff !important;
}

/* ==========================================================================
   Property Card Image Badges: Left (Status/Subtype) & Right (Property Type)
   ========================================================================== */
#fwre .fwre-item-media .fwre-item-type,
#fwre .fwre-item-media .fwre-media-type-badge,
body.view-search .fwre-item-media .fwre-item-type,
.fwre-list-media .fwre-item-type {
    position: absolute !important;
    top: 12px !important;
    right: 8px !important;
    z-index: 5 !important;
    padding: 0 10px !important;
    color: #ffffff !important;
    background-color: var(--fwre-maincolor, #2CB643) !important;
    border-radius: 5px !important;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    height: 20px !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

#fwre .fwre-item-media .fwre-status-label,
#fwre .fwre-status-label {
    position: absolute !important;
    top: 12px !important;
    left: 8px !important;
    margin: 0 !important;
    z-index: 5 !important;
}

#fwre .fwre-status-label .uk-label,
#fwre .fwre-status-label .fwk-label,
#fwre .fwre-status-label [class*="fwre-status-"] {
    height: 20px !important;
    padding: 0 10px !important;
    line-height: 20px !important;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    background: var(--fwre-black, #323232) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

#fwre .fwre-item-media .fwre-featured-flag {
    position: absolute !important;
    top: 38px !important;
    left: 8px !important;
    z-index: 5 !important;
}
#fwre .fwre-item-media .fwre-featured-flag .fwre-featured-badge {
    height: 20px !important;
    padding: 0 8px !important;
    line-height: 20px !important;
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #b58105 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

/* Card titles in dark grey (#323232) */
#fwre .fwre-item-title,
#fwre .fwre-item-title a {
    color: var(--fwre-black, #323232) !important;
    font-family: var(--fwre-title-font, 'Montserrat', sans-serif) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
}
#fwre .fwre-item-title a:hover {
    color: var(--fwre-maincolor, #2CB643) !important;
}

/* Price & Reference */
#fwre .fwre-item-price a,
#fwre .fwre-item-price .fwre-text-green {
    color: var(--fwre-maincolor, #2CB643) !important;
    font-family: var(--fwre-title-font, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
#fwre .fwre-item-price .uk-text-if,
#fwre .fwre-item-price .fwre-item-ref {
    color: var(--fwre-grey, #ADADAD) !important;
    font-size: 1rem !important;
    margin-left: 10px !important;
    font-weight: 400 !important;
}

/* Property facts & icons (Bed, Bath, Area, Parking) with grey box background */
#fwre .fwre-item-facts {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 15px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
#fwre .fwre-item-facts .fwre-item-fact,
#fwre .fwre-item-icons .fwk-button,
#fwre .fwre-item-icons .uk-button,
#fwre .fwre-item-icons .fwre-item-option {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background-color: var(--fwre-grey-light, #F3F3F3) !important;
    border-radius: 4px !important;
    border: none !important;
    color: var(--fwre-black, #323232) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}
#fwre .fwre-item-facts .fwre-item-fact .fwre-item-fact-icon,
#fwre .fwre-item-facts .fwre-item-fact svg,
#fwre .fwre-item-icons svg {
    color: var(--fwre-black, #323232) !important;
    width: 18px !important;
    height: 18px !important;
}
#fwre .fwre-item-facts .fwre-item-fact .fwre-item-fact-value {
    color: var(--fwre-black, #323232) !important;
}

/* ==========================================================================
   Search Module Fields Homogenization (Tipo, Provincia, Población, Ref., etc.)
   ========================================================================== */
.fwre-mod-search .fwre-mod-field,
#fwre.fwre-search .fwre-mod-field,
.mod-buscador .fwre-mod-field {
    margin-bottom: 0 !important;
}

.fwre-mod-search .fwre-mod-field .fwre-ms,
.fwre-mod-search .fwre-mod-field .fwre-ms-toggle,
.fwre-mod-search .fwre-mod-field .fwk-input,
.fwre-mod-search .fwre-mod-field .fwk-select,
#fwre.fwre-search .fwk-input,
#fwre.fwre-search .fwk-select,
#fwre.fwre-search .fwre-ms-toggle,
.mod-buscador .fwk-input,
.mod-buscador .fwk-select,
.mod-buscador .fwre-ms-toggle {
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.fwre-mod-search .fwre-mod-field .fwre-ms-toggle,
.fwre-mod-search .fwre-mod-field .fwk-input,
.fwre-mod-search .fwre-mod-field .fwk-select,
#fwre.fwre-search .fwre-ms-toggle,
#fwre.fwre-search .fwk-input,
#fwre.fwre-search .fwk-select,
.mod-buscador .fwre-ms-toggle,
.mod-buscador .fwk-input,
.mod-buscador .fwk-select {
    height: 40px !important;
    min-height: 40px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    background-color: var(--fwre-grey-light, #F3F3F3) !important;
    border: 1px solid var(--fwre-grey-border, #E1E1E1) !important;
    border-radius: 15px !important;
    color: var(--fwre-black, #323232) !important;
    font-family: var(--fwre-body-font, "Hind"), sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

.fwre-mod-search .fwre-mod-field .fwre-ms:focus-within .fwre-ms-toggle,
.fwre-mod-search .fwre-mod-field .fwk-input:focus,
.fwre-mod-search .fwre-mod-field .fwk-select:focus,
#fwre.fwre-search .fwk-input:focus,
#fwre.fwre-search .fwre-ms-toggle:focus,
.mod-buscador .fwk-input:focus,
.mod-buscador .fwre-ms-toggle:focus {
    background-color: #ffffff !important;
    border-color: var(--fwre-maincolor, #2CB643) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(44, 182, 67, 0.15) !important;
}

.fwre-mod-search .fwre-mod-field .fwre-ms-ph,
.fwre-mod-search .fwre-mod-field .fwk-input::placeholder,
#fwre.fwre-search .fwk-input::placeholder,
.mod-buscador .fwk-input::placeholder {
    color: var(--fwre-grey, #adadad) !important;
    font-family: var(--fwre-body-font, "Hind"), sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.fwre-mod-search .fwre-mod-label,
#fwre.fwre-search .fwre-mod-label,
.mod-buscador .fwre-mod-label {
    margin-bottom: 4px !important;
    font-family: var(--fwre-body-font, "Hind"), sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--fwre-black, #323232) !important;
}

/* General form inputs fallback */
#fwre form .fwk-input,
#fwre form .fwk-select,
#fwre form .fwk-textarea {
    background-color: var(--fwre-grey-light, #F3F3F3) !important;
    border-radius: 4px !important;
    border: 1px solid var(--fwre-grey-border, #E1E1E1) !important;
    color: var(--fwre-black, #323232) !important;
}
#fwre form .fwk-input:focus,
#fwre form .fwk-select:focus,
#fwre form .fwk-textarea:focus {
    background-color: #ffffff !important;
    border-color: var(--fwre-maincolor, #2CB643) !important;
    box-shadow: 0 0 0 3px rgba(44, 182, 67, 0.18) !important;
}

/* City location pin */
#fwre .fwre-item-location {
    color: var(--fwre-black, #323232) !important;
    font-size: 0.875rem !important;
    margin-top: 5px !important;
}
#fwre .fwre-item-location [fwk-icon] svg,
#fwre .fwre-item-location svg {
    color: var(--fwre-maincolor, #2CB643) !important;
    fill: var(--fwre-maincolor, #2CB643) !important;
}

/* Primary buttons (e.g. Contact form send button) */
#fwre .fwk-button-primary,
.fwcss .fwk-button-primary,
#fwre button[type="submit"].fwk-button-primary,
#fwre input[type="submit"].fwk-button-primary {
    background-color: #2CB643 !important;
    border-color: #2CB643 !important;
    color: #ffffff !important;
}

#fwre .fwk-button-primary:hover,
#fwre .fwk-button-primary:focus,
.fwcss .fwk-button-primary:hover,
#fwre button[type="submit"].fwk-button-primary:hover {
    background-color: #1b7a2d !important;
    border-color: #1b7a2d !important;
    color: #ffffff !important;
}

/* Secondary & inverse buttons (e.g. Ver detalles, filters) */
#fwre .fwre-button-primary-inverse,
#fwre#fwre .fwre-button-primary-inverse {
    border-color: #2CB643 !important;
    color: #2CB643 !important;
}
#fwre .fwre-button-primary-inverse:hover,
#fwre#fwre .fwre-button-primary-inverse:hover {
    background-color: #2CB643 !important;
    color: #ffffff !important;
}

/* Feature checklist checkmarks (amenities) */
#fwre .fwk-text-success,
#fwre .fwre-amenities [fwk-icon="icon: check"],
#fwre [fwk-icon="icon: check"] {
    color: #2CB643 !important;
}

/* Accordion active titles and hover states */
#fwre .fwk-accordion-title:hover {
    color: #2CB643 !important;
}
#fwre .fwk-accordion > li.fwk-open > .fwk-accordion-title,
#fwre .fwre-property-body .fwre-panel-open .fwk-accordion-title {
    color: #2CB643 !important;
}

/* Form controls checkboxes */
#fwre .fwk-checkbox:checked,
#fwre input[type="checkbox"]:checked {
    background-color: #2CB643 !important;
    border-color: #2CB643 !important;
}

/* Range sliders (mortgage calculator, price filter) */
#fwre .irs--flat .irs-bar,
#fwre .irs--flat .irs-from,
#fwre .irs--flat .irs-to,
#fwre .irs--flat .irs-single,
#fwre .irs--flat .irs-handle > i:first-child {
    background-color: #2CB643 !important;
}
#fwre .irs--flat .irs-from:before,
#fwre .irs--flat .irs-to:before,
#fwre .irs--flat .irs-single:before {
    border-top-color: #2CB643 !important;
}

/* Badges / category chips */
#fwre .fwre-property-cat {
    background: rgba(44, 182, 67, 0.08) !important;
    color: #2CB643 !important;
    border: 1px solid rgba(44, 182, 67, 0.25) !important;
}

/* Ocultar botón de accesibilidad de Joomla (según requerimiento) */
#asw, .asw-btn, [data-asw-btn], .asw-menu {
    display: none !important;
}

/* ==========================================================================
   Property Detail View (#fwre-photo Gallery Emulation)
   ========================================================================== */
.view-item #sp-main-body, .view-item #sp-component {
    padding: 0 !important;
}
.view-item #sp-main-body .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.view-item #sp-main-body .container-inner,
.view-item #sp-main-body .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

#fwre .fwre-item-header-top {
    text-align: center !important;
    max-width: 1320px !important;
    margin: 0 auto 20px auto !important;
    padding: 0 15px !important;
}
#fwre .fwre-property-title {
    text-align: center !important;
    margin: 0 auto 8px auto !important;
}
#fwre .fwre-property-meta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 auto 12px auto !important;
}

#fwre .fwre-property-media {
    margin-bottom: var(--fwre-space-16, 24px);
    width: 100% !important;
}

#fwre .fwre-property-images {
    position: relative !important;
    width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background-color: #111111 !important;
    height: 75vh !important;
    min-height: 480px !important;
    max-height: 820px !important;
    aspect-ratio: auto !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

#fwre .fwre-property-images::after {
    display: none !important;
}

@media (max-width: 1024px) {
    #fwre .fwre-property-images {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
    #fwre .fwre-property-images {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

#fwre .fwre-property-images ul.fwk-slideshow-items {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#fwre .fwre-slide {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    display: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#fwre .fwre-slide.is-active {
    display: block !important;
}

#fwre .fwre-slide-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: zoom-in;
    text-decoration: none;
    background: #111111 !important;
}

/* Blurred semi-transparent background filling gaps on lateral borders */
#fwre .fwre-slide-bg-blur {
    position: absolute !important;
    inset: -40px !important;
    width: calc(100% + 80px) !important;
    height: calc(100% + 80px) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: blur(14px) contrast(30%) brightness(1.7) !important;
    transform: scale(1.06) !important;
    opacity: 0.95 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Centered sharp foreground image */
#fwre .fwre-slide-fg,
#fwre .fwre-slide img,
#fwre .fwre-slide-link img,
#fwre .fwre-slide-link img.fwre-slide-fg {
    position: relative !important;
    z-index: 2 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.25s ease;
}

#fwre .fwre-property-slider-items {
    max-width: 1320px !important;
    margin: 20px auto !important;
    padding: 0 15px !important;
}

#fwre .fwre-item-layout {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

#fwre .fwre-property-images:hover .fwre-slide-fg,
#fwre .fwre-property-images:hover .fwre-slide img {
    transform: scale(1.015);
}

/* Navigation controls & Counter */
#fwre .fwre-property-images .fwre-slidenav {
    z-index: 5;
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.85;
}

#fwre .fwre-property-images .fwre-slidenav:hover {
    opacity: 1;
    background: #fff;
    color: var(--fwre-maincolor, #2CB643);
}

#fwre .fwre-image-counter {
    z-index: 5;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    font-weight: 600;
}

#fwre .fwre-slideshow-nav {
    z-index: 5;
}

/* Extra guard: suppress search module on single property view */
body.view-item .mod-buscador,
body.view-item .fwre-mod-search,
.view-item .sp-module.mod-buscador {
    display: none !important;
}

/* Price & Reference formatting in property view */
#fwre .fwre-property-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 18px !important;
    margin-bottom: 12px !important;
}

#fwre .fwre-property-price .fwre-price-val,
#fwre .fwre-property-price .fwre-text-green {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    line-height: 1 !important;
}

#fwre .fwre-property-price .fwre-property-ref,
#fwre .fwre-property-price .fwre-property-ref strong {
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    color: #777777 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Home Featured Properties Module Card Styles */
.fwre-home-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.fwre-home-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(44, 182, 67, 0.16) !important;
}
.fwre-home-card:hover .fwre-home-card-photo-wrap img {
    transform: scale(1.06) !important;
}
.fwre-home-card .fwre-home-card-title a {
    transition: color 0.2s ease;
}
.fwre-home-card:hover .fwre-home-card-title a {
    color: var(--fwre-maincolor, #2CB643) !important;
}
.fwre-home-card .fwre-home-card-btn {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.fwre-home-card:hover .fwre-home-card-btn {
    opacity: 0.85;
    transform: translateX(3px);
}


/* ==========================================================================
   LightGallery Photo Projection / Lightbox Cinema Styles & Corporate Pink
   ========================================================================== */
.lg-backdrop {
    background-color: rgba(12, 12, 16, 0.94) !important;
    z-index: 999990 !important;
}
.lg-outer {
    background-color: transparent !important;
    z-index: 999995 !important;
}
.lg-outer .lg-item {
    background-color: transparent !important;
}
.lg-toolbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%) !important;
    height: 60px !important;
    padding: 10px 24px !important;
    z-index: 999999 !important;
}
.lg-toolbar .lg-icon {
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 24px !important;
    height: 44px !important;
    width: 44px !important;
    padding: 10px !important;
    cursor: pointer !important;
    opacity: 0.85 !important;
    transition: all 0.2s ease !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}
.lg-toolbar .lg-icon:hover {
    color: #2CB643 !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
}
.lg-toolbar .lg-close {
    font-size: 26px !important;
}
.lg-actions .lg-next,
.lg-actions .lg-prev {
    background-color: rgba(25, 25, 32, 0.78) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    width: 52px !important;
    height: 52px !important;
    color: #ffffff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    padding: 0 !important;
}
.lg-actions .lg-prev {
    left: 24px !important;
}
.lg-actions .lg-next {
    right: 24px !important;
}
.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    background-color: #2CB643 !important;
    border-color: #2CB643 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 8px 24px rgba(44, 182, 67, 0.45) !important;
}
.lg-sub-html {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%) !important;
    color: #ffffff !important;
    font-family: 'Hind', sans-serif !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
}


/* ==========================================================================
   FWRE 7 Infoal Print Functionality & Print Sheet Styles (Matching Rosmar)
   ========================================================================== */
.fwre-item-header-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.fwre-listing-toolbar a.fwre-print {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1.5px solid #dcdcdc !important;
    color: #444444 !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    text-decoration: none !important;
    padding: 0 !important;
}
.fwre-listing-toolbar a.fwre-print:hover {
    border-color: #2CB643 !important;
    color: #2CB643 !important;
    background: rgba(44, 182, 67, 0.06) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 14px rgba(44, 182, 67, 0.22) !important;
}
.fwre-listing-toolbar a.fwre-print svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

body.fwre-document--print,
body.layout-print {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    margin: 0 !important;
    padding: 24px 30px !important;
    background: #ffffff !important;
    color: #222222 !important;
}
.layout-print table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 0 !important;
}
.layout-print th, .layout-print td {
    padding: 8px 10px !important;
    text-align: left !important;
}
.layout-print .header {
    color: #333333 !important;
    padding: 10px 15px 15px 15px !important;
    vertical-align: middle !important;
}
.layout-print .logo {
    max-width: 260px !important;
    max-height: 85px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
.layout-print .main-image {
    width: 74% !important;
    padding: 4px !important;
    vertical-align: top !important;
}
.layout-print .main-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
}
.layout-print .images-cell {
    width: 26% !important;
    padding: 4px !important;
    vertical-align: top !important;
}
.layout-print .additional-images {
    width: 100% !important;
    height: 152px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
}
.layout-print .title {
    background-color: #f7f7f7 !important;
    color: #222222 !important;
    padding: 12px 16px !important;
    border-radius: 6px 0 0 6px !important;
}
.layout-print .price {
    background-color: #f7f7f7 !important;
    padding: 12px 16px !important;
    border-radius: 0 6px 6px 0 !important;
}
.layout-print .footer {
    text-align: center !important;
    padding: 18px 10px !important;
    font-size: 13.5px !important;
    color: #666666 !important;
    border-top: 1px solid #e0e0e0 !important;
}
.layout-print .fwre-description {
    line-height: 1.55 !important;
    font-size: 13.5px !important;
    color: #333333 !important;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm 10mm;
    }
    body {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .fwre-iframe-modal-head,
    .fwre-iframe-modal-backdrop,
    .no-print {
        display: none !important;
    }
    .layout-print .main-image img {
        max-height: 440px !important;
    }
    .layout-print .additional-images {
        height: 140px !important;
    }
    .print-spec-section,
    .print-amenities-section,
    .print-desc-table {
        page-break-inside: avoid !important;
    }
}

/* ==========================================================================
   FWRE 7 LightGallery Photo Projector Styles (Refined Infoal High-Contrast)
   ========================================================================== */
.lg-backdrop {
    background-color: rgba(10, 10, 14, 0.96) !important;
    z-index: 999990 !important;
}
.lg-outer {
    background-color: transparent !important;
    z-index: 999995 !important;
}
.lg-outer .lg-item {
    background-color: transparent !important;
}
.lg-toolbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 70%, rgba(255, 255, 255, 0) 100%) !important;
    height: 68px !important;
    padding: 10px 28px !important;
    z-index: 999999 !important;
}
.lg-toolbar .lg-icon {
    color: #000000 !important;
    font-size: 28px !important;
    line-height: 28px !important;
    height: 48px !important;
    width: 48px !important;
    padding: 10px !important;
    cursor: pointer !important;
    opacity: 0.92 !important;
    transition: all 0.2s ease !important;
    text-shadow: none !important;
}
.lg-toolbar .lg-icon:hover {
    color: #2CB643 !important;
    opacity: 1 !important;
    transform: scale(1.18) !important;
}
.lg-toolbar .lg-close {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}
.lg-toolbar .lg-close:hover {
    color: #2CB643 !important;
}
#lg-counter {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    padding-left: 12px !important;
    padding-top: 0 !important;
    vertical-align: middle !important;
}
.lg-actions .lg-next,
.lg-actions .lg-prev {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border: 2px solid rgba(0, 0, 0, 0.22) !important;
    border-radius: 50% !important;
    width: 62px !important;
    height: 62px !important;
    color: #000000 !important;
    font-size: 34px !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    padding: 0 !important;
}
.lg-actions .lg-next:before,
.lg-actions .lg-prev:after {
    color: #000000 !important;
    font-size: 32px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
}
.lg-actions .lg-prev {
    left: 24px !important;
}
.lg-actions .lg-next {
    right: 24px !important;
}
.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    background-color: #ffffff !important;
    border-color: #2CB643 !important;
    color: #2CB643 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 24px rgba(44, 182, 67, 0.4) !important;
}
.lg-actions .lg-next:hover:before,
.lg-actions .lg-prev:hover:after {
    color: #2CB643 !important;
}
.lg-sub-html {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%) !important;
    color: #ffffff !important;
    font-family: 'Hind', sans-serif !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
}

/* ==========================================================================
   Stacking Order: GDPR Cookie Consent Above WhatsApp Float Widget
   ========================================================================== */
body div.cc-window.cc-banner,
body div.cc-window.cc-floating,
body #gdpr-modal,
body .gdpr-modal {
    z-index: 2147483647 !important;
}
div[id^="gb-widget-"],
div[class*="getbutton"],
.wh-widget-send-button-wrapper {
    z-index: 9990 !important;
}


/* ==========================================================================
   FWRE Search Form Styling (Matching Reyne layout: White Card, 4 Columns)
   ========================================================================== */
.fwre-mod-searchmod-buscador,
#fwre.fwre-mod-searchmod-buscador,
.sp-module.mod-buscador {
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  z-index: 99;
}

#fwre.fwre-search .fwk-input,
#fwre.fwre-search .chosen-container-multi .chosen-choices,
#fwre form .fwk-select,
#fwre form .fwk-textarea,
#fwre .fwk-button,
#fwre .fwre-ms-toggle {
  border-radius: 15px !important;
}

#fwre .fwre-mod-foot-submit .fwk-button-primary,
.fwre-mod-search .fwre-mod-foot-submit .fwk-button-primary {
  background-color: var(--primary-color, #2CB643) !important;
  border-color: var(--primary-color, #2CB643) !important;
  color: #ffffff !important;
  border-radius: 15px !important;
  font-weight: 600 !important;
}

#fwre .fwre-mod-foot-submit .fwk-button-primary:hover,
.fwre-mod-search .fwre-mod-foot-submit .fwk-button-primary:hover {
  background-color: #1b7a2d !important;
  border-color: #1b7a2d !important;
}

/* 4-column horizontal grid across all viewports */
#fwre .fwre-mod-search-grid,
.fwre-mod-search .fwre-mod-search-grid,
.mod-buscador .fwre-mod-search-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px 18px !important;
  align-items: end !important;
}

@media (max-width: 992px) {
  #fwre .fwre-mod-search-grid,
  .fwre-mod-search .fwre-mod-search-grid,
  .mod-buscador .fwre-mod-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 576px) {
  #fwre .fwre-mod-search-grid,
  .fwre-mod-search .fwre-mod-search-grid,
  .mod-buscador .fwre-mod-search-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
