/* ==========================================================================
   TubHotels Global Styles
   Loaded on every frontend page.
   ========================================================================== */

:root {
    --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-red: #d94040;
    --th-red-soft: #fdf0f0;
    --th-twister: #31304C;
    --th-radius: 8px;
    --th-radius-lg: 12px;
    --th-max-width: 1380px;
}

/* ─── SPACING UTILITIES ─── */
.th-mt-0 { margin-top: 0 !important; }
.th-mt-1 { margin-top: 1rem !important; }
.th-mt-2 { margin-top: 2rem !important; }
.th-mt-3 { margin-top: 3rem !important; }
.th-mt-4 { margin-top: 4rem !important; }
.th-mt-5 { margin-top: 5rem !important; }
.th-mb-0 { margin-bottom: 0 !important; }
.th-mb-1 { margin-bottom: 1rem !important; }
.th-mb-2 { margin-bottom: 2rem !important; }
.th-mb-3 { margin-bottom: 3rem !important; }
.th-mb-4 { margin-bottom: 4rem !important; }
.th-mb-5 { margin-bottom: 5rem !important; }
.th-pt-0 { padding-top: 0 !important; }
.th-pt-1 { padding-top: 1rem !important; }
.th-pt-2 { padding-top: 2rem !important; }
.th-pt-3 { padding-top: 3rem !important; }
.th-pt-4 { padding-top: 4rem !important; }
.th-pt-5 { padding-top: 5rem !important; }
.th-pb-0 { padding-bottom: 0 !important; }
.th-pb-1 { padding-bottom: 1rem !important; }
.th-pb-2 { padding-bottom: 2rem !important; }
.th-pb-3 { padding-bottom: 3rem !important; }
.th-pb-4 { padding-bottom: 4rem !important; }
.th-pb-5 { padding-bottom: 5rem !important; }

@media (max-width: 767px) {
    .th-mt-1 { margin-top: 0.5rem !important; }
    .th-mt-2 { margin-top: 1rem !important; }
    .th-mt-3 { margin-top: 1.5rem !important; }
    .th-mt-4 { margin-top: 2rem !important; }
    .th-mt-5 { margin-top: 2.5rem !important; }
    .th-mb-1 { margin-bottom: 0.5rem !important; }
    .th-mb-2 { margin-bottom: 1rem !important; }
    .th-mb-3 { margin-bottom: 1.5rem !important; }
    .th-mb-4 { margin-bottom: 2rem !important; }
    .th-mb-5 { margin-bottom: 2.5rem !important; }
    .th-pt-1 { padding-top: 0.5rem !important; }
    .th-pt-2 { padding-top: 1rem !important; }
    .th-pt-3 { padding-top: 1.5rem !important; }
    .th-pt-4 { padding-top: 2rem !important; }
    .th-pt-5 { padding-top: 2.5rem !important; }
    .th-pb-1 { padding-bottom: 0.5rem !important; }
    .th-pb-2 { padding-bottom: 1rem !important; }
    .th-pb-3 { padding-bottom: 1.5rem !important; }
    .th-pb-4 { padding-bottom: 2rem !important; }
    .th-pb-5 { padding-bottom: 2.5rem !important; }
}

/* ─── SECTION HEADER ─── */
.th-sec__head {
    /* max-width: 1151px; */
    margin: auto;
    padding-top: 48px;
    padding-bottom: 32px;
}
.th-sec__head--center {
    text-align: center;
}
.th-sec__head h2 {
    /* font-size: clamp(1.25rem, 2.2vw, 1.6rem); */
    font-size: 25.6px;
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.25;
    margin-bottom: .35rem;
}
.th-sec__head p {
    max-width: 500px;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.4;
    color: #606060;
}
.th-sec__head p strong{
    font-weight: 700;
}
.th-sec__head--center p {
    margin: 0 auto !important;
}

/* ─── SECTION LABEL ─── */
.th-sec__label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.365px;
    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: 10px;
}

