/* Front-end styles for Bokun Sync plugin */

/* Grid layout for locations and experiences */
.bokun-locations-grid,
.bokun-experiences-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(389px, 1fr));
    margin-bottom: 20px;
}
@media (max-width: 767px) {
	.bokun-locations-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
}

/* Experience cards */
.bokun-experience-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.bokun-experience-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.bokun-experience-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.bokun-experience-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56%; /* 16:9 ratio */
    overflow: hidden;
}
.bokun-experience-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.bokun-experience-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.bokun-experience-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.25;
}
.bokun-experience-vendor {
    font-size: 12px;
    color: #777;
    margin: 0 0 8px;
}
.bokun-experience-info {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #555;
}
.bokun-experience-info .dashicons {
    font-size: 14px;
    margin-right: 4px;
}

.bokun-location-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* Provide a subtle border for separation */
    border: 1px solid rgba(0,0,0,0.08);
    min-height: 220px;
}

/* Single image container for location card */
.bokun-location-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.bokun-location-image-single {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bokun-location-image-single img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    object-position: center;
}

/* Overlay covering the entire card with title, count and button */
.bokun-location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease;
}

/* Title and count styles */
.bokun-location-title {
    /* Use pixel units to match provided design */
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.bokun-location-count {
    margin: 5px 0 15px;
    font-size: 12px;
    color: #fff;
}

/* Button style */
.bokun-location-button {
    display: inline-block;
    background: #ffffff;
    color: #000;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.bokun-location-button:hover {
    background: #f4f4f4;
    color: #000;
}

/* Placeholder for missing images */
.bokun-placeholder {
    background: #eaeaea;
    width: 100%;
    height: 100%;
}

/* Hover effect: darken overlay on hover to highlight */
.bokun-location-item:hover .bokun-location-overlay {
    background: rgba(0, 0, 0, 0.55);
}