/* HERO */

.hero {
    background: radial-gradient(circle at top left, #1d4ed8, #020617);
    color: white;
    padding: 32px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: center;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.hero p {
    font-size: 15px;
    max-width: 420px;
    opacity: 0.9;
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.hero-card h2 {
    font-size: 18px;
    margin-top: 0;
}

.hero-field {
    margin-top: 10px;
}

.hero-field label {
    font-size: 12px;
    opacity: 0.8;
    display: block;
    margin-bottom: 4px;
}

.hero-field input[type="text"],
.hero-field input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
}

.hero-note {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}

/* CHIPS REGIUNI */

.region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    border-radius: 999px;
    border: 1px solid #1e293b;
    font-size: 12px;
    padding: 4px 10px;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
    opacity: 0.85;
}

.chip.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    opacity: 1;
}

/* GRIDURI CARDURI */

.cards-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.cards-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* COUNTRY CARDS */

.country-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15,23,42,0.16);
}

.country-thumb {
    height: 130px;
    background-size: cover;
    background-position: center;
}

.country-thumb.placeholder {
    background: linear-gradient(135deg, #c4b5fd, #38bdf8);
}

.country-content {
    padding: 12px 14px 14px;
}

.country-content h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.country-region {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.country-description {
    font-size: 13px;
    margin: 8px 0 10px;
    color: #4b5563;
}

.country-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* FILTRARE CARDURI DIN JS */

.cards-grid .country-card[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease-out, height 0s 0.3s, margin 0s 0.3s, padding 0s 0.3s;
}

.cards-grid.is-filtered .country-card {
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out;
}

.cards-grid.is-filtered .country-card[style*="display: block"] {
    opacity: 1;
}

/* TOP CITIES / CITY CARDS */

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.city-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.15);
}

.city-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
}

.city-info {
    padding: 15px;
    text-align: center;
}

.city-info h3 {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
}

.city-info p {
    font-size: 14px;
    color: #6b7280;
}

/* FUN FACTS / NEWS BOX (dacă le folosești) */

.fun-facts {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 14px;
}

.fun-facts li {
    margin-bottom: 6px;
}

.news-box {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.news-box article {
    background: white;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.news-box h3 {
    margin: 0 0 6px;
}

.news-box p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* STATS + FILTER BAR */

.stats-bar {
    color: #e5e7eb;
    padding: 16px 0;
}

.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    font-size: 0.95rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 4px;
}

#budgetRange {
    width: 100%;
}

#budgetValue {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #111827;
    font-weight: 500;
}

.btn-reset-filters {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: white;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-reset-filters:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* CALCULATOR + TIPS */

.calculator {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator select,
.calculator input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

.calc-result {
    margin-top: 6px;
    font-weight: 600;
    color: #1d4ed8;
}

/* Wrapper nou */

.calc-new-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 35px;
    max-width: 1100px;
    margin: auto;
}

.section-title-center {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.section-subtitle-center {
    text-align: center;
    color: #6b7280;
    margin-bottom: 40px;
    font-size: 16px;
}

/* Card calculator */

.calc-new-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.calc-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1f2937;
}

.calc-input-group {
    margin-bottom: 20px;
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    background: #f9fafb;
}

/* Buton */

.calc-new-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.calc-new-btn:hover {
    transform: translateY(-3px);
}

/* Rezultat */

.calc-new-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #eef2ff;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    display: none;
}

/* Tips card */

.tips-new-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tip-box {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: #f9fafb;
}

.tip-icon {
    font-size: 26px;
    margin-right: 12px;
}

.tip-text {
    font-size: 15px;
    color: #374151;
}

.tips-footer {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

/* Rezultate calculateBudget */

.calc-results-inner {
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
    padding-top: 15px;
}

.calc-value {
    font-size: 1.25rem;
    color: #10b981;
    margin: 5px 0;
}

.calc-error {
    color: #ef4444;
    font-weight: 600;
}

.calc-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 10px;
}
