/* resources/css/tango-dark.css */

:root {
    --bg: #070707;
    --panel: rgba(12, 12, 12, .78);
    --panel-soft: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .08);
    --text: #eee3d8;
    --muted: rgba(238, 227, 216, .55);
    --red: #9e2d2c;
    --red-soft: rgba(158, 45, 44, .22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.tango-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    background:
        radial-gradient(circle at 62% 10%, rgba(120, 55, 34, .18), transparent 35%),
        #050505;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    letter-spacing: .03em;
}

.sidebar {
    position: sticky;
    top: 0;
    height: min-content;
    min-height: 100vh;
    padding: 28px 22px;
    border-right: 1px solid var(--line);
    background: rgba(0, 0, 0, .62);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 20px;
}

.logo span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: .9;
    letter-spacing: .17em;
    color: #b33434;
}

.logo small {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: .55em;
    color: rgba(238, 227, 216, .72);
}

.side-nav .sub_menu {
    padding-left: 10px;
}
.side-nav .sub_menu a {
    font-size: 9px;
}
.side-nav .sub_menu a span {
    font-size: 12px;
}
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(238, 227, 216, .42);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.side-nav a span {
    font-size: 14px;
    color: rgba(238, 227, 216, .62);
}

.side-nav a.active,
.side-nav a.active span {
    color: #b63a39;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.subscribe-small h4 {
    margin: 0 0 11px;
    color: rgba(238, 227, 216, .5);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .12em;
}

.subscribe-small p {
    margin: 0 0 12px;
    max-width: 120px;
    color: rgba(238, 227, 216, .48);
    font-size: 10px;
    line-height: 1.55;
}

.subscribe-small form {
    display: flex;
    width: 130px;
    height: 30px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

.subscribe-small input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0 9px;
    font-size: 10px;
    outline: none;
}

.subscribe-small button {
    width: 31px;
    border: 0;
    background: var(--red);
    color: var(--text);
}

.socials {
    display: flex;
    gap: 20px;
    color: rgba(238, 227, 216, .62);
}

.lang {
    display: flex;
    gap: 8px;
    color: rgba(238, 227, 216, .45);
    font-size: 10px;
    text-transform: uppercase;
    text-decoration: none;
}

.lang .active {
    color: #b63a39;
}

.content {
    min-width: 0;
    padding: 0 22px 18px 0;
}

.hero {
    min-height: 386px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 322px;
    gap: 36px;
    align-items: start;
    padding: 58px 21px 44px 48px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #050505 0%, rgba(5,5,5,.58) 20%, rgba(5,5,5,.15) 50%, #050505 100%),
        linear-gradient(0deg, #050505 0%, transparent 38%),
        url('/assets/tango-dark/hero-bg.png') center top / cover no-repeat;
    opacity: .86;
    z-index: 0;
}

.hero-content,
.calendar-card {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 430px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.1vw, 48px);
    line-height: 1.14;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 400;
}

.hero p {
    margin: 24px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    height: 35px;
    padding: 0 17px;
    background: var(--red);
    color: var(--text);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: .12em;
}

.calendar-card {
    margin-top: 42px;
    min-height: 275px;
    padding: 23px;
    background: rgba(10, 10, 10, .78);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-head strong {
    color: rgba(238, 227, 216, .8);
    text-transform: uppercase;
    font-size: 12px;
}

.calendar-head button {
    border: 0;
    background: transparent;
    color: rgba(238, 227, 216, .45);
    font-size: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-week {
    margin-bottom: 17px;
    color: rgba(238, 227, 216, .42);
    font-size: 9px;
}

.calendar-days {
    row-gap: 15px;
    font-size: 11px;
    color: rgba(238, 227, 216, .52);
}

.calendar-days span {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
}

.calendar-days .selected {
    color: var(--text);
    border: 1px solid var(--red);
    background: rgba(158, 45, 44, .18);
}

.calendar-days {
    gap: 6px 4px;
}

.calendar-day {
    position: relative;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
}

.calendar-day-number {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    transition: .2s ease;
}

.calendar-day.selected .calendar-day-number {
    background: #a92d2d;
    color: #fff;
}

.calendar-day:not(.is_current_month) .calendar-day-number {
    opacity: .28;
}

.calendar-day-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 3px;
}

.calendar-day-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c53a3a;
    box-shadow: 0 0 8px rgba(197,58,58,.55);
}

.calendar-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: 260px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(10,10,10,.96);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);

    opacity: 0;
    pointer-events: none;

    transform: translateX(-50%) translateY(6px);
    transition: .18s ease;

    z-index: 40;
}

.calendar-day.has-events:hover .calendar-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.calendar-popover::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    background: rgba(10,10,10,.96);
    border-right: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateX(-50%) rotate(45deg);
}

.calendar-popover-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.calendar-popover-events {
    display: grid;
    gap: 10px;
}

