:root {
    /* PRIMARY */
    --primary: #1f6feb;
    --primary-hover: #1557c0;
    --primary-dark: #0f4aa3;

    /* ACCENT */
    --accent: #d93025;

    /* TEXT */
    --text: #1f2b3a;
    --text-muted: #666;

    /* BACKGROUNDS */
    --bg: rgb(221,214,190);
    --container-bg: #f7f7f7;

    /* CARDS */
    --card-bg: #f5f5f5;
    --card-hover: #fafafa;

    /* BORDERS */
    --border: #dddddd;
    --border-light: #e5e5e5;

    /* SHARED LAYOUT */
    --page-width: 1330px;
    --page-width-desktop: min(92%, var(--page-width));
}

/* ========================= */
/* BASE */
/* ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text);
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

a:hover {
    color: var(--accent);
}

/* ========================= */
/* SHARED WIDTH */
/* ========================= */

.eventBanner,
.container {
    width: var(--page-width-desktop);
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
}

/* ========================= */
/* EVENT BANNER */
/* ========================= */

.eventBanner {
    margin-top: 20px;
    margin-bottom: 26px;
    padding: 0;
}

.eventBanner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ========================= */
/* MAIN CONTAINER */
/* ========================= */

.container {
    margin-top: 0;
    margin-bottom: 40px;
    background: var(--container-bg);
    padding: 40px;
    overflow: hidden;
}

/* ========================= */
/* HEADER */
/* ========================= */

.basicInfo {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.imageInfo {
    flex-shrink: 0;
}

.imageInfo img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.event {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* ========================= */
/* TITLE */
/* ========================= */

.title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    color: var(--text);
    margin: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.title::after {
    content: "";
    display: block;
    width: 60%;
    max-width: 120px;
    height: 6px;
    background: var(--primary);
    margin-top: 12px;
    border-radius: 4px;
}

/* ========================= */
/* CONTENT LAYOUT */
/* ========================= */

.content {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
}

.eventInfo {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ========================= */
/* TEXT */
/* ========================= */

.eventInfo p,
.description p,
.eventDescription p,
.container p {
    max-width: 100%;
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.eventInfo *,
.sidebar * {
    max-width: 100%;
}

/* collapse */
.textContent {
    max-height: none;
    transition: all 0.3s ease;
}

.textContent.collapsed {
    max-height: 25em;
    overflow: hidden;
}

/* ========================= */
/* LOCATION */
/* ========================= */

.location a {
    color: var(--primary);
}

.location a:hover {
    color: var(--accent);
}

/* ========================= */
/* SIDEBAR BLOCKS */
/* ========================= */

.bookingList h4,
.chatList h4,
.venueList h4,
.linksList h4 {
    font-size: 16px;
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 700;
}

.bookingList,
.chatList,
.venueList,
.linksList {
    margin-bottom: 24px;
}

/* ========================= */
/* LISTS */
/* ========================= */

.venueList ul,
.linksList ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.venueList li,
.linksList li {
    border-bottom: 1px solid var(--border-light);
}

.venueList li:last-child,
.linksList li:last-child {
    border-bottom: none;
}

.venueList a,
.linksList a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--primary);
    transition: all .2s ease;
}

.venueList a {
    font-weight: 700;
}

.venueList a:hover,
.linksList a:hover {
    background: var(--card-hover);
}

/* ========================= */
/* CHAT */
/* ========================= */

.chatCard {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatCard.clickable {
    text-decoration: none;
}

.chatCard.clickable:hover {
    background: var(--card-hover);
}

.chatContent {
    flex: 1;
    min-width: 0;
}

.chatTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chatSubtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.chatCard .arrow {
    color: var(--primary);
    font-size: 17px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========================= */
/* BUTTON READ MORE */
/* ========================= */

.readMore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (hover: hover) {
    .readMore:hover {
        background: white;
        transform: translateY(-1px);
    }
}

/* ========================= */
/* TITO BUTTON */
/* ========================= */

.tito-widget-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    background: var(--card-bg) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.tito-widget-button * {
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* ========================= */
/* TABLET */
/* ========================= */

@media (max-width: 1024px) {
    .eventBanner,
    .container {
        width: calc(100% - 40px);
    }

    .container {
        padding: 28px;
    }

    .basicInfo {
        flex-direction: column;
        text-align: center;
    }

    .event {
        align-items: center;
    }

    .title::after {
        width: 100%;
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
    }

    .content {
        flex-direction: column;
        gap: 28px;
        margin-top: 32px;
    }

    .eventInfo {
        order: 1;
        width: 100%;
    }

    .sidebar {
        order: 2;
        width: 100%;
    }

    .imageInfo img {
        width: 150px;
        height: 150px;
    }
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {
    .eventBanner,
    .container {
        width: calc(100% - 24px);
    }

    .eventBanner {
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .eventBanner img {
        border-radius: 8px;
    }

    .container {
        padding: 18px;
        margin-bottom: 28px;
    }

    .basicInfo {
        gap: 14px;
    }

    .content {
        gap: 22px;
        margin-top: 24px;
    }

    .readMore {
        width: auto;
        align-self: center;
    }

    .title {
        font-size: 30px;
        display: inline-block;
        text-align: center;
    }

    .title::after {
        height: 4px;
        opacity: 0.9;
    }

    .sidebar {
        width: 100%;
    }

    .tito-widget-button {
        font-size: 15px !important;
        padding: 15px 16px !important;
    }
}

/* ========================= */
/* SMALL MOBILE */
/* ========================= */

@media (max-width: 480px) {
    .eventBanner,
    .container {
        width: calc(100% - 16px);
    }

    .eventBanner {
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .container {
        padding: 15px;
        margin-bottom: 24px;
    }

    .imageInfo img {
        width: 120px;
        height: 120px;
    }

    .title {
        font-size: 26px;
        line-height: 1.15;
    }

    .eventInfo p,
    .container p {
        font-size: 15px;
        line-height: 1.55;
    }

    .content {
        gap: 18px;
        margin-top: 20px;
    }

    .venueList a,
    .linksList a,
    .chatCard {
        padding: 13px 15px;
    }

    .tito-widget-button {
        font-size: 14px !important;
        padding: 14px 15px !important;
    }
}

/* ========================= */
/* LANDSCAPE MOBILE */
/* ========================= */

@media (max-width: 900px) and (orientation: landscape) {
    .eventBanner,
    .container {
        width: calc(100% - 30px);
    }

    .eventBanner {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .eventBanner img {
        max-height: 160px;
        object-fit: cover;
        object-position: center;
    }

    .container {
        padding: 15px;
        margin-bottom: 20px;
    }

    .imageInfo {
        display: none;
    }

    .basicInfo {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    h1.title {
        font-size: 24px;
        margin: 0 0 4px 0;
    }

    .eventData {
        margin: 0;
    }

    .content {
        margin-top: 18px;
    }
}