/* Shared button style for Find Seats and Tag Badges */
.find-seats-button,
.event-tag-badges-below span {
	display: inline-block;
	margin-top: 10px;
	margin-bottom: 8px !important;
	padding: 8px 14px !important;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease;
	vertical-align: middle;
	text-transform: uppercase;
	white-space: nowrap;
	margin-bottom: 6px;
}

/* Specific colours */
.find-seats-button {
	background: #333 !important;
}
.find-seats-button:hover {
	background: #555 !important;
}
.event-tag-badges-below span {
	background: #76b871 !important;
}

/* Badge container layout */
.event-tag-badges-below {
	margin-top: 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* Mobile size adjustments */
@media (max-width: 768px) {
	.find-seats-button,
	.event-tag-badges-below span {
		font-size: 13px;
		padding: 6px 12px !important;
	}
}

/* various styling improvements */

.tribe-blocks-editor .wp-block-image img,
.chip-border-10 {
    border-radius: 10px;
}
.tribe-blocks-editor .tribe-events-back,
.tribe-blocks-editor .tribe-events-single-event-title{
    display: none;
}
.event-tickets .tec-tickets-seating__information {
  color: initial;
}

.tribe-events-single ul.tribe-related-events li .tribe-related-event-info {
  padding: 15px;
}

@media (max-width: 767px) {
    .tribe-events-single ul.tribe-related-events li {
    	width: 100%;
    }
}


#tribe-events-pg-template {
  padding-top: 0;
}

.grve-event-cost {
    display: block;
}

/* Force event content to match site container */
body.post-type-archive-tribe_events .tribe-events {
    max-width: 1300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
	body.post-type-archive-tribe_events .tribe-events {
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* Ensure the view selector dropdown has enough width */
.tribe-events-c-view-selector__content {
    min-width: 180px !important;
    max-width: none !important;
    width: auto !important;
    padding: 10px !important;
    box-sizing: border-box;
}


/* Event Category header */
#cdt-event-category-header {
    margin-bottom: 40px;
}

#cdt-event-category-header .cdt-category-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#cdt-event-category-header .cdt-category-header-image {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cdt-event-category-header .cdt-category-header-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 40px;
}

#cdt-event-category-header .cdt-category-header-image img,
#cdt-event-category-header .cdt-category-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain; /* <-- not cover! */
}

#cdt-event-category-header .cdt-category-header-content .tribe-events-header__title {
    margin-bottom: 20px;
}

#cdt-event-category-header .cdt-category-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

@media (max-width: 767px) {
    #cdt-event-category-header .cdt-category-header-inner {
        flex-direction: column-reverse; /* Stack text above, image below */
        align-items: center;
    }

    #cdt-event-category-header .cdt-category-header-image,
    #cdt-event-category-header .cdt-category-header-content {
        flex: 0 0 auto; /* not 100% fixed width anymore */
        max-width: 100%;
        width: 100%; /* full width */
        padding: 15px;
    }

    #cdt-event-category-header .cdt-category-header-content .tribe-events-header__title,
    #cdt-event-category-header .cdt-category-description {
        text-align: center;
    }
}

/* Event Category Grid */
.cdt-event-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cdt-event-category-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.cdt-event-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cdt-event-category-image img,
.cdt-event-category-thumb {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    object-fit: cover;
}

.cdt-event-category-title {
    font-size: 1.2rem;
    font-weight: bold;
}
