/*
 * HuaHin MM Group — visual refresh, stage 2.
 * This file is deliberately isolated: remove its link from main.php to roll back.
 */

:root {
    --mm-orange: #d97822;
    --mm-orange-dark: #b95f16;
    --mm-blue: #149bd5;
    --mm-ink: #20262d;
    --mm-muted: #6e7781;
    --mm-line: #e8ebee;
    --mm-soft: #f6f7f8;
    --mm-white: #ffffff;
    --mm-radius: 16px;
    --mm-shadow: 0 14px 40px rgba(28, 36, 44, 0.08);
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea,
.select-item,
.select select,
.input input,
.textarea textarea {
    font-family: "Manrope", Arial, sans-serif;
}

body {
    color: var(--mm-ink);
    padding-top: 82px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap {
    padding: 72px 0;
}

.title-h,
.title,
.product-price,
.contacts-text,
.social {
    font-family: "Manrope", Arial, sans-serif;
}

.title-h {
    margin-bottom: 42px;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.035em;
    text-transform: none;
    font-weight: 800;
}

.title-h:before {
    display: none;
}

.title {
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Buttons */

.button,
.filter-button {
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--mm-orange);
    box-shadow: 0 8px 22px rgba(185, 95, 22, 0.22);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button:hover,
.filter-button:hover {
    background: var(--mm-orange-dark);
    box-shadow: 0 10px 24px rgba(185, 95, 22, 0.25);
    transform: translateY(-1px);
}

.button:active,
.filter-button:active {
    box-shadow: 0 4px 12px rgba(185, 95, 22, 0.2);
    transform: translateY(0);
}

.button-big {
    padding: 18px 30px;
    font-size: 17px;
}

.button-on-background {
    box-shadow: 0 12px 30px rgba(84, 41, 8, 0.3);
}

/* Header */

header > div {
    border-bottom-color: rgba(255, 255, 255, 0.24);
}

header .wrap-cont {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 11px 15px;
}

header .logo {
    flex: 0 0 250px;
    width: 250px;
    height: 56px;
    float: none;
    background-position: 0 50%;
    background-size: contain;
}

header .header-right {
    height: 56px;
    float: none;
}

.header-menu-wrap {
    order: 2;
    margin-left: auto;
}

.header-contacts {
    order: 3;
    padding-left: 18px;
}

.wrap-lang {
    order: 4;
    padding-left: 22px;
}

.menu-mobile {
    order: 5;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 0 0 18px;
    background-position: 50% 50%;
    background-size: 34px auto;
    border-radius: 10px;
}

.header-messengers {
    order: 3;
}

.menu li {
    margin-right: 22px;
    font-size: 13px;
    font-weight: 600;
    line-height: 56px;
}

.menu li.active:after {
    top: -22px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--mm-orange);
}

.switch-lang {
    line-height: 56px;
    font-weight: 700;
}

.header-page {
    box-shadow: 0 6px 22px rgba(26, 31, 36, 0.08);
}

/* Home hero */

.home-hero {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 700px;
    margin-top: -82px;
    padding: 170px 0 100px;
    overflow: hidden;
}

.home-hero:after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 91, 139, 0.04) 0%, rgba(5, 91, 139, 0.08) 55%, rgba(8, 64, 96, 0.16) 100%);
}

.home-hero .main-bg {
    inset: 0;
    width: auto;
    height: auto;
    padding: 0;
    background-position: 50% 50%;
    background-size: cover;
    transform: scale(1.01);
}

.home-hero .wrap-cont {
    z-index: 1;
    width: 100%;
}

.home-hero h1,
.home-hero h1 span {
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: none;
}

.home-hero h1 {
    max-width: 970px;
    margin: 0 auto;
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.25;
}

.home-hero h1 span {
    margin-top: 8px;
    font-size: clamp(52px, 7vw, 86px);
    line-height: 1;
}

