/* ---------------------------
     Home location slider css 
------------------------------*/

.home-location-slider-wrapper {
    position: relative;
    overflow: visible;
}

.home-location-slider-container {
    position: relative;
    overflow: visible;
}

.home-location-swiper {
    overflow: visible !important;
    position: relative;
}

.home-location-slider-container .swiper-wrapper .swiper-slide {
    max-height: 444px;
}

.image-top {
    height: 48%;
    overflow: hidden;
    border-radius: 16px;
}

.image-bottom {
    height: 48%;
    overflow: hidden;
    border-radius: 16px;
}

/* Responsive Slider Styles */
.home-location-swiper .swiper-slide {
    height: auto;
}

/* Grid Mode Styles */
.home-location-swiper.grid-mode .swiper-slide {
    display: block;
    height: auto;
}

.home-location-image-container.two-image {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-location-slider-wrapper .image-top img,
.home-location-slider-wrapper .image-bottom img {
    height: 210px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}

.home-location-image-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    height: 100%;
}

.home-location-image-container img {
    width: 100%;
    max-height: 444px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
    height: 100% !important;
}

.home-location-main-image {
    position: relative;
    height: 100%;
}

.home-location-main-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .8) 100%);
    z-index: 0;
}

.home-location-image-container,
.home-location-slider-wrapper .image-top,
.home-location-slider-wrapper .image-bottom {
    position: relative;
}

.single-home-location-slide {
    position: relative;
    display: block;
    height: 100%;
}

.card-link {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    z-index: 99;
    bottom: 24px;
    left: 24px;
    color: #fff;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    font-family: 'Apercu Pro', sans-serif;
    font-weight: 500;
}

.card-link img {
    width: 21px;
}

.explore-card-arrow-icon,
.map-card-arrow-icon {
    width: 24px;
    height: 24px;
    background: #fff;
    padding: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.explore-card-arrow-icon img,
.map-card-arrow-icon img {
    max-height: 100%;
    transition: all 0.3s ease-in-out;
}

.card-link:hover {
    text-decoration: none;
    color: #750631;
}

.card-link:hover .explore-card-arrow-icon,
.card-link:hover .map-card-arrow-icon {
    background: #750631;
}

.card-link:hover .explore-card-arrow-icon img,
.card-link:hover .map-card-arrow-icon img {
    filter: invert(1);
}

/* Navigation Arrow Styles */
.slider-nav-wrapper {
    position: absolute;
    top: -63px;
    right: 0;
    z-index: 99;
    display: flex;
    gap: 10px;
    align-items: center;
    contain: layout style;
}

/* Navigation Positioning Classes */
.slider-nav-wrapper.nav-pos-desktop-top-left,
.slider-nav-wrapper.nav-pos-tablet-top-left,
.slider-nav-wrapper.nav-pos-mobile-top-left {
    top: -63px;
    bottom: auto;
    left: 0;
    right: auto;
}

.slider-nav-wrapper.nav-pos-desktop-top-center,
.slider-nav-wrapper.nav-pos-tablet-top-center,
.slider-nav-wrapper.nav-pos-mobile-top-center {
    top: -63px;
    bottom: auto;
    left: 50%;
    right: auto;
}

.slider-nav-wrapper.nav-pos-desktop-top-right,
.slider-nav-wrapper.nav-pos-tablet-top-right,
.slider-nav-wrapper.nav-pos-mobile-top-right {
    top: -63px;
    bottom: auto;
    left: auto;
    right: 0;
}

.slider-nav-wrapper.nav-pos-desktop-bottom-left,
.slider-nav-wrapper.nav-pos-tablet-bottom-left,
.slider-nav-wrapper.nav-pos-mobile-bottom-left {
    top: auto;
    bottom: 20px;
    left: 0;
    right: auto;
}

.slider-nav-wrapper.nav-pos-desktop-bottom-center,
.slider-nav-wrapper.nav-pos-tablet-bottom-center,
.slider-nav-wrapper.nav-pos-mobile-bottom-center {
    top: auto;
    bottom: 20px;
    left: 50%;
    right: auto;
}

.slider-nav-wrapper.nav-pos-desktop-bottom-right,
.slider-nav-wrapper.nav-pos-tablet-bottom-right,
.slider-nav-wrapper.nav-pos-mobile-bottom-right {
    top: auto;
    bottom: 20px;
    left: auto;
    right: 0;
}

/* Center positioning requires transform adjustments */
.slider-nav-wrapper.nav-pos-desktop-top-center,
.slider-nav-wrapper.nav-pos-tablet-top-center,
.slider-nav-wrapper.nav-pos-mobile-top-center,
.slider-nav-wrapper.nav-pos-desktop-bottom-center,
.slider-nav-wrapper.nav-pos-tablet-bottom-center,
.slider-nav-wrapper.nav-pos-mobile-bottom-center {
    transform: translateX(-50%) translateY(var(--nav-vertical-offset, 0)) !important;
}

/* All other positions */
.slider-nav-wrapper:not(.nav-pos-desktop-top-center):not(.nav-pos-tablet-top-center):not(.nav-pos-mobile-top-center):not(.nav-pos-desktop-bottom-center):not(.nav-pos-tablet-bottom-center):not(.nav-pos-mobile-bottom-center) {
    transform: translateY(var(--nav-vertical-offset, 0)) !important;
}

.slider-nav-wrapper.nav-hidden {
    display: none;
    visibility: hidden;
}

.slider-nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    border: 1px solid #0E0E0F;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0E0E0F;
    flex-shrink: 0;
    position: relative;
}