.calendar-popover-event {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.calendar-popover-event:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.calendar-popover-event-title {
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
}

.calendar-popover-event-date,
.calendar-popover-event-time {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}

.filter-btn {
    width: calc(100% + 46px);
    margin: 25px -23px -23px;
    height: 46px;
    border: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    color: rgba(238, 227, 216, .5);
    display: flex;
    justify-content: space-between;
    padding: 0 23px;
    align-items: center;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .12em;
}

.events-section {
    position: relative;
    padding: 0 21px 14px 48px;
}

.section-head {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-head h2 {
    margin: 0;
    color: rgba(238, 227, 216, .66);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .18em;
}

.section-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--line);
}

.section-head a,
.quote-card a {
    color: #a33433;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: .18em;
}

.event-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 7px;
}

.event-card {
    position: relative;
    min-height: 310px;
    height: auto;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background-size: cover;
    background-position: center;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.48) 58%, rgba(0,0,0,.12) 100%);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    align-items: start;
}

.event-card {
    position: relative;
    min-height: 260px;
    padding: 82px 16px 16px;
    border: 1px solid rgba(255,255,255,.14);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.88)),
        linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,.05));
    z-index: 1;
}

.event-card__date,
.event-card__favorite,
.event-card__body {
    position: relative;
    z-index: 2;
}

.event-card__date {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 78px;
    padding: 10px 8px;
    background: rgba(0,0,0,.45);
    text-align: center;
}

.event-card__date strong {
    display: block;
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

.event-card__date span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
}

.event-card__favorite {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #eee;
    font-size: 24px;
    cursor: pointer;
}

.event-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-card__city {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
}

.event-card__title {
    margin: 0 0 18px;
    max-width: 100%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: .98;
    letter-spacing: .01em;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.is_current_month {
    color: #eee3d8;
}
.event-card__type {
    margin-top: auto;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}
.bookmark {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 1;
    border: 0;
    background: transparent;
    color: rgba(238, 227, 216, .78);
    font-size: 18px;
}

.date-badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    padding: 8px 11px 7px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .07);
    text-transform: uppercase;
}

.date-badge strong,
.date-badge small {
    display: block;
}

.date-badge strong {
    font-size: 16px;
    line-height: 1;
}

.date-badge small {
    margin-top: 3px;
    font-size: 8px;
    color: rgba(238, 227, 216, .7);
}

.event-info {
    position: absolute;
    z-index: 1;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.event-info p {
    margin: 0 0 10px;
    text-transform: uppercase;
    color: rgba(238, 227, 216, .58);
    font-size: 10px;
    font-weight: 700;
}

.event-info h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    font-size: 25px;
    line-height: .95;
    font-weight: 400;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.tags span {
    border: 1px solid rgba(255, 255, 255, .11);
    color: rgba(238, 227, 216, .52);
    padding: 4px 7px;
    text-transform: uppercase;
    font-size: 8px;
    font-weight: 700;
}

.slider-next {
    position: absolute;
    right: 2px;
    top: 133px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(158, 45, 44, .5);
    background: rgba(0,0,0,.35);
    color: #a33433;
    font-size: 20px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.15fr .82fr 1fr;
    gap: 0;
    padding: 0 21px 0 48px;
}

.map-card,
.quote-card,
.video-card {
    min-height: 205px;
    border: 1px solid var(--line);
    background-color: #090909;
}

.map-card {
    background:
        linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.36)),
        url('/assets/tango-dark/map-bg.jpg') center / cover no-repeat;
}

.quote-card {
    padding: 35px 28px;
    background:
        linear-gradient(90deg, rgba(12,12,12,.96), rgba(12,12,12,.84));
}

.quote-card small {
    color: rgba(238, 227, 216, .45);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .16em;
}

.quote-card h2 {
    margin: 14px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 400;
    text-transform: uppercase;
}

.quote-card p {
    max-width: 330px;
    margin: 0 0 24px;
    color: rgba(238, 227, 216, .48);
    font-size: 11px;
    line-height: 1.6;
}

.video-card {
    position: relative;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,.15)),
        url('/assets/tango-dark/video-bg.png') center / cover no-repeat;
}

.video-card button {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(238, 227, 216, .65);
    background: rgba(0, 0, 0, .28);
    color: var(--text);
    font-size: 22px;
}

.video-card h3 {
    position: absolute;
    left: 28px;
    bottom: 25px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    color: rgba(238, 227, 216, .78);
}

@media (max-width: 1100px) {
    .tango-page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 18px 22px;
    }

    .logo {
        margin-bottom: 0;
    }

    .side-nav,
    .sidebar-bottom {
        display: none;
    }

    .content {
        padding: 0 16px 16px;
    }

    .hero,
    .events-section,
    .promo-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        max-width: 340px;
        margin-top: 0;
    }

    .event-row {
        overflow-x: auto;
        display: flex;
        padding-bottom: 8px;
    }

    .event-card {
        min-width: 210px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }
}
