﻿/* ============================================
   SIDEBAR GEO ADS - Professional Design CSS
   ============================================ */

/* Geo Ads Container */
.geo-ads-container {
    margin-bottom: 20px;
}

/* Loading State */
.geo-ads-loading {
    padding: 15px;
    text-align: center;
    color: #888;
    font-style: italic;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
}

/* Error Message */
.geo-ads-error {
    padding: 12px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   INDIVIDUAL AD STYLING
   ============================================ */

.geo-ad {
    margin-bottom: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.geo-ad:hover {
    transform: translateY(-4px);
}

.geo-ad:last-child {
    margin-bottom: 0;
}

/* ============================================
   IMAGE CONTAINER & OVERLAY
   ============================================ */

.geo-ad-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
    display: block;
}

/* Main link covers entire image */
.geo-ad-image a {
    display: block;
    position: relative;
    z-index: 5;
}

.geo-ad img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.geo-ad:hover img {
    filter: brightness(0.93);
}

/* ============================================
   ACTION BUTTONS OVERLAY
   ============================================ */

.geo-ad-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 20;
}

/* Base Button Styles */
.geo-ad-phone,
.geo-ad-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    position: relative;
    pointer-events: auto;
}

.geo-ad-phone svg,
.geo-ad-map svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

/* ============================================
   PHONE BUTTON (Green/WhatsApp Color)
   ============================================ */

.geo-ad-phone {
    background: linear-gradient(135deg, #25d366 0%, #20ba5b 100%);
    color: white;
}

.geo-ad-phone:hover {
    background: linear-gradient(135deg, #2ae580 0%, #22c55e 100%);
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.geo-ad-phone:hover svg {
    transform: scale(1.1);
}

.geo-ad-phone:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* ============================================
   MAP BUTTON (Blue/Google Maps Color)
   ============================================ */

.geo-ad-map {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.geo-ad-map:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.geo-ad-map:hover svg {
    transform: scale(1.1);
}

.geo-ad-map:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .geo-ad {
        margin-bottom: 20px;
    }
    
    .geo-ad-actions {
        top: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .geo-ad-phone,
    .geo-ad-map {
        width: 44px;
        height: 44px;
    }
    
    .geo-ad-phone svg,
    .geo-ad-map svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .geo-ad-actions {
        top: 8px;
        right: 8px;
        gap: 8px;
    }
    
    .geo-ad-phone,
    .geo-ad-map {
        width: 40px;
        height: 40px;
    }
    
    .geo-ad-phone svg,
    .geo-ad-map svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   THREE COLUMN LAYOUT
   ============================================ */

.geo-ads-three-column {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.geo-ads-column {
    padding: 0 15px;
    box-sizing: border-box;
}

.geo-ads-left {
    width: 25%;
}

.geo-ads-center {
    width: 50%;
}

.geo-ads-right {
    width: 25%;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .geo-ads-left,
    .geo-ads-center,
    .geo-ads-right {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .geo-ads-left,
    .geo-ads-right {
        order: 2;
    }
    
    .geo-ads-center {
        order: 1;
    }
}

/* ============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================ */

.geo-ad-phone:focus,
.geo-ad-map:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geo-ad {
    animation: fadeIn 0.4s ease-out;
}