.slider-nav-arrow:hover {
    background: #f0f0f0;
    border-color: #750631;
    color: #750631;
}

/* When we render custom icons inside the button, hide Swiper's default pseudo-elements (the 'prev'/'next' text) */
.slider-nav-arrow.has-custom-icon.swiper-button-prev:after,
.slider-nav-arrow.has-custom-icon.swiper-button-next:after,
.home-location-slider-wrapper .slider-nav-arrow.has-custom-icon.swiper-button-prev:after,
.home-location-slider-wrapper .slider-nav-arrow.has-custom-icon.swiper-button-next:after,
.home-map-slider-wrapper .slider-nav-arrow.has-custom-icon.swiper-button-prev:after,
.home-map-slider-wrapper .slider-nav-arrow.has-custom-icon.swiper-button-next:after,
.homiberia-global-slider-wrapper .slider-nav-arrow.has-custom-icon.swiper-button-prev:after,
.homiberia-global-slider-wrapper .slider-nav-arrow.has-custom-icon.swiper-button-next:after {
    display: none !important;
    content: '' !important;
    font-family: inherit !important;
    font-size: 0 !important;
}

.slider-nav-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
}

.slider-nav-arrow svg path {
    stroke: currentColor;
}

/* If using Grid */
.grid-mode .swiper-wrapper {
    display: grid;
    gap: 24px;
}

/* Grid columns for different breakpoints */
.grid-mode .swiper-wrapper {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-mode .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-mode .swiper-wrapper {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .grid-mode .swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .grid-mode .swiper-wrapper {
        gap: 16px;
    }

    /* On mobile, all grid modes should be 1 column */
    .grid-mode[data-grid-columns] .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ----------------------
    Home Property Slider 
------------------------*/
.home-property-main-img {
    width: 100%;
    max-height: 276px;
    object-fit: cover;
    object-position: center;
}

.home-property-image-container {
    position: relative;
}

.home-property-image-container img {
    min-height: 276px;
    max-height: 276px;
}

.single-home-property-slide {
    display: flex;
    flex-direction: column;
}

.home-property-content {
    height: 100%;
}

.property-meta {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.property-cat {
    background: tomato;
    padding: 3px 5px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Apercu Pro';
    color: #fff;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-property-content {
    padding: 24px;
    background: #F9FBFC;
}

.home-property-content .property-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    margin-top: 24px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-feature {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.property-single-feature {
    background: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
}

.property-feature-text {
    font-size: 16px;
    font-weight: 400;
    color: #545459;
}

.property-price {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.6px;
}

.single-home-property-slide {
    border-radius: 16px;
    overflow: hidden;
}

.property-location-text {
    font-size: 16px;
    color: #545459;
    font-weight: 400;
}

.home-property-slider-wrapper .swiper {
    overflow: visible !important;
}

/* ----------------------
    Homiberia Button Widget
------------------------*/

.homiberia-button-wrapper {
    display: inline-block;
    position: relative;
}

.homiberia-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    vertical-align: middle;
    background: #750631;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.homiberia-button .button-text {
    position: relative;
    z-index: 2;
}

.homiberia-button .icon-left,
.homiberia-button .icon-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.homiberia-button .icon-left i,
.homiberia-button .icon-right i {
    line-height: 1;
}

.homiberia-button svg {
    display: block;
    transition: all 0.3s ease;
}

.homiberia-button svg path,
.homiberia-button svg rect,
.homiberia-button svg circle,
.homiberia-button svg polygon {
    transition: all 0.3s ease;
}

/* Button alignment styles */
.homiberia-button-align-left .homiberia-button-wrapper {
    text-align: left;
}

.homiberia-button-align-center .homiberia-button-wrapper {
    text-align: center;
}

.homiberia-button-align-right .homiberia-button-wrapper {
    text-align: right;
}

.homiberia-button-align-justify .homiberia-button {
    width: 100%;
}

.homiberia-button:hover .icon-left {
    transition: transform 0.3s ease;
}

/* ---------------------
 Development slider   
 ---------------------- */
.home-development-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.development-card-bottom {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-top: 40px;
}

.development-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.development-feature-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid black;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.development-feature-content p {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Apercu Pro';
    color: #545459;
}

.development-feature-content h3 {
    font-size: 24px;
    font-weight: 500;
}

.development-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* -----------------------
    Team List Widget
 ------------------------*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols-desktop, 3), 1fr);
    gap: 24px;
    grid-auto-flow: row;
    width: 100%;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(var(--grid-cols-tablet, 2), 1fr);
    }
}

