:root {
    --slide-max-h: 60vh; /* main image max height */
    --thumb-size: 84px; /* thumbnail square size */
    --thumb-gap: 10px;
    --radius: 0px;
    --border-color: #c5c5c5;
}

/* CSS Document */
html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #666666;
    padding: 0;
    line-height: 1.5;
    min-width: 370px;
    min-height: 100vh;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
}
h1 {
    font-weight: 700;
    font-size: 3em;
    padding: 0;
    margin: 0;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
h2, .h2 {
    font-size: 2.1875em;
    font-weight: 400;
    margin: 20px 0 0 0;
}
p {
    padding: 5px 0;
    margin: 0;
}
a, a:link, a:visited {
    text-decoration: none;
    color: #1f2432;
}
a:hover, a:active {
    text-decoration: underline;
}
a.touch, a.touch:link, a.touch:visited, a.touch:hover, a.touch:active {
    color: #FFF;
}
.text-center {
    text-align: center !important;
}
img {
    border: 0;
}
#header-wrapper {
    position: relative;
    background-image: url("images/green-bg.png");
    display: flex;
    flex-wrap: wrap;
}
#logo_main {
    margin-top: 5px;
    margin-left: 15px;
    width: 123px;
    height: 110px;
}
.header-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
#menu-top ul {
    list-style-type: none;
    margin: 40px 0;
    padding: 0;
}
#menu-top li {
    display: inline-block;
    width: 150px;
    margin-left: 0.5em;
    margin-right: 0.5em;
    text-align: left;
}
#menu-top li a {
    padding-left: 35px;
    line-height: 30px;
    font-size: 16px;
    font-weight: 200;
}
#menu-top li.phone {
    background-image: url('images/phone.png');
    background-repeat: no-repeat;
}
#menu-top li.mail {
    background-image: url('images/mail.png');
    background-repeat: no-repeat;
}
#menu-top li.search {
    background-image: url('images/search.png');
    background-repeat: no-repeat;
}
/* old mmenue*/
#mmenubar {
    height: 32px;
    background: #97928e;
}
/* Base menu bar */
#mmenu {
    text-align: center;
    position: relative;
    z-index: 1000;
    height: 32px;
    overflow: visible; /* ✅ allow dropdowns to show outside */
}
/* Top-level menu items */
#mmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}
#mmenu ul li {
    position: relative; /* ✅ needed so submenu positions relative to parent */
    font-size: 16px;
    font-weight: 200;
    margin: 3px 1.1em;
    padding: 4px 0;
    line-height: 1em;
}
#mmenu ul a {
    display: block;
    padding: 1px;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #97928e;
}
#mmenu ul a:hover {
    text-decoration: none;
    border-bottom: 2px solid #FFFFFF;
}
/* Submenu dropdown */
#mmenu ul .submenu {
    display: inline;
    position: absolute;
    top: 28px; /* directly below parent link */
    left: 0;
    min-width: 100px;
    background: #fff;
    margin: 0;
    padding: 0;
    list-style: none;
    /*border-radius: 0 0 5px 5px;*/
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2);
    /* hidden state */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    z-index: 2000;
}
#mmenu ul .submenu li {
    margin: 0;
    text-align: left;
}
/* Show submenu on hover */
#mmenu ul li.has-submenu:hover > .submenu {
    max-height: 500px; /* large enough to fit submenu */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#mmenu ul a.active {
    border-bottom: 2px solid #FFFFFF;
}
/* Submenu links */
#mmenu ul .submenu li a {
    padding: 5px;
    color: #000;
    background: #fff;
    line-height: 15px;
    transition: background 0.3s;
    border: none;
}
#mmenu ul .submenu li a:hover {
    text-decoration: underline;
}
main {
    flex: 1;
}
#banner.home {
    background: url("images/slide/dark-sofa.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    height: 590px;
    position: relative;
}
#banner.buy {
    background: url("images/slide/houses.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    height: 590px;
    position: relative;
}
#banner.selling {
    background: url("images/slide/kitchen.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    height: 590px;
    position: relative;
}
#banner.landlords {
    background: url("images/slide/landlords.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    height: 590px;
    position: relative;
}
#banner.tenents {
    background: url("images/slide/tenents.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    height: 590px;
    position: relative;
}
#banner.contact {
    background: url("images/slide/contact_us.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    min-height: 100px;
    max-height: 350px;
    position: relative;
}
#banner h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}
#banner .text {
    position: relative;
    width: 1024px;
    text-align: center;
    margin: auto;
    color: #FFFFFF;
}
#banner .text .book, .btn {
    display: block;
    border: 1px solid #EEE;
    background: rgba(100, 100, 100, 0.4);
    color: #f2f5f7;
    fill: #f2f5f7;
    text-decoration: none;
    font-weight: normal;
    padding: 10px 20px;
    margin: 5px auto;
    cursor: pointer;
}
#banner .btn, #banner .book {
    width: 350px;
}
#banner .text .book:hover, .btn:hover {
    background: rgba(210, 210, 210, 0.7);
    text-decoration: underline;
}
.welcome {
    position: relative;
    max-width: 1180px;
    text-align: center;
    margin: 0 auto;
    font-size: 18px
}
.container {
    width: 100%;
    padding: 5px 0 10px 0px;
    margin-right: auto;
    margin-left: auto;
}
.card {
    position: relative;
    margin: 10px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
}
.card:hover {
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.23);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.23);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.23);
}
.card a:hover {
    text-decoration: none;
}
.card-img-wrapper {
    position: relative;
}
.card-img {
    width: 100%;
    height: 210px;
    background-position: center;
    background-size: cover;
    border-radius: px px 0 0;
}
.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    justify-content: center;
}
.col-lg-8 {
    position: relative;
    overflow: hidden;
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 30%;
    flex: 0 0 30%;
    min-width: 330px;
    max-width: 30%;
}
.col-lg-8 img {
    /*width: 95%;*/
}
.card-content-block {
    display: block;
    position: relative;
    height: 95%;
    padding: 5px;
}
.card-content {
    display: block;
    position: relative;
}
.card-price {
    margin: 0 0 0.5rem;
    line-height: 1.25;
    font-size: 1.25rem;
    font-weight: bold;
    color: #626363;
}
.card-price small {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: capitalize;
    color: #909190;
}
.card-title {
    margin: 0 0 0.8rem;
    font-size: 1.25rem;
    color: #1f2432;
}
.card-rooms {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    color: #888;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center; /* vertical align */
    gap: 10px;
}
.card-sub-title {
    color: #1f2432;
}
.card-labels {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.85rem;
    color: #f2f5f7;
    line-height: 1.25;
}
.card-label {
    display: inline-block;
    margin-right: 18px;
    background: #777;
    color: #f2f5f7;
    fill: #f2f5f7;
    text-decoration: none;
    padding: 5px 10px;
}
.welcome {
    display: block;
    overflow: hidden;
    padding: 10px;
}
#footer {
    position: relative;
    padding: 5px 0px;
    background: #97928e;
    overflow: hidden;
    display: block;
    width: 100%;
}
#footer-content {
    position: relative;
    max-width: 1180px;
    text-align: center;
    margin: 0 auto;
    font-size: 18px;
    color: #111;
}
#footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
#footer-content li {
    display: inline-block;
    margin-right: 1em;
}
#footer-content li a {
    color: #FFFFFF;
}
.col-md-12 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    width: 50%;
    min-width: 350px;
}
.tile-img {
    height: 100%;
    min-height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
button, input {
    overflow: visible;
}
input, button, select, optgroup, textarea {
    width: 95%;
    margin: 0 0 15px 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: #1f2432;
}
ul.droplist {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    border-top: 1px solid var(--border-color);
}
ul.droplist li {
    list-style: none;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}
ul.droplist .btn-show-options {
    background: none;
    border: none;
    outline: none;
    text-indent: -9999em;
    width: 22px;
    height: 12px;
    float: right;
    background: url('/css/sprites.png') -10px -160px no-repeat;
    margin: 5px 10px;
    cursor: pointer;
}
ul.droplist .listing-header {
    font-size: 1.1em;
    font-weight: 300;
    cursor: pointer;
}
ul.droplist li.listing-active .listing-options {
    display: block;
}
ul.droplist li .listing-options {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: none;
}
ul.droplist li.listing-active {
    /*background: #F9F9F9;*/
}
ul.droplist li.listing-active button.btn-show-options {
    transform: rotate(180deg);
}
.col-half {
    width: 45%;
    padding: 5px;
    min-width: 370px;
    text-align: left;
    float: left;
    display: block;
}
input.error {
    border: 3px dotted #970000;
}
textarea.error {
    border: 3px dotted #970000;
}
/*mobile menu*/
#sn_menu_outer {
    position: absolute;
    z-index: 300;
    top: 15px;
    right: 0px;
    width: 45px;
    height: 45px;
    display: none;
    background-color: #74CAC1;
}
#sn_menu_outer #top-level {
    font-size: 40px;
    color: #000;
    position: relative;
    background-image: url("images/green-bg.png");
    border: 0;
    cursor: pointer;
    margin-right: 15px;
}
#sn_menu_outer #top-level span {
    font-size: 40px;
    position: absolute;
    width: 100%;
    height: calc(100% + 4px);
    background-image: url("images/green-bg.png");
    left: 0;
    top: -2px;
    display: none;
    color: #000;
}
#sn_menu_outer:has([popover]:popover-open) #top-level span {
    display: block;
}
#pop01 {
    position: absolute;
    top: 92px;
    right: 0px;
    border: 1px solid #000;
    padding-right: 15px;
    max-height: 340px;
}
[popover] {
    display: grid; /* ✅ grid mode */
    grid-template-rows: 0fr; /* collapsed */
    overflow: hidden;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
    width: 250px;
    inset: unset;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #FFF;
    right: 25px;
    box-shadow:
        -4px 0 6px rgba(0, 0, 0, 0.3), /* left */ 0 4px 6px rgba(0, 0, 0, 0.3); /* bottom */
}
[popover] .pop {
    min-height: 0;
    align-self: inherit;
    height: inherit;
}
[popover] .pop > div {
    padding: 10px;
}
[popover]:popover-open {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
}
[popover] a {
    font: 20px/35px arial, sans-serif;
    color: #000;
    white-space: nowrap;
    text-decoration: none;
}
[popover] a:hover {
    text-decoration: underline;
}
[popover] p {
    font: 20px/35px arial, sans-serif;
    color: #fff;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    position: relative;
    line-height: 35px;
}
.search-title {
    text-align: center;
}
.search-title h1 {
    font-weight: 500;
    font-size: 2.5em;
    padding: 0;
    line-height: 1.0;
}
/* paging*/
.pagination {
    padding: 5px 10px;
    display: block;
    text-align: center;
    /*border-bottom: 1px solid #DDD;*/
}
.pagination a, .pagination span.current {
    border: 1px solid #CCC;
    color: #333;
    font-size: 1em;
    padding-left: .75em;
    padding-right: .75em;
    height: 2em;
    width: auto;
    text-align: center;
    line-height: 1.8em;
    display: inline-block;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    margin: 3px;
    cursor: pointer;
}
.pagination a:hover {
    background: #F4F4F4;
}
.pagination span.current {
    background: #F2F2F2;
    cursor: auto;
    color: #333;
}
/* menu end*/
/* slider */ 

