/* ============================================================
   Proxximus Logistique — Custom CSS
   ============================================================ */

/* ─── Icon Font ─────────────────────────────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}
.fill-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Gradients ─────────────────────────────────────────────────────────────── */
.gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
}
.metallic-gold-gradient {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 45%, #B38728 70%, #FBF5B7 100%);
}
.navy-gradient {
    background: linear-gradient(135deg, #00204f 0%, #1a3668 100%);
}

/* ─── Shadows ────────────────────────────────────────────────────────────────── */
.navy-shadow {
    box-shadow: 0 4px 20px -2px rgba(26, 54, 104, 0.08);
}
.navy-shadow-lg {
    box-shadow: 0 8px 32px -4px rgba(26, 54, 104, 0.14);
}

/* ─── Blog Bento Grid ────────────────────────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.bento-featured {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .bento-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ─── Property Gallery ───────────────────────────────────────────────────────── */
.property-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    height: 300px;
}
@media (min-width: 768px) {
    .property-gallery {
        grid-template-columns: repeat(4, 1fr);
        height: 500px;
    }
    .property-gallery .gallery-main {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ─── Sticky Header compensation ─────────────────────────────────────────────── */
html {
    scroll-padding-top: 88px;
}
.section-anchor {
    scroll-margin-top: 100px;
}

/* ─── WP Core overrides ──────────────────────────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.wp-block-image {
    margin: 0;
}
/* Override Tailwind preflight for WP editor content */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #00204f;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.entry-content p {
    margin-bottom: 1em;
    color: #44474f;
    line-height: 1.75;
}
.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
    color: #44474f;
}
.entry-content li {
    margin-bottom: 0.25em;
    line-height: 1.75;
}
.entry-content a {
    color: #00204f;
    text-decoration: underline;
}

/* ─── Property Card hover ─────────────────────────────────────────────────────── */
.property-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -4px rgba(26, 54, 104, 0.14);
}

/* ─── Blog Article Card hover ─────────────────────────────────────────────────── */
.article-card {
    transition: transform 0.2s ease;
}
.article-card:hover {
    transform: translateY(-4px);
}

/* ─── Form inputs focus ────────────────────────────────────────────────────────── */
.form-input:focus {
    outline: none;
    border-color: #00204f;
    box-shadow: 0 0 0 2px rgba(0, 32, 79, 0.1);
}

/* ─── Certification badge ──────────────────────────────────────────────────────── */
.certified-badge {
    background: linear-gradient(135deg, #a0f399, #88d982);
    border: 1px solid #1b6d24;
}

/* ─── Transition standard ─────────────────────────────────────────────────────── */
.transition-standard {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Animate bounce for map pin ─────────────────────────────────────────────── */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* ─── Selection colours ─────────────────────────────────────────────────────── */
::selection {
    background: #00204f;
    color: #ffffff;
}

/* ─── Custom Scrollbar ───────────────────────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c4c6d0;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #747780;
}

/* ─── Leaflet Map ────────────────────────────────────────────────────────────── */
#proxximus-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    z-index: 0;
}

/* Custom pin marker */
.prox-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 40px;
    background: #00204f;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 32, 79, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.prox-marker-inner {
    display: block;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}
.prox-marker--active {
    background: #1b6d24;
    box-shadow: 0 6px 20px rgba(27, 109, 36, 0.45);
    transform: rotate(-45deg) scale(1.25);
}

/* Leaflet popup override */
.prox-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 32, 79, 0.2);
    border: 1px solid #e1e3e4;
    min-width: 240px;
}
.prox-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 240px !important;
}
.prox-leaflet-popup .leaflet-popup-tip {
    background: #ffffff;
}
.prox-leaflet-popup .leaflet-popup-close-button {
    top: 8px;
    right: 10px;
    color: #44474f;
    font-size: 18px;
    z-index: 2;
}

/* Popup inner card */
.prox-popup {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.prox-popup-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.prox-popup-thumb--empty {
    background: linear-gradient(135deg, #00204f, #1a3668);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.prox-popup-body {
    padding: 12px 14px;
}
.prox-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #005312;
    background: linear-gradient(135deg, #a0f399, #88d982);
    border: 1px solid #1b6d24;
    border-radius: 20px;
    padding: 2px 8px;
    margin-bottom: 8px;
}
.prox-popup-title {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #00204f;
    margin: 0 0 4px;
    line-height: 1.3;
}
.prox-popup-location {
    font-size: 11px;
    color: #44474f;
    margin: 0 0 4px;
}
.prox-popup-meta {
    font-size: 11px;
    color: #747780;
    margin: 0 0 6px;
}
.prox-popup-price {
    font-size: 14px;
    font-weight: 800;
    color: #1b6d24;
    margin: 0 0 2px;
}
.prox-popup-eur {
    font-size: 11px;
    color: #44474f;
    margin: 0 0 10px;
}
.prox-popup-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #00204f;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}
.prox-popup-btn:hover {
    opacity: 0.88;
}

/* Highlight active list card */
.property-list-card--active {
    border-left: 3px solid #00204f;
    background-color: #eef2fc;
}
