@font-face {
    font-family: Geologica;
    src: url('../fonts/Geologica-VariableFont.ttf');
}

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-VariableFont.ttf');
}

$breakpoints: (
'sm': 640px,
'md': 769px,
'lg': 1024px,
'xl': 1280px,
'2xl': 1536px,
);

@mixin media-breakpoint-up($name) {
    $ value: map-get($ breakpoints, $ name);
    @if $value {
        @media (min-width: #{$value}) {
            @content;
        }
    }
}

.header.primary {
    @apply bg-white;

    nav {
        @apply border-b border-primary text-primary;
    }

    img.secondary {
        @apply hidden;
    }

    .hamburger svg {
        @apply text-primary;
    }
}

.header.secondary {
    @apply bg-transparent;

    nav {
        @apply text-secondary;
    }

    img.primary {
        @apply hidden;
    }

    .hamburger svg {
        @apply text-secondary;
    }
}

.menu-active {
    opacity: 1;
    z-index: 100;
}

.menu-inactive {
    opacity: 0;
    z-index: -100;
}

.menu-active .menu-content {
    transform: translateX(0px);
}

.menu-inactive .menu-content {
    transform: translateX(100%);
}

.stop-scrolling {
    height: 100vh;
    overflow: hidden;
}

#header summary::-webkit-details-marker {
    display: none;
}

.overlay-active {
    opacity: 1;
    top: 0;
}

.overlay-inactive {
    opacity: 0;
    top: 80px;
    pointer-events: none;
}

.slideshow-indicator-inactive {
    opacity: 0.3;
    cursor: auto;
    pointer-events: none;
}

.page-number.active {
    position: relative;
    font-weight: 700;
}

.page-number.active:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 1px;
    background-color: #000000;
}

.container {
    max-width: 1390px;
}

button {
    font-family: Roboto;
}

p,
.h0,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Geologica;
}

h1 {
    font-size: 24px;
    line-height: 26px;
}

h2 {
    font-size: 26px;
    line-height: 36px;
}

h3 {
    font-size: 26px;
    line-height: 28px;
}

h4 {
    font-size: 20px;
    line-height: 24px;
}

@include media-breakpoint-up(lg) {
    h1 {
        font-size: 56px;
        line-height: 66px;
    }

    h2 {
        font-size: 44px;
        line-height: 50px;
    }

    h3 {
        font-size: 34px;
        line-height: 40px;
    }

    h4 {
        font-size: 32px;
        line-height: 36px;
    }

    h5 {
        font-size: 20px;
        line-height: 24px;
    }
}
@include media-breakpoint-up(xl) {
    h1 {
        font-size: 64px;
        line-height: 78px;
    }

    h2 {
        font-size: 60px;
        line-height: 60px;
    }

    h3 {
        font-size: 40px;
        line-height: 52px;
    }

    h4 {
        font-size: 36px;
        line-height: 54px;
    }

    h5 {
        font-size: 24px;
        line-height: 30px;
    }
}
.discover-banner-bg {
    background-image: url('../images/discover-mobile.png');
}

@media (min-width: 768px) {
    .discover-banner-bg {
        background-image: url('../images/discover.png');
    }
    .sell-pattern-mt {
        margin-top: 2.6rem!important;
    }
}

.property-search {
    .ts-wrapper {
        position: relative;
    }

    .ts-wrapper.dropdown-active .ts-dropdown {
        border-top-right-radius: 0px !important;
        border-top-left-radius: 0px !important;
        border-top: transparent !important;
    }

    .ts-wrapper.dropdown-active .ts-control {
        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
        border-bottom: transparent !important;
    }

    .ts-control {
        border: 1px solid #002e11 !important;
        color: #002e11;
        border-radius: 31px !important;
        padding: 8px 27px !important;
        background: white !important;
        font-size: 18px !important;
        align-items: center;
        height: 62px;
        outline: none;
        font-family: Geologica !important;
        font-weight: 300 !important;
    }

    .ts-control-custom{
        border: 1px solid #002e11;
        color: #002e11;
        border-radius: 31px ;
        padding: 8px 27px ;
        background: white ;
        font-size: 18px ;
        align-items: center;
        height: 62px;
        outline: none;
        font-family: Geologica ;
        font-weight: 300 ;
    }

    .ts-control.has-value .ts-input {
        color: white !important;
    }

    .ts-control .item {
        padding-right: 24px;
    }

    @media (max-width: 1023px) {
        .ts-control {
            border: 1px solid #8f90a6 !important;
            font-size: 14px !important;
            height: 45px;
            color: #8f90a6;
        }
    }
}

