/* ==========================================================================
   Portfolio - Grid Layout (default)
   ========================================================================== */

.hopmans-portfolio-container {
    max-width: 1260px;
    margin: 0 auto;
}

/* Filter dropdowns */
.hopmans-portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.hopmans-portfolio-filter {
    min-width: 200px;
    height: 44px;
    padding: 0 35px 0 15px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px auto;
    transition: border-color 0.2s ease;
}

.hopmans-portfolio-filter:hover {
    border-color: var(--e-global-color-primary, #10aa9e);
}

.hopmans-portfolio-filter:focus {
    outline: none;
    border-color: var(--e-global-color-primary, #10aa9e);
    box-shadow: 0 0 0 2px rgba(16, 170, 158, 0.1);
}

/* Portfolio grid */
.hopmans-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .hopmans-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hopmans-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hopmans-portfolio-filters {
        flex-direction: column;
    }

    .hopmans-portfolio-filter {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hopmans-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio card */
.hopmans-portfolio-card {
    display: block;
    text-decoration: none !important;
    overflow: hidden;
}


.hopmans-portfolio-card.hopmans-portfolio-hidden {
    display: none;
}

/* Card image */
.hopmans-portfolio-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: #f5f5f5;
}

.hopmans-portfolio-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hopmans-portfolio-card:hover .hopmans-portfolio-card-image img {
    transform: scale(1.05);
}

/* Card content */
.hopmans-portfolio-card-content {
    padding: 15px 0;
}

.hopmans-portfolio-card-type {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--e-global-color-primary, #10aa9e);
    margin-bottom: 5px;
}

.hopmans-portfolio-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    transition: color 0.2s ease;
}

.hopmans-portfolio-card:hover .hopmans-portfolio-card-title {
    color: var(--e-global-color-primary, #10aa9e);
}

/* No results message */
.hopmans-portfolio-no-results {
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 16px;
    margin-top: 20px;
}

.hopmans-portfolio-paged {
    display: none;
}

.hopmans-portfolio-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.hopmans-portfolio-load-more {
    display: inline-block;
    padding: 12px 36px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hopmans-portfolio-load-more:hover {
    background: #16213e;
}

/* ==========================================================================
   Portfolio - Alternating Layout (legacy)
   ========================================================================== */

.hopmans-portfolio-alternating {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hopmans-portfolio-alternating .hopmans-portfolio-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Image left (default/even items) */
.hopmans-portfolio-alternating .hopmans-portfolio-image-left {
    flex-direction: row;
}

/* Image right (odd items) */
.hopmans-portfolio-alternating .hopmans-portfolio-image-right {
    flex-direction: row-reverse;
}

/* Image container - fixed 4:3 aspect ratio */
.hopmans-portfolio-alternating .hopmans-portfolio-image {
    flex: 0 0 45%;
    max-width: 45%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hopmans-portfolio-alternating .hopmans-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content container */
.hopmans-portfolio-alternating .hopmans-portfolio-content {
    flex: 0 0 55%;
    max-width: 55%;
    background-color: var(--e-global-color-5eb10eb, #f5f5f5);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Soort vastgoed - h6 */
.hopmans-portfolio-alternating .hopmans-portfolio-type {
    margin: 0 0 10px 0;
}

/* Title - h2 */
.hopmans-portfolio-alternating .hopmans-portfolio-title {
    margin: 0 0 10px 0 !important;
    font-size: 1.7em !important;
    font-weight: 700 !important;
    color: var(--e-global-color-primary, #10aa9e) !important;
    line-height: 1.2 !important;
}

/* Location with icon */
.hopmans-portfolio-alternating .hopmans-portfolio-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--e-global-color-primary, #10aa9e);
}

.hopmans-portfolio-alternating .hopmans-portfolio-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Description */
.hopmans-portfolio-alternating .hopmans-portfolio-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Button */
.hopmans-portfolio-alternating .hopmans-portfolio-btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: var(--e-global-color-5eb10eb, #f5f5f5);
    color: var(--e-global-color-primary, #10aa9e) !important;
    font-size: 1em;
    font-weight: 400;
    line-height: 1em;
    text-decoration: none !important;
    border-style: solid;
    border-width: 2px;
    border-color: var(--e-global-color-primary, #10aa9e);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.hopmans-portfolio-alternating .hopmans-portfolio-btn:hover {
    background-color: var(--e-global-color-primary, #10aa9e);
    color: #fff !important;
    text-decoration: none !important;
}

/* No portfolio message */
.hopmans-no-portfolio {
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 16px;
}

/* Responsive Portfolio (Alternating) */
@media (max-width: 1024px) {
    .hopmans-portfolio-alternating .hopmans-portfolio-content {
        padding: 30px;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .hopmans-portfolio-alternating .hopmans-portfolio-item,
    .hopmans-portfolio-alternating .hopmans-portfolio-image-left,
    .hopmans-portfolio-alternating .hopmans-portfolio-image-right {
        flex-direction: column;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-image,
    .hopmans-portfolio-alternating .hopmans-portfolio-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-image {
        height: 250px;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-content {
        padding: 20px;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-title {
        font-size: 1.4em;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-location {
        line-height: 1.4em;
    }

    .hopmans-portfolio-alternating .hopmans-portfolio-description {
        font-size: 0.9em;
    }
}

/* ==========================================================================
   Portfolio Categories Grid
   ========================================================================== */

/* Container wrapper for Elementor compatibility */
.hopmans-portfolio-categories-container {
    display: block;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.hopmans-portfolio-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1024px) {
    .hopmans-portfolio-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hopmans-portfolio-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Category card */
.hopmans-portfolio-category-card {
    display: block;
    position: relative;
    text-decoration: none !important;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    transition: transform 0.3s ease;
}

.hopmans-portfolio-category-card:hover {
    text-decoration: none !important;
}

.hopmans-portfolio-category-card:hover {
    transform: scale(1.02);
}

/* Overlay with title and count */
.hopmans-portfolio-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: #fff;
}

.hopmans-portfolio-category-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.hopmans-portfolio-category-count {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* No categories message */
.hopmans-no-categories {
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    color: #6b7280;
    font-size: 16px;
}

/* ==========================================================================
   Taxonomy Archive (soort_vastgoed)
   ========================================================================== */

.hopmans-taxonomy-archive {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero with background image */
.hopmans-taxonomy-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 40px;
}

.hopmans-taxonomy-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
}

.hopmans-taxonomy-hero .hopmans-taxonomy-title {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}

.hopmans-taxonomy-hero .hopmans-taxonomy-description {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

/* Header without image */
.hopmans-taxonomy-header {
    padding: 40px 0;
    text-align: center;
}

.hopmans-taxonomy-header .hopmans-taxonomy-title {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
}

.hopmans-taxonomy-header .hopmans-taxonomy-description {
    margin: 0;
    font-size: 18px;
    color: #6b7280;
}

/* Content area */
.hopmans-taxonomy-content {
    margin-bottom: 40px;
}

.hopmans-taxonomy-content .hopmans-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .hopmans-taxonomy-content .hopmans-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hopmans-taxonomy-content .hopmans-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hopmans-taxonomy-hero {
        height: 250px;
    }

    .hopmans-taxonomy-hero .hopmans-taxonomy-title {
        font-size: 28px;
    }
}

/* Back link */
.hopmans-taxonomy-back {
    padding: 20px 0 40px;
    border-top: 1px solid #e5e7eb;
}

.hopmans-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--e-global-color-primary, #10aa9e);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.hopmans-back-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* No results */
.hopmans-taxonomy-content .hopmans-no-results {
    padding: 60px 20px;
    text-align: center;
    background: #f9fafb;
    color: #6b7280;
    font-size: 16px;
}