@media (max-width: 767px) {
    .team-grid {
        /* Fallback */
        grid-template-columns: repeat(1, 1fr);
        /* Use CSS variables when supported */
        grid-template-columns: repeat(var(--grid-cols-mobile, 1), 1fr);
        gap: 20px;
    }
}

.single-team {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    /* Ensure proper grid item behavior */
    min-width: 0;
    min-height: 0;
}

.team-thumb img {
    max-height: 420px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    padding: 24px;
    background-color: #F9FBFC;
}

.team-content-top {
    margin-bottom: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
}

.team-content-top .title {
    font-size: 24px;
    font-weight: 500;
    color: #0E0E0F;
    font-family: var(--font-secondary, 'Apercu Pro');
    margin-bottom: 5px;
}

.team-content-top p {
    margin: 0;
    color: #545459;
    font-size: 20px;
    font-weight: 400;
}

.team-social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-social-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #545459;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.team-social-list a:hover {
    color: #750631;
}

.team-social-list a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Load More: hide by default, reveal with .visible */
.team-load-more-wrap button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.team-grid .single-team {
    display: none !important;
}

.team-grid .single-team.visible {
    display: block !important;
}

.team-load-more-wrap {
    text-align: center;
    margin-top: 52px;
}

.team-load-more {
    display: inline-block;
    padding: 12px 22px;
    background: #750631;
    color: #fff;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.team-load-more:hover {
    opacity: 0.9
}

.team-load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*-----------------------
 Global slider
 -----------------------*/

.homiberia-global-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.homiberia-global-slider-title {
    font-size: 24px;
}

.homiberia-global-slider-wrapper {
    position: relative;
    overflow: visible;
}

.homiberia-global-swiper {
    overflow: visible !important;
    position: relative;
}

/* Responsive Slider Styles */
.homiberia-global-swiper .swiper-slide {
    height: auto;
}

/* Grid Mode Styles */
.homiberia-global-swiper.grid-mode .swiper-slide {
    display: block;
    height: auto;
}

.homiberia-global-image-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
}

.homiberia-global-image-container img {
    width: 100%;
    max-height: 444px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}

.homiberia-global-image-container,
.homiberia-global-slider-wrapper .image-top,
.homiberia-global-slider-wrapper .image-bottom {
    position: relative;
}

.single-homiberia-global-slide {
    position: relative;
    display: block;
}

/* -----------------------
  Accourdion / FAQ Styles 
-------------------------- */
.card-heading {
    border: none;
    background-color: transparent;
}

.accordion-title-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.accordion-title-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.accordion-title-no-arrow {
    display: block;
    text-decoration: none;
}

.accordion-title-left .accordion-arrow {
    margin-right: 10px;
    order: 1;
}

.accordion-title-left .accordion-title-text {
    order: 2;
}

.accordion-title-right .accordion-arrow {
    margin-left: 10px;
    order: 2;
    flex-shrink: 0;
}

.accordion-title-right .accordion-title-text {
    order: 1;
    flex-grow: 1;
}

.accordion-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    min-width: 1em;
    min-height: 1em;
    width: 1em;
    height: 1em;
    position: relative;
    color: inherit;
}

/* Icon and Image State Management */
.accordion-icon-normal,
.accordion-image-normal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    color: inherit;
    fill: currentColor;
    stroke: currentColor;
}

.accordion-icon-active,
.accordion-image-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Ensure SVG icons inherit colors properly */
    color: inherit;
    fill: currentColor;
    stroke: currentColor;
}

/* Show normal icons when collapsed */
.card-heading a.collapsed .accordion-icon-normal,
.card-heading a.collapsed .accordion-image-normal {
    opacity: 1;
}

.card-heading a.collapsed .accordion-icon-active,
.card-heading a.collapsed .accordion-image-active {
    opacity: 0;
}

/* Show active icons when expanded */
.card-heading a:not(.collapsed) .accordion-icon-normal,
.card-heading a:not(.collapsed) .accordion-image-normal {
    opacity: 0;
}

.card-heading a:not(.collapsed) .accordion-icon-active,
.card-heading a:not(.collapsed) .accordion-image-active {
    opacity: 1;
}

