/* GSUK Nearby Amenities Styles */
.gsuk-nearby-amenities {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 2rem 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Map Container */
.gsuk-na-map-container {
    position: relative;
    height: 400px;
    background: #f8f9fa;
}

.gsuk-na-map {
    width: 100%;
    height: 100%;
}

/* Amenities Container */
.gsuk-na-amenities-container {
    padding: 2rem;
    background: #ffffff;
}

.gsuk-na-amenities-container h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Loading States */
.gsuk-na-loading,
.gsuk-na-no-results,
.gsuk-na-error {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

.gsuk-na-error {
    color: #e74c3c;
    background: #fdf2f2;
    border-left: 4px solid #e74c3c;
}

/* Amenity Groups */
.gsuk-na-amenity-group {
    margin-bottom: 2rem;
}

.gsuk-na-group-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Amenity Items */
.gsuk-na-amenity-items {
    display: grid;
    gap: 1rem;
}

.gsuk-na-amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.gsuk-na-amenity-item:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.gsuk-na-amenity-item.gsuk-na-active {
    background: #3498db;
    color: #ffffff;
    border-color: #2980b9;
}

.gsuk-na-amenity-item.gsuk-na-active .gsuk-na-amenity-name {
    color: #ffffff;
}

.gsuk-na-amenity-item.gsuk-na-active .gsuk-na-amenity-address {
    color: #ecf0f1;
}

/* Amenity Icon */
.gsuk-na-amenity-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
    padding-top: 0.25rem;
}

/* Amenity Details */
.gsuk-na-amenity-details {
    flex: 1;
    min-width: 0;
}

.gsuk-na-amenity-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.3;
}