.slider {
    max-width: 100%;
    padding: 0;
    position: relative;
  padding: 3px;
    border: 1px solid var(--border-color);
}
/* Main track */
.slides {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    background: #FFF;
    /* Mobile swipe friendliness: allow vertical page scroll, capture horizontal swipes */
    touch-action: pan-y;
}
.slides:active {
    cursor: grabbing;
}
.slides::-webkit-scrollbar {
    display: none;
}
.slides {
    scrollbar-width: none;
}
#imgCount {
    position: absolute;
    right: 12px;
    top: 32px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 10px;
    font: 600 16px/1 system-ui;
    user-select: none
}
.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
      margin: 0;   /* <-- reset default figure margin */
  padding: 0;  /* just in case */
}
.slide img {
    width: 100%;
    height: clamp(250px, var(--slide-max-h), 80vh);
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    user-select: none;
    -webkit-user-drag: none;
}
/* Prev/Next buttons */
.nav {
    position: absolute;
    top: 50%;
    width: 100%;
}
.nav button {
transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #888;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, opacity .2s, transform .2s;
  outline: none;
  font-weight: bold;
}
.nav button:hover {
    background: #555;
}
.nav button:active {
    transform: translateY(-50%) scale(0.98);
}
.nav button[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.prev {
    float: left;
    margin-left: 22px;
}
.next {
    float: right;
    margin-right: 22px;
}
/* Thumbnail bar wrapper so buttons can overlay */
.thumbsWrap {
    position: relative;
}

/* Thumbnail strip itself */
.thumbs {
    display: flex;
    gap: var(--thumb-gap);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 48px 6px; /* ← add left/right room for nav buttons */
    scrollbar-width: none;
}
.thumbs::-webkit-scrollbar { display: none; }

/* Individual thumb */
.thumb {
    flex: 0 0 auto;
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 12px;
    padding: 2px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    outline: none;
    margin: 5px;
}
.thumb:active {
    transform: scale(.98);
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    user-select: none;
    -webkit-user-drag: none;
}
.thumb.is-active {
    border-color: var(--border-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.23);
}

/* Prev/Next buttons for thumbs */
.thumbsBtn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;                  
  border: none;
  background: rgba(0,0,0,0.6);  
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}
.thumbsBtn:hover { background: rgba(0,0,0,0.75); }
.thumbsBtn:disabled { opacity: .3; cursor: not-allowed; }

