/* Residency Page Specific Styles */

.layout-container {
    grid-template-columns: 1fr 500px;
    grid-template-rows: 1fr;
}

.residency-main {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    height: 100%;
}

.residency-sidebar {
    background-color: transparent;
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    min-height: 0;
    height: 100%;
}

.residency-details-card {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 300px;
}

.residency-image-container {
    width: 276px;
    height: 276px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
}

.residency-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.residency-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card {
    background-color: var(--surface);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
    height: 200px;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-card-image {
    width: 176px;
    height: 176px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-button {
    width: 100%;
    background-color: var(--secondary);
    color: var(--text);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: auto;
}

.ticket-button:hover {
    transform: translateY(-2px);
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile Container - Hidden on Desktop */
.mobile-residency-container {
    display: none;
}

/* Mobile Residency Styles */
.mobile-residency-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.mobile-residency-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-residency-info-card {
    background-color: var(--surface);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.mobile-residency-title {
    margin-bottom: 10px;
}

.mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

.mobile-info-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.mobile-info-left .info-chip {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-info-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
    min-width: 0;
    flex-shrink: 0;
}

.mobile-info-right .info-chip {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-date-bottom-row {
    margin-top: 10px;
}

/* Mobile Events Grid (2 columns) */
.mobile-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-event-grid-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mobile-event-grid-item:hover {
    transform: translateY(-2px);
}

.mobile-event-grid-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.mobile-event-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.colored-chip.event-date-chip {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.mobile-map {
    width: 100%;
    height: 250px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Tablet and Mobile responsive */
@media (max-width: 1024px) {
    .layout-container {
        display: none;
    }

    .main-content {
        padding-bottom: 20px;
        padding-top: calc(var(--header-height) + 20px);
        min-height: auto;
    }

    .page-container {
        padding: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-residency-container {
        display: block;
        position: relative;
        min-height: calc(100vh - var(--header-height) - 40px);
        background-color: rgba(10, 10, 10, 0.5);
        border-radius: 10px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px;
        margin: 0 20px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mobile-residency-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-residency-container .card {
        background-color: var(--surface);
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
        margin-bottom: 15px;
    }

    .mobile-residency-container .card:last-child {
        margin-bottom: 0;
    }

    /* Make sure image cards have consistent padding */
    .mobile-residency-container > .card:first-child {
        padding: 12px;
    }

    footer {
        position: relative;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: calc(65px + 20px);
    }

    .page-container {
        padding: 0;
    }

    .mobile-residency-container {
        min-height: calc(100vh - 65px - 40px);
        padding: 15px;
        margin: 0 15px;
    }

    .mobile-residency-container .card {
        padding: 10px;
    }

    .mobile-residency-info-card {
        padding: 10px;
    }

    .mobile-events-grid {
        gap: 10px;
    }

    .ticket-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    footer {
        margin-top: 20px;
    }
}
