:root {
    --primary: #4F46E5;
    --primary-hover: #4338ca;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header {
    text-align: center;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

header p {
    color: var(--text-muted);
}

.selector-card,
.result-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Result Card */
.result-card {
    border-top: 5px solid var(--primary);
    animation: slideUp 0.5s ease-out;
}

.result-card.hidden {
    display: none;
}

.result-card h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.details-grid {
    display: grid;
    gap: 20px;
}

.detail-group h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.detail-group p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.detail-group p strong {
    color: var(--text-main);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

/**custom css**/
.selector-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.selector-card,
.result-card {
    min-width: 0;
    /* Prevent overflow */
}

.google-map-section {
    grid-column: 1 / -1;
    /* Full width */
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    /* Hidden by default until map is shown */
}

/* Tablet (iPad) and Mobile Responsiveness */
@media (max-width: 820px) {
    .selector-section {
        grid-template-columns: 1fr;
    }
}

.google-map-section.active {
    display: block;
}

#google-map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    z-index: 1;
}