:root {
    --rybachok-blue: #29b6f6;
    --rybachok-blue-dark: #0288d1;
    --rybachok-blue-deep: #01579b;
    --rybachok-sky: #e1f5fe;
    --rybachok-white: #ffffff;
}

body {
    background-color: var(--rybachok-white);
    color: #263238;
}

main > .container {
    padding: 70px 15px 20px;
    max-width: 1140px;
}

/* Navbar */
.navbar-rybachok {
    background: linear-gradient(135deg, var(--rybachok-blue-dark), var(--rybachok-blue)) !important;
    box-shadow: 0 2px 12px rgba(2, 136, 209, 0.35);
}

.navbar-rybachok .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar-rybachok .nav-link:hover,
.navbar-rybachok .nav-link:focus {
    color: var(--rybachok-white) !important;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: var(--rybachok-white);
    border-top: 4px solid var(--rybachok-blue);
    margin-top: 2rem;
}

.site-footer__main {
    background: linear-gradient(180deg, var(--rybachok-sky) 0%, var(--rybachok-white) 100%);
}

.site-footer__title {
    color: var(--rybachok-blue-deep);
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer__heading {
    color: var(--rybachok-blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.site-footer__text,
.site-footer__contacts li {
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer__links a {
    color: var(--rybachok-blue-dark);
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
}

.site-footer__links a:hover {
    color: var(--rybachok-blue-deep);
    text-decoration: underline;
}

.site-footer__bottom {
    background: var(--rybachok-blue-deep);
    color: rgba(255, 255, 255, 0.9);
}

.site-footer__bottom a {
    color: var(--rybachok-sky);
}

/* Auth pages */
.auth-page {
    max-width: 480px;
    margin: 0 auto 2rem;
}

.auth-card {
    background: var(--rybachok-white);
    border: 1px solid rgba(41, 182, 246, 0.35);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(2, 136, 209, 0.12);
}

.auth-card__icon {
    font-size: 3rem;
    line-height: 1;
    display: block;
}

.auth-card .form-control:focus {
    border-color: var(--rybachok-blue);
    box-shadow: 0 0 0 0.2rem rgba(41, 182, 246, 0.25);
}

/* Cart */
.cart-table-wrap {
    background: var(--rybachok-sky);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(41, 182, 246, 0.3);
}

.cart-table thead th {
    background: var(--rybachok-blue-dark);
    color: var(--rybachok-white);
    border: none;
}

.cart-table tbody tr {
    background: var(--rybachok-white);
}

.empty-cart {
    background: var(--rybachok-sky);
    border-radius: 1rem;
    border: 1px dashed var(--rybachok-blue);
}

.checkout-success {
    background: var(--rybachok-sky);
    border-radius: 1rem;
    border: 1px solid rgba(41, 182, 246, 0.35);
}

/* Waters slideshow */
.waters-carousel {
    overflow: hidden;
    background: var(--rybachok-blue-deep);
}

.waters-carousel__img {
    height: 280px;
    object-fit: cover;
}

.waters-carousel__caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.25rem 1.25rem;
    text-align: left;
    background: linear-gradient(transparent, rgba(1, 87, 155, 0.85));
}

.waters-carousel__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.35rem;
}

.waters-carousel__indicators {
    margin-bottom: 0.35rem;
}

.waters-chips {
    background: var(--rybachok-sky);
    border: 1px solid rgba(41, 182, 246, 0.25);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.waters-chips__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

.water-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(41, 182, 246, 0.35);
    border-radius: 0.5rem;
    background: var(--rybachok-white);
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.water-chip:hover,
.water-chip--active {
    border-color: var(--rybachok-blue);
    background: #fff;
    box-shadow: 0 2px 8px rgba(41, 182, 246, 0.2);
}

.water-chip__icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.water-chip__name {
    color: var(--rybachok-blue-deep);
    font-weight: 500;
}

@media (max-width: 991px) {
    .waters-carousel__img {
        height: 220px;
    }

    .waters-chips {
        margin-top: 0.5rem;
    }
}

/* Compact tour cards */
.tour-card--compact .tour-card__header--compact {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
}

.tour-card__title {
    line-height: 1.3;
}

.tour-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 0.35rem !important;
}

.booking-schedule-row--compact .form-label {
    font-size: 0.68rem;
    margin-bottom: 0.1rem;
    color: #78909c;
}

.booking-schedule-row--compact .form-control-sm {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
}

.catalog-grid {
    --bs-gutter-y: 0.75rem;
}

.booking-card {
    padding: 0.85rem 1rem !important;
}

.feature-card {
    padding: 1rem !important;
}

.feature-card__icon {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
}

.feature-card h3 {
    font-size: 1rem;
}

.feature-card p {
    font-size: 0.85rem;
}

.booking-card {
    background: var(--rybachok-sky);
    border: 1px solid rgba(41, 182, 246, 0.35);
    border-radius: 0.75rem;
}

.contact-info-list li {
    font-size: 1rem;
    color: #37474f;
}

.contact-info-card {
    border-left: 4px solid var(--rybachok-blue);
}

.cart-summary-mini {
    background: var(--rybachok-sky);
    border: 1px solid rgba(41, 182, 246, 0.25);
}

.tour-days-input {
    max-width: 6rem;
}

/* Admin panel */
.admin-body {
    background: #f4f9fc;
}

.admin-navbar {
    background: linear-gradient(135deg, #01579b, #0288d1) !important;
    box-shadow: 0 2px 12px rgba(1, 87, 155, 0.35);
}

.admin-main {
    padding-top: 70px;
}

.admin-grid thead th {
    background: var(--rybachok-blue-dark);
    color: var(--rybachok-white);
}

/* Homepage */
.hero-banner {
    background: linear-gradient(160deg, var(--rybachok-blue-dark) 0%, var(--rybachok-blue) 55%, #4fc3f7 100%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(41, 182, 246, 0.35);
}

.hero-banner__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    opacity: 0.9;
}

.feature-card {
    background: var(--rybachok-sky);
    border: 1px solid rgba(41, 182, 246, 0.25);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(41, 182, 246, 0.2);
}

.feature-card__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.tour-card {
    background: var(--rybachok-white);
    border: 1px solid rgba(41, 182, 246, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tour-card:hover {
    box-shadow: 0 12px 28px rgba(2, 136, 209, 0.18);
    border-color: var(--rybachok-blue);
}

.tour-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, var(--rybachok-blue-dark), var(--rybachok-blue));
    color: var(--rybachok-white);
    font-size: 0.8rem;
}

.tour-card__badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tour-card__duration {
    opacity: 0.95;
}

.tour-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-card__price {
    color: var(--rybachok-blue-deep);
    font-size: 1.15rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--rybachok-blue-deep), var(--rybachok-blue-dark));
    box-shadow: 0 6px 24px rgba(1, 87, 155, 0.3);
}

/* Bootstrap overrides */
.btn-primary {
    background-color: var(--rybachok-blue-dark);
    border-color: var(--rybachok-blue-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--rybachok-blue-deep);
    border-color: var(--rybachok-blue-deep);
}

.btn-outline-primary {
    color: var(--rybachok-blue-dark);
    border-color: var(--rybachok-blue);
}

.btn-outline-primary:hover {
    background-color: var(--rybachok-blue);
    border-color: var(--rybachok-blue);
}

.text-primary {
    color: var(--rybachok-blue-dark) !important;
}

a {
    color: var(--rybachok-blue-dark);
}

a:hover {
    color: var(--rybachok-blue-deep);
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: var(--rybachok-white);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}
