/* ADU Regulations Tab Redesign - Making it wider and more visually appealing */

/* Fullwidth container for the regulations tab */
.regulations-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Special container just for the regulations section */
.regulations-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Header section with improved visual styling */
.regulations-header {
    max-width: 1600px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 30px;
}

.regulations-header h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.regulations-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.regulations-header p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    max-width: 1200px;
    margin: 0 auto;
}

/* Map section styling */
.map-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto 50px;
    padding: 0 20px;
    position: relative;
}

.interactive-map {
    position: relative;
    padding-bottom: 45%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.interactive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.05));
    pointer-events: none;
    z-index: 10;
    border-radius: 12px;
}

.map-caption {
    text-align: center;
    margin-top: 30px;
}

.map-caption h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* City grid enhanced styling */
.city-grid-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

.city-grid-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.city-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 45px 50px;
    padding: 20px;
}

.city-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 230px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-item:hover {
    transform: translateY(-8px);
}

/* City logo container with improved styling */
.city-logo-container {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    overflow: hidden;
}

.city-item:hover .city-logo-container {
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    background-color: #f8f8f8;
}

/* City logo image */
.city-logo {
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.city-item:hover .city-logo {
    transform: scale(1.05);
}

/* City button styling */
.city-button {
    display: inline-block;
    width: 190px;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.city-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: white;
}

/* Additional design elements for visual interest */
.design-element {
    position: absolute;
    z-index: -1;
    opacity: 0.2;
}

.design-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    top: 5%;
    left: -50px;
}

.design-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--secondary-color);
    bottom: 10%;
    right: -30px;
}

.design-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
    pointer-events: none;
    background: linear-gradient(45deg, transparent 49.5%, var(--primary-color) 49.5%, var(--primary-color) 50.5%, transparent 50.5%);
    background-size: 30px 30px;
}

/* Call to action section after city grid */
.regulations-cta {
    width: 100%;
    max-width: 1600px;
    margin: 50px auto 0;
    padding: 50px 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.regulations-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.regulations-cta p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.regulations-cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.regulations-cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media only screen and (max-width: 1800px) {
    .regulations-container {
        max-width: 1600px;
    }
    
    .interactive-map {
        padding-bottom: 50%;
    }
}

@media only screen and (max-width: 1400px) {
    .regulations-container {
        max-width: 1200px;
    }
    
    .city-grid {
        gap: 35px 40px;
    }
    
    .city-item {
        width: 200px;
    }
    
    .city-logo-container {
        width: 130px;
        height: 130px;
    }
}

@media only screen and (max-width: 768px) {
    .regulations-header h2 {
        font-size: 2rem;
    }
    
    .city-grid {
        gap: 25px 30px;
    }
    
    .city-item {
        width: 160px;
    }
    
    .city-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .city-button {
        width: 160px;
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .interactive-map {
        padding-bottom: 60%;
    }
}

@media only screen and (max-width: 480px) {
    .regulations-header h2 {
        font-size: 1.7rem;
    }
    
    .regulations-header p {
        font-size: 1rem;
    }
    
    .city-grid {
        gap: 20px 25px;
    }
    
    .city-item {
        width: 140px;
    }
    
    .city-button {
        width: 140px;
        font-size: 0.85rem;
    }
    
    .interactive-map {
        padding-bottom: 80%;
    }
}
