/**
 * Travel Weather - CSS Styling
 */
 
 
 /* Travel Weather CSS - Aforecast.com */

/* Startsida Header */
.aforecast-startpage {
    padding: 20px 0;
}

.aforecast-startpage .logo {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Sökformulär */
.main-search-autocomplete {
    position: relative;
}

.main-search-autocomplete .autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: -1px;
}

.autocomplete-results .autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-results .autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-results .autocomplete-item:hover {
    background-color: #f5f5f5;
}

/* Destination Buttons */
.destination-btn {
    padding: 12px 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.destination-btn:hover {
    background-color: #428bca;
    color: white !important;
    border-color: #428bca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.destination-btn i {
    margin-right: 5px;
}

/* Widget Container */
.travel-startpage-widget {
    margin: 30px 0;
}

.popular-destinations {
    margin-bottom: 20px;
}

/* Widget Search */
.widget-search {
    max-width: 500px;
    margin: 20px auto;
}

.widget-search label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.widget-search .autocomplete-container {
    position: relative;
}

.widget-search .autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: -1px;
}

/* Tabs Styling */
.nav-tabs > li > a {
    color: #333;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: #428bca;
    color: white;
    border-color: #428bca;
}

.tab-content {
    padding: 30px 20px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* Benefits Section */
.travel-benefits {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.travel-benefits h3 {
    text-align: center;
    margin-bottom: 30px;
}

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

.benefit-box i {
    font-size: 48px;
    margin-bottom: 15px;
}

.benefit-box h4 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .destination-btn {
        font-size: 14px;
        padding: 10px 8px;
    }
    
    .widget-search {
        max-width: 100%;
    }
    
    .aforecast-startpage h2 {
        font-size: 36px;
    }
    
    .aforecast-startpage h3 {
        font-size: 24px !important;
    }
}

/* City List Styling */
.aforecast-citylist {
    padding: 20px 0;
}

#weatheroute {
    margin: 30px 0;
}

/* Input focus states */
.form-control:focus {
    border-color: #428bca;
    box-shadow: 0 0 8px rgba(66, 139, 202, 0.5);
}

/* Button hover states */
.btn-default:hover {
    background-color: #428bca;
    border-color: #428bca;
    color: white;
}

/* Smooth transitions */
.destination-btn,
.autocomplete-item,
.btn {
    transition: all 0.3s ease;
}

 
 #mainSearchForm{
	 color:#000;text-align:left;
 }
 #mainSearchForm .input-group{
	 display:flex;
 }
 
 
 /* Startsida specifika styles */
.destination-btn {
    padding: 12px 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.destination-btn:hover {
    background-color: #428bca;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.destination-btn i {
    margin-right: 5px;
}

/* Autocomplete för huvudsökning */
.main-search-autocomplete {
    position: relative;
}

.main-search-autocomplete .autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-search-autocomplete .autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.main-search-autocomplete .autocomplete-item:hover {
    background-color: #f5f5f5;
}

/* Widget styles */
.travel-startpage-widget {
    margin: 30px 0;
}

.popular-destinations {
    margin-bottom: 20px;
}

.widget-search {
    max-width: 500px;
    margin: 0 auto;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}
 
 

/* Header */
.travel-weather-header {
    background: #064c8159;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: center;
}

.travel-weather-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.travel-weather-header h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: normal;
}

/* Trip info stats */
.trip-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trip-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trip-stat .label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 5px;
}

.trip-stat .value {
    font-size: 24px;
    font-weight: bold;
}

/* Karta */
.weather-map-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.weather-map-container h3 {
    margin-top: 0;
    color: #333;
}

.map-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 10px 0 0 0;
}

#travelWeatherMap {
    border: 2px solid #ddd;
}

/* Väder popup på kartan */
.weather-popup {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 25px;
    height: 25px;
}

.popup-close:hover {
    color: #333;
}

.weather-popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.popup-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.popup-temp {
    font-size: 24px;
    font-weight: bold;
    color: #FF6B6B;
}

.popup-details {
    font-size: 13px;
    color: #666;
}

.popup-details div {
    margin: 3px 0;
}

/* Vädertabell */
.weather-table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.weather-table-container h3 {
    margin-top: 0;
    color: #333;
}

.weather-points-table {
    display: grid;
    gap: 15px;
}

.weather-point-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.weather-point-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-color: #74b9ff;
}

.point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.point-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.distance {
    color: #666;
    font-size: 14px;
}

