/**
 * ABX Best Time to Visit Finder CSS
 * Scoped under .abx-btf
 */

/* Main Container & Base Settings */
.abx-btf {
    font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333F48;
    background-color: #FAF8F5;
    padding: 60px 24px;
    max-width: 1440px;
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    border-radius: 20px;
}

/* Typography & Headings */
.abx-btf h1,
.abx-btf h2,
.abx-btf h3,
.abx-btf h4 {
    color: #0f2942; /* Premium Navy */
    font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.25;
}

.abx-btf-kicker,
.abx-btf-results-kicker {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2E8B57; /* Accent Green */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

/* 1. HERO SECTION */
.abx-btf-hero {
    padding: clamp(32px, 4vw, 56px);
    margin-bottom: 50px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #EAE6DF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .abx-btf-hero {
        padding: clamp(56px, 6vw, 88px);
    }
}

.abx-btf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
}

@media (max-width: 991px) {
    .abx-btf-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.abx-btf-headline {
    font-size: 48px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

@media (max-width: 768px) {
    .abx-btf-headline {
        font-size: 36px;
    }
}

.abx-btf-body {
    font-size: 17px;
    line-height: 1.6;
    color: #5A6570;
    margin-bottom: 30px;
    max-width: 540px;
}

/* Hero Stats/Mini Badges */
.abx-btf-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 32px);
    margin-top: 35px;
    border-top: 1px solid #F0ECE6;
    padding-top: 25px;
}

.abx-btf-hero-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abx-btf-hero-badge-number {
    font-size: 24px;
    font-weight: 700;
    color: #2E8B57; /* Accent Green */
    font-family: "Outfit", "Inter", sans-serif;
    line-height: 1;
}

.abx-btf-hero-badge-icon {
    font-size: 24px;
    line-height: 1;
}

.abx-btf-hero-badge-text {
    font-size: 14px;
    color: #5A6570;
    font-weight: 500;
    line-height: 1.3;
}

.abx-btf-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.abx-btf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #EAE6DF;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #4A5560;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.abx-btf-chip-icon {
    color: #2E8B57; /* Accent Green */
    flex-shrink: 0;
}

/* Hero Right: Preview Card */
.abx-btf-preview-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-top: 4px solid #EE9D76; /* Peach top edge */
}

.abx-btf-preview-title {
    font-size: 20px;
    border-bottom: 1px solid #F0ECE6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.abx-btf-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.abx-btf-preview-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.abx-btf-preview-list li:last-child {
    margin-bottom: 0;
}

.abx-btf-preview-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.abx-btf-preview-text {
    display: flex;
    flex-direction: column;
}

.abx-btf-preview-text strong {
    font-size: 15px;
    color: #0f2942;
    margin-bottom: 2px;
}

.abx-btf-preview-text span {
    font-size: 13px;
    color: #6A7580;
}

.abx-btf-preview-example {
    background: #FFF9E6;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #F3E8EE;
    border-left: 4px solid #EE9D76;
    box-shadow: 0 4px 12px rgba(238, 157, 118, 0.08);
}

.abx-btf-example-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.abx-btf-example-dest {
    font-size: 14px;
    font-weight: 700;
    color: #0f2942;
}

.abx-btf-example-months {
    font-size: 13px;
    color: #2E8B57;
    font-weight: 500;
}

.abx-btf-example-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.abx-btf-badge-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #2E8B57;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
}

.abx-btf-badge-num {
    font-size: 16px;
    font-weight: 700;
    color: #2E8B57;
}

.abx-btf-badge-slash {
    font-size: 10px;
    color: #8A95A0;
    font-weight: 500;
}

.abx-btf-badge-label {
    font-size: 10px;
    font-weight: 700;
    color: #2E8B57;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 2. SEARCH FORM CARD */
.abx-btf-search-section {
    margin-bottom: 40px;
}

.abx-btf-search-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #EAE6DF;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .abx-btf-search-card {
        padding: 24px;
    }
}

.abx-btf-search-heading {
    font-size: 26px;
    margin-bottom: 8px;
}

.abx-btf-search-helper {
    font-size: 15px;
    color: #6A7580;
    margin-bottom: 30px;
}

.abx-btf-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .abx-btf-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .abx-btf-form-grid {
        grid-template-columns: 1fr;
    }
}

.abx-btf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abx-btf-field label {
    font-size: 13px;
    font-weight: 600;
    color: #0f2942;
}

