/* =============================================================================
   Jaipur Vendor Listings Plugin Stylesheet v1.0.2
   ========================================================================== */

/* --- Main Wrapper & Header --- */
.jvl-vendor-list-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px; /* Add some padding for mobile */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.jvl-header {
    margin-bottom: 30px;
}

.jvl-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111;
}

.jvl-results {
    font-size: 16px;
    color: #555;
    margin: 0;
}


/* --- Vendor Grid Layout --- */
.jvl-vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* --- Clickable Card Wrapper --- */
.jvl-card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit; /* Prevents all text inside the link from turning blue */
    border-radius: 12px; /* Match the card's border-radius for focus styles */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.jvl-card-link-wrapper:hover {
    color: inherit; /* Keeps text color the same on hover */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* --- Individual Vendor Card --- */
.jvl-vendor-card {
	position: relative;
    height: 100%; /* Makes all cards in a row equal height */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    /* Removed box-shadow and transform from here, moved to the link wrapper */
}

.jvl-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    line-height: 0;
}

.jvl-card-info {
    padding: 15px;
}

.jvl-card-line {
    margin-bottom: 12px;
}
.jvl-card-info .jvl-card-line:last-child {
    margin-bottom: 0;
}


/* --- Card Content --- */
.jvl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.jvl-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}
.jvl-card-link-wrapper:hover .jvl-card-title {
    color: #e72e77; /* Highlight color on hover */
}

.jvl-card-rating {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    color: #333;
}
.jvl-card-rating span {
    font-size: 14px;
    color: #777;
    font-weight: 400;
}

.jvl-card-location {
    font-size: 14px;
    color: #555;
}

.jvl-card-price {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 12px;
}
.jvl-card-price span {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 2px;
}
.jvl-card-price strong {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-right: 5px;
}
.jvl-card-price small {
    font-size: 14px;
    color: #555;
}


/* --- Tags --- */
.jvl-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 5px;
    min-height: 30px;
}

.jvl-tag {
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}


/* --- Featured Badge (Crown Icon) --- */
.jvl-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ffc107; /* Gold color */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}


/* --- Responsive Grid --- */
@media (max-width: 992px) {
    .jvl-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .jvl-vendor-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Popup Trigger --- */
.jvl-popup-trigger {
    cursor: pointer;
}

/* =============================================================================
   Modal / Popup Styles
   ========================================================================== */
.jvl-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.jvl-modal-content {
    background-color: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.jvl-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.jvl-modal-close:hover {
    color: #000;
}

.jvl-modal-image {
    width: 50%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.jvl-modal-text {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
}

.jvl-modal-title {
    font-size: 26px;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: #111;
}

.jvl-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}
.jvl-modal-description p {
    margin: 0 0 1em 0;
}

.jvl-modal-button {
    display: inline-block;
    background-color: #e72e77;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}
.jvl-modal-button:hover {
    background-color: #c21e60;
    color: #fff;
}

/* --- Modal Responsive Styles --- */
@media (max-width: 768px) {
    .jvl-modal-content {
        flex-direction: column;
        max-height: 85vh;
    }
    .jvl-modal-image {
        width: 100%;
        height: 250px;
        border-radius: 10px 10px 0 0;
    }
    .jvl-modal-text {
        width: 100%;
        padding: 25px;
    }
}