.accordion-arrow i {
    display: block;
    line-height: 1;
}

.accordion-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.accordion-arrow svg path {
    display: block;
    fill: currentColor;
    stroke: currentColor;
}

.accordion-arrow img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ensure FontAwesome icons are loaded */
.accordion-arrow .fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.accordion-wrapper .card-body ul li,
.accordion-wrapper .card-body ol li {
    list-style: auto;
    font-size: 16px;
    font-weight: 500;
    margin-left: 20px;
}

/* -----------------------
    Home New List Widget
 ------------------------*/
.new-home-slider-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.home-new-list-item {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.home-new-list-item-image {
    position: relative;
    height: 100%;
}

.home-new-list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 350px;
}

.home-new-list-item-image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(255 255 255 / 0%) 50%, rgb(0 0 0 / 78%) 100%);
    top: 0;
    left: 0;
}

.home-new-list-item:nth-child(1),
.home-new-list-item:nth-child(2) {
    width: 49%;
    max-height: 350px;
}

.home-new-list-item:nth-child(3),
.home-new-list-item:nth-child(4),
.home-new-list-item:nth-child(5) {
    width: 32%;
    max-height: 230px;
}

.home-new-list-item:nth-child(3) .home-new-list-item-content,
.home-new-list-item:nth-child(4) .home-new-list-item-content,
.home-new-list-item:nth-child(5) .home-new-list-item-content {
    gap: 20px;
    padding: 20px;
}

.home-new-list-item:nth-child(3) .home-new-list-item-title,
.home-new-list-item:nth-child(4) .home-new-list-item-title,
.home-new-list-item:nth-child(5) .home-new-list-item-title {
    font-size: 20px;
}

.home-new-list-item:nth-child(3) .new-home-price,
.home-new-list-item:nth-child(4) .new-home-price,
.home-new-list-item:nth-child(5) .new-home-price {
    font-size: 24px;
}

.home-new-list-item .home-new-list-item-content {
    position: absolute;
    bottom: 0;
    padding: 32px;
}

.home-new-list-item .home-new-list-item-content {
    display: flex;
    align-items: flex-end;
    gap: 80px;
}

.home-new-list-item .home-new-list-item-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.home-new-list-item .home-new-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-top: 10px;
}

.home-new-list-item .new-home-price {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-top: 25px;
}

button.new-home-contact {
    padding: 10px 22px;
    border-radius: 100px;
    background: #fff;
    transition: all 0.3s ease;
    color: #000;
    border: none;
}

button.new-home-contact:hover {
    background: rgba(117, 6, 49, 1);
    color: #fff;
}

/* -----------------------
    Process slider Widget
 ------------------------*/

.single-home-process-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --------------------------
   Advanced Search Form Widget
   -------------------------- */
.search-container {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 50px;
    padding: 8px 12px;
    padding-left: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.advanced-search-wrapper {
    position: relative;
    z-index: 9999;
}


.hero-search-page-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-search-page-name a {
    padding: 6px 16px;
    border-radius: 100px;
    line-height: 1.1em;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.hero-search-page-name a:hover {
    background: #fff;
    color: rgba(14, 14, 15, 1);
}


.advanced-search-wrapper .input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.advanced-search-wrapper .label {
    font-size: 14px;
    color: #666;
    margin-right: 12px;
    white-space: nowrap;
    position: absolute;
    top: -19px;
    left: 1px;
    font-size: 10px;
}

.advanced-search-wrapper .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.advanced-search-wrapper .search-input::placeholder {
    color: #999;
}

.advanced-search-wrapper .search-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #6b1635;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.advanced-search-wrapper .search-button:hover {
    background: #541128;
}

.advanced-search-wrapper .search-icon {
    width: 20px;
    height: 20px;
}

.advanced-search-wrapper .filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.advanced-search-wrapper .filter-button:hover {
    background: #333;
}

.advanced-search-wrapper .filter-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* Filter form */

.advanced-search-wrapper .filter-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.advanced-search-wrapper .filter-toggle:checked~.filter-panel {
    max-height: 2000px;
    opacity: 1;
    margin-top: -54px;
    position: relative;
    z-index: 99;
}

/* JavaScript-based filter panel toggle */
.advanced-search-wrapper .filter-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.advanced-search-wrapper .filter-panel.filter-panel-visible {
    max-height: 2000px;
    opacity: 1;
}

.advanced-search-wrapper .filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 35px;
}

.advanced-search-wrapper .filter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advanced-search-wrapper .filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.advanced-search-wrapper .select-wrapper {
    position: relative;
}

.advanced-search-wrapper .select-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    background: white;
    cursor: pointer;
    appearance: none;
    outline: none;
}

.advanced-search-wrapper .select-wrapper select:focus {
    border-color: #6b1635;
}