/* ==========================================================================
   State Hub Grid — Visual City Cards
   Used by: [state_hub], [more_hotels], [popular_cities]
   ========================================================================== */
.state-hub-container{
    margin-bottom: 40px;
}
/* Header */
.state-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
    margin-top: 20px;
}
.state-hub-header__count {
    font-size: 14px;
    color: #666;
}
.state-hub-header__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.state-hub-header__sort label {
    font-size: 14px;
    color: #333;
    margin: 0;
}
.state-hub-sort {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
    line-height: 1;
    width: unset;
}
.state-hub-sort:hover {
    border-color: #999;
}
.state-hub-sort:focus {
    outline: none;
    border-color: #F3A600;
    box-shadow: 0 0 0 2px rgba(243, 166, 0, 0.2);
}

/* Float sort */
.state-hub--float-sort {
    position: relative;
    margin-bottom: 48px;
}
.state-hub--float-sort .state-hub-header {
    position: absolute;
    top: -67px;
    right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}
.state-hub--float-sort .state-hub-header__count {
    display: none;
}
@media (max-width: 768px) {
    .state-hub--float-sort .state-hub-header {
        position: static;
        margin-top: -20px;
        margin-bottom: 20px;    
    }
}

/* Grid */
.state-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .state-hub-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 992px) {
    .state-hub-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .more-hotels-wrapper .state-hub-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .more-hotels-wrapper .state-hub-grid--cols-1,
    .more-hotels-wrapper .state-hub-grid--cols-2,
    .more-hotels-wrapper .state-hub-grid--cols-3 {
        margin-left: auto;
        margin-right: auto;
    }
    .more-hotels-wrapper .state-hub-grid--cols-1 {
        grid-template-columns: 1fr;
        max-width: calc(25% - 9px);
    }
    .more-hotels-wrapper .state-hub-grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: calc(50% - 6px);
    }
    .more-hotels-wrapper .state-hub-grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: calc(75% - 3px);
    }
}

/* Grid wrap — light background section */
.state-hub-grid-wrap {
    position: relative;
    margin-top: -20px;
    margin-bottom: 20px;
    padding: 20px 0;
    overflow: hidden;
}
.state-hub-grid-wrap:before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: -10%;
    right: -10%;
    background: #d6faff33;
}
@media (min-width: 768px) {
    .state-hub-grid-wrap:before {
        left: -100%;
        right: -100%;
    }
}

/* Card */
.state-hub-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 3 / 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.state-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.state-hub-card:focus {
    outline: 3px solid #F3A600;
    outline-offset: 2px;
}

/* Image */
.state-hub-card__image {
    position: absolute;
    inset: 0;
}
.state-hub-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.state-hub-card:hover .state-hub-card__image img {
    transform: scale(1.05);
}

/* No image fallback */
.state-hub-card--no-image .state-hub-card__image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Overlay */
.state-hub-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    color: white;
    line-height: 1.1;
}

/* Title */
.state-hub-card__title {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}
@media (min-width: 768px) {
    .state-hub-card__title {
        font-size: 22px;
    }
}

/* Distance badge */
.state-hub-card__distance {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 20px;
    pointer-events: none;
}

/* Count */
.state-hub-card__count {
    margin: 0 !important;
    font-size: 12px;
}
@media (min-width: 768px) {
    .state-hub-card__count {
        font-size: 14px;
    }
}

/* ==========================================================================
   Back to State Navigation
   ========================================================================== */

.back-to-state {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-top: -20px;
    width: 100vw;
    padding: 14px 5%;
    /* border-bottom: 1px solid #d4d4d4; */
    position: relative;
}
.page-id-5484 .back-to-state{
    margin-top: 0;
}
.back-to-state__link {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 1380px;
    margin: auto;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
}
.back-to-state__arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
}
@media (min-width: 768px) {
    .back-to-state {
        margin-left: 20px;
    }
}
/* ==========================================================================
   More Hotels Wrapper
   ========================================================================== */

