/* ============================================
   Retire Abroad - Retirement Passport Styles
   ============================================ */

/* Hero Section */
.ra-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 76px;
}

.ra-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white !important;
}

.ra-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    color: white !important;
    margin-bottom: 40px;
}

/* Income Input */
.ra-income-input-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ra-income-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.ra-input-field {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 16px;
}

.ra-input-field input {
    border: none;
    outline: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    width: 100%;
    text-align: center;
    -moz-appearance: textfield;
}

.ra-input-field input::-webkit-outer-spin-button,
.ra-input-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ra-currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: #64748b;
}

.ra-per-month {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.ra-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.ra-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ra-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ra-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* Interactive Map */
.ra-map-container {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

/* Map popup styles */
.ra-map-popup {
    text-align: center;
    min-width: 180px;
}

.ra-popup-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.ra-popup-country {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}

.ra-popup-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ra-popup-badge-green { background: #dcfce7; color: #16a34a; }
.ra-popup-badge-yellow { background: #fef3c7; color: #d97706; }
.ra-popup-badge-red { background: #fee2e2; color: #dc2626; }

.ra-popup-cost {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.ra-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.ra-popup-link:hover {
    text-decoration: underline;
}

/* Content Section */
.ra-content {
    padding: 48px 0 60px;
    background: #f8fafc;
}

/* Region Filter */
.ra-region-filter {
    text-align: center;
    margin-bottom: 0;
}

.ra-region-btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 4px 6px;
    border-radius: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.ra-region-btn:hover,
.ra-region-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Results Summary */
.ra-results-summary {
    text-align: center;
    margin-bottom: 32px;
    color: #64748b;
    font-size: 0.95rem;
}

.ra-results-divider {
    margin: 0 12px;
    opacity: 0.4;
}

.ra-affordability-legend {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.ra-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.ra-legend-dot.ra-green { background: #22c55e; }
.ra-legend-dot.ra-yellow { background: #f59e0b; }
.ra-legend-dot.ra-red { background: #ef4444; }

/* Destination Cards */
.ra-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ra-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.ra-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ra-card:hover .ra-card-image img {
    transform: scale(1.05);
}

.ra-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ra-badge-green {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.ra-badge-yellow {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.ra-badge-red {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.ra-card-region {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ra-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ra-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.ra-card-country {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ra-card-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.ra-card-costs {
    margin-bottom: 12px;
}

.ra-cost-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.ra-cost-range i {
    color: var(--primary);
}

.ra-card-cushion {
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

.ra-card-cushion.positive { color: #16a34a; }
.ra-card-cushion.negative { color: #dc2626; }

.ra-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ra-card-scores {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
}

.ra-card-scores span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ra-explore-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.ra-card:hover .ra-explore-link {
    gap: 8px;
}

/* No Results */
.ra-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.ra-no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.ra-no-results h3 {
    color: #475569;
    margin-bottom: 8px;
}

/* CTA Section */
.ra-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0;
}

.ra-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white !important;
}

.ra-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    color: white !important;
}

.ra-cta-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* ============================================
   Destination Detail Page
   ============================================ */

/* Hero */
.ra-dest-hero {
    margin-top: 76px;
    height: 420px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.ra-dest-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.ra-dest-hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.ra-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.ra-back-link:hover {
    gap: 12px;
    color: white;
}

.ra-dest-region-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.3);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(165, 180, 252, 0.4);
}

.ra-dest-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: white;
}

.ra-dest-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    color: white;
}

/* Income Bar */
.ra-income-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    position: sticky;
    top: 76px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ra-income-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ra-income-bar-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.ra-income-bar-input {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px 12px;
}

.ra-income-bar-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    width: 100px;
    text-align: center;
    -moz-appearance: textfield;
}

.ra-income-bar-input input::-webkit-outer-spin-button,
.ra-income-bar-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.ra-income-bar-input .ra-currency {
    font-size: 1.2rem;
}

.ra-income-bar-input .ra-per-month {
    font-size: 0.85rem;
}

.ra-income-bar-result {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ra-income-bar-result .ra-tier-badge {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
}

.ra-tier-badge.green { background: #dcfce7; color: #16a34a; }
.ra-tier-badge.yellow { background: #fef3c7; color: #d97706; }
.ra-tier-badge.red { background: #fee2e2; color: #dc2626; }

/* Destination Body */
.ra-dest-body {
    padding: 48px 0 60px;
    background: white;
}

.ra-section {
    margin-bottom: 48px;
}

.ra-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.ra-section h2 i {
    color: var(--primary);
}

/* Cost Table */
.ra-cost-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ra-cost-header {
    display: grid;
    grid-template-columns: 1fr 130px 130px 130px;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #475569;
}

.ra-cost-header > div {
    padding: 14px 12px;
    text-align: center;
}

.ra-cost-header > div:first-child {
    text-align: left;
}

.ra-cost-row {
    display: grid;
    grid-template-columns: 1fr 130px 130px 130px;
    border-top: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.ra-cost-row:hover {
    background: #fafbfc;
}

.ra-cost-row.ra-cost-total {
    background: #f0f9ff;
    border-top: 2px solid #bae6fd;
}

.ra-cost-category-col {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.ra-cost-category-col i {
    color: var(--primary);
}

.ra-cost-note {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 2px;
}

.ra-cost-tier-col {
    padding: 14px 8px;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
}

.ra-tier-note {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 3px;
}

.ra-cost-tier-col.active-tier {
    background: #dbeafe;
    font-weight: 700;
    color: #1d4ed8;
}

.ra-cost-tier-col.active-tier .ra-tier-note {
    color: #60a5fa;
}

/* Quality Scores */
.ra-scores-grid {
    display: grid;
    gap: 16px;
}

.ra-score-item {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.ra-score-label {
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-score-label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.ra-score-bar-wrapper {
    background: #e2e8f0;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.ra-score-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    transition: width 0.5s ease;
}

.ra-score-value {
    font-weight: 700;
    color: #1e293b;
    text-align: right;
    font-size: 0.9rem;
}

/* Info Cards */
.ra-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.ra-info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.ra-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ra-info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #475569;
}

.ra-info-list li:last-child {
    border-bottom: none;
}

.ra-info-list strong {
    color: #1e293b;
}

.ra-difficulty {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ra-difficulty-easy { background: #dcfce7; color: #16a34a; }
.ra-difficulty-moderate { background: #fef3c7; color: #d97706; }
.ra-difficulty-difficult { background: #fee2e2; color: #dc2626; }

.ra-tax-yes { color: #dc2626; font-weight: 600; }
.ra-tax-no { color: #16a34a; font-weight: 600; }

.ra-tax-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Practical Info */
.ra-practical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ra-practical-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ra-practical-item i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 2px;
}

.ra-practical-item strong {
    display: block;
    color: #1e293b;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.ra-practical-item span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Pros & Cons */
.ra-pros-card, .ra-cons-card {
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

.ra-pros-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.ra-cons-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ra-pros-card h4 {
    color: #16a34a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ra-cons-card h4 {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ra-pros-card ul, .ra-cons-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ra-pros-card li, .ra-cons-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #475569;
}

.ra-pros-card li:last-child, .ra-cons-card li:last-child {
    border-bottom: none;
}

/* Sidebar - reuse article.html sidebar styles */
.sidebar {
    position: sticky;
    top: 140px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 i { color: var(--primary); }

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

.cta-card h4 { color: white; }
.cta-card p { color: rgba(255, 255, 255, 0.95); margin-bottom: 20px; font-size: 0.95rem; }
.cta-card .btn { background: white; color: var(--primary); font-weight: 600; border: none; }
.cta-card .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.related-link {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.related-link:last-child { border-bottom: none; }
.related-link:hover { background: #f9fafb; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }

.related-link-title { font-weight: 600; color: #1e293b; font-size: 0.95rem; line-height: 1.4; margin-bottom: 4px; }
.related-link-meta { font-size: 0.8rem; color: #64748b; }

.share-card { text-align: center; }
.share-buttons { display: flex; gap: 8px; justify-content: center; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: transform 0.2s ease; }
.share-btn:hover { transform: scale(1.1); color: white; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.email { background: #64748b; }

/* Article content within destination page */
.ra-dest-body .article-main-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.ra-dest-body .article-main-content h2 { font-size: 1.9rem; font-weight: 700; color: #1e293b; margin-top: 48px; margin-bottom: 20px; }
.ra-dest-body .article-main-content h3 { font-size: 1.4rem; font-weight: 600; color: #334155; margin-top: 36px; margin-bottom: 16px; }
.ra-dest-body .article-main-content p { margin-bottom: 20px; }
.ra-dest-body .article-main-content ul, .ra-dest-body .article-main-content ol { margin-bottom: 24px; padding-left: 28px; }
.ra-dest-body .article-main-content li { margin-bottom: 12px; }
.ra-dest-body .article-main-content strong { color: #1e293b; font-weight: 600; }

.ra-dest-body .article-main-content .highlight-box {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.ra-dest-body .article-main-content .highlight-box h4 { color: #0369a1; font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.ra-dest-body .article-main-content .highlight-box p { color: #0c4a6e; margin-bottom: 0; }

/* Toolbar: region filter + calculator link */
.ra-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ra-toolbar-left {
    flex: 1;
    min-width: 0;
}

/* Calculator Banner (compact, right-aligned) */
.ra-calc-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    text-decoration: none;
    color: #4f46e5;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ra-calc-banner:hover {
    background: #e0e7ff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
    color: #4338ca;
}

.ra-calc-banner > i:first-child {
    font-size: 1.1rem;
}

.ra-calc-banner > i:last-child {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991px) {
    .ra-hero h1 { font-size: 2.2rem; }
    .ra-dest-title { font-size: 2rem; }
    .ra-practical-grid { grid-template-columns: repeat(2, 1fr); }
    .ra-cost-header, .ra-cost-row { grid-template-columns: 1fr 100px 100px 100px; }
    .sidebar { position: static; margin-top: 40px; }
    .ra-income-bar-inner { justify-content: center; }
    .ra-income-bar-result { margin-left: 0; }
    .ra-score-item { grid-template-columns: 140px 1fr 50px; }
}

@media (max-width: 767px) {
    .ra-map-container { height: 280px; }
    .ra-hero { padding: 80px 0 40px; }
    .ra-hero h1 { font-size: 1.8rem; }
    .ra-dest-hero { height: 320px; }
    .ra-dest-title { font-size: 1.6rem; }
    .ra-practical-grid { grid-template-columns: 1fr; }
    .ra-cost-header, .ra-cost-row { grid-template-columns: 1fr 80px 80px 80px; font-size: 0.8rem; }
    .ra-cost-category-col { font-size: 0.85rem; }
    .ra-tier-note { display: none; }
    .ra-score-item { grid-template-columns: 1fr 1fr 40px; }
    .ra-score-label { font-size: 0.85rem; }
    .ra-affordability-legend { display: none; }
    .ra-toolbar { flex-direction: column; align-items: stretch; }
    .ra-calc-banner { justify-content: center; }
}

/* ============================================
   Slow Travel Calculator
   ============================================ */

.ra-calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.ra-calc-column {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.ra-calc-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.ra-calc-column-header i {
    font-size: 1.6rem;
    color: #4f46e5;
}

.ra-calc-column-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.ra-calc-column-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.ra-calc-input-group {
    margin-bottom: 16px;
}

.ra-calc-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ra-calc-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.ra-calc-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ra-calc-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ra-calc-input-wrap:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ra-calc-input-wrap .ra-calc-input-money {
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 10px 8px;
}

.ra-calc-input-wrap .ra-calc-input-money:focus {
    box-shadow: none;
}

.ra-calc-dollar {
    padding: 0 0 0 14px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.95rem;
}

.ra-calc-mo {
    padding: 0 14px 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.ra-calc-continues {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #94a3b8;
    cursor: pointer;
}

.ra-calc-continues input[type="checkbox"] {
    accent-color: #4f46e5;
    cursor: pointer;
}

.ra-calc-select {
    appearance: auto;
    cursor: pointer;
}

/* Tier radio group */
.ra-calc-tier-group {
    display: flex;
    gap: 8px;
}

.ra-calc-tier-option {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    margin: 0;
}

.ra-calc-tier-option:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
}

.ra-calc-tier-option.active {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.ra-calc-tier-option input[type="radio"] {
    display: none;
}

/* Abroad cost breakdown */
.ra-calc-abroad-costs {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ra-calc-cost-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.ra-calc-cost-line:last-child {
    border-bottom: none;
}

.ra-calc-cost-line span:last-child {
    font-weight: 600;
    color: #1e293b;
}

/* Home/abroad monthly total */
.ra-calc-home-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 14px 18px;
    background: #4f46e5;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
}

.ra-calc-home-total.abroad {
    background: #059669;
}

/* Calculate button */
.ra-calc-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.ra-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Results section */
.ra-calc-results {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

/* Savings headline */
.ra-calc-savings-headline {
    text-align: center;
    padding: 40px 32px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.ra-calc-savings-headline.savings {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #a7f3d0;
}

.ra-calc-savings-headline.extra-cost {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
}

.ra-calc-headline-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.savings .ra-calc-headline-icon { color: #059669; }
.extra-cost .ra-calc-headline-icon { color: #dc2626; }

.ra-calc-headline-amount {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.savings .ra-calc-headline-amount { color: #059669; }
.extra-cost .ra-calc-headline-amount { color: #dc2626; }

.ra-calc-headline-detail {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 16px;
}

.ra-calc-headline-breakdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.95rem;
    color: #64748b;
}

.ra-calc-headline-breakdown i {
    margin-right: 6px;
}

/* Chart */
.ra-calc-chart-wrapper {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.ra-calc-chart-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.ra-calc-chart-container {
    height: 360px;
    position: relative;
}

/* Summary table */
.ra-calc-summary {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.ra-calc-summary h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.ra-calc-table-wrap {
    overflow-x: auto;
}

.ra-calc-table {
    width: 100%;
    border-collapse: collapse;
}

.ra-calc-table th {
    padding: 12px 16px;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.ra-calc-table td {
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.ra-calc-table td.positive { color: #059669; font-weight: 600; }
.ra-calc-table td.negative { color: #dc2626; font-weight: 600; }

.ra-calc-table-total td {
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
    font-size: 1.05rem;
}

/* Calculator responsive */
@media (max-width: 991px) {
    .ra-calc-form { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 767px) {
    .ra-calc-column { padding: 20px; }
    .ra-calc-headline-amount { font-size: 1.6rem; }
    .ra-calc-headline-breakdown { flex-direction: column; gap: 8px; }
    .ra-calc-chart-container { height: 300px; }
    .ra-calc-tier-group { flex-direction: column; }
}