.home-hero p {
    max-width: 800px;
    margin: 24px auto 0;
    font-size: 19px;
    line-height: 1.55;
}

.home-hero .button {
    margin-top: 36px;
}

.home-book {
    padding: 34px 0 !important;
    background: var(--mm-white);
}

.home-book img {
    display: block;
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
}

.home-content > .wrap:first-child {
    padding-top: 42px;
}

/* Home advantages */

.home-usps {
    max-width: 1200px;
    padding: 0;
}

.home-usps .column {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.home-usps .column > div {
    width: auto;
    padding: 0;
}

.home-usps .utp {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
    min-height: 116px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--mm-line);
    border-radius: 14px;
    background: var(--mm-white);
}

.home-usps .utp-img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin: 0;
    float: none;
    box-shadow: none;
}

.home-usps .utp-content {
    height: auto;
    min-height: 0;
    padding-left: 15px;
    font-size: 14px;
    font-weight: 600;
}

.home-usps .utp .td {
    line-height: 1.5;
}

.home-catalog {
    margin-top: 54px;
}

.home-catalog .catalog-bg {
    display: none;
}

.home-catalog + div {
    margin-top: 0;
}

.home-points .title-h {
    margin-bottom: 42px;
    text-align: center;
}

.home-points .column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.home-points .column > div {
    width: auto;
    padding: 0;
}

.home-points .point {
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: var(--mm-white);
}

.home-points .point-name {
    height: 90px;
    margin: 0 0 18px;
    padding: 0 0 0 108px;
    background-position: 0 50%;
    background-size: 82px auto;
}

.home-points .point-wave {
    height: 100%;
    padding: 0;
    background: none;
    font-size: 18px;
    line-height: 1.4;
}

.home-points .point-content p {
    color: var(--mm-muted);
    line-height: 1.65;
}

.home-points .point .button {
    margin-top: 20px;
    padding: 12px 18px;
    border: 1px solid rgba(217, 120, 34, 0.36);
    color: var(--mm-orange-dark);
    background: transparent;
    box-shadow: none;
}

.home-points .point .button:hover {
    color: #fff;
    background: var(--mm-orange);
}

/* Catalog heading and filter */

.catalog-page {
    padding-top: 0;
}

.catalog-page .page-title {
    margin-top: 0;
    padding: 54px 0;
    background-size: cover;
    background-position: 50% 42%;
}

.catalog-page .page-title:after {
    opacity: .56;
    background: #13202b;
}

.catalog-page .page-title .title {
    margin-bottom: 14px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
}

.catalog-page .filter {
    margin: 28px 0 14px;
    padding: 0 15px;
    border: 0;
}

.catalog-page .filter .wrap-cont {
    box-sizing: border-box;
    max-width: 1140px;
    padding: 20px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: var(--mm-white);
    box-shadow: var(--mm-shadow);
}

.filter-mobile-title {
    display: none;
}

.catalog-filter-form .filter-row {
    display: grid;
    align-items: stretch;
    gap: 12px;
}

.catalog-filter-form .filter-row-main {
    grid-template-columns: 1.08fr 1fr 2fr;
}

.catalog-filter-form .filter-row-details {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 4fr);
    margin-top: 12px;
}

.catalog-filter-form .filter-details-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr minmax(150px, .9fr) 42px;
    gap: 12px;
}

.catalog-filter-form .filter-section,
.catalog-filter-form .filter-left,
.catalog-filter-form .filter-right,
.catalog-filter-form .filter-wide {
    box-sizing: border-box;
    width: auto;
    margin: 0;
    padding: 0 !important;
    float: none;
    text-align: left;
}

.catalog-filter-form .clear {
    display: none;
}

