:root {
    --bg: #f6f0e8;
    --bg-alt: #efe4d4;
    --surface: rgba(255, 252, 246, 0.88);
    --surface-strong: #fffaf2;
    --ink: #1f2430;
    --muted: #5f6572;
    --accent: #c25b2b;
    --accent-dark: #8d3f1a;
    --accent-soft: #f1c8ad;
    --line: rgba(31, 36, 48, 0.12);
    --shadow: 0 18px 45px rgba(54, 37, 24, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(194, 91, 43, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(84, 112, 74, 0.18), transparent 28%),
        var(--bg);
}

h1,
h2,
h3,
.navbar-brand {
    font-family: "Fraunces", serif;
}

a {
    color: inherit;
}

.site-nav {
    background: rgba(31, 36, 48, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand,
.nav-link {
    color: #fff;
}

.navbar-brand {
    font-size: 1.3rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #ffd7b5;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.btn-highlight {
    background: linear-gradient(135deg, var(--accent), #df8454);
    border: none;
    color: #fff;
    box-shadow: 0 12px 24px rgba(194, 91, 43, 0.28);
}

.btn-highlight:hover,
.btn-highlight:focus {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
}

.hero-section {
    padding: 9rem 0 5rem;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(20, 24, 36, 0.92), rgba(33, 47, 69, 0.82)),
        linear-gradient(160deg, #7b4b32, #223443 72%);
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-section .eyebrow {
    color: #ffd7b5;
}

.hero-section h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    max-width: 12ch;
}

.hero-copy {
    max-width: 58ch;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-metrics {
    margin-top: 1rem;
}

.metric-card,
.hero-panel,
.info-card,
.travel-card,
.book-card,
.gallery-card,
.contact-card {
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.metric-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
}

.metric-label {
    color: rgba(255, 255, 255, 0.72);
}

.metric-updated {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.62);
}

.hero-panel {
    padding: 2rem;
    background: rgba(255, 250, 242, 0.96);
    color: var(--ink);
}

.hero-showcase {
    max-width: 34rem;
    margin-left: auto;
}

.hero-artwork-shell {
    padding: 0.75rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.hero-artwork {
    display: block;
    width: 100%;
    height: auto;
}

.hero-badge-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hero-badge {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(17, 22, 34, 0.68);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.hero-badge strong {
    display: block;
    font-size: 1rem;
}

.hero-badge-label {
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.64);
}

.panel-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

.panel-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.section-space {
    padding: 5rem 0;
}

.section-tinted {
    background: linear-gradient(180deg, rgba(239, 228, 212, 0.72), rgba(246, 240, 232, 0.3));
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.contact-section h2,
#about h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.section-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
}

.info-card,
.travel-card,
.book-card,
.gallery-card,
.contact-card {
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    height: 100%;
}

.info-card h3,
.travel-card h3,
.book-card h3,
.gallery-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.info-card p,
.travel-card p,
.book-card p,
.gallery-card p,
.contact-card p,
.book-meta,
.travel-meta {
    color: var(--muted);
}

.travel-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.travel-card:hover,
.gallery-card:hover {
    transform: translateY(-4px);
}

.travel-meta,
.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.book-status {
    background: rgba(84, 112, 74, 0.16);
    color: #43613a;
}

.book-rating {
    font-weight: 800;
    color: var(--accent-dark);
}

.book-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-gallery {
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.4), rgba(239, 228, 212, 0.68)),
        repeating-linear-gradient(135deg, rgba(31, 36, 48, 0.02), rgba(31, 36, 48, 0.02) 12px, transparent 12px, transparent 24px);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gallery-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.gallery-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gallery-collections {
    display: grid;
    gap: 2rem;
}

.col-lg-gallery-5 {
    width: 100%;
}

.btn-filter {
    border-radius: 999px;
    border: 1px solid rgba(31, 36, 48, 0.12);
    background: rgba(255, 250, 242, 0.86);
    color: var(--ink);
    font-weight: 700;
}

.btn-filter.active,
.btn-filter:hover,
.btn-filter:focus {
    background: var(--ink);
    color: #fff;
}

.gallery-category-block {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 250, 242, 0.78);
    border: 1px solid rgba(31, 36, 48, 0.08);
    box-shadow: var(--shadow);
}

.gallery-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gallery-category-header h3 {
    margin-bottom: 0;
    text-transform: capitalize;
}

.gallery-nav-controls {
    display: flex;
    gap: 0.75rem;
}

.gallery-carousel {
    overflow: hidden;
}

.gallery-control {
    position: static;
    width: auto;
    height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid rgba(31, 36, 48, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    opacity: 1;
}

.gallery-control:hover,
.gallery-control:focus {
    background: var(--ink);
    color: #fff;
}

.gallery-control span[aria-hidden="true"] {
    font-size: 1.2rem;
    line-height: 1;
}

.gallery-card {
    overflow: hidden;
    padding: 0;
    box-shadow: none;
}

.gallery-grid .gallery-card {
    height: 100%;
}

.gallery-open-grid .gallery-visual {
    min-height: 180px;
}

.gallery-open-grid .gallery-copy {
    padding: 1rem 1rem 1.1rem;
}

.gallery-open-grid h3 {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
}

.gallery-open-grid .gallery-meta {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.gallery-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.gallery-pagination-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.gallery-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-page-btn[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: inherit;
}

.gallery-open:hover .gallery-visual,
.gallery-open:focus .gallery-visual {
    transform: scale(1.01);
}

.gallery-visual {
    min-height: 220px;
    padding: 1.5rem;
    display: flex;
    align-items: end;
    color: #fff;
    background-size: cover;
    background-position: center;
    transition: transform 180ms ease;
}

.gallery-copy {
    padding: 1.25rem 1.5rem 1.5rem;
}

.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.gallery-meta-lightbox {
    color: rgba(255, 255, 255, 0.78);
}

.gallery-map-link,
.gallery-map-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    text-decoration: none;
    line-height: 1;
}

.gallery-map-link:hover,
.gallery-map-link:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.category-cars .gallery-visual {
    background-image: linear-gradient(160deg, rgba(20, 24, 36, 0.4), rgba(20, 24, 36, 0.82)), url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=900&q=80");
}

.category-my-cars .gallery-visual {
    background-image: linear-gradient(160deg, rgba(68, 33, 21, 0.35), rgba(18, 24, 36, 0.84)), url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=900&q=80");
}

.category-pets .gallery-visual {
    background-image: linear-gradient(160deg, rgba(108, 73, 38, 0.34), rgba(42, 26, 15, 0.82)), url("https://images.unsplash.com/photo-1517849845537-4d257902454a?auto=format&fit=crop&w=900&q=80");
}

.category-legos .gallery-visual {
    background-image: linear-gradient(160deg, rgba(194, 91, 43, 0.36), rgba(34, 52, 67, 0.82)), url("https://images.unsplash.com/photo-1587654780291-39c9404d746b?auto=format&fit=crop&w=900&q=80");
}

.category-nature .gallery-visual {
    background-image: linear-gradient(160deg, rgba(31, 78, 71, 0.4), rgba(12, 32, 31, 0.82)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.category-sports .gallery-visual {
    background-image: linear-gradient(160deg, rgba(28, 61, 106, 0.35), rgba(16, 23, 35, 0.82)), url("https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=900&q=80");
}

.category-family .gallery-visual {
    background-image: linear-gradient(160deg, rgba(122, 69, 89, 0.35), rgba(58, 30, 44, 0.82)), url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=900&q=80");
}

.category-home-improvements .gallery-visual {
    background-image: linear-gradient(160deg, rgba(111, 86, 38, 0.38), rgba(45, 34, 17, 0.84)), url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=900&q=80");
}

.gallery-modal .modal-content {
    background: rgba(12, 15, 24, 0.96);
    color: #fff;
}

.gallery-modal .modal-header {
    padding: 1.25rem 1.25rem 0;
}

.gallery-modal .modal-body {
    padding: 0 1rem 1rem;
}

.gallery-lightbox-carousel,
.gallery-lightbox-carousel .carousel-inner,
.gallery-lightbox-carousel .carousel-item {
    height: calc(100vh - 6rem);
}

.gallery-lightbox-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image,
.gallery-lightbox-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1.5rem;
    background-size: cover;
    background-position: center;
}

.gallery-lightbox-fallback {
    min-height: 60vh;
}

.gallery-lightbox-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 42rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(12, 15, 24, 0.64);
    backdrop-filter: blur(12px);
}

.gallery-lightbox-caption h3 {
    margin-bottom: 0.45rem;
}

.gallery-lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    opacity: 1;
}

.gallery-lightbox-control.carousel-control-prev {
    left: 1rem;
}

.gallery-lightbox-control.carousel-control-next {
    right: 1rem;
}

.gallery-lightbox-control:hover,
.gallery-lightbox-control:focus {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox-control span[aria-hidden="true"] {
    font-size: 1.5rem;
}

.contact-section {
    background: #1d2430;
    color: #fff;
}

.contact-section .section-kicker {
    color: #ffd7b5;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.site-footer {
    padding: 1.25rem 0;
    background: #141824;
    color: rgba(255, 255, 255, 0.72);
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(194, 91, 43, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(37, 74, 96, 0.16), transparent 24%),
        var(--bg);
}

.admin-header {
    color: #fff;
    background:
        linear-gradient(125deg, rgba(20, 24, 36, 0.94), rgba(35, 50, 72, 0.86)),
        linear-gradient(160deg, #6f432d, #243949 72%);
}

.admin-intro {
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.82);
}

.admin-tabs .nav-link {
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 250, 242, 0.8);
    border: 1px solid var(--line);
    font-weight: 700;
}

.admin-tabs .nav-link.active {
    background: var(--ink);
    color: #fff;
}

.admin-panel {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.4rem;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-form .form-label {
    margin-top: 0.9rem;
    font-weight: 700;
}

.admin-form .form-control,
.admin-form .form-select {
    border-radius: 0.9rem;
    border-color: rgba(31, 36, 48, 0.14);
    background: rgba(255, 255, 255, 0.8);
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-list-item {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.admin-list-item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.admin-meta {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-help {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-file {
    word-break: break-all;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.login-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-copy {
    color: var(--muted);
}

.fade-in {
    animation: rise-in 500ms ease both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .gallery-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-toolbar {
        align-items: flex-start;
    }

    .gallery-category-header {
        align-items: start;
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .col-lg-gallery-5 {
        width: 20%;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 8rem;
    }

    .hero-showcase {
        margin: 0 auto;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-lightbox-caption {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .gallery-lightbox-control.carousel-control-prev {
        left: 0.5rem;
    }

    .gallery-lightbox-control.carousel-control-next {
        right: 0.5rem;
    }
}
