/* Events Shortcode */
.trm-events {
    display: grid;
    gap: 20px;
}

.trm-events.trm-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.trm-events.trm-events-list {
    grid-template-columns: 1fr;
}

.trm-event-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}

.trm-event-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trm-event-body {
    padding: 16px;
}

.trm-event-label {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.trm-event-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.trm-event-date {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.trm-event-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.trm-event-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Reservation form banner */
.trm-event-banner {
    display: block;
    margin-top: 24px !important;
    padding-top: 4px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: default;
}

.trm-event-banner a {
    display: block;
    text-decoration: none;
}

.trm-event-banner-img-wide {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.trm-event-banner-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.trm-event-banner-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.trm-event-banner-date {
    font-size: 12px;
    opacity: .8;
}

.trm-event-banner-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 4px;
}

/* Events admin table */
.trm-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.trm-events-table thead tr {
    border-bottom: 1px solid #e5e7eb;
}

.trm-events-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.trm-events-table td {
    padding: 10px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.trm-events-table tbody tr:last-child td {
    border-bottom: none;
}

.trm-events-table tbody tr:hover td {
    background: #f9fafb;
}

/* Post autocomplete */
.trm-post-autocomplete {
    position: relative;
}

.trm-post-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.trm-post-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #111827;
}

.trm-post-dropdown-item:hover {
    background: #f3f4f6;
}
