@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
    --accent-color: #7c3aed;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.header-wrapper {
    position: relative;
    flex-shrink: 0;
    background: var(--primary-gradient);
    padding-bottom: 60px;
}

.header {
    padding: 30px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern-bg-desktop.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.brand-icon {
    font-size: 40px;
    color: var(--text-white);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

h1 {
    color: var(--text-white);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -1px;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.search-container {
    max-width: 555px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: var(--text-white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
}

.info-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 26px 24px;
    max-width: 1110px;
    margin: 0 auto;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: calc(100% - 48px);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
}

.info-item {
    position: relative;
}

.info-label {
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.info-label i {
    color: var(--accent-color);
    font-size: 12px;
}

.info-value {
    color: var(--text-white);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

#map {
    flex: 1;
    position: relative;
    width: 100%;
    z-index: 1;
    filter: brightness(0.9);
    min-height: 400px;
    margin-top: 60px;
}

.attribution {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    background: rgba(26, 26, 46, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
}

.attribution p {
    margin: 2px 0;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 5px;
}

.social-links a {
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.info-value.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Media Queries */

/* Mobile styles (max-width: 767px) */
@media (max-width: 767px) {
    body {
        font-size: 16px;
        overflow-x: hidden;
    }
    
    .header-wrapper {
        padding-bottom: 40px;
    }
    
    .header {
        padding: 20px 16px 30px;
    }
    
    .brand {
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .brand-icon {
        font-size: 32px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .search-container {
        margin: 0 auto 20px;
    }
    
    .search-input {
        padding: 14px 20px;
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .search-button {
        width: 44px;
        height: 44px;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .info-container {
        position: static;
        transform: none;
        width: calc(100% - 32px);
        margin: -30px auto 0;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .info-grid {
        gap: 16px;
    }
    
    .info-label {
        font-size: 9px;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    
    .info-label i {
        font-size: 10px;
    }
    
    .info-value {
        font-size: 16px;
    }
    
    #map {
        margin-top: 20px;
        min-height: 300px;
    }
    
    .attribution {
        font-size: 10px;
        padding: 4px 12px;
        bottom: 5px;
    }
    
    .social-links a {
        font-size: 14px;
    }
}

/* Very small mobile screens (max-width: 375px) */
@media (max-width: 375px) {
    h1 {
        font-size: 22px;
    }
    
    .brand-icon {
        font-size: 28px;
    }
    
    .search-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .search-button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
        word-break: break-all;
    }
    
    .info-label {
        font-size: 8px;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        padding: 25px 20px 35px;
    }
    
    .brand-icon {
        font-size: 36px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .search-input {
        padding: 16px 22px;
    }
    
    .search-button {
        width: 48px;
        height: 48px;
    }
    
    .info-container {
        padding: 24px 20px;
        bottom: -60px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .info-label {
        font-size: 11px;
    }
    
    .info-value {
        font-size: 22px;
    }
    
    #map {
        margin-top: 70px;
        min-height: 350px;
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 33px 24px 40px;
    }
    
    .header-wrapper {
        padding-bottom: 80px;
    }

    h1 {
        font-size: 42px;
    }

    .brand-icon {
        font-size: 48px;
    }

    .tagline {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .info-container {
        padding: 37px 32px;
        border-radius: 15px;
        width: calc(100% - 48px);
        max-width: 1110px;
        bottom: -70px;
    }

    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }

    .info-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 75px;
        width: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

    .info-label {
        font-size: 12px;
        margin-bottom: 13px;
        justify-content: flex-start;
    }

    .info-label i {
        font-size: 14px;
    }

    .info-value {
        font-size: 26px;
    }
    
    #map {
        margin-top: 80px;
    }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}