.catalog-filter-form .filter-section .select,
.catalog-filter-form .filter-section .select-item,
.catalog-filter-form .filter-section .input,
.catalog-filter-form .filter-section .button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.catalog-filter-form .select,
.catalog-filter-form .select-item,
.catalog-filter-form .input input {
    min-height: 54px;
    border: 1px solid var(--mm-line);
    border-radius: 10px;
    background-color: #f8f9fa;
}

.catalog-filter-form .select select,
.catalog-filter-form .select-item,
.catalog-filter-form .input input {
    font-size: 14px;
}

.catalog-filter-form .select select,
.catalog-filter-form .select-item-selected,
.catalog-filter-form .filter-section .input input {
    padding: 17px 38px 17px 14px;
}

.catalog-filter-form .select-item ul {
    z-index: 10;
    margin-top: 6px;
    border: 1px solid var(--mm-line);
    border-radius: 10px;
    box-shadow: var(--mm-shadow);
}

.catalog-filter-form .filter-left {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px !important;
    border: 1px solid var(--mm-line);
    border-radius: 10px;
    background: #f8f9fa;
}

.catalog-filter-form .filter-left > label {
    display: flex;
    align-items: center;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.catalog-filter-form .checkbox {
    flex: 0 0 19px;
    margin-right: 8px;
}

.catalog-filter-form .filter-section .placeholder {
    top: 4px;
    left: 14px;
    font-size: 10px;
}

.catalog-filter-form .filter-section .button {
    min-height: 54px;
    padding: 17px 15px;
}

.catalog-filter-form .filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-filter-form .filter-reset > div {
    width: 42px;
    height: 54px;
    border: 1px solid var(--mm-line);
    border-radius: 10px;
    background-color: #fff;
    background-size: 18px auto;
}

.catalog-page .catalog-full {
    margin-top: 22px;
}

.catalog-page .catalog-more {
    max-width: 320px;
    margin: 40px auto 0;
    padding: 16px 22px;
    border: 1px solid var(--mm-line);
    border-radius: 12px;
    background: var(--mm-white);
    font-weight: 700;
}

/* Card actions */

.product-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    border-top: 1px solid var(--mm-line);
}

.product-actions .product-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 54px;
    padding: 13px 12px;
    border-top: 0;
    background: var(--mm-white);
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.product-actions .product-footer + .product-footer {
    border-left: 1px solid var(--mm-line);
}

.product-actions .product-footer-dates {
    color: #fff;
    background: var(--mm-orange);
}

.product-actions .product-footer-dates:hover {
    color: #fff;
    background: var(--mm-orange-dark);
}

.product-actions .product-footer-dates:after {
    display: none;
}

.bed-label-short {
    display: none;
}

/* Tablet navigation and mobile filter */

@media screen and (max-width: 1229px) {
    .header-menu-wrap {
        width: 0;
        height: 0 !important;
        margin-left: auto;
    }

    header .menu ul {
        width: min(88vw, 360px);
        padding: 58px 30px 30px;
        box-shadow: -18px 0 50px rgba(22, 28, 34, .15);
    }

    header .menu ul li {
        padding: 12px 0;
        font-size: 15px;
    }

    header .menu .close-menu {
        right: min(91vw, 375px);
    }
}

