/* Sitewide spacing system */
:root {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --radius-1: 12px;
    --radius-2: 16px;
}

/* Wider page margins */
.container {
    max-width: 1360px;
}

.container-header {
    max-width: 1500px;
}

/* Standard section rhythm */
.featured,
.popular-places,
.team,
.blog-section,
.rec-pro,
.portfolio {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

@media (max-width: 767px) {
    .featured,
    .popular-places,
    .team,
    .blog-section,
    .rec-pro,
    .portfolio {
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }
}

.sec-title {
    margin-bottom: var(--space-4);
}

.sec-title h2 {
    margin-bottom: var(--space-2);
}

.form-group {
    margin-bottom: var(--space-2);
}

.widget-boxed {
    border-radius: var(--radius-2);
    padding: var(--space-3);
}

.widget-boxed-header {
    padding-bottom: var(--space-2);
    border-bottom: none !important;
}

.widget-boxed-body {
    padding-top: var(--space-2);
}

/* Keep search sidebar content inside its box */
.search-panel {
    overflow: hidden;
}

/* Sticky search on listing page */
body.the-search .search-panel {
    position: sticky;
    top: 96px;
    overflow: visible;
}

body.the-search .featured.portfolio .row {
    align-items: flex-start;
}

.search-panel .form-row {
    margin-left: -6px;
    margin-right: -6px;
}

.search-panel .form-row > [class^="col"] {
    padding-left: 6px;
    padding-right: 6px;
}

.search-panel .select2-container {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    display: block;
}

/* Dark mode */
html.theme-dark,
body.theme-dark {
    background: #06080c;
    color: #f1f4f8;
}

html.theme-dark .bg-white,
html.theme-dark .bg-white-2,
html.theme-dark .section,
html.theme-dark .featured,
html.theme-dark .popular-places,
html.theme-dark .portfolio,
html.theme-dark .rec-pro,
html.theme-dark .team,
html.theme-dark .blog-section,
body.theme-dark .bg-white,
body.theme-dark .bg-white-2,
body.theme-dark .section,
body.theme-dark .featured,
body.theme-dark .popular-places,
body.theme-dark .portfolio,
body.theme-dark .rec-pro,
body.theme-dark .team,
body.theme-dark .blog-section {
    background: #06080c;
}

html.theme-dark .bg-white,
html.theme-dark .bg-white-2,
body.theme-dark .bg-white,
body.theme-dark .bg-white-2 {
    background: #06080c !important;
}

html.theme-dark a,
body.theme-dark a {
    color: #e6eaf0;
}

html.theme-dark a:hover,
body.theme-dark a:hover {
    color: #f4b000;
}

html.theme-dark #header,
html.theme-dark .header,
html.theme-dark .header.head-tr,
body.theme-dark #header,
body.theme-dark .header,
body.theme-dark .header.head-tr {
    background: transparent;
}

html.theme-dark #header.cloned,
body.theme-dark #header.cloned {
    background: rgba(4, 6, 10, 0.96);
}

html.theme-dark #navigation ul li a,
html.theme-dark #main-menu ul li a,
body.theme-dark #navigation ul li a,
body.theme-dark #main-menu ul li a {
    color: #e6eaf0;
}

html.theme-dark .button.border,
html.theme-dark .button,
body.theme-dark .button.border,
body.theme-dark .button {
    border-color: rgba(241, 244, 248, 0.2);
    color: #f1f4f8;
}