.advanced-search-wrapper .select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.advanced-search-wrapper .area-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.advanced-search-wrapper .area-input {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.advanced-search-wrapper .area-input:focus {
    border-color: #6b1635;
}

.advanced-search-wrapper .reference-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.advanced-search-wrapper .reference-input:focus {
    border-color: #6b1635;
}

.advanced-search-wrapper .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advanced-search-wrapper .checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.advanced-search-wrapper .checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6b1635;
}

.advanced-search-wrapper .checkbox-item label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.advanced-search-wrapper .price-section {
    grid-column: 1 / 3;
}

.advanced-search-wrapper input#price {
    width: 100%;
}

.advanced-search-wrapper .price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.advanced-search-wrapper .price-divider {
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-size: 14px;
}

.advanced-search-wrapper .price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.advanced-search-wrapper .submit-button {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #6b1635;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    max-width: 300px;
}

.advanced-search-wrapper .submit-button:hover {
    background: #541128;
}

.advanced-search-wrapper .popular-search-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.advanced-search-wrapper .popular-search-wrap span {
    color: rgba(14, 14, 15, 1);
    font-size: 16px;
    font-weight: 500;
}

.advanced-search-wrapper .popular-searches {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.advanced-search-wrapper .popular-searches a {
    border: 1px solid rgba(232, 233, 234, 1);
    border-radius: 100px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 1);
    color: #000;
    font-size: 12px;
}

/* --------------------------
   Home Features list widget
   --------------------------- */

.home-feature-list-slider-wrapper {
    position: relative;
}

.new-home-slider-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.home-feature-list-item {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.home-feature-list-item-image {
    position: relative;
}

.home-feature-list-item-image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 13%, rgb(0 0 0 / 68%) 75%);
    top: 0;
    left: 0;
}

.home-feature-list-item .home-feature-list-item-content {
    position: absolute;
    bottom: 0;
    padding: 32px;
}

.home-feature-list-item .home-feature-list-item-content {
    display: flex;
    align-items: flex-end;
    gap: 80px;
}

.home-feature-list-item .home-feature-list-item-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.home-feature-list-item .home-feature-list-location {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-top: 10px;
}

.home-feature-list-item .home-feature-list-price {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-top: 25px;
}

.home-feature-list-contact {
    padding: 10px 22px;
    border-radius: 100px;
    background: #fff;
    transition: all 0.3s ease;
    color: #000;
    border: none;
}

.home-feature-list-contact:hover {
    background: rgba(117, 6, 49, 1);
    color: #fff;
}



@media (max-width: 480px) {
    .home-feature-list-item .home-feature-list-item-content {
        align-items: baseline;
        flex-direction: column;
    }
}


/* --------------------------
   Table of Content Widget
   --------------------------- */
.toc-list {
    position: sticky !important;
    top: 30px;
}


/* ---------------------------
   Property Type Widget
------------------------------ */
.property-type-wrapper .header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-type-wrapper .header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.property-type-wrapper .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    justify-content: left;
    padding: 0 10px;
    overflow-x: auto;
}

.property-type-wrapper .grid .card {
    flex-shrink: 0;
    min-width: 195px;
    max-width: 195px;
}

.property-type-wrapper .card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 233, 234, 1);
    display: flex;
    flex-direction: column;
    gap: 65px;
    justify-content: space-between;
}

.property-type-wrapper .card:hover {
    border-color: rgba(117, 6, 49, 1);
}

.property-type-wrapper .card.active {
    border-color: rgba(117, 6, 49, 1);
}

.property-type-wrapper .icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.property-type-card-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(14, 14, 15, 1);
    position: relative;
    z-index: 1;
}


/* ---------------------------
   Shortcode some css. 
----------------------------- */
.search-filter-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.search-filter-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

select {
    -webkit-appearance: none; /* For Safari, Chrome, Opera */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;
}

.search-single-filter-tag {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 100px;
    color: rgba(84, 84, 89, 1);
    font-size: 16px;
    font-weight: 500;
    transition: all .3s;
    flex-shrink: 0;
}

.search-single-filter-tag:hover {
    background: rgba(232, 233, 234, 1);
    color: rgba(14, 14, 15, 1);
}

.search-filter-tag-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-filter-more-tag {
    position: relative;
}

.search-filter-more-tag select {
    background: rgba(232, 233, 234, 1);
    border: none;
    border-radius: 100px;
    font-size: 16px;
    color: rgba(14, 14, 15, 1);
    font-weight: 500;
    padding: 15px;
}

/* Toggle switch  */

.view-map-toggle {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-right: 20px;
}

.homiberia-switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 19px;
}

.homiberia-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.homiberia-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(230, 230, 230, 1);
    -webkit-transition: .4s;
    transition: .4s;
}

