/**
 * Phase 2 Styles — Visa, Weather, Budget, Planner, Compare sections.
 *
 * Loaded alongside ldt-main.css on all destination pages.
 *
 * @package    Lavisa_Destinations_Theme
 * @since      1.1.0
 */

/* ═══════════════════════════════════════════════════════════════════
 * VISA SECTION
 * ═══════════════════════════════════════════════════════════════════ */
.ldt-visa-section { max-width: 600px; }
.ldt-visa-card {
    background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.ldt-visa-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ldt-visa-card__icon { font-size: 28px; }
.ldt-visa-card__title-wrap { flex: 1; }
.ldt-visa-card__title { font-size: 18px; font-weight: 700; color: var(--ldt-heading); margin: 0; }
.ldt-visa-card__badge {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.ldt-visa-card__details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px; margin-bottom: 12px;
}
.ldt-visa-detail {
    background: var(--ldt-bg-subtle, #f9fafb); border-radius: 8px; padding: 10px 12px;
}
.ldt-visa-detail__label { display: block; font-size: 10px; text-transform: uppercase; color: var(--ldt-muted); font-weight: 600; letter-spacing: 0.3px; }
.ldt-visa-detail__value { display: block; font-size: 15px; font-weight: 700; color: var(--ldt-heading); margin-top: 2px; }
.ldt-visa-card__notes { font-size: 13px; color: var(--ldt-text); line-height: 1.6; margin: 10px 0; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.ldt-visa-card__docs h4 { font-size: 12px; font-weight: 700; color: var(--ldt-heading); text-transform: uppercase; margin: 0 0 6px; }
.ldt-visa-card__docs ul { margin: 0; padding: 0 0 0 18px; font-size: 13px; color: var(--ldt-text); line-height: 1.8; }
.ldt-visa-card__apply {
    display: inline-block; margin-top: 12px; padding: 8px 18px;
    background: var(--ldt-primary, #003580); color: #fff;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background 0.2s;
}
.ldt-visa-card__apply:hover { background: var(--ldt-primary-hover, #0057b8); color: #fff; }
.ldt-visa-section__check-link { font-size: 13px; color: var(--ldt-muted); }
.ldt-visa-section__check-link a { color: var(--ldt-primary); text-decoration: none; font-weight: 600; }
.ldt-visa-section__check-link a:hover { text-decoration: underline; }

/* Visa card component */
.ldt-card-visa { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.ldt-card-visa__header { display: flex; align-items: center; gap: 8px; }
.ldt-card-visa__icon { font-size: 20px; }
.ldt-card-visa__label { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.ldt-card-visa__dest { margin-left: auto; font-size: 12px; color: var(--ldt-muted); }
.ldt-card-visa__details { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--ldt-text); }
.ldt-card-visa--compact .ldt-card-visa__header { gap: 6px; }

/* Visa checker page */
.ldt-visa-page-info { max-width: 600px; margin: 40px auto; text-align: center; }
.ldt-visa-page-info h2 { font-size: 18px; font-weight: 700; color: var(--ldt-heading); margin-bottom: 16px; }
.ldt-visa-steps { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; }
.ldt-visa-step { text-align: center; max-width: 160px; }
.ldt-visa-step span {
    display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
    background: var(--ldt-primary); color: #fff; border-radius: 50%;
    font-size: 16px; font-weight: 700; margin-bottom: 6px;
}
.ldt-visa-step p { font-size: 13px; color: var(--ldt-text); margin: 0; }
.ldt-visa-disclaimer { font-size: 11px; color: var(--ldt-muted); font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════
 * WEATHER SECTION
 * ═══════════════════════════════════════════════════════════════════ */
.ldt-weather-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.ldt-weather-card {
    background: #fff; border-radius: 14px; padding: 18px;
    border: 1px solid var(--ldt-border, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ldt-weather-card--full { grid-column: 1 / -1; }
.ldt-weather-card__title { font-size: 14px; font-weight: 700; color: var(--ldt-heading); margin: 0 0 12px; }
.ldt-weather-card__text { font-size: 13px; color: var(--ldt-text); line-height: 1.6; margin: 0 0 10px; }

/* Live weather */
.ldt-weather-live { display: flex; align-items: center; gap: 12px; }
.ldt-weather-live__temp { font-size: 36px; font-weight: 800; color: var(--ldt-primary); }
.ldt-weather-live__info { font-size: 13px; color: var(--ldt-text); }
.ldt-weather-live__info strong { display: block; font-size: 15px; color: var(--ldt-heading); }
.ldt-weather-live__info span { color: var(--ldt-muted); }

/* Stats */
.ldt-weather-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ldt-weather-stat { background: var(--ldt-bg-subtle, #f9fafb); border-radius: 8px; padding: 10px; text-align: center; }
.ldt-weather-stat strong { display: block; font-size: 18px; font-weight: 700; color: var(--ldt-primary); }
.ldt-weather-stat span { font-size: 10px; color: var(--ldt-muted); text-transform: uppercase; font-weight: 600; }

/* Chart */
.ldt-weather-chart { display: flex; gap: 4px; align-items: flex-end; height: 140px; }
.ldt-weather-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ldt-weather-bars { display: flex; gap: 2px; align-items: flex-end; height: 100px; width: 100%; }
.ldt-weather-bar { flex: 1; border-radius: 3px 3px 0 0; min-width: 0; transition: height 0.5s ease; }
.ldt-weather-bar--temp { background: linear-gradient(to top, #fbbf24, #ef4444); }
.ldt-weather-bar--rain { background: linear-gradient(to top, #93c5fd, #3b82f6); }
.ldt-weather-bar-val { font-size: 9px; color: var(--ldt-muted); }
.ldt-weather-bar-label { font-size: 10px; color: var(--ldt-muted); font-weight: 600; }
.ldt-weather-bar-label--best { color: #22c55e; font-weight: 700; }
.ldt-weather-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 11px; color: var(--ldt-muted); }
.ldt-weather-legend span { display: flex; align-items: center; gap: 4px; }
.ldt-weather-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* Month pills */
.ldt-weather-months { display: flex; flex-wrap: wrap; gap: 6px; }
.ldt-weather-month-pill {
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    border: 2px solid var(--ldt-border, #e5e7eb); color: var(--ldt-muted);
}
.ldt-weather-month-pill--best { background: #f0fdf4; border-color: #22c55e; color: #166534; }

/* Packing */
.ldt-packing-list { display: flex; flex-direction: column; gap: 6px; }
.ldt-packing-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    background: var(--ldt-bg-subtle, #f9fafb); border-radius: 8px; font-size: 13px;
}
.ldt-packing-item__icon { font-size: 16px; flex-shrink: 0; }
.ldt-packing-item__name { font-weight: 600; color: var(--ldt-heading); }
.ldt-packing-item__reason { margin-left: auto; font-size: 11px; color: var(--ldt-muted); }

/* ═══════════════════════════════════════════════════════════════════
 * BUDGET SECTION
 * ═══════════════════════════════════════════════════════════════════ */
.ldt-budget-section { max-width: 600px; }
.ldt-budget-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--ldt-border, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ldt-budget-total {
    background: linear-gradient(135deg, var(--ldt-primary, #003580), var(--ldt-primary-hover, #0057b8));
    color: #fff; padding: 20px; text-align: center;
}
.ldt-budget-total__label { display: block; font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.ldt-budget-total__amount { display: block; font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.ldt-budget-total__sub { display: block; font-size: 12px; opacity: 0.7; margin-top: 4px; }
.ldt-budget-breakdown { padding: 16px 20px; }
.ldt-budget-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid #f3f4f6;
}
.ldt-budget-row:last-child { border-bottom: none; }
.ldt-budget-row__icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
.ldt-budget-row__label { flex: 1; font-size: 13px; color: var(--ldt-text); }
.ldt-budget-row__bar {
    width: 80px; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden;
}
.ldt-budget-row__fill { height: 100%; background: var(--ldt-primary); border-radius: 3px; transition: width 0.5s; }
.ldt-budget-row__fill--flight { background: var(--ldt-accent, #ff8c00); }
.ldt-budget-row__amount { font-size: 13px; font-weight: 700; color: var(--ldt-heading); min-width: 80px; text-align: right; }
.ldt-budget-cta {
    display: block; text-align: center; padding: 12px 20px;
    background: var(--ldt-bg-subtle, #f9fafb); border-top: 1px solid #f3f4f6;
    color: var(--ldt-primary); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background 0.2s;
}
.ldt-budget-cta:hover { background: #f0f4ff; }

/* ═══════════════════════════════════════════════════════════════════
 * PAGE TEMPLATES
 * ═══════════════════════════════════════════════════════════════════ */
.ldt-page__hero--small {
    background: linear-gradient(135deg, var(--ldt-primary, #003580), var(--ldt-primary-hover, #0057b8));
    color: #fff; padding: 40px 0 30px; text-align: center;
}
.ldt-page__title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.ldt-page__subtitle { font-size: 15px; opacity: 0.85; margin: 0; }
.ldt-page__body { padding: 30px 0 60px; }
.ldt-notice {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
    padding: 16px 20px; font-size: 14px; color: #92400e; text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ldt-weather-grid { grid-template-columns: 1fr; }
    .ldt-weather-live { flex-direction: column; text-align: center; }
    .ldt-visa-steps { flex-direction: column; align-items: center; }
    .ldt-budget-row__bar { display: none; }
    .ldt-packing-item__reason { display: none; }
}