.more-hotels-wrapper {
    margin-top: 20px;
}
.more-hotels-wrapper .state-hub-card__title {
    font-weight: 600;
    font-size: 21px;
}
@media (max-width: 768px) {
    .more-hotels-wrapper .state-hub-card__title {
        font-size: 13px;
    }
}

/* ==========================================================================
   Popular Cities — Block-style cards
   Used by: [popular_cities]
   ========================================================================== */

.popular-cities-wrapper {
    margin-bottom: 50px;
}
.popular-cities-wrapper .state-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto 3rem auto;
}
@media (min-width: 1024px) {
    .popular-cities-wrapper .state-hub-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .popular-cities-wrapper .state-hub-grid--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Block-style card */
.popular-cities-wrapper .state-hub-card {
    width: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.popular-cities-wrapper .state-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .09);
}
.popular-cities-wrapper .state-hub-card:hover .state-hub-card__image img {
    transform: none;
}
.popular-cities-wrapper a.state-hub-card:hover {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
.popular-cities-wrapper .state-hub-card__image img {
    height: 100%;
    object-fit: cover;
}
.popular-cities-wrapper .state-hub-card__title {
    font-size: 17px;
    margin-bottom: 5px;
}
.state-hub-card__state {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
}
.popular-cities-wrapper .state-hub-card__count {
    font-size: 12px !important;
    font-weight: 500;
    color: #F8C659;
}

@media (max-width: 767px) {
    .popular-cities-wrapper .state-hub-card__title {
        font-size: 15px !important;
    }
    .popular-cities-wrapper .state-hub-card__overlay {
        padding: 20px 7px 8px;
    }
    .th-sec__head h2{
        font-size: 20px;
    }
}

.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button).th-uniq-card:hover{
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button).th-btn-cta:hover{
    transition: background .15s ease, transform .15s ease !important;
}
.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button).state-hub-card:hover{
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Utility: hide on mobile */
@media (max-width: 768px) {
    .th-hide-mobile,
    .th-hide-mobile.wp-block-heading { 
        display: none !important; 
    }
}

/* ─── FAQ ACCORDION ─── */
#rank-math-faq {
    max-width: 780px !important;
    margin: 0 auto !important;
    padding-bottom: 32px;
}
.rank-math-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none !important;
}
.rank-math-list-item {
    background: var(--th-white);
    border: 1px solid var(--th-rule) !important;
    border-radius: var(--th-radius);
    overflow: hidden;
}
.rank-math-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px !important;
    font-size: 14px !important;
    font-weight: 700;
    color: var(--th-ink) !important;
    cursor: pointer;
    margin: 0;
    border: none !important;
    background: transparent !important;
}
.rank-math-question strong {
    font-weight: inherit;
}
.rank-math-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--th-gold);
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}
.rank-math-list-item.open .rank-math-question::after {
    content: '\2212';
}
div.rank-math-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 18px !important;
    font-size: 13.5px;
    color: var(--th-ink-mid);
    line-height: 1.7;
}
.rank-math-list-item.open .rank-math-answer {
    padding-bottom: 16px !important;
}
.rank-math-answer p{
    margin-bottom: 0 !important;
}
.rank-math-answer a {
    color: var(--th-gold-dim);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(241, 165, 2, .3);
}
.rank-math-answer a:hover {
    text-decoration-color: var(--th-gold);
}

/* ─── NEARBY STATES ─── */
.nearby-states {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: auto;
    padding-bottom: 48px;
    margin-bottom: -50px;
    max-width: 1160px;
}
.nearby-states__link {
    display: block;
    padding: 7px 16px;
    background: #fff;
    border-radius: 20px;
    color: var(--th-ink) !important;
    border: 1.5px solid var(--th-rule);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}