.filters .ts-control {
    border: none !important;
    padding: 8px 27px !important;
    background: white !important;
    font-size: 20px !important;
    align-items: center;
    outline: none;
    font-family: Geologica !important;
    font-weight: 100 !important;
    color: #002e11;

    .item {
        white-space: nowrap;
    }
}

.filters.mobile .ts-control {
    border: none !important;
    padding: 0px 20px 0px 0px !important;
    background: white !important;
    font-size: 14px !important;
    align-items: center;
    outline: none;
    font-family: Geologica !important;
    font-weight: 100 !important;
}

.ts-wrapper.dropdown-active + svg {
    transform: translateY(-50%) rotate(180deg);
}

.ts-dropdown-content .option {
    font-size: 16px;
    padding: 8px 15px !important;
}

.filters.mobile .ts-dropdown-content .option {
    font-size: 11px;
    padding: 5px 10px !important;
}

.ts-dropdown-content .option.active {
    background-color: #002e11;
    color: white;
}

.ts-dropdown {
    border: 1px solid #002e11 !important;
    border-radius: 12px !important;
    overflow: hidden;
    font-family: Geologica !important;
    font-weight: 300 !important;
    margin-top: 0px !important;
    z-index: 12 !important;
}

.mega-selector {
    position: relative;

    .selector-button.active .selector-arrow {
        transform: rotate(180deg);
    }

    .megamenu {
        position: absolute;
        top: 48px;
        left: -24px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
        padding: 21px 0px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        z-index: 25;
    }

    .mobileSelect.megamenu {
        overflow: auto;              /* or overflow-y:auto */
        scrollbar-width: none;       /* Firefox */
        -ms-overflow-style: none;    /* old Edge/IE */
    }
    .mobileSelect.megamenu::-webkit-scrollbar { display: none; }
    .menu-category,
    .category-item,
    .submenu-item {
        min-width: 0;                /* let it shrink inside flex */
    }

    .mobileSelect.megamenu p {
        white-space: normal;         /* allow wrap */
        word-break: break-word;      /* optional safety */
    }



    .megamenu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-category {
        position: relative;
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .category-item {
        padding: 0px 30px;
        width: 100%;
        cursor: pointer;
        display: flex;
        color: #8f90a6;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.2s ease;
    }

    @media (max-width: 768px) {
        .megamenu {
            width: auto;
            top: 20px;
            left: -18px;
        }

        .category-item {
            gap: 15px;
        }
    }

    .category-item:hover {
        color: #002e11;
    }

    .submenu {
        position: absolute;
        left: 100%;
        top: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10px);
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 15px 0px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
    }

    .menu-category:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .submenu-item {
        padding: 0px 24px;
        cursor: pointer;
        color: #8f90a6;
        transition: background-color 0.2s ease;
    }

    .submenu-item:hover {
        color: #002e11;
    }

    .selected-value {
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
    }
}

header.homepage {
    background: transparent !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.homepage.solid {
    background: white !important;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;*/
}

header.homepage nav a {
    color: white !important;
}

header.homepage.solid nav a {
    color: #002e11 !important;
}

header.homepage nav {
    border-bottom: 0 !important;
}

header.homepage.solid nav {
    border-bottom: 1px solid rgba(0, 46, 17, 0.1) !important;
}

header.homepage.solid details summary h5,
header.homepage.solid details summary svg {
    color: black !important;
}

.logo-home {
    display: block;
}

.logo-inner {
    display: block;
}

header.homepage .ts-dropdown {
    background-color: transparent !important;
    color: white !important;
}

header .ts-dropdown button,
#menu-overlay-mobile .ts-dropdown button  {
   display: none !important;
}