html.theme-dark .widget-boxed,
html.theme-dark .search-panel,
body.theme-dark .widget-boxed,
body.theme-dark .search-panel {
    background: #0b0f15;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

html.theme-dark .widget-boxed-header,
body.theme-dark .widget-boxed-header {
    border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .homes-content,
html.theme-dark .homes-content h3 a,
body.theme-dark .homes-content,
body.theme-dark .homes-content h3 a {
    color: #f1f4f8;
}

html.theme-dark .homes-address a span,
html.theme-dark .homes-list span,
body.theme-dark .homes-address a span,
body.theme-dark .homes-list span {
    color: #c9d1dd;
}

html.theme-dark .portfolio .sec-title h2,
html.theme-dark .portfolio .sec-title h2 span,
body.theme-dark .portfolio .sec-title h2,
body.theme-dark .portfolio .sec-title h2 span {
    color: #f1f4f8 !important;
}

html.theme-dark .portfolio .homes-content,
body.theme-dark .portfolio .homes-content {
    background: #0a0e14 !important;
}

html.theme-dark .portfolio .homes-content h3,
html.theme-dark .portfolio .homes-content h3 a,
html.theme-dark .portfolio .homes-content h3.title a,
body.theme-dark .portfolio .homes-content h3,
body.theme-dark .portfolio .homes-content h3 a,
body.theme-dark .portfolio .homes-content h3.title a {
    color: #f1f4f8 !important;
}

html.theme-dark .portfolio .homes-content .homes-address a,
body.theme-dark .portfolio .homes-content .homes-address a {
    color: #c9d1dd !important;
}

html.theme-dark .project-single,
body.theme-dark .project-single {
    background: #0a0e14;
}

html.theme-dark .select2-container .select2-selection--single,
body.theme-dark .select2-container .select2-selection--single {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

html.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f4f8;
}

html.theme-dark .select2-dropdown,
body.theme-dark .select2-dropdown {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f4f8;
}

html.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(244, 176, 0, 0.18);
    color: #f4b000;
}

html.theme-dark .form-control,
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
body.theme-dark .form-control,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f4f8;
}

html.theme-dark .sec-title h2,
html.theme-dark .sec-title p,
body.theme-dark .sec-title h2,
body.theme-dark .sec-title p {
    color: #f1f4f8;
}

/* Home hero + tabs */
html.theme-dark .welcome-area.overlay::before,
body.theme-dark .welcome-area.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 12, 0.82);
    z-index: 0;
}

html.theme-dark .hero-main,
body.theme-dark .hero-main {
    position: relative;
    z-index: 1;
}

html.theme-dark .banner-inner .title,
html.theme-dark .banner-inner .sub-title,
body.theme-dark .banner-inner .title,
body.theme-dark .banner-inner .sub-title {
    color: #f1f4f8;
}

html.theme-dark .banner-search-wrap,
body.theme-dark .banner-search-wrap {
    background: transparent;
}