.nearby-states__link:hover {
    border-color: var(--th-gold);
    color: var(--th-gold-dim) !important;
    background: var(--th-gold-soft);
}
@media (max-width: 767px) {
    .nearby-states {
        margin-bottom: -90px;
        grid-template-columns: repeat(2, 1fr);
    }
}

.th-acc-wrap{
    display: none !important;
}


/* .container h2.wp-block-heading{
    font-size: 24px;
    font-weight: 700;
    color: var(--th-ink);
    margin: 30px 0 20px 0 !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.container h2.wp-block-heading{
    font-size: 18px;
    font-weight: 700;
    color: var(--th-ink);
    margin: 30px 0 20px 0 !important;
    line-height: 1.6 !important;
    text-align: left !important;
} */

/* ─── TEXT SECTION WRAPPER ─── */
.th-text-section {
    margin-left: auto;
    margin-right: auto;
    padding: 32px 0;
}

.th-text-section h2.wp-block-heading{    
    font-size: 24px;
    font-weight: 700;
    color: var(--th-ink);
    margin: 30px 0 20px 0 !important;
    line-height: 1.6 !important;
    text-align: left !important;
}
.th-text-section h3.wp-block-heading{    
    font-size: 18px;
    font-weight: 700;
    color: var(--th-ink);
    margin: 28px 0 10px 0 !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.th-text-section p{
    font-size: 14.5px;
    color: var(--th-ink-mid);
    line-height: 1.85;
    margin-bottom: 1rem;
}
.th-text-section a{
    color: var(--th-gold-dim) !important;
    border-bottom: 1px solid rgba(201, 138, 0, .3);
    transition: border-color .15s;
}

/* ─── STATE HERO BANNER ─── */
/* html { scroll-behavior: smooth; } */

.th-state-hero {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: linear-gradient(160deg,#0b1c10 0%,#0e1e2c 60%,#0a1a10 100%);
    padding: 56px 0 48px 0;
    color: #fff;
}
.th-state-hero__inner {
    max-width: calc(1380px + 2%);
    margin: 0 auto;
    padding: 0 1%;
    position: relative;
}
.th-state-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(241,165,2,.1);
    border: 1px solid rgba(241,165,2,.25);
    color: var(--th-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 17px;
}
.th-state-hero__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px 0;
    max-width: 580px;
}
.th-state-hero__title span {
    color: var(--th-gold);
}
.th-state-hero__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 20px !important;
}
.th-state-hero__stats {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.th-state-hero__stat {
    padding: 7px 20px 7px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}
.th-state-hero__stat strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    margin-bottom: 3px;
    line-height: 1;
}
.th-state-hero__stat-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.12);
    margin-right: 20px;
    flex-shrink: 0;
}
.th-state-hero__cta {
    display: inline-block;
    background: var(--th-gold);
    color: var(--th-ink) !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 32px;
    border-radius: var(--th-radius);
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}
.th-state-hero__cta:hover {
    background: var(--th-gold-dim);
    transform: translateY(-1px);
}
.page:not(.elementor-page):not(.woocommerce-page) .entry a:not(.wp-block-button__link):not(.wp-block-file__button).th-state-hero__cta:hover {
    transition: background .15s ease, transform .15s ease !important;
}

@media (max-width: 767px) {
    .th-state-hero {
        padding: 2.5rem 1.25rem 2rem;
    }
    .th-state-hero__stats {
        gap: 14px;
    }
    .th-state-hero__stat {
        font-size: 11px;
    }
    .th-state-hero__stat strong {
        font-size: 17px;
    }
    .th-state-hero__stat-sep {
        height: 26px;
    }
    .th-state-hero__title{
        font-size: 27px;
    }
    .th-sec__head{
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .state-hub--float-sort{
        margin-bottom: 24px;
    }
    .hotels-pagination-content {
        padding-bottom: 24px;
    }
    .th-text-section h2.wp-block-heading{
        margin: 10px 0 20px 0 !important;
    }
}

.th-bg-wrap.th-bg-wrap--no-padding .th-text-section{
    padding: 0 !important;
}