﻿/* HOANGHA BLOG - MOBILE  */

@media (max-width: 640px) {
    body {
        font-size: 14px;
        line-height: 1.65;
    }

    .container {
        width: calc(100% - 16px);
    }

    .top-ad {
        display: none;
    }

    .ad-wide img {
        height: 52px;
    }

    .page-bg {
        padding: 10px 0 20px;
        background: #f8fafc;
    }

    .main-layout {
        display: block;
    }

    .content-area {
        width: 100%;
    }

    .sidebar {
        display: none;
        margin-top: 14px;
    }

        .sidebar .widget,
        .sidebar .ad-side {
            margin-bottom: 12px;
        }

    .header-inner {
        min-height: auto;
        padding: 9px 0;
        grid-template-columns: 44px 1fr auto;
        gap: 8px;
    }

    .logo-image {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .hot-header {
        font-size: 12px;
        gap: 8px;
    }

    .header-actions {
        display: none;
        gap: 5px;
    }

    .social-icon {
        width: 29px;
        height: 29px;
    }

    .header-divider {
        display: none;
    }

    .login-link {
        font-size: 12px;
    }

    .search-box {
        grid-column: 1 / -1;
        height: 34px;
    }

    .ad-wide {
        height: 64px;
        font-size: 13px;
    }

    .ad-side {
        min-height: 120px;
        font-size: 16px;
    }

    .section-block {
        padding: 11px;
        margin-bottom: 12px;
        border-radius: 13px;
    }

    .section-title {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

        .section-title h1,
        .section-title h2 {
            font-size: 18px;
        }

        .section-title a {
            font-size: 12px;
        }

    .four-column {
        grid-template-columns: 1fr;
    }

    .category-hero {
        margin-bottom: 10px;
        padding: 13px;
        border-radius: 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

        .category-hero h1 {
            margin: 5px 0 3px;
            font-size: 19px;
        }

        .category-hero p {
            font-size: 12px;
            line-height: 1.45;
        }

    .breadcrumb {
        font-size: 11.5px;
    }

    .category-badge {
        min-width: auto;
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .category-tabs {
        margin-bottom: 10px;
        gap: 6px;
    }

        .category-tabs a {
            padding: 6px 10px;
            font-size: 11.5px;
        }

    .category-block {
        padding: 10px;
        border-radius: 14px;
    }

    .section-title.compact {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

        .section-title.compact h2 {
            font-size: 17px;
        }

        .section-title.compact span {
            font-size: 12px;
        }

    .category-body h3 {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .investor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .category-card,
    .investor-card {
        min-height: auto;
        gap: 9px;
        padding: 9px;
        border-radius: 12px;
    }

        .category-card .post-thumb {
            flex: 0 0 82px;
            width: 82px;
            height: 58px;
            border-radius: 10px;
        }

        .category-card .post-body span,
        .investor-info span {
            font-size: 10.5px;
            margin-bottom: 3px;
        }

        .category-card h3,
        .investor-info h3 {
            margin-bottom: 3px;
            font-size: 12px;
            line-height: 1.3;
        }

        .category-card p,
        .investor-info p {
            font-size: 11.5px;
            line-height: 1.35;
            -webkit-line-clamp: 2;
        }

    .investor-logo {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .clean-pager {
        margin-top: 15px;
        justify-content: flex-start;
        gap: 5px;
    }

        .clean-pager a,
        .clean-pager span {
            min-width: 29px;
            height: 29px;
            padding: 0 8px;
            border-radius: 8px;
            font-size: 12px;
        }

    .detail-content {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .detail-content,
    .detail-comments {
        padding: 14px;
        border-radius: 13px;
    }

        .detail-content h1 {
            font-size: 24px;
        }

    .post-meta {
        font-size: 12px;
    }

    .detail-content > img {
        max-height: 280px;
        border-radius: 12px;
    }

    #article-body {
        min-width: 0;
        max-width: 100%;
        font-size: 14.5px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

        #article-body > * {
            max-width: 100%;
        }

        #article-body h2 {
            font-size: 20px;
        }

        #article-body h3 {
            font-size: 17px;
        }

        #article-body pre,
        #article-body blockquote,
        #article-body table {
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        #article-body pre {
            white-space: pre;
        }

            #article-body pre code,
            #article-body blockquote code {
                display: block;
                min-width: max-content;
            }

        #article-body iframe,
        #article-body video {
            max-width: 100%;
        }

    .detail-comments-head {
        align-items: flex-start;
    }

    .comment-main-row {
        flex-direction: column;
        gap: 8px;
    }

    .comment-left {
        min-width: 0;
    }

    .comment-right {
        margin-left: 0;
        justify-content: flex-start;
        gap: 3px;
    }

    .comment-status-row {
        gap: 4px;
    }

    .comment-site-name {
        display: none;
    }

    .comment-reply {
        margin-left: 12px;
    }

    .feedback-grid,
    .comment-feedback-grid {
        grid-template-columns: 1fr;
    }

    .booking-popup-content {
        max-width: calc(100% - 24px);
        padding: 22px;
    }

        .booking-popup-content h2 {
            font-size: 22px;
        }

    .footer {
        padding-top: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        border-radius: 13px;
    }

    .brand-left b {
        font-size: 18px;
    }

    .brand-left span {
        font-size: 13px;
    }
    /*search*/
    .search-page .search-top {
        padding: 18px 0 14px;
        margin-bottom: 8px;
    }

    .search-page .search-title {
        font-size: 21px;
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .search-page .search-form {
        height: auto;
        min-height: 46px;
        border-radius: 16px;
        padding: 7px;
        gap: 7px;
        flex-wrap: wrap;
    }

    .search-page .search-icon {
        padding-left: 8px;
        font-size: 17px;
    }

    .search-page .search-input {
        height: 38px;
        font-size: 15px;
    }

    .search-page .search-button {
        width: 100%;
        height: 40px;
        border-radius: 12px;
    }

    .search-page .search-count {
        margin-top: 12px;
        font-size: 13.5px;
    }

    .search-page .search-result {
        gap: 12px;
        padding: 16px 0;
    }

    .search-page .result-url {
        font-size: 12px;
        line-height: 1.4;
    }

    .search-page .result-title {
        font-size: 17px;
        line-height: 1.38;
        margin-bottom: 5px;
    }

    .search-page .result-desc {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .search-page .result-meta {
        gap: 6px;
        margin-top: 8px;
    }

        .search-page .result-meta span {
            min-height: 21px;
            padding: 0 8px;
            font-size: 11.5px;
        }

    .search-page .result-thumb {
        flex: 0 0 76px;
        width: 76px;
        height: 64px;
        border-radius: 8px;
    }

    .search-page .search-result-mini {
        display: inline-flex;
        padding: 6px 6px 6px 0;
        margin: 0 6px 6px 0;
    }

    .search-page .mini-thumb {
        width: 58px;
        height: 58px;
        border-radius: 7px;
    }

    .search-page .search-empty {
        padding: 34px 15px;
    }

        .search-page .search-empty h2 {
            font-size: 20px;
        }

        .search-page .search-empty p {
            font-size: 14px;
        }

    .search-page .google-pagination {
        gap: 4px;
        margin: 22px 0 6px;
    }

        .search-page .google-pagination a,
        .search-page .google-pagination span {
            min-width: 31px;
            height: 31px;
            padding: 0 8px;
            font-size: 13px;
        }

        .search-page .google-pagination .page-nav {
            padding: 0 11px;
        }

    .hh-about-page {
        background: #f5f6f8;
    }

        .hh-about-page .container {
            padding-left: 10px;
            padding-right: 10px;
        }

    .hh-about-hero {
        padding: 14px 0 18px;
    }

    .hh-about-hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hh-about-hero-content,
    .hh-about-hero-card,
    .hh-why-box,
    .hh-value-card,
    .hh-topics-box,
    .hh-author-card,
    .hh-cta-box,
    .hh-purpose-left,
    .hh-purpose-list {
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    }

    .hh-about-hero-content {
        padding: 14px;
    }

    .hh-about-badge,
    .hh-section-heading span,
    .hh-purpose-left span,
    .hh-topics-title span,
    .hh-author-info span {
        font-size: 10px;
        padding: 4px 8px;
    }

    .hh-about-hero h1 {
        font-size: 20px;
        line-height: 1.25;
        margin: 10px 0 8px;
    }

    .hh-about-hero p {
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
    }

    .hh-about-actions {
        margin-top: 12px;
        gap: 7px;
        flex-direction: column;
    }

    .hh-btn {
        width: 100%;
        height: 36px;
        font-size: 12px;
        padding: 0 12px;
    }

    .hh-about-reactions {
        margin-top: 10px;
        gap: 6px;
    }

        .hh-about-reactions button {
            height: 28px;
            font-size: 11px;
            padding: 0 8px;
        }

    .hh-about-hero-card {
        padding: 12px;
    }

    .hh-card-top {
        gap: 10px;
        margin-bottom: 8px;
    }

        .hh-card-top img {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            padding: 5px;
        }

        .hh-card-top h2 {
            font-size: 16px;
            margin-bottom: 2px;
        }

        .hh-card-top p {
            font-size: 11px;
        }

    .hh-about-hero-card li {
        font-size: 11.5px;
        line-height: 1.45;
        padding: 8px 0 8px 22px;
    }

        .hh-about-hero-card li::before {
            top: 8px;
            width: 16px;
            height: 16px;
            line-height: 16px;
            font-size: 10px;
        }

    .hh-about-section {
        padding: 18px 0;
    }

    .hh-section-heading {
        text-align: left;
        margin-bottom: 12px;
    }

        .hh-section-heading h2 {
            font-size: 20px;
            line-height: 1.25;
            margin: 10px 0 6px;
        }

        .hh-section-heading p {
            font-size: 12px;
            line-height: 1.55;
        }

    .hh-why-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hh-why-box {
        padding: 12px;
    }

    .hh-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .hh-why-box h3,
    .hh-value-card h3,
    .hh-purpose-list h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .hh-why-box p,
    .hh-value-card p,
    .hh-purpose-list p {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .hh-about-purpose {
        padding: 18px 0;
    }

    .hh-purpose-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hh-purpose-left,
    .hh-purpose-list {
        padding: 12px;
    }

        .hh-purpose-left h2 {
            font-size: 19px;
            line-height: 1.25;
            margin: 10px 0 6px;
        }

        .hh-purpose-left p {
            font-size: 12px;
            line-height: 1.55;
        }

    .hh-purpose-note {
        margin-top: 10px;
        padding: 10px;
        font-size: 11.5px;
        line-height: 1.45;
        border-radius: 10px;
    }

    .hh-purpose-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

        .hh-purpose-list div {
            padding: 11px;
            border-radius: 10px;
        }

    .hh-value-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hh-value-card {
        padding: 11px;
        min-height: auto;
    }

    .hh-about-topics {
        padding: 0 0 18px;
    }

    .hh-topics-box {
        padding: 12px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hh-topics-title h2 {
        font-size: 19px;
        line-height: 1.25;
        margin-top: 8px;
    }

    .hh-topic-tags {
        gap: 6px;
    }

        .hh-topic-tags a {
            height: 27px;
            font-size: 10.5px;
            padding: 0 8px;
        }

    .hh-about-author {
        padding: 0 0 18px;
    }

    .hh-author-card {
        padding: 12px;
        grid-template-columns: 54px 1fr;
        gap: 10px;
        align-items: start;
    }

    .hh-author-avatar img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        padding: 6px;
    }

    .hh-author-info h2 {
        font-size: 18px;
        line-height: 1.25;
        margin: 8px 0 6px;
    }

    .hh-author-info > p {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .hh-author-meta {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 8px;
    }

        .hh-author-meta div {
            padding: 9px;
            border-radius: 9px;
        }

        .hh-author-meta strong {
            font-size: 11px;
        }

        .hh-author-meta p {
            font-size: 11px;
        }

    .hh-about-cta {
        padding: 0 0 18px;
    }

    .hh-cta-box {
        padding: 14px;
        text-align: center;
    }

        .hh-cta-box h2 {
            font-size: 18px;
            line-height: 1.3;
            margin-bottom: 6px;
        }

        .hh-cta-box p {
            font-size: 11.5px;
            line-height: 1.45;
        }

        .hh-cta-box .hh-about-actions {
            margin-top: 10px;
        }

    .property-hero-full {
        min-height: 520px;
    }

    .property-hero-inner {
        padding-top: 14px;
    }

    .property-breadcrumb {
        font-size: 11px;
        gap: 6px;
    }

    .property-hero-content {
        padding-top: 88px;
    }

    .property-kicker {
        font-size: 11px;
        padding: 6px 10px;
    }

    .property-hero-content h1 {
        font-size: 32px;
        line-height: 1.12;
        letter-spacing: -.8px;
    }

    .property-hero-content p {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .property-hero-meta {
        gap: 6px;
        margin-top: 16px;
    }

        .property-hero-meta span {
            padding: 6px 9px;
            font-size: 11px;
        }

    .property-hero-actions {
        gap: 8px;
        margin-top: 20px;
    }

        .property-hero-actions a {
            flex: 1;
            height: 40px;
            padding: 0 10px;
            font-size: 12px;
        }

    .property-sticky-nav {
        top: 0;
    }

        .property-sticky-nav .container {
            width: calc(100% - 12px);
            padding-top: 8px;
            padding-bottom: 8px;
        }

        .property-sticky-nav a {
            padding: 7px 10px;
            font-size: 11px;
        }

    .property-glance {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: -28px;
    }

        .property-glance div {
            padding: 12px;
            border-radius: 14px;
        }

        .property-glance span {
            font-size: 11px;
        }

        .property-glance b {
            font-size: 13px;
        }

    .property-gallery-show {
        padding-top: 34px;
    }

    .property-section-title {
        margin-bottom: 14px;
    }

        .property-section-title h2 {
            font-size: 23px;
        }

        .property-section-title p {
            font-size: 13px;
        }

    .property-gallery-motion {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 120px;
        gap: 8px;
    }

        .property-gallery-motion .gallery-big {
            grid-column: span 2;
            grid-row: span 2;
        }

        .property-gallery-motion a {
            border-radius: 14px;
        }

    .property-overview-block {
        padding-top: 28px;
    }

    .property-overview-card {
        padding: 14px;
        border-radius: 16px;
    }

        .property-overview-card h2,
        .property-feature-text h2,
        .property-booking-inner h2 {
            font-size: 22px;
        }

    .property-zigzag {
        padding-top: 22px;
        gap: 12px;
    }

    .property-feature-row,
    .property-feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }

        .property-feature-row.reverse .property-feature-img {
            order: 0;
        }

    .property-feature-img {
        position: static;
        top: auto;
        align-self: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 13px;
    }

    .property-feature-text {
        padding: 3px 4px 5px;
    }

    .property-rich-content {
        font-size: 14px;
        line-height: 1.68;
    }

        .property-rich-content h2 {
            font-size: 20px;
        }

        .property-rich-content h3 {
            font-size: 18px;
        }

    .property-booking-wide {
        margin-top: 34px;
        padding: 32px 0;
    }

    .property-booking-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .property-booking-form {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 16px;
    }

        .property-booking-form textarea,
        .property-booking-form button {
            grid-column: auto;
        }

    .post-suggestions-compact {
        margin-top: 18px;
    }

    .post-suggestions-shell {
        padding: 11px 10px 12px;
        border-radius: 12px;
    }

    .post-suggestions-head {
        padding-bottom: 7px;
    }

        .post-suggestions-head h2 {
            font-size: 16px;
        }

    .post-suggestions-columns,
    .post-suggestions-columns.single {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
        gap: 13px;
        padding-top: 10px;
    }

    .post-suggestions-label {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .post-suggestions-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

        .post-suggestions-list::-webkit-scrollbar {
            display: none;
        }

    .post-suggestion-item {
        flex: 0 0 238px;
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 8px;
        padding: 5px;
    }

        .post-suggestion-item img {
            width: 70px;
            height: 52px;
        }

        .post-suggestion-item h3 {
            font-size: 12.5px;
        }

    .property-comments {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .article-ad {
        margin: 14px 0;
        border-radius: 12px;
    }
    /* CLEAN FIX: MOBILE AD
       Mobile không dùng sticky vì sidebar đã xuống dưới bài viết.
       Nếu để sticky sẽ chiếm màn hình và gây khó đọc. */
    .ad-side.sticky-ad {
        position: static;
        top: auto;
        width: 100%;
    }

    .mobile-gold-inline {
        display: block;
    }

    .pagination {
        justify-content: center;
        gap: 6px;
        margin: 24px 0 4px;
    }

        .pagination .page-link {
            min-width: 36px;
            height: 36px;
            padding: 0 10px;
            border-radius: 10px;
            font-size: 13px;
        }

        .pagination .page-item:first-child .page-link,
        .pagination .page-item:last-child .page-link {
            padding: 0 12px;
        }
    /*du an- form gui thong tin*/
    .property-booking-wide {
        padding: 40px 0;
    }

        .property-booking-wide > .property-booking-inner {
            grid-template-columns: 1fr;
            gap: 20px;
            padding: 0 16px;
        }

            /* TEXT */

            .property-booking-wide > .property-booking-inner > div:first-child {
                max-width: 100%;
                text-align: left;
            }

                .property-booking-wide > .property-booking-inner > div:first-child > h2 {
                    font-size: 28px;
                    line-height: 1.2;
                    margin: 14px 0 10px;
                }

                .property-booking-wide > .property-booking-inner > div:first-child > p {
                    font-size: 14px;
                    line-height: 1.7;
                    max-width: 100%;
                }

            /* FORM */

            .property-booking-wide > .property-booking-inner > .lead-box {
                padding: 16px;
                border-radius: 18px;
            }

                .property-booking-wide > .property-booking-inner > .lead-box > form {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 10px;
                }

    /* dòng 1 */

    #nameBk {
        grid-column: 1;
    }

    #phoneBk {
        grid-column: 2;
    }

    /* dòng 2 */

    #emailBk {
        grid-column: 1;
    }

    #bookingSubmitBtn {
        grid-column: 2;
        grid-row: 2;
        height: auto;
        min-height: 46px;
    }

    /* dòng 3 */

    #messageBk {
        grid-column: 1 / -1;
        min-height: 100px;
    }

    .property-booking-wide > .property-booking-inner > .lead-box > form > input,
    .property-booking-wide > .property-booking-inner > .lead-box > form > textarea {
        padding: 12px;
        font-size: 13px;
    }

    #goldMobileSlot {
        min-height: 556px;
    }
}

/* =========================================================
   SMALL MOBILE: <= 480px
   ========================================================= */

@media (max-width: 480px) {
    #goldMobileSlot {
        min-height: 556px;
    }

    .container {
        width: calc(100% - 14px);
    }

    .category-hero {
        padding: 12px;
    }

        .category-hero h1 {
            font-size: 18px;
        }

    .category-tabs a {
        padding: 5px 9px;
        font-size: 11px;
    }

    .category-card {
        gap: 8px;
        padding: 8px;
    }

        .category-card .post-thumb {
            flex-basis: 74px;
            width: 74px;
            height: 52px;
        }

        .category-card p {
            display: none;
        }

    .investor-card {
        gap: 8px;
        padding: 8px;
    }

    .investor-logo {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    /*search*/
    .search-page .result-thumb {
        flex-basis: 68px;
        width: 68px;
        height: 58px;
    }

    .search-page .result-title {
        font-size: 16.5px;
    }

    .search-page .mini-thumb {
        width: 54px;
        height: 54px;
    }

    .search-page .search-result-ads {
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .search-page .ads-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 54px;
        border-radius: 8px;
    }

    .search-page .ads-label {
        height: 20px;
        padding: 0 8px;
        font-size: 10.5px;
        margin-bottom: 5px;
    }

    .search-page .ads-title {
        font-size: 15.5px;
        line-height: 1.35;
    }

    .search-page .ads-url {
        font-size: 12px;
    }

    /*chuyên mục khác*/
}