/* Union House frontend overrides */

html[lang="my"] {
    --primary-font: 'Noto Sans Myanmar', 'Padauk', 'Myanmar Text', sans-serif;
    --heading-font: 'Noto Sans Myanmar', 'Padauk', 'Myanmar Text', sans-serif;
    --paraFont: 'Noto Sans Myanmar', 'Padauk', 'Myanmar Text', sans-serif;
}

html[lang="my"] body,
html[lang="my"] :where(h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, select, textarea, label, .dropdown-item) {
    font-family: var(--primary-font);
}

.main-header.fixed-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.top-header {
    background: #161e2d;
    color: #fff;
    font-size: 14px;
}

.top-header .list-info li {
    color: #fff;
}

.header-auth .tf-btn.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.header-auth__name {
    font-size: 14px;
    font-weight: 500;
}

.homeya-box .images-style img,
.blog-item img,
.flat-blog-item .img-style img,
.box-location .image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.property-gallery .swiper-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

.flat-slider.home-1 {
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.flat-slider.home-1 .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.flat-slider.home-1 .container {
    position: relative;
    z-index: 2;
}

.meta-list .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-list .ti {
    color: var(--primary-color);
}

.box-testimonial {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

.ck-content img {
    max-width: 100%;
    height: auto;
}

.flat-title-page {
    background: #f7f7f7;
    padding: 24px 0;
}

.flat-title-page .breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.flat-title-page .breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #999;
}

.hero-search .form-control,
.hero-search .tf-btn {
    color: #161e2d;
}

.hero-search .form-control::placeholder {
    color: #6c757d;
}

.property-search-form-wrap {
    max-width: 100%;
}

.property-search-form {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 30, 45, 0.08);
}

.hero-search .property-search-form {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.property-search-form__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.property-search-form__field {
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    background: #fff;
    min-width: 0;
}

.property-search-form__field:nth-child(4n) {
    border-right: 0;
}

.property-search-form__field:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.property-search-form__control {
    width: 100%;
    height: 48px;
    border: 0;
    background: transparent;
    color: #161e2d;
    padding: 0 14px;
    font-size: 14px;
    appearance: none;
}

.property-search-form__control:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(245, 184, 0, 0.2);
}

.property-search-form__control:disabled {
    color: #161e2d;
    opacity: 1;
    cursor: default;
}

.property-search-form__field select.property-search-form__control {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.property-search-form__field--submit {
    padding: 0;
    border: 0;
    background: var(--primary-color);
}

.property-search-form__submit {
    width: 100%;
    height: 48px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.property-search-form__submit:hover {
    background: var(--hover-color);
    color: #fff;
}

.property-search-form__submit .ti {
    font-size: 18px;
}

@media (max-width: 991px) {
    .property-search-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-search-form__field:nth-child(4n) {
        border-right: 1px solid #ececec;
    }

    .property-search-form__field:nth-child(2n) {
        border-right: 0;
    }

    .property-search-form__field:nth-last-child(-n + 4) {
        border-bottom: 1px solid #ececec;
    }

    .property-search-form__field:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .property-search-form__field--keyword,
    .property-search-form__field--submit {
        grid-column: 1 / -1;
        border-right: 0;
    }
}

@media (max-width: 575px) {
    .property-search-form__grid {
        grid-template-columns: 1fr;
    }

    .property-search-form__field {
        border-right: 0;
    }

    .property-search-form__field:not(:last-child) {
        border-bottom: 1px solid #ececec;
    }

    .property-search-form__field:last-child {
        border-bottom: 0;
    }
}

.main-header .main-menu .navigation .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main-header .main-menu .navigation .menu-link__icon {
    font-size: 18px;
    line-height: 1;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.main-header .main-menu .navigation > li:hover .menu-link__icon,
.main-header .main-menu .navigation > li.current .menu-link__icon {
    color: var(--hover-color);
}

.mobile-menu .navigation .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.mobile-menu .navigation .menu-link__icon {
    font-size: 20px;
    line-height: 1;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.footer-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-menu-link:hover {
    opacity: 1;
    color: #fff !important;
}

.footer-menu-link .ti {
    font-size: 16px;
    color: var(--primary-color);
}

.account-area {
    padding-top: 32px;
    padding-bottom: 48px;
}

.account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: #f7f7f7;
    border-radius: 12px;
}

.account-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #161e2d;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-nav__link:hover,
.account-nav__link.active {
    background: var(--primary-color);
    color: #161e2d;
}

.account-stat-card,
.account-panel,
.account-package-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

.account-stat-card__label {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.account-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #161e2d;
}

.account-panel__title {
    margin-bottom: 16px;
    font-weight: 700;
}

.account-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-list__item:last-child {
    border-bottom: 0;
}

.account-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.account-badge--approved,
.account-badge--completed {
    background: #d1e7dd;
    color: #0f5132;
}

.account-badge--pending {
    background: #fff3cd;
    color: #664d03;
}

.account-badge--rejected,
.account-badge--failed {
    background: #f8d7da;
    color: #842029;
}

.account-package-card--featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(245, 184, 0, 0.15);
}

.account-package-card__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 12px 0;
}

.account-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.ads-section {
    position: relative;
}

.ads-section--hero {
    padding: 28px 0;
    background: linear-gradient(180deg, #f7f7f7 0%, #fff 100%);
    border-bottom: 1px solid #ececec;
}

.ads-section--banner {
    padding: 24px 0;
}

.ads-section--strip,
.ads-section--inline,
.ads-section--sidebar {
    margin: 20px 0;
}

.ads-section--strip .ads-section__inner {
    background: #fffbeb;
    border: 1px solid rgba(245, 184, 0, 0.35);
    border-radius: 12px;
    padding: 12px;
}

.ads-section--sidebar .ads-section__inner {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 16px;
}

.ads-section__label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(22, 30, 45, 0.08);
    color: #6c757d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot {
    display: grid;
    gap: 16px;
}

.ad-slot--multi {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ads-section--hero .ad-slot {
    grid-template-columns: 1fr;
}

.ad-slot__link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 30, 45, 0.1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ad-slot__link:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.ad-slot__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

.ads-section--sidebar .ad-slot__image {
    max-height: 220px;
}

.ads-section--strip .ad-slot__image,
.ads-section--inline .ad-slot__image {
    max-height: 180px;
}

.properties-listing-half-map .ads-section--sidebar {
    margin: 0 0 16px;
}

.progress-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 998;
    cursor: pointer;
}

.flat-blog-item {
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 30, 45, 0.08);
}

