:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --background-color: #F5F5F5;
    --card-background: #FFFFFF;
    --text-color: #333333;
    --warning-color: #FF5722;
    --accent-color: #FFC107;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-search {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-buttons {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px;
}

.filter-buttons.show {
    display: block;
}

.filter-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary-color);
    color: white;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#recommendations {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (min-width: 1200px) {
    #recommendations {
        width: 70%; /* Adjust this value to control the width on larger screens */
    }
}

.location-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

.recommendations-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.recommendations-loading-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recommendations-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.recommendations-loading-text {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

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

header {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(1.2);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.7) 0%,
        rgba(33, 150, 243, 0.7) 100%
    );
    z-index: 1;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Replace the header-decoration with this new style */
.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

.card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 3px 3px 6px #d1d1d1, -3px -3px 6px #ffffff;
    padding: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px #c1c1c1, -5px -5px 10px #ffffff;
}

#weather {
    display: none; /* Hide the weather section completely */
}

.weather-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 3px 3px 6px #d1d1d1, -3px -3px 6px #ffffff;
    padding: 12px;
    margin-bottom: 15px;
}

.weather-card h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.current-weather {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.current-weather h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.current-weather-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.temperature-description {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.temperature-description .temperature {
    font-size: 18px;
    font-weight: bold;
    margin-right: 8px;
}

.temperature-description .description {
    font-size: 14px;
}

.temperature-warning {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 4px;
}

.temperature-warning.danger {
    background-color: #FF5252;
    color: white;
}

.temperature-warning.caution {
    background-color: #FF9800;
    color: white;
}

.temperature-warning.careful {
    background-color: #FFD54F;
    color: #333;
}

.temperature-warning.safe {
    background-color: #66BB6A;
    color: white;
}

.forecast {
    margin-top: 10px;
    width: 100%;
}

.forecast h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.forecast-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f0f0f0;
    position: relative;
}

.forecast-grid {
    display: inline-flex;
    gap: 10px;
    padding-bottom: 10px;
}

.forecast-3h {
    width: max-content;
}

.forecast-24h {
    width: max-content;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 80px;
}

.forecast-item img {
    width: 40px;
    height: 40px;
    margin: 4px 0;
}

/* Customize the scrollbar for webkit browsers */
.forecast-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.forecast-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.forecast-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.filter-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.hamburger-icon {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.filter-buttons {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px;
}

.filter-buttons.show {
    display: block;
}

.filter-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary-color);
    color: white;
}

.location {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 12px;
    box-shadow: 3px 3px 6px #d1d1d1, -3px -3px 6px #ffffff;
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.location:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px #c1c1c1, -5px -5px 10px #ffffff;
}

.location h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--accent-color);
}

.location-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-details, .weather-info {
    flex: 1 1 200px;
    max-width: 100%;
    background: linear-gradient(145deg, #e6f2ff, #ffffff);
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 2px 2px 4px #d1e6ff, inset -2px -2px 4px #ffffff;
    overflow: hidden;
}

.location-details p {
    margin: 4px 0;
    font-size: 14px;
}

.weather-info {
    flex: 1 1 200px;
    max-width: 100%;
    background: linear-gradient(145deg, #e6f2ff, #ffffff);
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 2px 2px 4px #d1e6ff, inset -2px -2px 4px #ffffff;
    overflow: hidden;
}

#loading {
    text-align: center;
    display: none;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 15px;
}

.loading-icon {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.error {
    color: var(--warning-color);
    text-align: center;
    display: none;
    padding: 8px;
    background-color: #FFEBEE;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px 0;
    margin-top: 25px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.save-maps-btn {
    background: linear-gradient(145deg, #2196F3, #1e88e5);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    margin-top: 5px;
}

.save-maps-btn:hover {
    background: linear-gradient(145deg, #1e88e5, #2196F3);
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px #1a7fd1, -3px -3px 6px #28adff;
}

.load-more-btn {
    display: block;
    width: auto;
    margin: 20px auto 0;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.category {
    display: inline-block;
    padding: 2px 6px;
    background: var(--accent-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
}

.distance {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Stylize scrollbars for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1976D2;
}

.forecast-toggle {
    background: linear-gradient(145deg, #2196F3, #1e88e5);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
}

.forecast-toggle:hover {
    background: linear-gradient(145deg, #1e88e5, #2196F3);
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px #1a7fd1, -3px -3px 6px #28adff;
}

.dog-safety {
    font-size: 12px;
    margin-left: 4px;
    cursor: help;
}

.dog-safety-info {
    margin-top: 10px;
    font-size: 12px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.dog-safety-info h5 {
    margin-top: 0;
    margin-bottom: 5px;
}

.dog-safety-info p {
    margin: 2px 0;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forecast-item > div:last-child {
    display: flex;
    align-items: center;
}

.dog-safety-container {
    margin-top: 10px;
}

.dog-safety-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s;
}

.dog-safety-toggle:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.dog-safety-toggle .dog-safety {
    margin-right: 8px;
}

.toggle-icon {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.dog-safety-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.dog-safety-info {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    font-size: 12px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.dog-safety-info:not([hidden]) {
    max-height: 200px;
    opacity: 1;
}

.dog-safety-info h5 {
    margin-top: 0;
    margin-bottom: 5px;
}

.dog-safety-info p {
    margin: 2px 0;
}

.location-search {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#city-search {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

#search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

#search-button:hover {
    background-color: #45a049;
}

.message {
    background-color: #e7f3fe;
    border-left: 6px solid #2196F3;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
}