/* Igoigo.ru design system — City Day v1.1 (based on front.css) */

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    background-color: #eeeeee;
    color: #000;
    line-height: 1.5;
}

a {
    color: #d2222a;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover { color: #ff4048; }

h1, h2, h3, h4 { font-weight: 700; color: #000; line-height: 1.2; }
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 21px; }
p { font-size: 16px; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #262626;
    height: 80px;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}
.logo:hover { color: #ffc838 !important; }
.header-cities {
    display: flex;
    gap: 1rem;
    list-style: none;
}
.header-cities a {
    color: #dedede;
    font-size: 14px;
    font-weight: 600;
}
.header-cities a:hover,
.header-cities a.active { color: #ffc838; }

/* Sub nav */
.navbar-menu {
    background: #fff;
    border-bottom: 1px solid #dedede;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.navbar-menu .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 56px;
    flex-wrap: wrap;
}
.navbar-menu a {
    font-size: 16px;
    font-weight: 700;
    color: #40424c;
    padding: 14px 0;
    position: relative;
}
.navbar-menu a:hover { color: #d2222a; }
.navbar-menu a.active { color: #ffc838; }
.navbar-menu a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: #ffc838;
}

/* Buttons */
.btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 22px;
    border-radius: 30px;
    border: none;
    transition: background 0.3s, color 0.3s;
}
.btn-red { color: #fff; background: #d2222a; }
.btn-red:hover { color: #fff; background: #ff4048; }
.btn-yellow { color: #fff; background: #ffc838; }
.btn-yellow:hover { color: #fff; background: #e6b030; }
.btn-ghost {
    color: #40424c;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn-nav-light {
    color: #fff;
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.65);
}
.btn-nav-light:hover {
    color: #fff;
    background: #d2222a;
    border-color: #d2222a;
}
.period-nav a { font-size: 15px; }

/* Title hero */
.title-page {
    position: relative;
    background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    padding: 30px 0 50px;
    margin-bottom: 0;
}
.title-page .container { position: relative; z-index: 2; }

/* Breadcrumbs — igoigo style */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin: 0 0 20px;
    list-style: none;
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    margin-right: 1.25rem;
}
.breadcrumbs a {
    font-size: 14px;
    color: #fff;
}
.breadcrumbs a:hover { color: #ffc838; }
.breadcrumbs .current {
    font-size: 14px;
    color: #fff;
    opacity: 0.55;
}

.title-block { color: #fff; }
.title-block h1 { color: #fff; font-size: 36px; margin-bottom: 0.5rem; }
.title-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: #dedede;
    font-size: 14px;
}
.title-meta .badge-week {
    background: rgba(255,200,56,0.2);
    color: #ffc838;
    padding: 2px 10px;
    border-radius: 20px;
}

.date-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

/* Main layout */
.page-body { padding: 20px 0 40px; }
.layout-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}
.section-block {
    background: #fff;
    padding: 20px;
}
.sidebar-block {
    background: #fff;
    padding: 20px;
}

.block-title {
    font-size: 21px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #d2222a;
}

/* Cards / lists */
.card {
    background: #fff;
    border-top: 2px solid #d2222a;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
}
.card h3 { font-size: 19px; margin-bottom: 0.8rem; text-align: left; }
.holiday-list { list-style: none; text-align: left; }
.holiday-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
}

/* Weather */
.weather-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.weather-temp { font-size: 2rem; font-weight: 700; color: #d2222a; }
.weather-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: 14px; }
.weather-table th, .weather-table td {
    text-align: left;
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid #eeeeee;
}
.weather-ideas { background: #fafafa; padding: 1rem; margin-top: 1rem; }

/* Events — event-row style */
.event-row { margin: 0 -8px; }
.event-item {
    text-align: left;
    padding: 12px 8px 16px;
    border-bottom: 1px solid #eeeeee;
}
.event-item:last-child { border-bottom: none; }
.event-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.event-title a { color: #000; }
.event-title a:hover { color: #d2222a; }
.event-details {
    font-size: 14px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
}
.type-event {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d2222a;
    margin-bottom: 0.3rem;
}
.badge {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}
.more-event {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3c8cbd;
    font-weight: 600;
}
.more-event:hover { color: #d2222a; }
.empty-state { color: #777; padding: 1rem 0; text-align: left; }

.past-event {
    background: #fafafa;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
    text-align: left;
    font-size: 15px;
}
.past-event a { font-weight: 600; }

/* Mini calendar — week-row inspired */
.mini-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}
.mini-calendar a {
    display: block;
    text-align: center;
    padding: 0.6rem 0.5rem;
    min-width: 72px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    color: #000;
    font-weight: 700;
    font-size: 14px;
}
.mini-calendar a:hover { border-color: #d2222a; color: #d2222a; }
.mini-calendar a.current {
    background: #262626;
    color: #ffc838;
    border-color: #262626;
}
.mini-calendar small { display: block; font-weight: 400; font-size: 11px; color: #777; margin-top: 2px; }
.mini-calendar a.current small { color: #dedede; }

/* Month grid — home city-row inspired */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.month-card {
    display: block;
    background: #262626;
    color: #fff;
    padding: 24px 16px 16px;
    text-align: center;
    transition: opacity 0.3s;
    min-height: 120px;
}
.month-card:hover { opacity: 0.85; color: #fff; }
.month-card .emoji { font-size: 2rem; display: block; margin-bottom: 0.4rem; }
.month-card .name { font-size: 19px; font-weight: 700; }
.month-card .meta { font-size: 12px; color: #dedede; margin-top: 0.3rem; }
.month-card.current { border: 2px solid #ffc838; }

/* Day grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.weekday-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #777;
    padding: 4px;
}
.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid #eeeeee;
    font-weight: 700;
    font-size: 15px;
    color: #000;
}
.day-cell:hover { border-color: #d2222a; color: #d2222a; }
.day-cell.empty { background: transparent; border: none; pointer-events: none; }
.day-cell.today { background: #d2222a; color: #fff; border-color: #d2222a; }
.day-cell.weekend { color: #d2222a; }

/* Home hero */
.hero-home {
    background: #262626;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}
.hero-home h1 { color: #fff; font-size: 42px; margin-bottom: 0.5rem; }
.hero-home p { color: #dedede; font-size: 17px; }
.hero-home .btn { margin: 1rem 0.4rem 0; }
.hero-home .breadcrumbs a { color: #fff; }
.hero-home .breadcrumbs a:hover { color: #ffc838; }
.hero-home .breadcrumbs .current { color: #fff; opacity: 0.55; }
.hero-home .breadcrumbs li + li::before { background: #fff; }

.city-section { margin-bottom: 2.5rem; }
.city-section h2 {
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dedede;
}

.calendar-picker summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    color: #dedede;
}
.calendar-picker summary::-webkit-details-marker { display: none; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 0.8rem;
    max-width: 280px;
}
.calendar-grid a {
    text-align: center;
    padding: 4px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.calendar-grid a:hover { background: rgba(255,255,255,0.2); }
.calendar-grid a.current { background: #ffc838; color: #262626; font-weight: 700; }

.week-days-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    text-align: left;
}
.week-day-card {
    display: block;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-left: 3px solid #d2222a;
    color: #000;
}
.week-day-card:hover { border-color: #d2222a; background: #fff; }
.week-day-card.today { background: #262626; color: #ffc838; border-left-color: #ffc838; }
.week-day-card.today .week-day-meta { color: #dedede; }
.week-day-name { display: block; font-size: 13px; color: #777; font-weight: 600; text-transform: uppercase; }
.week-day-card.today .week-day-name { color: #dedede; }
.week-day-date { display: block; font-size: 22px; font-weight: 700; margin: 4px 0; }
.week-day-meta { display: block; font-size: 13px; color: #777; }

/* Footer */
.site-footer {
    background: #f5f5f5;
    border-top: 1px solid #dedede;
    padding: 24px 0;
    margin-top: 20px;
}
.site-footer p { font-size: 14px; color: #777; margin-bottom: 0.4rem; }
.site-footer a { color: #777; }
.site-footer .copyrite { margin-top: 0.5rem; }

@media (max-width: 900px) {
    .layout-row { grid-template-columns: 1fr; }
    .sidebar-block { order: -1; }
    h1 { font-size: 32px; }
    .title-block h1 { font-size: 28px; }
}