.abx-btf-field label .required {
    color: #DC2626;
}

.abx-btf-field input[type="text"],
.abx-btf-field select {
    background-color: #FFFFFF;
    border: 1px solid #CFCAC0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #333F48;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 48px;
}

.abx-btf-field input[type="text"]:focus,
.abx-btf-field select:focus {
    border-color: #EE9D76;
    box-shadow: 0 0 0 3px rgba(238, 157, 118, 0.15);
}

/* Submit Container & Buttons */
.abx-btf-submit-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    grid-column: span 1;
    margin-top: auto;
}

@media (max-width: 1100px) {
    .abx-btf-submit-container {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .abx-btf-submit-container {
        grid-column: span 1;
        flex-direction: column;
        align-items: stretch;
    }
}

.abx-btf-submit-btn {
    background-color: #EE9D76; /* Peach CTA */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
    height: 48px;
    flex: 1;
}

.abx-btf-submit-btn:hover {
    background-color: #E07A5F;
}

.abx-btf-submit-btn:active {
    transform: scale(0.98);
}

.abx-btf-submit-btn:disabled {
    background-color: #D3CCD9;
    cursor: not-allowed;
}

.abx-btf-reset-link {
    color: #6A7580;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.abx-btf-reset-link:hover {
    color: #0f2942;
}

/* Info Strip */
.abx-btf-info-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #EBFDF5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 25px;
    font-size: 13px;
    color: #1F4E3D;
    font-weight: 500;
}

.abx-btf-info-icon {
    color: #059669;
    flex-shrink: 0;
}

/* Loading Strip & Animation */
.abx-btf-loading-strip {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FAF8F5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #0f2942;
    border: 1px dashed #EE9D76;
}

.abx-btf-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(238, 157, 118, 0.2);
    border-top: 3px solid #EE9D76;
    border-radius: 50%;
    animation: abxBtfSpin 0.8s linear infinite;
}

@keyframes abxBtfSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* When form is submitting */
.abx-btf-is-submitting .abx-btf-loading-strip {
    display: flex;
}

.abx-btf-is-submitting .abx-btf-info-strip {
    display: none;
}

/* 3. RESULTS AREA */
.abx-btf-results-wrapper {
    scroll-margin-top: 110px;
    margin-bottom: 40px;
    max-width: 1360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback chips for popular destinations */
.abx-btf-fallback-chips-section {
    margin: 25px 0;
    text-align: center;
}

.abx-btf-fallback-chips-title {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f2942;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.abx-btf-fallback-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.abx-btf-fallback-chip-link {
    display: inline-flex;
    align-items: center;
    background-color: #FAF8F5;
    border: 1px solid #EAE6DF;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333F48;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.abx-btf-fallback-chip-link:hover {
    background-color: #EE9D76; /* Peach CTA hover */
    color: #FFFFFF;
    border-color: #EE9D76;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 157, 118, 0.2);
}

/* Fallback Card for Unknown Destinations */
.abx-btf-fallback-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #EAE6DF;
    text-align: center;
}

.abx-btf-fallback-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.abx-btf-fallback-heading {
    font-size: 24px;
    margin-bottom: 10px;
}

.abx-btf-fallback-body {
    font-size: 15px;
    color: #6A7580;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.abx-btf-fallback-suggestions {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 550px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.abx-btf-fallback-suggestions li {
    background: #FAF8F5;
    border: 1px solid #EAE6DF;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.abx-btf-fallback-suggestions li strong {
    font-size: 15px;
    color: #0f2942;
}

.abx-btf-fallback-suggestions li strong a {
    color: #EE9D76;
    text-decoration: none;
}

.abx-btf-fallback-suggestions li strong a:hover {
    text-decoration: underline;
    color: #E07A5F;
}

.abx-btf-fallback-suggestions li span {
    font-size: 13px;
    color: #6A7580;
}

/* Match Result Panel */
.abx-btf-results-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Result summary card */
.abx-btf-summary-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #EAE6DF;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .abx-btf-summary-card {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }
}

.abx-btf-results-heading {
    font-size: 32px;
    margin-bottom: 12px;
}

.abx-btf-reason-text {
    font-size: 16px;
    line-height: 1.6;
    color: #5A6570;
    margin: 0 0 25px 0;
}