.flat-blog-item .img-style {
    display: block;
    position: relative;
    overflow: hidden;
}

.flat-blog-item .img-style img {
    height: 220px;
    transition: transform 0.3s ease;
}

.flat-blog-item:hover .img-style img {
    transform: scale(1.05);
}

.flat-blog-item .date-post {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: #fff;
    color: #161e2d;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.flat-blog-item .content-box {
    padding: 20px;
}

.flat-blog-item .post-author {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 13px;
}

.flat-blog-item .post-author a {
    color: var(--primary-color);
}

.flat-blog-item .title {
    margin-bottom: 10px;
}

.flat-blog-item .title a {
    color: #161e2d;
    font-size: 18px;
    line-height: 1.4;
}

.flat-blog-item .description {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.flat-blog-detail__title {
    margin-bottom: 12px;
}

.flat-blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flat-blog-detail__category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 184, 0, 0.12);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.flat-blog-detail__info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 24px;
    color: #6c757d;
    font-size: 14px;
}

.flat-blog-detail__image {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.flat-blog-detail__image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.flat-blog-detail__lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

.flat-blog-detail__content {
    color: #161e2d;
    line-height: 1.8;
}

.flat-blog-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.flat-blog-detail__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f7f7f7;
    color: #161e2d;
    font-size: 13px;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
}

.pagination-wrap .pagination {
    gap: 8px;
}

.pagination-wrap .page-link {
    border-radius: 8px;
    color: #161e2d;
}

.flat-contact .contact-content__title {
    margin-bottom: 12px;
}

.flat-contact .contact-content__lead {
    color: #6c757d;
    margin-bottom: 24px;
}

.flat-contact .contact-form .form-label {
    font-weight: 600;
    color: #161e2d;
    margin-bottom: 8px;
}

.flat-contact .contact-form .form-control {
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 12px 14px;
}

.flat-contact .contact-form textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.flat-contact .contact-info {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}

.flat-contact .contact-info h5 {
    margin-bottom: 20px;
}

.flat-contact .contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px;
}

.flat-contact .contact-info__item {
    display: flex;
    gap: 14px;
}

.flat-contact .contact-info__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 184, 0, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.flat-contact .contact-info__label {
    font-weight: 600;
    color: #161e2d;
    margin-bottom: 4px;
}

.flat-contact .contact-info__item a,
.flat-contact .contact-info__item p {
    margin: 0;
    color: #6c757d;
}

.flat-slider-contact {
    position: relative;
    background: #161e2d;
    overflow: hidden;
}

