/* Shared overrides load after page themes so breakpoints remain consistent. */
.line { width: 100%; }
main img, main video { max-width: 100%; }
.contact-row .form-group, .gallery-item { min-width: 0; }
footer #newsletter p { overflow-wrap: anywhere; }
.testimonial-slider .card { height: auto; min-height: 460px; }
.gallery-title { padding-inline: 20px; }
.hero h1 { overflow-wrap: break-word; }

@media (max-width: 1199px) and (min-width: 992px) {
    .submenu_version .main-menu ul li a { font-size: 11px; padding-inline: 5px; }
    .brand-wrapper .brand-title { width: 135px; }
    .logo-text img { width: 135px; }
}

@media (max-width: 991px) {
    .menu_v4 .main-menu { width: min(350px, 100vw); }
    .menu_v4 .main-menu #mainNav ul li a { min-height: 44px; }
    .hamburger_2 { min-width: 44px; min-height: 44px; }
    .brand-wrapper .brand-symbol { width: 60px; height: 75px; margin: 0; }
    .brand-wrapper .brand-title { width: 140px; margin-left: -5px; }
    .about-label-custom { margin-bottom: 12px; }
    .second-about-custom { margin-top: 45px; margin-bottom: 60px; }
    .box_item_info { max-width: 100%; }
    .hero.full-height { min-height: 480px; height: 100svh; }
    .hero.medium-height, .hero.small-height { min-height: 380px; }
}

@media (max-width: 767px) {
    /* Show complete room photos at their natural proportions on mobile. */
    .rooms-page .row_list_version_1 .pinned-image {
        display: block;
        height: auto;
    }
    .rooms-page .row_list_version_1 .pinned-image__container {
        position: relative;
        height: auto;
        transform: none !important; /* Override the scroll animation's inline scale. */
    }
    .rooms-page .row_list_version_1 .pinned-image__container img {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .rooms-page .row_list_version_1 .box_item_info {
        position: relative;
        z-index: 1;
        margin: -40px 12px 0;
        transform: none !important;
    }
    .hero.full-height { height: 87svh; min-height: 440px; }
    .hero h1, .restaurant-dark-page h1, .gallery-title .title-h1 {
        font-size: clamp(28px, 7vw, 46px) !important;
        line-height: 1.2;
    }
    .title h2, .about-heading-custom h2, .about-heading-custom-right h2 {
        font-size: clamp(26px, 6vw, 34px);
    }
    .about-section-custom { padding-block: 48px; }
    .margin_120_95 { padding-block: 55px 35px; }
    .contact-card input, .contact-card textarea { font-size: 16px; }
    .testimonial-slider .card { min-height: 0; padding: 32px 40px; }
    .testimonial-slider .quote-text { font-size: 16px; }
    .slider-arrow { width: 44px; height: 44px; }
    .slider-arrow.prev { left: 0; }
    .slider-arrow.next { right: 0; }
    .hotel-gallery { padding: 24px 12px; }
    .gallery-group, .gallery-group:nth-child(even) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 220px;
        grid-auto-rows: 160px;
        height: auto;
    }
    .gallery-group .gallery-item-large, .gallery-group:nth-child(even) .gallery-item-large {
        grid-column: 1 / -1; grid-row: 1;
    }
    .gallery-group .gallery-item-wide, .gallery-group:nth-child(even) .gallery-item-wide {
        grid-column: 1 / -1;
    }
    /* This page uses real tabs rather than the template's mobile accordion. */
    .restaurant-dark-page .tabs_menu .nav-tabs {
        display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px;
    }
    .restaurant-dark-page .tabs_menu .nav-link { height: auto; min-height: 44px; padding: 10px 12px; }
    .restaurant-dark-page .tabs_menu .tab-content .tab-pane { display: none !important; }
    .restaurant-dark-page .tabs_menu .tab-content .tab-pane.active { display: block !important; }
    .restaurant-dark-page .tabs_menu .restaurant-card .card-body { padding: 20px 12px; }
    .restaurant-dark-page .banner .wrapper { flex-wrap: wrap; padding: 20px; }
    .restaurant-dark-page .menu_title { display: flex; align-items: baseline; gap: 8px; background: none; }
    .restaurant-dark-page .menu_title h3 { flex: 1; min-width: 0; font-size: 16px; }
    .restaurant-dark-page .menu_title em { float: none; flex-shrink: 0; }
    footer.hotel-footer .move_content > div:first-child { height: 55px !important; }
    footer.hotel-footer .oh-logo { width: 100px; height: auto; }
    footer.hotel-footer { font-size: 16px; }
    footer.hotel-footer .social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}

@media (max-width: 480px) {
    .brand-wrapper .brand-symbol { width: 48px; height: 64px; }
    .brand-wrapper .brand-title { width: 115px; }
    .logo-text img { width: 115px; }
    .logo-text { margin-left: 50px; }
    .logo-main { left: -10px; }
    .logo-main img { width: 70px; }
    .gallery-group, .gallery-group:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 230px; grid-auto-rows: 190px;
    }
    .gallery-group .gallery-item, .gallery-group:nth-child(even) .gallery-item { grid-column: 1; }
    .restaurant-dark-page .menu_item { padding-left: 70px; }
    .restaurant-dark-page .menu_item figure, .restaurant-dark-page .menu_item figure img { width: 60px; height: 60px; }
    .restaurant-dark-page .list-unstyled li { gap: 12px; }
}

@media (max-height: 500px) and (max-width: 991px) and (orientation: landscape) {
    .hero.full-height { height: auto; min-height: 440px; }
}