@media screen and (max-width: 1139px) {
    .catalog-page .filter {
        position: fixed;
        z-index: 100;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: rgba(19, 27, 34, .42);
        backdrop-filter: blur(3px);
    }

    .catalog-page .filter .wrap-cont {
        width: min(92vw, 440px);
        height: 100%;
        margin: 0;
        padding: 28px 22px 36px;
        overflow: auto;
        border: 0;
        border-radius: 0 20px 20px 0;
        box-shadow: 18px 0 50px rgba(22, 28, 34, .18);
    }

    .catalog-page .filter-close {
        top: 21px;
        right: calc(100% - min(92vw, 440px) + 18px);
        left: auto;
        z-index: 2;
    }

    .filter-mobile-title {
        display: block;
        margin: 0 44px 24px 0;
        font-size: 23px;
        font-weight: 800;
        letter-spacing: -0.025em;
        text-align: left;
    }

    .catalog-filter-form .filter-row,
    .catalog-filter-form .filter-details-group {
        display: block !important;
        margin: 0;
    }

    .catalog-filter-form .filter-section,
    .catalog-filter-form .filter-left,
    .catalog-filter-form .filter-right,
    .catalog-filter-form .filter-wide {
        width: 100%;
        margin-bottom: 11px;
        padding: 0 !important;
    }

    .catalog-filter-form .filter-left {
        padding: 10px 12px !important;
    }

    .catalog-filter-form .filter-bedrooms .select-item {
        min-height: 0;
        border: 0;
        background: transparent;
    }

    .catalog-filter-form .filter-bedrooms .select-item:after {
        display: none;
    }

    .catalog-filter-form .filter-bedrooms .select-item-selected {
        height: auto;
        padding: 0 0 9px;
        color: var(--mm-muted);
        font-size: 12px;
        font-weight: 700;
        cursor: default;
    }

    .catalog-filter-form .filter-bedrooms .select-item ul {
        position: static;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        width: auto;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .catalog-filter-form .filter-bedrooms .select-item li {
        padding: 0;
    }

    .catalog-filter-form .filter-bedrooms .select-item label {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 7px 5px;
        border: 1px solid var(--mm-line);
        border-radius: 9px;
        background: #f8f9fa;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .catalog-filter-form .filter-bedrooms .checkbox {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
        margin: 0 6px 0 0;
    }

    .catalog-filter-form .filter-bedrooms .bed-label-short {
        display: inline;
    }

    .catalog-filter-form .filter-bedrooms .bed-label-full {
        display: none;
    }

    .catalog-filter-form .filter-reset > div {
        width: 100%;
        height: auto;
        padding: 10px;
        border: 0;
        background: none;
        text-align: center;
    }

    .catalog-filter-form .filter-reset span {
        display: inline;
        color: var(--mm-muted);
        font-size: 14px;
        text-decoration: none;
    }

    .catalog-page .filter-button {
        display: block;
        max-width: 340px;
        margin: 24px auto 12px;
        padding: 16px 25px;
    }
}

@media screen and (max-width: 979px) {
    .home-usps .column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-usps .utp {
        max-width: none;
    }

    .home-points .point {
        max-width: none;
        text-align: left;
    }

    .home-points .point-name {
        padding-left: 100px;
        background-position: 0 50%;
    }

    .home-points .point-wave {
        padding: 0;
        text-align: left;
    }

    .home-points .point-wave .td span:after {
        display: none;
    }

    .home-catalog {
        margin-top: 44px;
    }
}

@media screen and (max-width: 710px) {
    body {
        padding-top: 74px;
    }

    header {
        background: transparent;
        box-shadow: none;
        transition: background-color .22s ease, box-shadow .22s ease;
    }

    header.header-page {
        background: #fff;
        box-shadow: 0 5px 20px rgba(25, 31, 37, .1);
    }

    header > div {
        border-bottom: 0;
    }

    header .wrap-cont {
        min-height: 56px;
        padding: 9px 14px;
    }

    header .logo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        background-image: url(/img/logo-white.svg);
        background-position: 0 50%;
        background-size: auto 100%;
    }

    header.header-page .logo {
        background-image: url(/img/logo-orange-head.svg);
        background-position: 0 50%;
        background-size: auto 100%;
    }

    .header-messengers {
        display: block !important;
        height: 38px !important;
    }

    .header-messengers .messengers {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .header-messengers .messengers a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        box-sizing: border-box;
        border-radius: 50%;
        background: rgba(255, 255, 255, .94);
    }

    .header-messengers .messengers svg {
        display: block;
        width: 29px;
        height: 29px;
    }

    .header-messengers .telegram svg {
        fill: var(--mm-blue);
    }

    .header-messengers .whatsapp svg {
        fill: #18b968;
    }

    .wrap-lang {
        height: 40px !important;
        padding-left: 12px;
    }

    .switch-lang {
        line-height: 40px;
    }

    .switch-lang a {
        color: rgba(255, 255, 255, .78);
        font-size: 14px;
    }

    .header-page .switch-lang a {
        color: #aeb4ba;
    }

    .menu-mobile {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        margin-left: 10px;
        background-color: rgba(3, 50, 78, .16);
        background-image: url(/img/menu-mobile.svg);
        background-position: 50% 50%;
        background-size: 28px auto;
    }

    .header-page .menu-mobile {
        background-color: #fff7ef;
        background-image: url(/img/menu-mobile-orange.svg);
    }

    .home-hero {
        min-height: 600px;
        margin-top: -74px;
        padding: 150px 0 76px;
    }

    .home-hero .main-bg {
        height: auto;
        background-position: 56% 50%;
        background-size: cover;
    }

    .home-hero h1 {
        max-width: 540px;
        font-size: 20px;
        line-height: 1.28;
    }

    .home-hero h1 span {
        margin-top: 8px;
        font-size: clamp(38px, 12vw, 58px);
    }

    .home-hero p {
        max-width: 520px;
        margin-top: 20px;
        font-size: 16px;
    }

    .home-hero .button {
        margin-top: 30px;
    }

    .home-book {
        padding: 20px 0 !important;
    }

    .home-book img {
        border-radius: 12px;
    }

    .home-content > .wrap:first-child {
        padding-top: 30px;
    }

    .home-usps .column,
    .home-points .column {
        grid-template-columns: 1fr;
    }

    .home-usps .column {
        gap: 10px;
    }

    .home-usps .utp {
        min-height: 92px;
        padding: 16px;
        text-align: left;
    }

    .home-usps .utp-img {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        margin: 0;
    }

    .home-usps .utp-content {
        padding-left: 14px;
        text-align: left;
    }

    .home-points .column {
        gap: 14px;
    }

    .home-points .point {
        padding: 20px;
    }

    .catalog-page .page-title {
        padding: 38px 0;
    }

    .catalog-page .page-title .title {
        font-size: 28px;
    }

    .catalog-page .catalog {
        margin-top: 22px;
    }
}