.abx-btf-month-tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abx-btf-tier {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 500px) {
    .abx-btf-tier {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.abx-btf-tier-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 4px;
    min-width: 140px;
    text-align: center;
    box-sizing: border-box;
}

.abx-btf-tier-best {
    background: #EBFDF5;
    color: #059669;
}

.abx-btf-tier-good {
    background: #FFF9E6;
    color: #D97706;
}

.abx-btf-tier-avoid {
    background: #FEF2F2;
    color: #DC2626;
}

.abx-btf-tier-val {
    font-size: 15px;
    font-weight: 600;
    color: #0f2942;
}

/* Result Score Card */
.abx-btf-score-card {
    background: #FAF8F5;
    border: 1px solid #EAE6DF;
    border-radius: 12px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .abx-btf-score-card {
        padding: 20px;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        text-align: left;
    }
}

.abx-btf-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #2E8B57; /* Accent Green */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
}

.abx-btf-score-val {
    font-size: 26px;
    font-weight: 700;
    color: #2E8B57;
}

.abx-btf-score-slash {
    font-size: 14px;
    color: #8A95A0;
    font-weight: 500;
}

.abx-btf-score-label {
    font-size: 12px;
    font-weight: 700;
    color: #2E8B57;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recommended Month Details Grid */
.abx-btf-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .abx-btf-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .abx-btf-details-grid {
        grid-template-columns: 1fr;
    }
}

.abx-btf-detail-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
    border: 1px solid #EAE6DF;
    display: flex;
    flex-direction: column;
}

.abx-btf-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #F0ECE6;
    padding-bottom: 12px;
}

.abx-btf-detail-header h4 {
    font-size: 16px;
    margin: 0;
}

.abx-btf-detail-icon {
    font-size: 18px;
}

.abx-btf-detail-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.abx-btf-detail-months {
    font-size: 14px;
    font-weight: 700;
    color: #2E8B57;
}

.abx-btf-detail-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #5A6570;
    margin: 0;
}

/* Practical Notes Grid */
.abx-btf-notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .abx-btf-notes-grid {
        grid-template-columns: 1fr;
    }
}

.abx-btf-note-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px 30px;
    border-left: 4px solid #EE9D76; /* Peach default accent */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.abx-btf-note-budget {
    border-left-color: #2E8B57; /* Green for budget */
    background: #F4FAF7;
}

.abx-btf-note-local {
    border-left-color: #EE9D76; /* Peach for local secrets */
    background: #FDF9F6;
}

.abx-btf-note-header {
    margin-bottom: 8px;
}

.abx-btf-note-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8A95A0;
}

.abx-btf-note-budget .abx-btf-note-label {
    color: #2E8B57;
}

.abx-btf-note-local .abx-btf-note-label {
    color: #E07A5F;
}

.abx-btf-note-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333F48;
    margin: 0;
}

/* CTA row */
.abx-btf-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .abx-btf-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.abx-btf-cta-btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.abx-btf-cta-primary {
    background-color: #EE9D76; /* Peach primary */
    color: #FFFFFF;
    border: none;
}

.abx-btf-cta-primary:hover {
    background-color: #E07A5F;
}

.abx-btf-cta-secondary {
    background-color: #FFFFFF;
    color: #0f2942;
    border: 1px solid #CFCAC0;
}

.abx-btf-cta-secondary:hover {
    border-color: #0f2942;
}

.abx-btf-cta-tertiary {
    background-color: transparent;
    color: #2E8B57;
    border: 1px dashed #2E8B57;
}

.abx-btf-cta-tertiary:hover {
    background-color: rgba(46, 139, 87, 0.05);
}

.abx-btf-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    color: #8A95A0;
    text-align: center;
    margin: 10px auto 0 auto;
    max-width: 800px;
}

/* Why Travelers Love This Tool Footer */
.abx-btf-features {
    border-top: 1px solid #EAE6DF;
    padding-top: 40px;
    margin-top: 20px;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.abx-btf-features-title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 30px;
}

.abx-btf-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .abx-btf-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .abx-btf-features-grid {
        grid-template-columns: 1fr;
    }
}

.abx-btf-feature-item {
    text-align: center;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #F0ECE6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.abx-btf-feature-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.abx-btf-feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f2942;
    margin-bottom: 6px;
}

.abx-btf-feature-item p {
    font-size: 13px;
    line-height: 1.4;
    color: #6A7580;
    margin: 0;
}
