/* ownMap Advertising System Styles */
/* Version 1.0 - Internal banner before Google Ads */

.ownmap-ad-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1500;
    font-family: system-ui, -apple-system, sans-serif;
}

.ad-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.ad-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.ad-branding-text {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.ad-branding-logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ad-text {
    flex: 1;
}

.ad-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}

.ad-subtitle {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.ad-cta {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.ad-cta:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Layout adjustments when ads are present */
body.has-ads .map-wrapper {
    height: calc(100vh - 80px);
}

body.has-ads .map-footer {
    bottom: 100px;
}

body.has-ads .om-info-panel {
    bottom: 90px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ownmap-ad-banner {
        height: 70px;
        padding: 0 15px;
    }
    
    .ad-banner-inner {
        max-width: 100%;
    }

    body.has-ads .map-wrapper {
        height: calc(100vh - 70px);
    }

    body.has-ads .map-footer {
        bottom: 85px;
    }
    
    body.has-ads .om-info-panel {
        bottom: 80px;
    }

    .ad-branding-text {
        font-size: 10px;
    }

    .ad-branding-logo {
        font-size: 20px;
    }

    .ad-title {
        font-size: 13px;
    }

    .ad-subtitle {
        font-size: 11px;
    }

    .ad-cta {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ad-content {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ad-subtitle {
        display: none;
    }
    
    .ad-content {
        gap: 10px;
    }
    
    .ad-branding-text {
        font-size: 9px;
    }
    
    .ad-branding-logo {
        font-size: 18px;
    }
    
    .ad-title {
        font-size: 12px;
    }
}