.time-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.time-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.time-input {
    width: 80px;
    padding: 12px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #D1D1D6;
    background: #F5F5F7;
}

.time-input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(94, 92, 230, 0.15);
    outline: none;
}

.time-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 24px;
}

.ampm-toggle {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #D1D1D6;
    margin-top: 22px;
}

.ampm-btn {
    padding: 12px 16px;
    border: none;
    background: #F5F5F7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ampm-btn.active {
    background: var(--accent-color);
    color: white;
}

.ampm-btn:hover:not(.active) {
    background: #E5E5EA;
}

.search-container {
    position: relative;
    margin-top: 20px;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px !important;
    border-radius: 12px;
    border: 1px solid #D1D1D6;
    background: #F5F5F7;
    font-size: 1rem;
}

.search-input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(94, 92, 230, 0.15);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D1D1D6;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-results.visible {
    display: block;
}

.search-result {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F5F5F7;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: #F5F5F7;
}

.search-result-city {
    font-weight: 500;
}

.search-result-tz {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.selected-source {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.08), rgba(94, 92, 230, 0.02));
    border-radius: 12px;
    margin-top: 16px;
}

.source-city {
    font-weight: 600;
    font-size: 1.1rem;
}

.source-tz {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.source-change {
    margin-left: auto;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.source-change:hover {
    text-decoration: underline;
}

.destinations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 12px;
}

.destinations-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.destination-card {
    background: #F9F9FA;
    border: 1px solid #E5E5EA;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: all 0.2s;
}

.destination-card:hover {
    border-color: #C7C7CC;
    background: #fff;
}

.destination-city {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.destination-country {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.destination-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 8px 0 4px;
}

.destination-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.destination-offset {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #E5E5EA;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.destination-diff {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-left: 6px;
}

.destination-diff.ahead {
    background: rgba(52, 199, 89, 0.15);
    color: #059669;
}

.destination-diff.behind {
    background: rgba(255, 59, 48, 0.15);
    color: #DC2626;
}

.destination-diff.same {
    background: #E5E5EA;
    color: var(--text-secondary);
}

.day-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF9500;
    margin-left: 6px;
}

.use-current-btn {
    padding: 12px 16px;
    border: 1px solid #D1D1D6;
    background: #F5F5F7;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 22px;
    white-space: nowrap;
}

.use-current-btn:hover {
    background: #E5E5EA;
    border-color: var(--accent-color);
}

.destination-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #E5E5EA;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.destination-remove:hover {
    background: #FF3B30;
    color: white;
}

.add-destination {
    border: 2px dashed #D1D1D6;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 160px;
}

.add-destination:hover {
    border-color: var(--accent-color);
    background: rgba(94, 92, 230, 0.02);
}

.add-destination-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.add-destination-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.map-section {
    margin-top: 24px;
}

.map-container {
    background: #F9F9FA;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #E5E5EA;
    overflow: hidden;
}

.world-map {
    width: 100%;
    height: auto;
}

.world-map .timezone-region {
    fill: #E8E8ED;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.2s;
}

.world-map .timezone-region:hover {
    fill: #D1D1D6;
}

.world-map .timezone-region.selected {
    fill: rgba(94, 92, 230, 0.3);
}

.map-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quick-zones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.quick-zone {
    padding: 8px 14px;
    background: #F5F5F7;
    border: 1px solid #E5E5EA;
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.quick-zone:hover {
    background: #E5E5EA;
    border-color: #D1D1D6;
}

@media (max-width: 640px) {
    .app-shell {
        padding: 20px 0 60px;
    }

    .tool-container {
        padding: 0;
        max-width: 100% !important;
    }

    .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 20px !important;
    }

    .time-input-row {
        justify-content: center;
    }

    .destination-grid {
        grid-template-columns: 1fr;
    }

    .hero-compact {
        margin-bottom: 4px !important;
        padding: 0;
    }

    .hero-compact h1 {
        font-size: 1.75rem;
        padding: 0 16px;
    }

    .hero-compact p {
        font-size: 0.9rem;
        padding: 0 16px;
    }

    .guide-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
