/* ==========================================================================
   TubHotels Homepage v11 Design Styles
   Scoped under body.tubhotels-homepage
   ========================================================================== */

html:has(body.tubhotels-homepage) {
    font-size: 100%;
}

body.tubhotels-homepage {
    --th-gold: #f1a502;
    --th-gold-dim: #c98a00;
    --th-gold-soft: #fff8e6;
    --th-gold-mid: #fde8a0;
    --th-ink: #1a1a1a;
    --th-ink-mid: #1d1d1d;
    --th-ink-light: #7a7a7a;
    --th-rule: #e8e8e8;
    --th-bg: #f7f7f5;
    --th-white: #fff;
    --th-teal: #0d7377;
    --th-teal-soft: #e8f4f4;
    --th-radius: 8px;
    --th-radius-lg: 12px;
    --th-max-width: 1200px;
}

/* ─── FULL-WIDTH UTILITY ─── */
.th-full-width {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* ─── HERO ─── */
.th-hero {
    font-size: 100%;
    padding: 56px 24px 48px;
    text-align: center;
    background: linear-gradient(170deg, var(--th-gold-soft) 0%, var(--th-white) 55%);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.th-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--th-teal-soft);
    border: 1px solid rgba(13, 115, 119, .2);
    color: var(--th-teal);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.th-hero__title {
    font-size: clamp(1.8125rem, 1.5484rem + 1.1268vw, 2.5625rem);
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.2;
    margin-bottom: .9rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.th-hero__title span,
.th-hero__title i,
.th-hero__title em {
    color: var(--th-gold);
    font-style: normal;
    font-weight: 700;
}
.th-hero__sub {
    font-size: 16px;
    color: var(--th-ink-mid);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.th-hero__search {
    margin: 0 auto 1.5rem;
}
.th-hero__search .asl_w_container{
    box-shadow: 0 4px 20px rgba(241, 165, 2, .15);
}
.th-hero__search .asl_w_container, 
.th-hero__search .asl_w_container #ajaxsearchlite1,
.th-hero__search .asl_w_container .probox{
    width: 100%;
    max-width: 530px;
}
.th-hero__search .asl_w_container div.asl_w .probox{
    border: 2px solid var(--th-gold) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(241, 165, 2, .15) !important;
    overflow: hidden;
}
.th-hero__search .promagnifier{
    margin: -9px !important;
    height: 45px !important;
    width: 87px !important;
    background: var(--th-gold) !important;
}
.th-hero__search .promagnifier:after{
    color: white !important;
}
.th-hero__search #ajaxsearchlite1 .probox .proinput, div.asl_w .probox .proinput{
    margin-left: 0 !important;
}
.th-hero__search div.asl_m .probox .proloading{
    margin-right: 10px;
}
.th-hero__search div.asl_m .probox .proclose svg{
    max-width: unset !important;
    margin-left: -20px !important;
}
.th-hero__search #ajaxsearchlite1 .probox .proinput input, div.asl_w .probox .proinput input{
    font-size: 13px;
}

.th-hero__popular {
    font-size: 12.5px;
    color: var(--th-ink-mid);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}
.th-hero__popular strong {
    color: var(--th-ink-mid);
}
.th-hero__popular a {
    color: var(--th-gold-dim);
    font-weight: 500;
    border-bottom: 1px solid rgba(241, 165, 2, .3);
    transition: border-color .15s;
    text-decoration: none !important;
}
.th-hero__popular a:hover {
    border-color: var(--th-gold);
}

/* ─── SECTION HEADER ─── */
.th-sec__head {
    max-width: 1110px;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.th-sec__head--center {
    text-align: center;
}
.th-sec__head h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.25;
    margin-bottom: .35rem;
}
.th-sec__head p {
    font-size: 13.5px;
    color: var(--th-ink-mid);
    max-width: 480px;
    margin: 0 !important;
}
.th-sec__head--center p {
    margin-inline: auto;
}

/* ─── TRUST STRIP ─── */
.th-trust {
    background: var(--th-white);
    border-bottom: 1px solid var(--th-rule);
    padding: .75rem 1.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 1rem;
    width: 100vw;
}
.th-trust__inner {
    max-width: var(--th-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
}
.th-trust__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--th-ink-mid);
    padding: 0 1.75rem;
    white-space: nowrap;
}
.th-trust__item + .th-trust__item {
    border-left: 1px solid var(--th-rule);
}
.th-trust__item strong {
    color: var(--th-ink);
    font-weight: 700;
}
.th-trust__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.th-ti-gold { background: var(--th-gold-mid); color: var(--th-gold-dim); }
.th-ti-teal { background: var(--th-teal-soft); color: var(--th-teal); }
.th-ti-ink  { background: #eee; color: #555; }

/* ─── SECTION LABEL ─── */
.th-sec__label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--th-gold-dim);
    background: var(--th-gold-soft);
    border: 1px solid var(--th-gold-mid);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: .6rem;
}

