@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

.gwl-listing-card {
    font-family: 'Montserrat', sans-serif;
}

.gwl-listings-wrapper {
    width: 100%;
}

.gwl-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #e0e0e0;
}

.gwl-listings-indicator {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

.gwl-view-toggles {
    display: flex;
    gap: 10px;
}

.gwl-view-toggle {
    background: #ffffff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0;
    color: #333;
}

.gwl-view-toggle:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #000;
}

.gwl-view-toggle.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.gwl-view-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gwl-view-toggle:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.gwl-listings-container {
    display: grid;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.gwl-listings-container.gwl-columns-1 {
    grid-template-columns: 1fr;
}

.gwl-listings-container.gwl-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gwl-listings-container.gwl-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gwl-listings-container.gwl-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .gwl-listings-container.gwl-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gwl-listings-container.gwl-columns-3,
    .gwl-listings-container.gwl-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gwl-listings-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

.gwl-listings-container.gwl-list-view {
    display: block;
}

.gwl-listings-container.gwl-list-view .gwl-listing-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 20px;
    min-height: 300px;
}

.gwl-listings-container.gwl-list-view .gwl-card-image {
    height: 100%;
}

.gwl-listings-container.gwl-list-view .gwl-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gwl-listings-container.gwl-list-view .gwl-card-content {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .gwl-listings-container.gwl-list-view .gwl-listing-card {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .gwl-listings-container.gwl-list-view .gwl-card-image {
        height: 250px;
    }
}

.gwl-listing-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gwl-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gwl-listing-card.gwl-premium {
    background-color: #162E44;
    color: #ffffff;
}

.gwl-listing-card.gwl-premium .gwl-animal-name,
.gwl-listing-card.gwl-premium .gwl-born-date,
.gwl-listing-card.gwl-premium .gwl-label,
.gwl-listing-card.gwl-premium .gwl-value {
    color: #ffffff;
}

.gwl-listing-card.gwl-sold {
    background: linear-gradient(135deg, #c9b58c 0%, #d4c4a0 100%);
    color: #5a5a5a;
}

.gwl-listing-card.gwl-sold .gwl-animal-name,
.gwl-listing-card.gwl-sold .gwl-born-date {
    color: #3a3a3a;
}

.gwl-listing-card.gwl-sold .gwl-label,
.gwl-listing-card.gwl-sold .gwl-value {
    color: #5a5a5a;
}

.gwl-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.gwl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwl-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwl-no-image::before {
    content: "";
    font-size: 80px;
    opacity: 0.3;
}

.gwl-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.gwl-badge-overlay img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.gwl-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gwl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    margin-top: 0;
    gap: 10px;
}

.gwl-animal-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #1a3a52;
    flex: 1;
}

.gwl-animal-name.bm-heading,
.bm-heading {
    font-family: 'Black Mango', sans-serif !important;
}

.gwl-rating {
    color: #f4a541;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

.gwl-premium .gwl-rating,
.gwl-sold .gwl-rating {
    color: #f4a541;
}

.gwl-born-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 5px 0 15px 0;
    color: #666;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.gwl-details {
    margin: 15px 0;
    flex: 1;
}

.gwl-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

.gwl-premium .gwl-detail-item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.gwl-sold .gwl-detail-item {
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.gwl-detail-item:last-child {
    border-bottom: none;
}

.gwl-detail-item.gwl-full-width {
    flex-direction: column;
    gap: 5px;
}

.gwl-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
}

