* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Roboto', sans-serif; */
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
    margin: 0 auto;
    
}

.page-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    margin-left: 60px;
    margin-right: 60px;
}

.map-container {
    flex: 1;
    min-width: 0;
    /* remove this */
    min-height: 400px;
}

.content-container {
    flex: 1;
    min-width: 0;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 100px;
    margin-bottom: 30px;
    margin-left: 100px;
    margin-right: 100px;
}

.container_2 {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 1.5em;
}

#pincodeForm {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: flex-end;
}

/* Desktop layout - apply larger gap */
@media (min-width: 768px) {
    #pincodeForm {
        gap: 80px;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* margin-left: 100px; */
    /* margin-right: 100px; */
    /* max-width: fit-content; */
    /* flex-grow: 1; */
}

.input-instruction {
    font-size: 14px;
    color: #566573;
    margin-bottom: 3px;
    font-weight: 500;
}

.input-with-label {
    position: relative;
    width: 100%;
    min-width: 120px;
}

.input-with-label input {
    width: 100%;
    padding-right: 50px;
}

.input-label {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
    pointer-events: none;
    padding-right: 10px;
}

/* Style the number input arrows */
input[type="number"] {
    appearance: textfield; /* Standard */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

/* Webkit browsers like Chrome, Safari */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    opacity: 1;
    margin-left: 15px;
    height: 20px;
}

input[type="number"]:focus {
    border-color: #db3434;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input[type="text"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    flex-grow: 1;
    min-width: 200px;
    max-width: 300px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button {
    background-color: #38af3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* margin-left: 10px; */
}

button:hover {
    background-color:#2d8a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#result {
    margin-top: 20px;
}

#result h2,
#result h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
    font-size: 1.17em;
}

/* Facility list styles */
.facility-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.facility-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #2a782e;
    display: flex;
    gap: 12px;
    position: relative;
    align-items: center;
}

.facility-number {
    background-color: #4caf50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.facility-content {
    flex-grow: 1;
}

.facility-name {
    display: block;
    font-size: 17px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.facility-address {
    color: #555;
    font-size: 14px;
    margin-top: 5px;
}

/* Star rating styles */
.rating {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.star {
    color: #f1c40f;
    font-size: 18px;
    margin-right: 2px;
}

.star.empty {
    color: #ccc;
}

.star.half {
    position: relative;
    color: #ccc;
}

.star.half:before {
    content: '★';
    position: absolute;
    color: #f1c40f;
    width: 50%;
    overflow: hidden;
}

.rating-value {
    color: #7f8c8d;
    margin-left: 5px;
    font-size: 14px;
}

.no-rating {
    color: #95a5a6;
    font-style: italic;
    font-size: 14px;
}

.more-results {
    background-color: #e8f4fc;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    color: #2980b9;
    font-size: 14px;
    text-align: center;
}

/* Info window styles */
.info-window {
    padding: 8px 12px;
    max-width: 250px;
    font-family: 'Roboto', sans-serif;
}

.info-window strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 15px;
}

.info-directions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.info-directions-btn, .info-view-btn {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.info-directions-btn {
    background-color: #4caf50;
}

.info-view-btn {
    background-color: #3498db;
}

.info-directions-btn:hover {
    background-color: #27ae60;
}

.info-view-btn:hover {
    background-color: #2980b9;
}

#map {
    height: calc(100vh - 100px);
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error {
    color: #e74c3c;
    padding: 10px;
    background-color: #fceaea;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 20px;
}

.loading-container {
    display: none;
    text-align: center;
    margin: 40px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #38af3c;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .page-layout {
        flex-direction: column-reverse;
        margin-left: 14px;
        margin-right: 14px;
    }
    
    .container {
        padding: 20px;
        margin-left: 14px;
        margin-right: 14px;
    }
    
    #pincodeForm {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .input-with-label {
        max-width: 100%;
    }
    
    input[type="text"] {
        max-width: 100%;
    }
    
    #map {
        height: 350px;
    }
    
    .facility-list {
        max-height: 300px;
    }
}

/* Facility actions styles */
.facility-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.directions-btn, .info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.directions-btn {
    background-color: #4caf50;
}

.info-btn {
    background-color: #3498db;
}

.directions-btn:hover, .info-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.directions-btn:hover {
    background-color: #319134;
}

.info-btn:hover {
    background-color: #2980b9;
}

.directions-btn svg, .info-btn svg {
    width: 22px;
    height: 22px;
} 