.flat-slider-contact .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.flat-slider-contact .container,
.flat-slider-contact .content-wrap {
    position: relative;
    z-index: 2;
}

.flat-slider-contact .box-contact-v2 {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.flat-careers .careers-intro__title {
    margin-bottom: 8px;
}

.flat-careers .careers-intro__lead {
    color: #6c757d;
    margin-bottom: 0;
}

.career-item {
    height: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.career-item:hover {
    border-color: rgba(245, 184, 0, 0.35);
    box-shadow: 0 10px 24px rgba(22, 30, 45, 0.08);
}

.career-item__title {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.4;
}

.career-item__title a {
    color: #161e2d;
}

.career-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.career-item__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
}

.career-item__meta-item .ti {
    color: var(--primary-color);
}

.career-item__description {
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.6;
}

.career-item__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

.flat-career-detail__title {
    margin-bottom: 16px;
}

.flat-career-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.flat-career-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flat-career-detail__meta .ti {
    color: var(--primary-color);
}

.flat-career-detail__lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

.flat-career-detail__content {
    color: #161e2d;
    line-height: 1.8;
}

.career-sidebar {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 24px;
}

.career-sidebar__title {
    margin-bottom: 16px;
}

.career-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.career-sidebar__link {
    display: block;
    color: #161e2d;
    font-weight: 600;
    margin-bottom: 4px;
}

.career-sidebar__location {
    display: block;
    color: #6c757d;
    font-size: 13px;
}

/* Properties listing: search + map + results */

.properties-listing-half-map,
.properties-listing-list,
.properties-listing-top-map {
    background: #f7f7f7;
}

.properties-listing-half-map__search,
.properties-listing-list__search {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.properties-listing-half-map__search .property-search-form-wrap,
.properties-listing-list__search .property-search-form-wrap {
    margin: 0;
}

.box-title-listing .title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #161e2d;
}

.box-title-listing .btn-group .btn {
    min-width: 72px;
}

/* Half-map: list left, map right (theme flex layout) */
.properties-listing-half-map__split.wrapper-layout.layout-2 {
    display: flex;
    flex-wrap: nowrap;
    background: #fff;
}

.properties-listing-half-map__split .wrap-left {
    width: 47.4%;
    height: calc(100vh - 12.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 28px 32px;
    background: #fff;
    border-right: 1px solid #ececec;
}

.properties-listing-half-map__split .wrap-right {
    width: 52.6%;
    height: calc(100vh - 12.5rem);
    position: sticky;
    top: 0;
    background: #e9ecef;
}

.properties-listing-half-map__split .properties-map {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.properties-listing-half-map__items {
    position: relative;
    padding-bottom: 16px;
}

.properties-listing-half-map__items .wd-navigation {
    margin-top: 24px;
}

.properties-listing-half-map .homeya-box {
    height: 100%;
}

.properties-listing-half-map .homeya-box .images-style img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.properties-listing-list__results {
    padding-top: 32px;
    padding-bottom: 48px;
}

/* Top-map: search over map */
.properties-listing-top-map .flat-map--top {
    position: relative;
    min-height: 440px;
}

.properties-listing-top-map .flat-map--top .properties-map {
    position: absolute;
    inset: 0;
    min-height: 440px;
    z-index: 1;
}

.properties-listing-top-map .flat-map--top .container {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.properties-listing-top-map__search {
    pointer-events: auto;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 12px 32px rgba(22, 30, 45, 0.14);
}

.properties-map {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.leaflet-container {
    font-family: inherit;
}

.boxmarker {
    background: var(--primary-color);
    color: #161e2d;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.map-listing-item {
    min-width: 260px;
}

.map-listing-item .image-box {
    position: relative;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.map-listing-item .image-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.map-listing-item .title a {
    color: #161e2d;
    font-weight: 600;
}

.map-listing-item .price {
    color: var(--primary-color);
    font-weight: 700;
    margin: 8px 0;
}

.map-listing-item .list-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

.map-listing-item .location {
    color: #6c757d;
    font-size: 13px;
}

@media (max-width: 991px) {
    .properties-listing-half-map__split.wrapper-layout.layout-2 {
        flex-direction: column;
    }

    .properties-listing-half-map__split .wrap-right {
        order: -1;
        width: 100% !important;
        height: 340px !important;
        position: relative;
    }

    .properties-listing-half-map__split .wrap-left {
        width: 100% !important;
        height: auto !important;
        max-height: none;
        border-right: 0;
        border-top: 1px solid #ececec;
    }

    .properties-listing-half-map__search,
    .properties-listing-list__search {
        padding: 16px 0;
    }
}
