/* =========================================================
   Tickera Events Grid – Elementor Style (FINAL)
   ========================================================= */

/* Grid layout */
.tc-events-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

@media (max-width:1024px){
    .tc-events-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:767px){
    .tc-events-grid{
        grid-template-columns:1fr;
    }
}

/* Card */
.tc-event-item{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    transition:transform .3s ease, box-shadow .3s ease;
}

.tc-event-item:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

/* Link reset */
.tc-event-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

/* Thumbnail */
.tc-event-thumb{
    position:relative;
    overflow:hidden;
}

.tc-event-thumb img{
    width:100%;
    aspect-ratio:1.45;
    object-fit:cover;
    display:block;
    transition:transform .4s ease;
}

.tc-event-item:hover .tc-event-thumb img{
    transform:scale(1.05);
}

/* Floating Date - stays on image */
.tc-event-date{
    position:absolute;
    top:14px;
    left:14px;
    background:rgba(0,0,0,.85);
    color:#fff;
    padding:7px 12px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    z-index:3;
    max-width:85%;
}

.tc-event-date .tc_event_date_title_front{
    display:flex;
    align-items:center;
    gap:6px;
    line-height:1.2;
}

/* ==============================
   LOCATION - MOVED TO CONTENT AREA
   ============================== */

/* Remove absolute positioning for location */
.tc-event-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
    line-height: 1.4;
}

/* Reset all the absolute positioning styles */
.tc-event-location,
.tc-event-item .tc-event-content .tc-event-location {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    background: none !important;
    color: #6b7280 !important;
    padding: 0 !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    width: auto !important;
}

/* Icon styling */
.tc-event-location svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    fill: #e74c3c; /* Red color for icon */
    flex-shrink: 0;
}

/* Content */
.tc-event-content{
    padding:16px 18px;
    text-align:center;
}

.tc-event-title{
    margin:0;
    font-size:18px;
    font-weight:600;
    line-height:1.4;
}

/* Mobile tweaks */
@media (max-width:767px){
    .tc-event-date{
        font-size:12px;
        padding:6px 10px;
    }
    
    .tc-event-location {
        font-size: 13px;
    }
}

.tc-event-date-wrap .tc-event-date {
    display: none;
}

.thegem-te-post-info.post-info--classic.post-info--horizontal.post-info--left.post-info--divider-show .post-info {
    display: none;
}

/* =========================================================
   GLOBAL FIXES
   ========================================================= */

body {
    overflow-x: hidden;
    width: 100%;
}

/* Remove unwanted Elementor padding */
.elementor-element.thegem-e-con-layout-thegem.e-flex.e-con-boxed.e-con.e-parent.e-lazyloaded {
    padding: 0 !important;
}

/* =========================================================
   TICKERA – TICKET TABLE (Vuexy Style)
   ========================================================= */

.tickera .event_tickets {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(34,41,47,.08);
}

/* Table header */
.tickera .event_tickets th {
    background: #f5f7fb;
    color: #4b4f56;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 18px;
    text-align: center;
    border-bottom: 1px solid #ebeef5;
}

/* Last row cleanup */
.tickera .event_tickets tr:last-child td {
    border-bottom: none;
}

/* Price column */
.tickera .event_tickets td[data-column="Price"] {
    font-weight: 600;
    color: #7367f0;
    text-align: center;
}

/* Cart columns */
.tickera .event_tickets td[data-column="Add to Cart"],
.tickera .event_tickets td[data-column="Cart"] {
    text-align: center;
}

/* Add to cart button */
.tickera .event_tickets .add_to_cart_button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
}

/* Hover effect */
.tickera .event_tickets .add_to_cart_button:hover {
    background: #fff !important;
    color: #7367f0 !important;
    border-color: #7367f0;
}

/* Mobile – card layout */
@media (max-width: 768px) {
    .tickera .event_tickets,
    .tickera .event_tickets tbody,
    .tickera .event_tickets tr,
    .tickera .event_tickets td {
        display: block;
        width: 100%;
    }

    .tickera .event_tickets tr {
        margin-bottom: 14px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(34,41,47,.06);
        padding: 14px;
    }

    .tickera .event_tickets th {
        display: none;
    }

    .tickera .event_tickets td {
        border: none;
        padding: 8px 0;
    }
}

/* Event card additional styles */
.tc-single-event {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(34,41,47,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.tc-single-event:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

/* Image wrapper additional styles */
.tc-get-featured-image {
    position: relative;
    overflow: hidden;
}

.tc-get-featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.tc-single-event:hover img {
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .tc-get-featured-image img {
        height: 200px;
    }
}

/* Location badge (shared, deduplicated) - absolute positioning version */
.tc-get-featured-image .tc-event-location {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
    color: #fff;
    font-size: 13px;
    z-index: 3;
    opacity: 0;
    transform: translateY(8px);
    transition: all .3s ease;
    pointer-events: none;
    border-radius: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Show overlay on hover */
.tc-single-event:hover .tc-event-location {
    opacity: 1;
    transform: translateY(0);
}

/* Hide duplicated locations inside content */
.tc-event-date-wrap .tc-event-location {
    display: none;
}

/* SVG & icon styling for absolute version */
.tc-get-featured-image .tc-event-location svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    fill: #fff;
}

.tc-event-date i,
.tc-event-location i {
    color: #ffd24d;
    font-size: 14px;
}

/* =========================================================
   EVENT CONTENT ADDITIONAL STYLES
   ========================================================= */

.tc-event-content-wrap {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-event-content-wrap h4 a {
    color: #1f2937;
    text-decoration: none;
}

.tc-event-content-wrap h4 a:hover {
    color: #7367f0;
}

.tc-event-excerpt p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.tc-display-filter-events .pagination {
    grid-column: 1 / -1;
    margin-top: 20px;
}