@media screen and (max-width: 567px) {
    .wrap {
        padding: 50px 0;
    }

    .title-h,
    .bonus .title-h,
    .form-box .title-h {
        margin-bottom: 30px;
        font-size: 27px;
    }

    .button,
    .button-big {
        padding: 15px 22px;
        font-size: 15px;
    }

    .home-hero {
        min-height: 560px;
        padding: 138px 0 64px;
    }

    .home-hero h1 {
        font-size: 17px;
    }

    .home-hero h1 span {
        font-size: 38px;
    }

    .home-hero p {
        font-size: 14px;
    }

    .home-hero .button {
        display: block;
        width: 100%;
        max-width: 310px;
        margin: 26px auto 0;
    }

    .home-catalog {
        margin-top: 34px;
    }

    .home-catalog > div[style] {
        margin-top: 36px !important;
    }

    .home-points .point-name {
        height: 74px;
        padding-left: 82px;
        background-size: 66px auto;
    }

    .home-points .point-wave {
        font-size: 16px;
    }

    .catalog-page .page-title {
        padding: 30px 0;
    }

    .catalog-page .page-title .title {
        margin-bottom: 10px;
        font-size: 24px;
    }

    .catalog-page .breadcrumbs {
        font-size: 12px;
    }

    .catalog-page > .wrap-cont {
        padding: 0 10px;
    }

    .catalog-page .filter-button {
        width: 100%;
        max-width: none;
        margin: 18px 0 10px;
    }

    .product-actions .product-footer {
        min-height: 52px;
        padding: 12px 8px;
        font-size: 12px;
    }
}