.gwl-value {
    color: #666;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

.gwl-full-width .gwl-value {
    text-align: left;
}

.gwl-card-footer {
    margin-top: auto;
    padding-top: 20px;
}

.gwl-listing-card .gwl-card-footer button.gwl-price-button,
.gwl-card-footer button.gwl-price-button,
button.gwl-price-button,
.gwl-price-button {
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    color: inherit !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 15px !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-align: left !important;
    white-space: normal !important;
}

.gwl-listing-card .gwl-card-footer button.gwl-price-button:hover,
.gwl-card-footer button.gwl-price-button:hover,
button.gwl-price-button:hover,
.gwl-price-button:hover,
.gwl-listing-card .gwl-card-footer button.gwl-price-button:focus,
.gwl-card-footer button.gwl-price-button:focus,
button.gwl-price-button:focus,
.gwl-price-button:focus,
.gwl-listing-card .gwl-card-footer button.gwl-price-button:active,
.gwl-card-footer button.gwl-price-button:active,
button.gwl-price-button:active,
.gwl-price-button:active {
    transform: translateY(-2px) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.gwl-button-text {
    background: linear-gradient(135deg, #c9a961 0%, #b8964f 100%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.gwl-price-button:hover .gwl-button-text {
    background: linear-gradient(135deg, #d4b56e 0%, #c3a15c 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.gwl-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    flex: 1;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

.gwl-premium .gwl-price {
    color: #ffffff;
}

.gwl-sold .gwl-price {
    color: #3a3a3a;
}

.gwl-no-listings {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .gwl-listings-header {
        margin-bottom: 20px;
        padding: 0 0 10px 0;
    }

    .gwl-listings-indicator {
        font-size: 12px;
    }

    .gwl-view-toggle {
        width: 36px;
        height: 36px;
    }

    .gwl-view-toggle svg {
        width: 18px;
        height: 18px;
    }

    .gwl-card-image {
        height: 200px;
    }

    .gwl-animal-name {
        font-size: 20px;
    }

    .gwl-badge-overlay img {
        width: 60px;
        height: 60px;
    }

    .gwl-card-content {
        padding: 15px;
    }

    .gwl-detail-item {
        font-size: 12px;
    }

    .gwl-price {
        font-size: 16px;
    }

    .gwl-button-text {
        font-size: 9px;
        padding: 10px 15px;
    }

    .gwl-price-button {
        gap: 10px;
    }
}

.gwl-listing-card .gwl-card-footer .gwl-price-button:hover,
.gwl-listing-card .gwl-card-footer .gwl-price-button:focus,
.gwl-listing-card .gwl-card-footer .gwl-price-button:active,
.gwl-card-footer .gwl-price-button:hover,
.gwl-card-footer .gwl-price-button:focus,
.gwl-card-footer .gwl-price-button:active {
    background-color: transparent !important;
    background: transparent !important;
    border-color: transparent !important;
    color: inherit !important;
}
/* Legacy Lines Styles */
.gwl-legacy-wrapper {
    width: 100%;
}

.gwl-legacy-container {
    display: grid;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.gwl-legacy-container.gwl-columns-1 {
    grid-template-columns: 1fr;
}

.gwl-legacy-container.gwl-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gwl-legacy-container.gwl-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gwl-legacy-container.gwl-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .gwl-legacy-container.gwl-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gwl-legacy-container.gwl-columns-3,
    .gwl-legacy-container.gwl-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gwl-legacy-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

.gwl-legacy-card {
    background: #f9f9f9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #c9a961;
}

.gwl-legacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gwl-legacy-card .gwl-card-content {
    background: #ffffff;
}

.gwl-legacy-card .gwl-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    color: #c9a961;
    font-family: 'Montserrat', sans-serif;
}

.gwl-legacy-card .gwl-description {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.gwl-legacy-card .gwl-description p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.gwl-legacy-card .gwl-pedigree {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.gwl-legacy-card .gwl-pedigree p {
    margin: 0 0 8px 0;
    font-size: 12px;
}

.gwl-legacy-card .gwl-pedigree strong {
    color: #1a3a52;
    font-weight: 700;
}

.gwl-legacy-card .gwl-pedigree-text {
    font-size: 11px;
    line-height: 1.5;
    color: #666;
}

/* Elementor Meta Field Display */
.gwl-legacy-meta-field {
    margin-bottom: 15px;
}

.gwl-legacy-meta-field .gwl-meta-label {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.gwl-legacy-meta-field .gwl-meta-value {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