header.homepage .ts-dropdown a {
    color: white !important;
}

header.homepage .ts-dropdown a:hover {
    background-color: #002e11 !important;
    color: var(--color-primary, white) !important
}

header.homepage summary h5 {
    color: white !important;
}

header.homepage summary svg {
    color: white !important;
}

header.homepage .ts-dropdown {
    border-color: white !important;
}

header.homepage .hamburger svg {
    color: #fff !important;
}

header.homepage.solid .hamburger svg {
    color: #002e11 !important;
}

.agents-wrapper .header-offset {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hide-logo {
    display: none;
}

.mega-selector .submenu-item.rm-padding {
    padding: 0;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.blog-content{
    max-width: 1400px;
    margin-top: 6rem;
}

.blog-content > * + * {
    margin-top: 1.5rem;
}

.blog-content h2 { margin-top: 2.5rem; }
.blog-content h3 { margin-top: 2rem; }
.blog-content h4 { margin-top: 1.8rem; }
.blog-content h5 { margin-top: 1.5rem; }
.blog-content p { margin-top: 1rem;}
.grid-card-wrapper {
    width: 600px;
    flex-shrink: 0;
}

.white-font{
    color: white !important;
}

#property-latitude, #property-longitude{
    display: none;
}

#map{
    height: 350px;
    border-radius: 20px;
    margin-bottom: 2rem;

}

#nisea-map{
    z-index: 1;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 20px;
}

.gmap-canvas{
    z-index: 1;
    position: relative;
}

.feature-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.property-image-count-opacity{
    opacity: 60%
}

.margin-property-nav{
    margin-top: 150px;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative !important;
}

@media (min-width: 1440px) {
    #close-gallery-btn{
        margin-left: 60px;
    }
}

.padding-property-nav{
    padding-right: 120px;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative !important;
}
#sort + .ts-wrapper .ts-dropdown {
    width: max-content;
    min-width: 12rem;
}
#sort + .ts-wrapper .ts-dropdown .option:first-child {
    display: none;
}

.megamenu:not(.property-type-megamenu) {
    position: absolute;
    width: calc(100% + 3rem) !important;
    border-radius: 4px;
}

.category-item:not(.property-type-category-item) {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .home-search-form .flex.sm\:flex-row.flex-col > div:last-child {
        margin-left: auto;
    }
}
.footer-spacing{
    margin-bottom: 1.2rem;
}

.footer-text{
     text-transform: uppercase !important;
}

.homeBannerSection {
    position: relative;
    z-index: 5;
}

.margin-property-type{
    margin-top: 8px
}

.property-type-arrow{
    top: 6px;
    right:-10px;
}

#keyAdvantages + .ts-wrapper.multi .ts-control,
#zone + .ts-wrapper.multi .ts-control {
    max-width: 300px;
    flex-wrap: wrap !important;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100px;
    gap: 6px;
    display: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 10px;
}

#keyAdvantages + .ts-wrapper.multi .ts-control::-webkit-scrollbar,
#zone + .ts-wrapper.multi .ts-control::-webkit-scrollbar {
    display: none;
}

@media(min-width: 1200px){
    .logo-negative-margin {
        margin-top: -6rem;
    }
}

#slideshow img,
#plans-slideshow img {
    min-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
    font-size: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 300;
}

.feature-icon {
    margin-right: 8px;
    font-size: 24px;
}

.no-features {
    grid-column: 1 / -1;/* takes whole row */
    color: #ef4444;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (min-width: 768px) and (max-width: 768px) {
    .blog-posts-container .md\:w-1\/2 img {
        height: 23rem !important;
        width: 45rem !important;
        object-fit: cover;
    }
}