html.theme-dark .rld-banner-tab .nav-item a,
body.theme-dark .rld-banner-tab .nav-item a {
    background: #0b0f15;
    color: #f1f4f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-dark .rld-banner-tab .nav-item a.active,
html.theme-dark .rld-banner-tab .nav-item a:hover,
body.theme-dark .rld-banner-tab .nav-item a.active,
body.theme-dark .rld-banner-tab .nav-item a:hover {
    /* background: #1a2331; */
    color: #f4b000;
}

html.theme-dark .rld-main-search,
body.theme-dark .rld-main-search {
    background: #0b0f15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* Footer */
html.theme-dark .first-footer,
html.theme-dark .top-footer,
html.theme-dark .second-footer,
body.theme-dark .first-footer,
body.theme-dark .top-footer,
body.theme-dark .second-footer {
    background: #05070b;
    color: #c9d1dd;
}

html.theme-dark .first-footer p,
html.theme-dark .second-footer p,
html.theme-dark .newsletters p,
body.theme-dark .first-footer p,
body.theme-dark .second-footer p,
body.theme-dark .newsletters p {
    color: #c9d1dd;
}

html.theme-dark .netsocials li a,
body.theme-dark .netsocials li a {
    color: #c9d1dd;
}

html.theme-dark .bloq-email input[type="email"],
html.theme-dark .bloq-email input[type="submit"],
body.theme-dark .bloq-email input[type="email"],
body.theme-dark .bloq-email input[type="submit"] {
    background: #0a0e14;
    color: #f1f4f8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html.theme-dark .go-up,
body.theme-dark .go-up {
    background: #10161f;
    color: #f1f4f8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Main content background after search */
html.theme-dark #wrapper,
body.theme-dark #wrapper {
    background: #06080c;
}

html.theme-dark .featured.portfolio,
html.theme-dark .rec-pro,
body.theme-dark .featured.portfolio,
body.theme-dark .rec-pro {
    background: #06080c;
}

html.theme-dark .featured.portfolio .container,
html.theme-dark .featured.portfolio .container-fluid,
body.theme-dark .featured.portfolio .container,
body.theme-dark .featured.portfolio .container-fluid {
    background: transparent;
}

/* Global text */
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #f1f4f8;
}

html.theme-dark p,
html.theme-dark li,
html.theme-dark span,
html.theme-dark label,
body.theme-dark p,
body.theme-dark li,
body.theme-dark span,
body.theme-dark label {
    color: #c9d1dd;
}

html.theme-dark .text-muted,
body.theme-dark .text-muted {
    color: #9aa6b2 !important;
}

/* Cards and lists */
html.theme-dark .project-single,
html.theme-dark .agents-grid,
html.theme-dark .portfolio .project-single,
html.theme-dark .homes-content,
body.theme-dark .project-single,
body.theme-dark .agents-grid,
body.theme-dark .portfolio .project-single,
body.theme-dark .homes-content {
    background: #0a0e14;
}

html.theme-dark .homes-list li,
html.theme-dark .homes-address a,
body.theme-dark .homes-list li,
body.theme-dark .homes-address a {
    color: #c9d1dd;
}

/* Pagination */
html.theme-dark .pagination .page-link,
body.theme-dark .pagination .page-link {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f4f8;
}

html.theme-dark .pagination .page-item.active .page-link,
body.theme-dark .pagination .page-item.active .page-link {
    background: #1a2331;
    border-color: rgba(255, 255, 255, 0.18);
    color: #f4b000;
}

/* Inputs */
html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder,
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #8f9aa8;
}

/* Section accents */
html.theme-dark .bg-gray,
html.theme-dark .bg-light,
body.theme-dark .bg-gray,
body.theme-dark .bg-light {
    background: #070a10;
}

/* Property details page */
html.theme-dark section.single-proper,
html.theme-dark section.headings-2,
html.theme-dark .bg-white-inner,
body.theme-dark section.single-proper,
body.theme-dark section.headings-2,
body.theme-dark .bg-white-inner {
    background: #06080c !important;
}

html.theme-dark .inner-pages .headings-2 .listing-title-bar h3,
html.theme-dark .inner-pages .headings-2 .listing-title-bar h4,
body.theme-dark .inner-pages .headings-2 .listing-title-bar h3,
body.theme-dark .inner-pages .headings-2 .listing-title-bar h4 {
    color: #f1f4f8;
}

html.theme-dark .inner-pages .headings-2 .listing-title-bar a,
html.theme-dark .inner-pages .headings-2 .listing-title-bar a p,
body.theme-dark .inner-pages .headings-2 .listing-title-bar a,
body.theme-dark .inner-pages .headings-2 .listing-title-bar a p {
    color: #c9d1dd;
}

html.theme-dark .inner-pages .headings-2 span.category-tag,
body.theme-dark .inner-pages .headings-2 span.category-tag {
    background: #1a2331;
    color: #f4b000;
    border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .inner-pages .blog .blog-info.details,
html.theme-dark .listing-details-sliders.mb-30,
html.theme-dark .homes-content.details.mb-30,
html.theme-dark .property-location,
html.theme-dark .reviews.comments,
html.theme-dark .reviews.leve-comments,
html.theme-dark .wprt-image-video.w50.pro,
html.theme-dark .ag-de .similar-property,
html.theme-dark .ag-de .portfolio.py-0.age,
html.theme-dark .det .similar-property,
body.theme-dark .inner-pages .blog .blog-info.details,
body.theme-dark .listing-details-sliders.mb-30,
body.theme-dark .homes-content.details.mb-30,
body.theme-dark .property-location,
body.theme-dark .reviews.comments,
body.theme-dark .reviews.leve-comments,
body.theme-dark .wprt-image-video.w50.pro,
body.theme-dark .ag-de .similar-property,
body.theme-dark .ag-de .portfolio.py-0.age,
body.theme-dark .det .similar-property {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

html.theme-dark .inner-pages .blog .block-heading.details h4,
html.theme-dark .inner-pages .blog .blog-info.details h4,
html.theme-dark .inner-pages .blog .blog-info.details h5,
html.theme-dark .inner-pages .carousel-inner h5,
html.theme-dark .wprt-image-video.w50.pro h5,
body.theme-dark .inner-pages .blog .block-heading.details h4,
body.theme-dark .inner-pages .blog .blog-info.details h4,
body.theme-dark .inner-pages .blog .blog-info.details h5,
body.theme-dark .inner-pages .carousel-inner h5,
body.theme-dark .wprt-image-video.w50.pro h5 {
    color: #f1f4f8;
}

html.theme-dark .homes-content span.det,
body.theme-dark .homes-content span.det {
    color: #c9d1dd !important;
}

/* Common light background overrides */
html.theme-dark .header-top,
html.theme-dark #header.cloned,
html.theme-dark #navigation ul ul,
html.theme-dark #navigation ul ul li:hover,
html.theme-dark .navbar-area-3,
html.theme-dark .banner-search-wrap,
html.theme-dark .rld-banner-search,
html.theme-dark .blog-section .news-item,
html.theme-dark .blog-section .news-item-text,
html.theme-dark .blog-section .news-item-descr,
html.theme-dark .blog .blog-info,
html.theme-dark .blog .blog-info.details,
html.theme-dark .blog .blog-pots,
html.theme-dark .team .team-details,
html.theme-dark .team .team-social,
html.theme-dark .agents-grid,
html.theme-dark .properties-right,
html.theme-dark .property-location,
html.theme-dark .reviews,
html.theme-dark .agent-details,
html.theme-dark .agent-row,
html.theme-dark .user-profile-box,
html.theme-dark .contact-form-wrapper,
html.theme-dark .newsletters,
html.theme-dark .netabout,
body.theme-dark .header-top,
body.theme-dark #header.cloned,
body.theme-dark #navigation ul ul,
body.theme-dark #navigation ul ul li:hover,
body.theme-dark .navbar-area-3,
body.theme-dark .banner-search-wrap,
body.theme-dark .rld-banner-search,
body.theme-dark .blog-section .news-item,
body.theme-dark .blog-section .news-item-text,
body.theme-dark .blog-section .news-item-descr,
body.theme-dark .blog .blog-info,
body.theme-dark .blog .blog-info.details,
body.theme-dark .blog .blog-pots,
body.theme-dark .team .team-details,
body.theme-dark .team .team-social,
body.theme-dark .agents-grid,
body.theme-dark .properties-right,
body.theme-dark .property-location,
body.theme-dark .reviews,
body.theme-dark .agent-details,
body.theme-dark .agent-row,
body.theme-dark .user-profile-box,
body.theme-dark .contact-form-wrapper,
body.theme-dark .newsletters,
body.theme-dark .netabout {
    /* background: #0a0e14; */
    /* border-color: rgba(255, 255, 255, 0.12); */
}

html.theme-dark #navigation ul ul a,
body.theme-dark #navigation ul ul a {
    color: #c9d1dd !important;
}

/* Home page contrast (light + dark) */
.homepage-3 .featured.portfolio,
.homepage-3 .popular-places {
    background: #f7f9fc;
}

.homepage-3 .popular-places {
    background: #ffffff;
}

.homepage-3 .featured.portfolio,
.homepage-3 .popular-places {
    border-top: 1px solid #e9edf3;
}

.homepage-3 .img-box,
.homepage-3 .project-single {
    background: #ffffff;
    border: 1px solid rgba(13, 20, 33, 0.08);
}

html.theme-dark .homepage-3 .featured.portfolio,
html.theme-dark .homepage-3 .popular-places,
body.theme-dark .homepage-3 .featured.portfolio,
body.theme-dark .homepage-3 .popular-places {
    background: #0b0f15;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .homepage-3 .popular-places,
body.theme-dark .homepage-3 .popular-places {
    background: #070a10;
}

html.theme-dark .homepage-3 .img-box,
html.theme-dark .homepage-3 .project-single,
body.theme-dark .homepage-3 .img-box,
body.theme-dark .homepage-3 .project-single {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Homepage hero gradient: dark = black to red */
html.theme-dark .homepage-3 .welcome-area,
body.theme-dark .homepage-3 .welcome-area {
    background: url(../images/bg/video-poster2.png) no-repeat scroll center center/cover;
    position: relative;
}

.homepage-3 .welcome-area {
    background: url(../images/bg/video-poster2.png) no-repeat scroll center center/cover;
    position: relative;
}

.homepage-3 .welcome-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(-36deg, rgba(200, 29, 37, 0.55) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: 0;
}

html.theme-dark .homepage-3 .welcome-area::before,
body.theme-dark .homepage-3 .welcome-area::before {
    background: linear-gradient(-36deg, rgba(200, 29, 37, 0.55) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.homepage-3 .welcome-area > * {
    position: relative;
    z-index: 1;
}

/* Dark mode: featured properties carousel */
html.theme-dark .featured.portfolio .slick-prev,
html.theme-dark .featured.portfolio .slick-next,
body.theme-dark .featured.portfolio .slick-prev,
body.theme-dark .featured.portfolio .slick-next {
    background-color: #0a0e14;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

html.theme-dark .featured.portfolio .slick-prev:before,
html.theme-dark .featured.portfolio .slick-next:before,
body.theme-dark .featured.portfolio .slick-prev:before,
body.theme-dark .featured.portfolio .slick-next:before {
    color: #f1f4f8;
}

html.theme-dark .featured.portfolio .slick-prev:hover,
html.theme-dark .featured.portfolio .slick-next:hover,
body.theme-dark .featured.portfolio .slick-prev:hover,
body.theme-dark .featured.portfolio .slick-next:hover {
    background: var(--brand-accent);
}

html.theme-dark .featured.portfolio .slick-prev.slick-disabled,
html.theme-dark .featured.portfolio .slick-next.slick-disabled,
body.theme-dark .featured.portfolio .slick-prev.slick-disabled,
body.theme-dark .featured.portfolio .slick-next.slick-disabled {
    background-color: #10151d;
    box-shadow: none;
}

html.theme-dark .featured.portfolio .slick-prev.slick-disabled:before,
html.theme-dark .featured.portfolio .slick-next.slick-disabled:before,
body.theme-dark .featured.portfolio .slick-prev.slick-disabled:before,
body.theme-dark .featured.portfolio .slick-next.slick-disabled:before {
    color: #6b7280;
}

html.theme-dark .featured.portfolio .slick-dots li,
body.theme-dark .featured.portfolio .slick-dots li {
    color: #c9d1dd;
    box-shadow: inset 0 0 0 2px #c9d1dd;
}

html.theme-dark .featured.portfolio .slick-dots li.slick-active,
body.theme-dark .featured.portfolio .slick-dots li.slick-active {
    box-shadow: inset 0 0 0 6px #c81d25;
}

html.theme-dark .featured.portfolio .slick-dots li:after,
body.theme-dark .featured.portfolio .slick-dots li:after {
    background-color: #c81d25;
}

/* Equal property card image sizes */
.featured.portfolio .project-head,
.featured.portfolio .project-inner.project-head,
.property_list .project-head,
.property_list .project-inner.project-head {
    height: 240px;
    overflow: hidden;
}

.featured.portfolio .homes,
.property_list .homes,
.featured.portfolio .homes-img,
.property_list .homes-img {
    height: 100%;
    display: block;
}

.featured.portfolio .homes-img img,
.property_list .homes-img img,
.featured.portfolio .project-head img,
.property_list .project-head img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

/* Ensure property images fill their frames in all contexts */
.homes-img,
.project-head {
    overflow: hidden;
}

.homes-img img,
.project-head img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

@media (max-width: 767px) {
    .featured.portfolio .project-head,
    .featured.portfolio .project-inner.project-head,
    .property_list .project-head,
    .property_list .project-inner.project-head {
        height: 200px;
    }
}

/* Search results: shorter images and clearer spacing */
.property_list .project-head,
.property_list .project-inner.project-head {
    height: 170px;
}

@media (max-width: 767px) {
    .property_list .project-head,
    .property_list .project-inner.project-head {
        height: 150px;
    }
}

.property_list .project-single {
    margin-bottom: 20px;
}

/* Wider page layout for listings */
.featured.portfolio .container {
    max-width: 1400px;
}

/* Dark mode: property cards in carousel */
html.theme-dark .featured.portfolio .project-single,
html.theme-dark .featured.portfolio .homes-content,
html.theme-dark .recently.portfolio .project-single,
html.theme-dark .recently.portfolio .homes-content,
body.theme-dark .featured.portfolio .project-single,
body.theme-dark .featured.portfolio .homes-content,
body.theme-dark .recently.portfolio .project-single,
body.theme-dark .recently.portfolio .homes-content {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .recently .button-effect .fa-photo:before,
body.theme-dark .recently .button-effect .fa-photo:before {
    color: #f1f4f8;
}

/* Keyily brand accent (red) */
:root {
    --brand-accent: #c81d25;
    --brand-accent-dark: #a4161d;
    --main-color-one: var(--brand-accent);
}

/* Homepage 3: red sale tag + red slick dots */
.homepage-3 .portfolio .homes-tag.sale {
    background: var(--brand-accent) !important;
}

.homepage-3 .slick-dots li {
    color: var(--brand-accent);
    box-shadow: inset 0 0 0 2px var(--brand-accent);
}

.homepage-3 .slick-dots li:after {
    background: var(--brand-accent);
}

.homepage-3 .slick-dots li.slick-active {
    box-shadow: inset 0 0 0 6px var(--brand-accent);
}

/* Property details list: one item per row */
.property-details-grid li {
    width: 100%;
    display: block;
    float: none;
}

.inner-pages .blog .homes-content .homes-list li {
        height: -webkit-fill-available;

    width: 100%;
    float: none;
    line-height: 1.8;
    color: #c9d1dd;
}

html.theme-dark .inner-pages .blog .homes-content h5,
body.theme-dark .inner-pages .blog .homes-content h5 {
    color: #f1f4f8;
}

/* Logo size: 30% smaller */
#logo img {
    width: 98px;
}

@media (max-width: 767px) {
    #logo img {
        width: 84px;
    }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    margin: 0;
}

h2 span,
.section-title h2,
.section-title:before,
.top-headings-section h2::after,
.rld-banner-tab .nav-item a.active,
.rld-banner-tab .nav-item a:hover,
.rld-banner-tab .nav-item a:focus {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.rld-banner-tab .nav-item a.active,
.rld-banner-tab .nav-item a:hover,
.rld-banner-tab .nav-item a:focus {
    background: var(--brand-accent);
}

.homepage-3 .rld-banner-tab .nav-item a.active,
.homepage-3 .rld-banner-tab .nav-item a:hover,
.homepage-3 .rld-banner-tab .nav-item a:focus {
    color: #fff;
}

.button,
.btn,
.btn-yellow,
.homes-tag.button.alt,
.homes-tag.button.sale,
.overlay-dark::after,
.header-top,
.search-button,
.button-menu,
.navbar-area-3,
.top-headings-section h2::after,
.section-title:before {
    background-color: var(--brand-accent);
}

.button.border,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.button.border:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.rld-banner-search .rld-single-input button,
.search-panel__actions .btn {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.rld-banner-search .rld-single-input button:hover,
.search-panel__actions .btn:hover {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
}
.navigation,
#navigation {
    position: relative;
    display: block;
    margin-top: 9px;
    margin-left: 40px;
    float: right;
}

/* Keep content clear of header on inner pages */
body:not(.homepage-3) #ajax-content {
    padding-top: 56px;
}

@media (max-width: 767px) {
    body:not(.homepage-3) #ajax-content {
        padding-top: 44px;
    }
}

/* Home page: reduce header height */
body.homepage-3 #header {
    padding: 8px 0 14px 0;
}

@media (max-width: 767px) {
    body.homepage-3 #header {
        padding: 6px 0 12px 0;
    }
}

/* Listing page header should match other pages */
body.the-search #header {
    padding: 8px 0 14px 0;
}

@media (max-width: 767px) {
    body.the-search #header {
        padding: 6px 0 12px 0;
    }
}
