/**
 * Hero Focus Grid Mapbox Module Styles
 */

.hero-focus-grid-mapbox {
    padding: 80px 0;
}

.hero-focus-grid-mapbox__container {
    padding: 0 20px;
}

/* Main grid: 2/3 left, 1/3 right */
.hero-focus-grid-mapbox__main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left column: 2/3 width */
.hero-focus-grid-mapbox__left-column {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Top section: Text content + Image */
.hero-focus-grid-mapbox__top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: end;
}

/* Text content section */
.hero-focus-grid-mapbox__text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: flex-end;
    margin-left: 5em;
}

.hero-focus-grid-mapbox__heading-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Yoast SEO kruimelpad — zelfde stijl als loile-page-intro */
.hero-focus-grid-mapbox__top {
    margin-bottom: 16px;
}

.hero-focus-grid-mapbox__breadcrumbs {
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2b2b2b;
    text-transform: none;
    letter-spacing: normal;
}

.hero-focus-grid-mapbox__breadcrumbs .hero-focus-grid-mapbox__bc-sep {
    display: inline-flex;
    align-items: center;
    margin: 0 0.4em;
    vertical-align: middle;
    color: #64748b;
}

.hero-focus-grid-mapbox__breadcrumbs .hero-focus-grid-mapbox__bc-sep .fa-chevron-right {
    font-size: 0.65em;
}

.hero-focus-grid-mapbox__breadcrumbs a {
    color: #2b2b2b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-focus-grid-mapbox__breadcrumbs a:hover,
.hero-focus-grid-mapbox__breadcrumbs a:focus {
    color: #2563eb;
    text-decoration: none;
}

.hero-focus-grid-mapbox__breadcrumbs .breadcrumb_last,
.hero-focus-grid-mapbox__breadcrumbs span.breadcrumb_last {
    font-weight: 600;
    color: #1d1d1d;
}

.hero-focus-grid-mapbox__top + .hero-focus-grid-mapbox__title {
    margin-top: 0;
}

.hero-focus-grid-mapbox__title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    color: #1d1d1d;
    margin: 0;
}

.hero-focus-grid-mapbox__paragraph {
    font-size: 2.1rem;
    line-height: 1.5;
    color: #2b2b2b;
    margin: 0;
    max-width: 90%;
}

/* Top-left card in left column */
.hero-focus-grid-mapbox__top-left-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    align-self: start;
    margin-top: -40px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
}

.hero-focus-grid-mapbox__top-left-card.animate-in {
    animation: slideInFromBottom 0.8s ease forwards;
}

.hero-focus-grid-mapbox__top-left-card:hover {
    transform: scale(1.02);
}

/* Bottom card in left column - now contains mapbox */
.hero-focus-grid-mapbox__bottom-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
    width: 80%;
    margin-left: auto;
    opacity: 0;
    transform: translateX(-50px);
}

.hero-focus-grid-mapbox__bottom-card.animate-in {
    animation: slideInFromLeft 0.8s ease forwards;
}

.hero-focus-grid-mapbox__bottom-card:hover {
    transform: scale(1.02);
}

/* Mapbox container styling */
.hero-focus-grid-mapbox__mapbox-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.hero-focus-grid-mapbox__mapbox {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Custom marker styling - Loile groen */
.hero-focus-grid-mapbox__custom-marker {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: default;
}

.hero-focus-grid-mapbox__marker-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: #2563EB;
    border-radius: 50%;
    border: 2px solid #2563EB;
}

.hero-focus-grid-mapbox__marker-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}

/* Right column: 1/3 width */
.hero-focus-grid-mapbox__right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
}

/* Top card in right column */
.hero-focus-grid-mapbox__top-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
}

.hero-focus-grid-mapbox__top-card.animate-in {
    animation: slideInFromBottom 0.8s ease forwards;
}

.hero-focus-grid-mapbox__top-card:hover {
    transform: scale(1.02);
}

/* Card image styling */
.hero-focus-grid-mapbox__card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-focus-grid-mapbox__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card label styling */
.hero-focus-grid-mapbox__card-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Animation keyframes */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-focus-grid-mapbox {
        padding: 80px 0 40px 0;
    }
    
    .hero-focus-grid-mapbox__main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-focus-grid-mapbox__left-column {
        gap: 40px;
    }
    
    .hero-focus-grid-mapbox__top-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-focus-grid-mapbox__title {
        font-size: 3rem;
        text-align: left;
    }
    
    .hero-focus-grid-mapbox__paragraph {
        font-size: 1.8rem;
        max-width: 100%;
        text-align: left;
    }
    
    .hero-focus-grid-mapbox__text-content {
        gap: 5px;
        text-align: left;
        margin-left: 0;
    }
    
    /* Hide all images except the map on mobile */
    .hero-focus-grid-mapbox__top-left-card,
    .hero-focus-grid-mapbox__top-card {
        display: none;
    }
    
    /* Show only the map on mobile */
    .hero-focus-grid-mapbox__bottom-card {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        aspect-ratio: 1/1 !important;
    }
    
    /* Stack all cards vertically */
    .hero-focus-grid-mapbox__right-column {
        order: 1;
    }
    
    .hero-focus-grid-mapbox__text-content {
        order: -1;
    }
    
    .hero-focus-grid-mapbox__bottom-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-focus-grid-mapbox__title {
        font-size: 3rem;
    }
    
    .hero-focus-grid-mapbox__paragraph {
        font-size: 1.8rem;
    }
}

