.grlg-container {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.grlg-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
}

.grlg-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.grlg-subtitle {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 20px;
}

.grlg-form {
    display: flex;
    gap: 10px;
}

#regiofy-search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
}

.grlg-button {
    background-color: #0071e3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.grlg-button:hover {
    background-color: #0077ed;
}

.grlg-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

#grlg-result-list {
    margin-top: 20px;
}

.grlg-result-item {
    background-color: #f5f5f7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grlg-result-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1d1d1f;
}

.grlg-result-header p {
    margin: 0;
    font-size: 14px;
    color: #6e6e73;
}

.grlg-rating {
    font-size: 16px;
    font-weight: 600;
    color: #ffb400;
    margin-left: auto;
    white-space: nowrap;
}

.grlg-no-rating {
    font-size: 16px;
    font-weight: 600;
    color: #6e6e73;
    margin-left: auto;
    white-space: nowrap;
}

.grlg-show-all-btn {
    display: block;
    margin: 20px auto 0;
}

.grlg-map-container {
    height: 150px;
    width: 100%;
    border-radius: 8px;
    background-color: #e8e8e8;
}

#grlg-final-output {
    text-align: center;
}

#grlg-final-map {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    background-color: #e8e8e8;
    margin: 20px 0;
}

.grlg-link-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#grlg-review-url-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f5f5f7;
}

.grlg-button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.grlg-loading {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0071e3;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

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