/* ─── STATES GRID ─── */
.th-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: .4rem;
    padding-bottom: 3rem;
}
.th-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .8rem;
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--th-ink);
    transition: border-color .15s, color .15s, background .15s;
    text-decoration: none !important;
}
.th-state:hover {
    border-color: var(--th-gold);
    color: var(--th-gold-dim) !important;
    background: var(--th-gold-soft);
}
.th-state__arrow {
    color: var(--th-gold);
    font-size: 10px;
    opacity: .7;
}

/* ─── TRIO CARDS ─── */
.th-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 3rem;
}
.th-trio-card {
    display: block;
    text-decoration: none;
    text-decoration: none !important;
}
.th-trio-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--th-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: .65rem;
    transition: opacity .2s;
    background-size: cover;
    background-position: center;
    background-color: var(--th-bg);
}
.th-trio-card:hover .th-trio-card__img {
    opacity: .88;
}
.th-trio-card__placeholder {
    font-size: 3rem;
    opacity: .5;
}
.th-trio-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--th-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 0, 0, .25);
    transition: color .2s, text-decoration-color .2s;
}
.th-trio-card:hover .th-trio-card__title {
    color: var(--th-gold-dim);
    text-decoration-color: var(--th-gold);
}

/* ─── BRAND / EXPERIENCE GRIDS ─── */
.th-uniq__grid {
    display: grid;
    gap: .75rem;
}
.th-uniq__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
.th-uniq__grid--5 {
    grid-template-columns: repeat(5, 1fr);
}
.th-uniq-card {
    display: block;
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 1.1rem 1rem;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    text-decoration: none !important;
}
.th-uniq-card:hover {
    border-color: var(--th-gold);
    box-shadow: 0 4px 16px rgba(241, 165, 2, .12);
    transform: translateY(-2px);
}
.th-uniq-card__icon {
    font-size: 1.8rem;
    margin-bottom: .6rem;
    display: block;
}
.th-uniq-card__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto .6rem;
    border-radius: 6px;
}
.th-uniq-card__title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.35;
}

/* ─── HOW IT WORKS ─── */
.th-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.th-how__step {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.th-how__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--th-ink);
    color: var(--th-white);
    font-weight: 600;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.th-how__step h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--th-ink);
    margin-bottom: .3rem;
}
.th-how__step p {
    font-size: 13px;
    color: var(--th-ink-mid);
    line-height: 1.6;
}

/* ─── WHY TUBHOTELS ─── */
.th-why {
    background: var(--th-bg);
    padding: 3rem 1.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.th-why__intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2rem;
}
.th-why__intro h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--th-ink);
    margin-bottom: .6rem;
    line-height: 1.25;
}
.th-why__intro p {
    font-size: 14px;
    color: var(--th-ink-mid);
    line-height: 1.7;
}
.th-why__feats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.25rem;
    max-width: var(--th-max-width);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
}
.th-why__feat {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
}
.th-why__feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.th-fi-teal { background: var(--th-teal-soft); color: var(--th-teal); }
.th-fi-gold { background: var(--th-gold-mid); color: var(--th-gold-dim); }
.th-fi-ink  { background: #eee; color: #555; }
.th-why__feat h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--th-ink);
    margin-bottom: 2px;
}
.th-why__feat p {
    font-size: 12.5px;
    color: var(--th-ink-mid);
    line-height: 1.5;
    margin: 0;
}
.th-why__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    max-width: var(--th-max-width);
    margin: 0 auto;
}
.th-why__stat {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 1.1rem 1rem;
    text-align: center;
}
.th-why__stat-n {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
    display: block;
}
.th-cn-gold { color: var(--th-gold); }
.th-cn-teal { color: var(--th-teal); }
.th-cn-ink  { color: var(--th-ink-mid); }
.th-why__stat-l {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--th-ink-mid);
}

/* ─── BLOG GRID ─── */
.th-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.th-article {
    display: block;
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    text-decoration: none;
}
.th-article:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    border-color: #d0d0d0;
}
.th-article__thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background-size: cover;
    background-position: center;
    background-color: var(--th-bg);
}
.th-article__body {
    padding: .9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.th-article__date {
    font-size: 11.5px;
    color: var(--th-ink-mid);
}
.th-article__title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.4;
    transition: color .15s;
}
.th-article:hover .th-article__title {
    color: var(--th-gold-dim);
}
.th-article__exc {
    font-size: 12.5px;
    color: var(--th-ink-mid);
    line-height: 1.55;
    margin: 0;
}

