@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 600px;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

#search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #3a7bc8;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    list-style-type: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestions-list li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestions-list li:hover {
    background-color: #f0f8ff;
}

#selected-place-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #4a4a4a;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* Scrollbar Styles for Webkit Browsers */
.suggestions-list::-webkit-scrollbar {
    width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Ensure the last suggestion doesn't have a sharp corner */
.suggestions-list li:last-child {
    border-radius: 0 0 8px 8px;
}

/* Add a subtle animation for suggestion appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestions-list {
    animation: fadeIn 0.3s ease-out;
}

/* Style for empty state */
.suggestions-list:empty {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    #search-input {
        font-size: 0.9rem;
    }

    #search-button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .card {
        padding: 1.2rem;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.8rem;
    }
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.card-meta {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

.card-meta .year {
    margin-right: 10px;
}

.card-body {
    display: flex;
    padding: 20px;
}

.distance {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4a90e2;
}

.distance-value {
    font-size: 2.5rem;
    line-height: 1;
}

.distance-unit {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.details {
    flex: 1;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

@media (max-width: 600px) {
    .card-body {
        flex-direction: column;
    }

    .distance {
        margin-bottom: 15px;
    }

    .details {
        padding-left: 0;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: -1px;
}

.logo-icon {
  font-size: 3rem;
  margin-right: 0.5rem;
  color: #3498DB;
  text-shadow: 2px 2px 4px rgba(52, 152, 219, 0.3);
}

.logo-text {
  background: linear-gradient(45deg, #3498DB, #2980B9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.logo-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #7F8C8D;
  margin-top: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  #map {
    height: 400px;
    width: 100%;
    margin-top: 20px;
  }