.gsuk-na-amenity-address {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Rating */
.gsuk-na-amenity-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.gsuk-na-stars {
    color: #f39c12;
    letter-spacing: 1px;
}

.gsuk-na-rating-text {
    color: #7f8c8d;
    font-weight: 500;
}

.gsuk-na-amenity-item.gsuk-na-active .gsuk-na-rating-text {
    color: #ecf0f1;
}

/* Tabs UI */
.gsuk-na-tabs {
    display: flex;
    border-bottom: 2px solid #e0e6ed;
    margin-bottom: 1.5rem;
    background: #fff;
    gap: 0.5rem;
}
.gsuk-na-tab {
    background: none;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    color: #34495e;
    padding: 1rem 1.5rem 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    margin-bottom: -2px;
}
.gsuk-na-tab.active,
.gsuk-na-tab:focus {
    color: #0077c8;
    border-bottom: 2px solid #0077c8;
    background: #f8fafd;
    font-weight: 600;
}
.gsuk-na-tab:hover {
    background: #f0f4f8;
    color: #0077c8;
}

/* Tab List */
.gsuk-na-tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.gsuk-na-tab-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1rem 1.25rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.gsuk-na-tab-item:hover {
    border-color: #0077c8;
    box-shadow: 0 4px 16px rgba(0,119,200,0.08);
    background: #f0f8ff;
}

.gsuk-na-amenity-icon {
    font-size: 1.7rem;
    min-width: 2.5rem;
    text-align: center;
    margin-top: 0.1rem;
}
.gsuk-na-amenity-name {
    font-weight: 600;
    color: #222f3e;
    font-size: 1.08rem;
    margin-right: 0.5rem;
}
.gsuk-na-distance {
    color: #0077c8;
    font-size: 0.98rem;
    font-weight: 500;
    margin-left: 0.25rem;
}
.gsuk-na-amenity-address {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-top: 0.15rem;
    margin-bottom: 0.1rem;
}
.gsuk-na-amenity-rating {
    color: #f39c12;
    font-size: 0.95rem;
    margin-top: 0.1rem;
}
.gsuk-na-rating-text {
    color: #7f8c8d;
    font-size: 0.93rem;
    margin-left: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gsuk-nearby-amenities {
        margin: 1rem 0;
    }
    
    .gsuk-na-map-container {
        height: 300px;
    }
    
    .gsuk-na-map {
    }
    
    .gsuk-na-amenities-container {
        padding: 1.5rem;
    }
    
    .gsuk-na-amenities-container h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .gsuk-na-amenity-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .gsuk-na-amenity-icon {
        font-size: 1.25rem;
        min-width: 1.5rem;
    }
    
    .gsuk-na-amenity-name {
        font-size: 0.95rem;
    }
    
    .gsuk-na-amenity-address {
        font-size: 0.85rem;
    }
}

/* Minimalistic Mobile Design for screens under 767px */
@media (max-width: 767px) {
    .gsuk-nearby-amenities {
        margin: 0.5rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .gsuk-na-map-container {
        height: 200px;
    }
    
    .gsuk-na-amenities-container {
        padding: 1rem;
    }
    
    .gsuk-na-amenities-container h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid #e0e6ed;
        padding-bottom: 0.5rem;
    }
    
    /* Compact tab design */
    .gsuk-na-tabs {
        gap: 0.1rem;
        margin-bottom: 1rem;
    }
    
    .gsuk-na-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        font-weight: 500;
        border-radius: 4px;
        margin-bottom: 0;
    }
    
    /* Minimalistic amenity items */
    .gsuk-na-amenity-item {
        padding: 0.5rem;
        gap: 0.5rem;
        margin-bottom: 0.25rem;
        border-radius: 4px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .gsuk-na-amenity-item:hover {
        background: #e9ecef;
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .gsuk-na-amenity-icon {
        font-size: 1rem;
        min-width: 1.2rem;
        opacity: 0.8;
    }
    
    .gsuk-na-amenity-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .gsuk-na-amenity-address {
        font-size: 0.75rem;
        color: #6c757d;
        margin-top: 0.1rem;
    }
    
    .gsuk-na-distance {
        font-size: 0.75rem;
        color: #007bff;
        font-weight: 500;
    }
    
    .gsuk-na-amenity-rating {
        font-size: 0.7rem;
        margin-top: 0.1rem;
    }
    
    .gsuk-na-rating-text {
        font-size: 0.7rem;
        color: #6c757d;
    }
    
    /* Compact tab list */
    .gsuk-na-tab-list {
        gap: 0.25rem;
    }
    
    .gsuk-na-tab-item {
        padding: 0.4rem 0.3rem;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    /* Hide less important elements on mobile */
    .gsuk-na-amenity-item .gsuk-na-amenity-rating,
    .gsuk-na-amenity-item .gsuk-na-amenity-address {
        display: none;
    }
    
    /* Simplified loading and error states */
    .gsuk-na-loading,
    .gsuk-na-no-results,
    .gsuk-na-error {
        padding: 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gsuk-na-map-container {
        height: 250px;
    }
    
    .gsuk-na-amenities-container {
        padding: 1rem;
    }
    
    .gsuk-na-amenity-items {
        gap: 0.75rem;
    }
    
    .gsuk-na-amenity-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .gsuk-na-amenity-icon {
        font-size: 1.1rem;
        min-width: 1.25rem;
    }
}

/* Responsive for tabs and lists */
@media (max-width: 768px) {
    .gsuk-na-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .gsuk-na-tab {
        padding: 0.75rem 1rem 0.5rem 1rem;
        font-size: 0.98rem;
    }
    .gsuk-na-tab-list {
        gap: 0.75rem;
    }
    .gsuk-na-tab-item {
        padding: 0.75rem 0.5rem 0.75rem 0.25rem;
        font-size: 0.97rem;
    }
    .gsuk-na-amenity-icon {
        font-size: 1.3rem;
        min-width: 1.7rem;
    }
}

@media (max-width: 480px) {
    .gsuk-na-tabs {
        gap: 0.1rem;
    }
    .gsuk-na-tab {
        padding: 0.5rem 0.5rem 0.3rem 0.5rem;
        font-size: 0.95rem;
    }
    .gsuk-na-tab-list {
        gap: 0.5rem;
    }
    .gsuk-na-tab-item {
        padding: 0.5rem 0.2rem 0.5rem 0.1rem;
        font-size: 0.95rem;
    }
    .gsuk-na-amenity-icon {
        font-size: 1.1rem;
        min-width: 1.2rem;
    }
}

/* Animation for loading */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.gsuk-na-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Custom scrollbar for amenities list */
.gsuk-na-amenities-list {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f8f9fa;
}

.gsuk-na-amenities-list::-webkit-scrollbar {
    width: 6px;
}

.gsuk-na-amenities-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.gsuk-na-amenities-list::-webkit-scrollbar-thumb {
    background: #3498db;
}

.gsuk-na-amenities-list::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Print styles */
@media print {
    .gsuk-na-map-container {
        display: none;
    }
    
    .gsuk-nearby-amenities {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .gsuk-na-amenity-item {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
} 