.thumbsPrev { left: 0; }
.thumbsNext { right: 0; }

.thumbs {
  padding: 6px 44px 6px;  /* leave space for the 40px bars + gap */
}
@media (prefers-color-scheme: dark) {
    .thumbsBtn { background: rgba(255,255,255,0.15); color:#fff; }
    .thumbsBtn:hover { background: rgba(255,255,255,0.25); }
}
/* Little arrow chevrons */
.chev {
    width: 18px;
    height: 18px;
    display: block;
}

/* end slider*/
@media (min-width: 1200px) {
    .container {
        max-width: 1180px;
    }
    .col-lg-8 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.33333%;
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }
}
@media (max-width: 829px) {
    #logo_main {
        width: 78px;
        height: 80px;
    }
    #menu-top li {
        display: block;
    }
    .header-wrap .touch {
        display: none;
    }
    #menu-top ul {
        display: block;
        margin: 0px auto;
        width: 180px;
    }
    #sn_menu_outer {
        display: block;
    }
    .col-lg-8 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    #mmenu {
        display: none;
    }
    #mmenubar {
        height: 5px;
    }
    #banner.home, #banner.buy, #banner.selling, #banner.landlords, #banner.tenents {
        height: 350px;
    }
    #banner.contact {
        height: 150px;
    }
}
@media (max-width: 400px) {
    .col-lg-8 {
        max-width: 95%;
    }
}
@media (min-width: 765px) {
    .hrule {
        display: none;
    }
}