.hero-focus-grid-mapbox__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 48px 10px 20px;
    background-color: #2563EB;
    color: #FFF;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.hero-focus-grid-mapbox__button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    border-radius: 50px;
    transition: width 0.4s ease 0.3s, width 0.4s ease 0.4s;
    z-index: 1;
}

.hero-focus-grid-mapbox__button:hover::before {
    width: 100%;
    right: 0;
}

.hero-focus-grid-mapbox__button-text {
    color: #FFF;
    position: relative;
    z-index: 3;
}

.hero-focus-grid-mapbox__button-text {
    color: #fff;
    background: linear-gradient(to right, #fff 0%, #fff 50%, #2563EB 50%, #2563EB 100%);
    background-size: 200% 100%;
    background-position: 0% 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 3;
}

.hero-focus-grid-mapbox__button-icon-bg {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 33px;
    height: 33px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.4s ease 0.8s, right 0.4s ease 0.8s;
    z-index: 2;
}

.hero-focus-grid-mapbox__button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-focus-grid-mapbox__button-icon svg {
    width: 16px;
    height: 16px;
    color: #2563EB;
    position: relative;
    z-index: 3;
}

.hero-focus-grid-mapbox__button:hover {
    text-decoration: none !important;
    background-color: #2563EB;
    transition: background-color 0.4s ease 0.7s;
}

/* JavaScript will handle the hover animation */

.hero-focus-grid-mapbox__button:hover::before {
    width: 100%;
}

.hero-focus-grid-mapbox__button:hover .hero-focus-grid-mapbox__button-icon-bg {
    transform: translateY(-50%) scale(1.25);
    transition: transform 0.3s ease;
}

/* Mobile button styles */
@media (max-width: 768px) {
    .hero-focus-grid-mapbox__button-wrapper {
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    .hero-focus-grid-mapbox__button {
        padding: 10px 48px 10px 20px;
        font-size: 1.5rem;
    }
}

/* Pop-up Modal Styles */
.hero-popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-popup-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-popup-modal-close {
    color: #333333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s ease;
}

.hero-popup-modal-close:hover,
.hero-popup-modal-close:focus {
    color: #000000;
}

.hero-popup-modal-body {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.hero-popup-modal-body h1,
.hero-popup-modal-body h2,
.hero-popup-modal-body h3,
.hero-popup-modal-body h4,
.hero-popup-modal-body h5,
.hero-popup-modal-body h6 {
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.hero-popup-modal-body h1:first-child,
.hero-popup-modal-body h2:first-child,
.hero-popup-modal-body h3:first-child {
    margin-top: 0;
}

.hero-popup-modal-body p {
    margin-bottom: 15px;
}

.hero-popup-modal-body ul,
.hero-popup-modal-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.hero-popup-modal-body li {
    margin-bottom: 8px;
}

.hero-popup-modal-body a {
    color: #0066cc;
    text-decoration: none;
}

.hero-popup-modal-body a:hover {
    text-decoration: underline;
}

/* Mobile styles for pop-up modal */
@media (max-width: 768px) {
    .hero-popup-modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .hero-popup-modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .hero-popup-modal-body {
        font-size: 14px;
        margin-top: 15px;
    }
}

/* Contact Form Styles */
.hero-popup-form-container {
    max-width: 100%;
}

.hero-popup-form-container h2 {
    color: #000000;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: center;
}

.hero-popup-form-container p {
    color: #666666;
    font-size: 16px;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.5;
}

.hero-popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.hero-popup-submit-btn {
    background-color: #2563EB;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    min-width: 200px;
}

.hero-popup-submit-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.hero-popup-submit-btn:active {
    transform: translateY(0);
}

.hero-popup-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.form-messages {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-messages.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Mobile form styles */
@media (max-width: 768px) {
    .hero-popup-form-container h2 {
        font-size: 20px;
    }
    
    .hero-popup-form-container p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-popup-form {
        gap: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .hero-popup-submit-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 180px;
    }
}