/* ─── CTA BAND ─── */
.th-cta-band {
    background: var(--th-ink);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.th-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(214, 167, 12, .1) 0%, transparent 70%);
}
.th-cta-band h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--th-white);
    margin-bottom: .6rem;
    position: relative;
}
.th-cta-band p {
    font-size: 14px;
    color: #888;
    margin-bottom: 1.75rem;
    position: relative;
}
.th-btn-cta {
    display: inline-block;
    background: var(--th-gold);
    color: var(--th-ink);
    font-weight: 700;
    font-size: 14.5px;
    padding: .85rem 2.25rem;
    border-radius: var(--th-radius);
    transition: background .15s, transform .15s;
    position: relative;
    text-decoration: none;
}
.th-btn-cta:hover {
    background: #e8b80d;
    transform: translateY(-2px);
    color: var(--th-ink);
}

/* ─── POPULAR CITIES v2 CARDS ─── */
.popular-cities-v2 .state-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: 0 auto 3rem auto;
    max-width: 1110px;
}
.popular-cities-v2 .state-hub-card {
    display: block;
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    overflow: hidden;
    background: var(--th-white);
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out, border-color .2s ease-in-out !important;
    text-decoration: none !important;
    aspect-ratio: unset;
    box-shadow: none;
    width: 100%;
}
.popular-cities-v2 .state-hub-card:hover .state-hub-card__image img{
    transform: none !important;
}
.tubhotels-homepage.page:not(.elementor-page):not(.woocommerce-page) .entry .popular-cities-v2 a:not(.wp-block-button__link):not(.wp-block-file__button):hover{
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out, border-color .2s ease-in-out !important;
}
.popular-cities-v2 .state-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .09);
    border-color: var(--th-gold);
    transition: transform .2s, box-shadow .2s, border-color .2s !important;
}
.popular-cities-v2 .state-hub-card__image {
    position: static;
    height: 110px;
    overflow: hidden;
}
.popular-cities-v2 .state-hub-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-cities-v2 .state-hub-card__overlay {
    position: static;
    padding: .7rem .85rem .85rem;
    background: white;
}
.popular-cities-v2 .state-hub-card__title {
    font-size: .95rem !important;
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.2;
    margin-bottom: 5px;
}
.popular-cities-v2 .state-hub-card__state {
    font-size: 11.5px;
    color: var(--th-ink-mid);
    margin-bottom: 10px;
}
.popular-cities-v2 .state-hub-card__count {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--th-gold-dim);
}

/* ─── RANK MATH FAQ RESTYLE ─── */
body.tubhotels-homepage .rank-math-faq-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 780px;
    margin: 0 auto;
}
body.tubhotels-homepage .rank-math-faq-list .rank-math-list-item {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius);
    padding: 1rem 1.1rem;
}
body.tubhotels-homepage .rank-math-faq-list h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--th-ink);
}
body.tubhotels-homepage .rank-math-faq-list .rank-math-answer {
    font-size: 13.5px;
    color: var(--th-ink-mid);
    line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
    .th-why__feats {
        grid-template-columns: 1fr;
    }
    .th-why__stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-uniq__grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-uniq__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-cities-v2 .state-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .th-hero {
        padding: 2.25rem 1.25rem 2rem;
    }
    .th-trust__inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    .th-trust__item {
        padding: .5rem .3rem;
        font-size: 11.5px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    .th-trust__item + .th-trust__item {
        border-left: 1px solid var(--th-rule);
        border-top: none;
    }
    .th-trust__icon {
        margin: 0 auto;
    }
    .th-trio {
        grid-template-columns: 1fr;
    }
    .th-how__grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    .th-blog__grid {
        grid-template-columns: 1fr;
    }
    .th-states-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .th-uniq__grid--5,
    .th-uniq__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-cities-v2 .state-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
    }
    .popular-cities-v2 .state-hub-card__title{
        font-size: 14px !important;
    }
    .popular-cities-v2 .state-hub-card__overlay{
        padding: .5rem .5rem .7rem;
    }
}

@media (max-width: 480px) {
    .th-why__stat {
        padding: .75rem .5rem;
    }
    .th-why__stat-n {
        font-size: 1.4rem;
    }
    .th-why__stat-l {
        font-size: 10px;
    }
}
