/* Header */
/* Header */
header {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    width: 50%;
    height: 85px;
    padding: 10px 20px;
}

.logo:hover {
    transform: none;
}

.logo-icon {
    width: 100%;
    height: 150%;
    display: flex;
    align-items: center;
    justify-content: left;
}

.logo-icon img {
    height: 65px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

nav {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 85px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: flex-end;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Footer bottom amb selector d'idioma a la dreta */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.language-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 0;
    border-bottom: 1px solid #444;
    margin-bottom: 1.5rem;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.language-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.footer-bottom > p {
    text-align: center;
    padding-top: 0;
    margin: 0;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect fill="url(%23grain)" width="1200" height="600"/></svg>');
    background-blend-mode: overlay;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    animation: grain 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Map Container */
.map-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.filters-sidebar {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    height: 800px;
    overflow-y: auto;
}

#map {
    height: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Results Section */
.results-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.results-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.results-count {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.commerce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* Footer bottom amb selector d'idioma centrat */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
}

.language-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #444;
    margin-bottom: 1.5rem;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.language-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.footer-bottom > p {
    color: #999;
    margin: 0;
}