.homiberia-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: rgba(255, 255, 255, 1);
    -webkit-transition: .4s;
    transition: .4s;
}

.homiberia-switch input:checked+.homiberia-toggle-slider {
    background-color: #2196F3;
}

.homiberia-switch input:focus+.homiberia-toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

.homiberia-switch input:checked+.homiberia-toggle-slider:before {
    -webkit-transform: translateX(11px);
    -ms-transform: translateX(11px);
    transform: translateX(11px);
}

/* when switch toggle show map */
.property-search-grid-wrapper {
    display: block;
    grid-template-columns: 2.35fr 1fr;
    gap: 24px;
}

.property-search-map {
    transition: all 0.3s ease-in-out;
}

.property-search-map {
    position: absolute;
    right: 0;
    top: 395px;
    left: auto;
    max-width: 680px !important;
}

.search-filter-shortcode {
    position: static !important;
}

.property-card-thumb-slider {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 340px;
    /* background: #fff; */
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    padding: 0 20px;
}

.property-card-thumb-slider .single-home-property-slide {
    overflow: visible;
}

.thumb-slider-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    z-index: 50;
    background: #fff;
    border: 1px solid rgba(230, 230, 230, 1);
    transition: all 0.3s ease;
}

.thumb-slider-arrow svg path {
    stroke: rgba(230, 230, 230, 1);
    transition: all 0.3s ease;
}

.property-thumb-nav-next{
    right:-15px;
}

.property-thumb-nav-prev{
    left: -15px;
}

.slider-properties-thumbs .swiper-slide{
    overflow: hidden
}

.slider-properties-thumbs .swiper-slide img {
    border-radius: 16px 16px 0 0;
}

.thumb-slider-arrow:hover {
    border: 1px solid rgba(14, 14, 15, 1);
}

.thumb-slider-arrow:hover svg path {
    stroke: rgba(14, 14, 15, 1);
}


/* Rounded sliders */
.homiberia-toggle-slider.round {
    border-radius: 34px;
}

.homiberia-toggle-slider.round:before {
    border-radius: 50%;
}


.search-filter-more-tag::after {
    content: url(../../../../themes/homiberia/assets/img/down-arrow.png);
    position: absolute;
    top: 57%;
    right: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    width: 3px;
}

.search-advance-filter {
    padding: 14px 20px;
    background: #000;
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.more-advance-search {
    flex-shrink: 0;
}

/* Search Section Head */
.search-section-heading {
    margin-top: 40px;
}

.search-section-heading h3 {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 24px;
}

.search-meta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-meta-wrap p span {
    color: rgba(117, 6, 49, 1);
}

.search-meta-wrap p {
    font-size: 16px;
    font-weight: 500;
    color: rgba(84, 84, 89, 1);
}

.search-short-by {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-short-by span {
    flex-shrink: 0;
}

.search-short-by {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-right: 30px;
}

.search-short-by select {
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
}

.search-short-by::after {
    content: url(../../../../themes/homiberia/assets/img/down-arrow.png);
    position: absolute;
    top: 60%;
    right: 5px;
    transform: translateY(-50%);
    pointer-events: none;
    width: auto;
}

.agent-properties-grid.buy-search-page {
    margin-top: 28px;
}

/* Load More Button  */
.homiberia-load-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.homiberia-load-more {
    background: rgba(117, 6, 49, 1);
    color: white;
    border: 1px solid rgba(117, 6, 49, 1);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: auto;
    font-size: 16px;
}

.homiberia-load-more:hover {
    background: transparent;
    color: rgba(117, 6, 49, 1);
}

.homiberia-load-more:disabled {
    cursor: not-allowed;
    background: rgba(232, 233, 234, 1);
}

/* search map section */
.homiberia-search-page-map {
    position: relative;
}

.homiberia-search-page-map svg {
    width: 100%;
    height: 100%;
}

.homiberia-search-page-map-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 12px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(14, 14, 15, 1);
    z-index: 9999;
    border: none;
}

/* Neighborhood Overview Area */
.neighborhood-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.neighborhood-image .neighborhood-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neighborhood-image {
    position: relative;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.neighborhood-overview .neighborhood-content-wrap {
    position: absolute;
    bottom: 32px;
    z-index: 9999;
    left: 32px;
}

.neighborhood-overview .neighborhood-content-wrap h3 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 8px;
}

.neighborhood-overview .neighborhood-location {
    display: flex;
    gap: 5px;
    color: #fff;
    align-items: center;
}


.neighborhood-right-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
}

.neighborhood-right-content {
    padding: 36px;
    background: rgba(246, 245, 244, 1);
    border-radius: 0 16px 16px 0;
}