@media (max-width: 425px) {
    .blog-posts-container .md\:w-1\/2 img {
        height: 12.69rem!important;
        width: 25rem!important;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.share-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.blog-posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 72px;
    grid-auto-rows: 1fr;
    margin-bottom: 72px;
}

.blog-posts-container .md\:w-1\/2 img {
    height: 23rem;
    width: 35rem;
    object-fit: cover;
}

.py-contact-form{
    margin: 3rem 0;
}

.circle-pattern {
    margin-bottom: 3rem;
    padding-bottom: 0.25rem;
}

@media (max-width: 640px) {
    .circle-pattern {
        margin-bottom: 0.7rem;
        padding-bottom: 0;
    }
}
.nisea-iti-wrapper {
  display: block !important;
}
.tel-input-prefix .iti__country-list {
    white-space: normal;
}

.tel-input-prefix .iti__selected-flag {
    background-color: rgba(0, 0, 0, 0.05);
    border-top-left-radius: 27px;
    border-bottom-left-radius: 27px;
    overflow: hidden;
}

.text-align-on-break{
    text-align: right;
}

.selected-value-zones {
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    max-height: 50px;
    gap: 6px;
    padding: 4px;
    /* scrollbar-width: none;
    -ms-overflow-style: none; */
}

#zone-ts-control{
    font-size: 16px;
    margin-top: 13px !important;
}

.property_id_input::placeholder {
    font-family: Geologica;
}

.agentdetails #toggle:checked ~ .agent-description,
.propertydetails #toggle:checked ~ .property-description{
    max-height: none;
    -webkit-line-clamp: unset;
}
.agentdetails .agent-description {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 10.8em;
    transition: max-height 0.3s ease;
}

.propertydetails .property-description {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 11.5em;
    transition: max-height 0.3s ease;
}

.agentdetails #toggle,
.propertydetails #toggle {
    display: none;
}
.agentdetails #toggle:not(:checked) ~ .read_more .less-txt,
.propertydetails #toggle:not(:checked) ~ .read_more .less-txt {
    display: none;
}
.agentdetails #toggle:checked ~ .read_more .more-txt,
.propertydetails #toggle:checked ~ .read_more .more-txt {
    display: none;
}
.agentdetails .read_more,
.propertydetails .read_more {
    cursor: pointer;
    text-decoration: underline;
}

#property-map {
  position: static !important;
    height: 100% !important;
}

.sell-pattern-mt{
    margin-top: 1.3rem;
}

.advanced-selector .tomSelect .ts-dropdown .option.selected,
.advanced-selector .tomSelect .ts-dropdown .option.selected:hover,
.location-selector .tomSelect .ts-dropdown .option.selected,
.location-selector .tomSelect .ts-dropdown .option.selected:hover {
    background-color: #002e11 !important;
    color: white !important;
}

#locationSelectMobile .category-item:has(.submenu-item.selected) {
    background-color: #002e11;
    color: #fff;
}

#locationSelectMobile .submenu-item.selected {
    background-color: #002e11;
    color: #fff;
}

#locationSelectMobile .submenu-item.selected:hover {
    background-color: #004422;
}
.property-carousel-wrapper { 
    position: relative; 
    overflow: hidden; 
    touch-action: pan-y; 
}
.property-carousel-wrapper .property-carousel { 
    display: flex; 
    transition: transform 0.4s ease; 
}
.property-carousel-wrapper .property-carousel .carousel-slide { 
    flex: 0 0 100%; 
    width: 100%; 
    user-select: none; 
    -webkit-user-drag: none; 
    cursor: grab; 
}

.property-carousel-wrapper .carousel-bullets {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0.9;
}

.property-carousel-wrapper .carousel-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    transform: scale(1);
}
.property-carousel-wrapper .carousel-bullet.active {
    background: #fff;
    transform: scale(1.5);
}

#locationSelectMobile .menu-category {
    margin-bottom: 12px;
}

#locationSelectMobile .submenu-item {
    padding: 10px 12px;
    margin-bottom: 2px;
    margin-left: 8px;
}

#locationSelectMobile .zones-container {
    margin-top: 6px;
}

@media (max-width: 768px) {
    #locationSelectMobile .megamenu {
        width: auto;
        top: 40px;
        left: -18px;
    }
}