/* =========================================================
   ROOMERA RESPONSIVE FIXES
   ========================================================= */

/* base */
html,
body {
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.ht-container {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e8e3da;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    min-width: 0;
}

.brand {
    flex: 0 0 auto;
    min-width: 0;
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    list-style: none;
}

.main-menu a {
    color: #24384c;
    text-decoration: none;
    white-space: nowrap;
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #24384c;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone span {
    white-space: nowrap;
}

.header-price {
    white-space: nowrap;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: #f7f3eb;
    border: 1px solid #e4dccd;
    border-radius: 12px;
    color: #24384c;
    cursor: pointer;
}

/* large desktop */
@media (max-width: 1440px) {
    .header-inner {
        gap: 20px;
    }

    .main-menu {
        gap: 20px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-price {
        padding-inline: 20px;
    }
}

/* desktop / laptop */
@media (max-width: 1260px) {
    .header-inner {
        gap: 16px;
    }

    .main-menu {
        gap: 16px;
    }

    .main-menu a {
        font-size: 15px;
    }

    .header-phone {
        font-size: 15px;
    }

    .header-price {
        font-size: 15px;
        padding-inline: 18px;
    }
}

/* tablet */
@media (max-width: 1080px) {
    .header-inner {
        min-height: 78px;
    }

    .main-menu {
        gap: 12px;
    }

    .main-menu a {
        font-size: 14px;
    }

    .header-phone {
        font-size: 14px;
    }

    .header-price {
        font-size: 14px;
        padding-inline: 16px;
    }
}

/* mobile menu full screen */
@media (max-width: 991px) {
    .header-inner {
        min-height: 84px;
        gap: 14px;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        padding: 110px 24px 24px;
        background: #fff;
        z-index: 1200;
        overflow-y: auto;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.28s ease;
    }

    body.menu-open .main-nav {
        transform: translateX(0);
    }

    .main-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .main-menu li {
        width: 100%;
        border-bottom: 1px solid #ece7df;
    }

    .main-menu a {
        display: block;
        width: 100%;
        padding: 18px 0;
        font-size: 18px;
        line-height: 1.3;
        white-space: normal;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        margin-left: auto;
        z-index: 1300;
    }

    .header-actions {
        position: fixed;
        left: 24px;
        right: 24px;
        bottom: 24px;
        z-index: 1250;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    body.menu-open .header-actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-phone {
        justify-content: center;
        font-size: 18px;
        padding: 6px 0;
    }

    .header-price {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .language-switcher {
        display: none;
    }
}

@media (max-width: 640px) {
    .ht-container {
        width: min(100% - 24px, 1280px);
    }

    .header-inner {
        min-height: 78px;
    }

    .brand {
        max-width: 165px;
    }

    .main-nav {
        padding: 96px 24px 24px;
    }

    .main-menu a {
        font-size: 17px;
        padding: 16px 0;
    }

    .header-phone {
        font-size: 16px;
    }

    .mobile-nav-toggle {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
}

/* =========================================================
   HERO
   ========================================================= */

@media (max-width: 1199px) {
    .hoteltex-hero,
    .roomera-hero,
    .hero-section {
        overflow: hidden;
    }

    .hoteltex-hero h1,
    .roomera-hero h1,
    .hero-section h1 {
        font-size: clamp(40px, 6vw, 74px);
        line-height: 1.04;
    }
}

@media (max-width: 991px) {
    .hoteltex-hero h1,
    .roomera-hero h1,
    .hero-section h1 {
        font-size: clamp(34px, 8vw, 56px);
    }

    .hoteltex-hero .hero-actions,
    .roomera-hero .hero-actions,
    .hero-section .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hoteltex-hero .hero-benefits,
    .roomera-hero .hero-benefits,
    .hero-section .hero-benefits {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .hoteltex-hero h1,
    .roomera-hero h1,
    .hero-section h1 {
        font-size: clamp(28px, 10vw, 42px);
        line-height: 1.08;
    }

    .hoteltex-hero .hero-benefits,
    .roomera-hero .hero-benefits,
    .hero-section .hero-benefits {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CARDS / CHIPS / TAGS
   size badges and color chips should wrap
   ========================================================= */

.product-sizes,
.product-colors,
.badge-list,
.chip-list,
.option-list,
.meta-chips,
.variant-chips,
.sizes-list,
.colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.product-sizes > *,
.product-colors > *,
.badge-list > *,
.chip-list > *,
.option-list > *,
.meta-chips > *,
.variant-chips > *,
.sizes-list > *,
.colors-list > * {
    white-space: nowrap;
}

/* card inner overflow protection */
.catalog-card,
.product-card,
.featured-product-card,
.assortment-card,
.category-card {
    min-width: 0;
}

.catalog-card h3,
.product-card h3,
.featured-product-card h3,
.assortment-card h3,
.category-card h3,
.catalog-card p,
.product-card p,
.featured-product-card p,
.assortment-card p,
.category-card p {
    overflow-wrap: anywhere;
}

/* =========================================================
   CTA / CONTACT SECTION
   ========================================================= */

:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) {
    overflow: hidden;
}

:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .ht-container,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-inner,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-inner {
    min-width: 0;
}

:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-form,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form {
    min-width: 0;
}

:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) input,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) textarea,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) select,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .alert,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .alert-danger,
:is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .alert-success {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

@media (min-width: 992px) {
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-inner,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-inner {
        display: grid;
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
        align-items: stretch;
        gap: 0;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-image,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-image {
        min-width: 0;
        overflow: hidden;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-image img,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-content,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-content {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
        padding: 40px 36px;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-copy,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-copy {
        min-width: 0;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) h2 {
        font-size: clamp(34px, 4vw, 60px);
        line-height: 1.04;
        overflow-wrap: anywhere;
        margin-bottom: 18px;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .alert,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .alert-danger,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .alert-success {
        grid-column: 1 / -1;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form textarea,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .full-width,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form button,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .form-check,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .btn,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form .contact-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-inner,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-inner {
        display: grid;
        grid-template-columns: 1fr;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-image,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-image {
        display: none;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-content,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 24px;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) h2 {
        font-size: clamp(28px, 6vw, 44px);
        line-height: 1.08;
        margin-bottom: 14px;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .cta-content,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-content {
        padding: 24px 18px;
    }

    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) h2 {
        font-size: clamp(24px, 9vw, 36px);
    }

    /* mobile: only name + phone */
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) input[name="company"],
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) input[name="email"],
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) textarea,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .form-check,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .contact-consent,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .company-field,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .email-field,
    :is(.roomera-cta, .hoteltex-cta, .roomera-contact, .contact-section, .cta-section) .message-field {
        display: none !important;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand,
.footer-links,
.footer-contact {
    min-width: 0;
}

.footer-links li,
.footer-contact li {
    overflow-wrap: anywhere;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials a {
    flex: 0 0 auto;
}

/* only instagram if link exists */
.footer-socials a:not([href*="instagram"]) {
    display: none;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* =========================================================
   SMALL GLOBAL FIXES
   ========================================================= */

@media (max-width: 991px) {
    .catalog-grid,
    .products-grid,
    .categories-grid,
    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .catalog-grid,
    .products-grid,
    .categories-grid,
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}