.neighborhood-single {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.neighborhood-meta-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.neighborhood-single-content .price {
    font-weight: 500;
}

.neighborhood-single-content p {
    font-weight: 400;
}


.neighborhood-home-count-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.neighborhood-single-content .home-count {
    color: rgba(117, 6, 49, 1);
}

a.neighborhood-overview-button {
    padding: 16px 28px;
    background: rgba(14, 14, 15, 1);
    border-radius: 100px;
    color: #fff;
    display: inline-block;
    margin-top: 48px;
}

/* Neighborhoods Property */
.swiper.neighborhood-property-slider {
    overflow: visible;
}

.neighborhood-property-tab-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.neighborhood-property-map-tab {
    padding: 8px 14px;
    border-radius: 100px;
    color: rgba(84, 84, 89, 1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.neighborhood-property-map-tab.active {
    background: #000;
    color: #fff;
}

.neighborhood-property-map-tab:hover {
    background: #000;
    color: #fff;
}

/* Nearby Neighborhoods  */
.nearby-neighborhoods-location {
    display: flex;
    gap: 24px;
    padding: 24px 16px 24px 24px;
    border: 1px solid rgba(232, 233, 234, 1);
    border-radius: 8px;
    max-width: 412px;
    overflow: hidden;
}

.nearby-neighborhoods-main-img {
    width: 45%;
    height: 100%;
    border-radius: 8px;
}

.nearby-neighborhoods-location-content h3 {
    font-weight: 500;
    font-size: 20px;
}

.neighborhoods-location-name {
    gap: 6px;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    margin: 14px 0 8px 0;
}

.neighborhoods-location-price {
    gap: 6px;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 16px;
}

a.neighborhoods-location-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(117, 6, 49, 1);
}

.nearby-map-slider-nav {
    position: absolute;
    top: 0;
    margin-top: -75px;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}

.nearby-map-slider-nav.with-tabs {
    margin-top: -130px;
}

.swiper.nearby-neighborhoods {
    overflow: visible;
}


/* Explore Neighborhoods Map  */
.explore-neighborhood-map-tabs-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.explore-neighborhood-map-tab {
    padding: 8px 14px;
    border-radius: 100px;
    color: rgba(84, 84, 89, 1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.explore-neighborhood-map {
    overflow: hidden;
}

.explore-neighborhood-map-tabs-menu {
    width: 100%;
    overflow: auto;
}

.explore-neighborhood-map-tab:hover {
    background: #000;
    color: #fff;
}

.explore-neighborhood-map-tab.active {
    background: #000;
    color: #fff;
}

.explore-neighborhood-map-tab svg path {
    stroke: rgba(84, 84, 89, 1);
}

.explore-neighborhood-map-tab:hover svg path {
    stroke: #fff;
    transition: all 0.3s ease;
}

.explore-neighborhood-map-tab.active svg path {
    stroke: #fff;
    transition: all 0.3s ease;
}

.explore-neighborhood-map-tab.active svg path {
    stroke: #fff;
}

.explore-neighborhood-map-tabs-img img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.nearby-explore-location-content img {
    width: 100%;
    max-height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

/* Explore map slider */
.explore-neighborhood-map-swiper {
    margin-top: 20px;
}

.nearby-explore-location-content img {
    border-radius: 8px;
    height: 100%;
    width: auto;
}

p.explore-home-type {
    font-size: 16px;
    font-weight: 500;
    color: rgba(84, 84, 89, 1);
    margin-top: 10px;
}

p.explore-home-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(14, 14, 15, 1);
}

.explore-map-slider-nav {
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    width: 100%;
}

.neighborhood-slide-nav {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(14, 14, 15, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.explore-map-slider-nav .neighborhood-slide-nav {
    border: none;
}

.neighborhood-slide-nav svg path {
    stroke: #000;
}

.neighborhood-slide-nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swiper.explore-neighborhood-map-swiper {
    padding: 0 0px;
}

.ex-nav-next.slide-nav {
    transform: translateX(-20px);
}

.ex-nav-prev.slide-nav {
    transform: translateX(-20px);
}

/* Simulate CTA */

.simulate-cta {
    background: rgba(5, 79, 49, 1);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
    gap: 0;
}

.simulate-cta-content {
    padding: 67px 0 67px 56px;
}

.simulate-cta .simulate-cta-content h3 {
    color: #fff;
    font-size: 48px;
}

.simulate-cta-content h3 span {
    color: rgba(50, 213, 131, 1);
}

.simlate-button {
    background: #fff;
    padding: 13px 30px;
    border-radius: 100px;
    font-size: 16px;
    margin-top: 50px;
    display: inline-block;
    color: rgba(14, 14, 15, 1);
    transition: all 0.3s ease;
}

.simlate-button:hover {
    background: rgba(117, 6, 49, 1);
    color: #fff;
}

/* -----------------------
    Contact Form shortcode
-------------------------- */
.homeiberia-contact-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form-right iframe {
    height: 100%;
    border-radius: 12px;
}

.homeiberia-contact-form-content .contact-form-left h2 {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.homeiberia-contact-form .subtitle {
    color: #666;
    margin-bottom: 35px;
    font-size: 16px;
}

.homeiberia-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.homeiberia-contact-form .form-group {
    margin-bottom: 24px;
}

.homeiberia-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 18px;
    color: rgba(14, 14, 15, 1);
}

.homeiberia-contact-form .required {
    color: #1a1a1a;
}

.homeiberia-contact-form input[type="text"],
.homeiberia-contact-form input[type="email"],
.homeiberia-contact-form input[type="tel"],
.homeiberia-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.homeiberia-contact-form input:focus,
.homeiberia-contact-form textarea:focus {
    outline: none;
    border-color: #8b1538;
}

.homeiberia-contact-form input::placeholder,
.homeiberia-contact-form textarea::placeholder {
    color: rgba(140, 140, 149, 1);
    font-weight: 500;
}

.homeiberia-contact-form .phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.homeiberia-contact-form .phone-input:focus-within {
    border-color: #8b1538;
}

.homeiberia-contact-form .phone-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 10px 12px 16px;
    background: white;
    border-right: 1px solid #ddd;
    font-size: 15px;
}

.homeiberia-contact-form .flag {
    width: 20px;
    height: 15px;
}

.homeiberia-contact-form .phone-input input {
    border: none;
    flex: 1;
}

.homeiberia-contact-form .phone-input input:focus {
    border: none;
}

.homeiberia-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.homeiberia-contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 25px;
}

.homeiberia-contact-form input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.homeiberia-contact-form .checkbox-label {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.homeiberia-contact-form .checkbox-label a {
    color: rgba(5, 33, 133, 1);
    text-decoration: underline;
}

.homeiberia-contact-form .checkbox-label a:hover {
    text-decoration: underline;
}

.homeiberia-contact-form .submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #8b1538;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #8b1538;
}

.homeiberia-contact-form .submit-btn:hover {
    background-color: transparent;
    color: #8b1538;
}

.homeiberia-contact-form .arrow {
    font-size: 18px;
}

.homeiberia-contact-form .submit-btn svg {
    width: 24px;
    height: 24px;
}

.homeiberia-contact-form .submit-btn svg path {
    fill: #fff;
    transition: fill 0.3s;
}

.homeiberia-contact-form .submit-btn:hover svg path {
    fill: #8b1538;
}


/* =========================
    Referral Form shortcode
============================= */
.referral-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.referral-form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: rgba(249, 251, 252, 1);
    border-radius: 12px;
}

.referral-form-group {
    display: flex;
    flex-direction: column;
}

.referral-form-group label {
    font-size: 18px;
    font-weight: 500;
    color: rgba(14, 14, 15, 1);
    margin-bottom: 8px;
}

.referral-form-group input[type="text"],
.referral-form-group input[type="email"] {
    padding: 12px 16px;
    border: 1px solid rgba(230, 230, 230, 1);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    height: 48px;
}

.referral-form-group input[type="text"]:focus,
.referral-form-group input[type="email"]:focus {
    outline: none;
    border-color: #8b1538;
}

.referral-form-group input::placeholder {
    color: #aaa;
}

.referral-phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    overflow: hidden;
    height: 48px;
    border-radius: 8px;
}

.referral-phone-input:focus-within {
    border-color: #8b1538;
}

.referral-country-code {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    cursor: pointer;
}

.referral-phone-input input[type="text"]{
    border-radius: 0;
}

.referral-flag {
    width: 24px;
    height: 16px;
    background: linear-gradient(to bottom, #012169 33%, white 33%, white 66%, #C8102E 66%);
    border-radius: 2px;
}

.referral-phone-input input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
}

.referral-phone-input input:focus {
    outline: none;
}

.referral-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 30px 0;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #8b1538;
}

.referral-checkbox-label {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.referral-checkbox-label a {
    color: rgba(5, 33, 133, 1);
    text-decoration: underline !important;
}

.referral-submit-btn {
    background: #8b1538;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.referral-submit-btn {
    padding: 16px 24px;
    background-color: #8b1538;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #8b1538;
}

.referral-submit-btn:hover {
    background-color: transparent;
    color: #8b1538;
}

.homeiberia-contact-form .arrow {
    font-size: 18px;
}

.referral-submit-btn svg {
    width: 24px;
    height: 24px;
}

.referral-submit-btn svg path {
    fill: #fff;
    transition: fill 0.3s;
}

.referral-submit-btn:hover svg path {
    fill: #8b1538;
}