.point-weather {
    display: flex;
    gap: 20px;
    align-items: center;
}

.weather-icon-large img {
    width: 60px;
    height: 60px;
}

.weather-details {
    flex: 1;
}
.weather-details-travel {
    grid-template-columns: 1fr 2fr 1fr;
}

.temperature-large {
    font-size: 32px;
    font-weight: bold;
    color: #4e4e4e;
    margin-bottom: 10px;
}

.weather-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 14px;
}

.meta-item {
    display: flex;
    gap: 5px;
}

.meta-label {
    color: #666;
}

.meta-value {
    font-weight: bold;
    color: #333;
}

/* Utfällbar prognos */
.forecast-toggle {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.toggle-forecast-btn {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.toggle-forecast-btn:hover {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.toggle-icon {
    font-size: 12px;
}

.extended-forecast-container {
    margin-top: 10px;
    display: none;
}

.extended-forecast {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.forecast-day {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: center;
}

.forecast-date {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.forecast-icon img {
    width: 50px;
    height: 50px;
}

.forecast-temps {
    display: flex;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.temp-max {
    color: #FF6B6B;
}

.temp-min {
    color: #4a90e2;
}

.forecast-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.forecast-detail {
    display: flex;
    gap: 5px;
}

.detail-label {
    font-weight: bold;
}

.forecast-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.forecast-error {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
}

/* SEO Content */
.seo-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.seo-content h2 {
    color: #4a4a4a;
    margin-top: 0;
}

.seo-content h3 {
    color: #4a4a4a;
    margin-top: 25px;
}

.seo-content ul {
    padding-left: 20px;
}

.seo-content li {
    margin: 8px 0;
}

.seo-content a {
    text-decoration: none;
}

.seo-content a:hover {
    text-decoration: underline;
}

/* Ny destination sökning */
.new-destination-search {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.new-destination-search h3 {
    margin-top: 0;
    color: #333;
}

/* Autocomplete */
.autocomplete-container {
    position: relative;
    margin: 15px 0;
}

.autocomplete-container input {
    width: calc(100% - 26px);
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.autocomplete-container input:focus {
    outline: none;
    border-color: #4ECDC4;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f0f0f0;
}

.no-results {
    padding: 10px 15px;
    color: #999;
    font-style: italic;
}

/* Alla städer */
.all-cities-toggle {
    margin: 20px 0;
}

.all-cities-toggle button {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.all-cities-toggle button:hover {

}

.all-cities-list {
    margin-top: 20px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.city-item {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.city-item:hover {
    background: #0984e3;
    color: white;
    border-color: #0984e3;
}

/* Widget styles */
.travel-weather-widget {
    background: #f6f6f6;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.travel-weather-widget h3 {
    margin-top: 0;
    font-size: 24px;
}

.widget-intro {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.widget-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.widget-search .autocomplete-container {
    position: relative;
    margin-bottom: 15px;
}

.widget-search input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.widget-search input:focus {
    outline: none;
    border-color: #4ECDC4;
}

.widget-toggle {
    margin: 20px 0;
}

.toggle-cities-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-cities-btn:hover {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.toggle-icon {
    transition: transform 0.3s;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.widget-cities-list {
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.widget-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.widget-city-link {
    display: block;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.widget-city-link:hover {
    background: #0f62a2;
    color: white;
    border-color: #74b9ff;
    text-decoration: none;
}

.widget-benefits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.widget-benefits h4 {
    color: #333;
    margin-bottom: 10px;
}

.widget-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.widget-benefits li {
    margin: 8px 0;
    color: #555;
}

.loading {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Responsiv design */
@media (max-width: 768px) {
    .travel-weather-header h1 {
        font-size: 22px;
    }
    
    .travel-weather-header h2 {
        font-size: 18px;
    }
    
    .trip-info {
        gap: 20px;
    }
    
    .trip-stat .value {
        font-size: 20px;
    }
    
    .weather-meta {
        grid-template-columns: 1fr;
    }
    
    .point-weather {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .widget-cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #travelWeatherMap {
        height: 400px !important;
    }
    
    .forecast-day {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .forecast-temps {
        justify-content: center;
    }
    
    .forecast-details {
        flex-direction: column;
        gap: 5px;
    }
	
	.weather-details-travel {
		grid-template-columns: 1fr;
	}	
	
	
}

@media (max-width: 480px) {
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-cities-grid {
        grid-template-columns: 1fr;
    }
    
    .trip-info {
        flex-direction: column;
        gap: 15px;
    }
}