@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg-top: #f7f3e8;
    --bg-bottom: #dbe7f6;
    --ink: #14213d;
    --ink-soft: #42506a;
    --card: rgba(255, 255, 255, 0.84);
    --card-border: rgba(16, 36, 69, 0.14);
    --accent: #c1440e;
    --accent-dark: #8f2c06;
    --accent-soft: #ffdac7;
    --success: #1d7a53;
    --warning: #a95f00;
    --danger: #a82525;
    --shadow: 0 14px 32px rgba(12, 30, 56, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 0%, rgba(250, 177, 122, 0.28), transparent 36%),
        radial-gradient(circle at 85% 15%, rgba(82, 139, 221, 0.22), transparent 42%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    min-height: 100vh;
    padding: 1rem;
}

body.home-monuments-bg {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 214, 148, 0.34), transparent 42%),
        radial-gradient(circle at 8% 16%, rgba(95, 144, 203, 0.2), transparent 36%),
        linear-gradient(180deg, #f2ebdf 0%, #e8eff8 52%, #f4efe3 100%);
}

body.home-monuments-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        url('https://images.unsplash.com/photo-1431274172761-fca41d930114?auto=format&fit=crop&q=84&w=2600'),
        url('https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&q=84&w=2600'),
        url('https://images.unsplash.com/photo-1522093007474-d86e9bf7ba6f?auto=format&fit=crop&q=84&w=2600'),
        url('https://images.unsplash.com/photo-1471623432079-b009d30b6729?auto=format&fit=crop&q=84&w=2600'),
        url('https://images.unsplash.com/photo-1508057198894-247b23fe5ade?auto=format&fit=crop&q=84&w=2600'),
        url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&q=84&w=2600');
    background-repeat: no-repeat;
    background-size:
        calc(33.34% + 1px) calc(50% + 1px),
        calc(33.34% + 1px) calc(50% + 1px),
        calc(33.34% + 1px) calc(50% + 1px),
        calc(33.34% + 1px) calc(50% + 1px),
        calc(33.34% + 1px) calc(50% + 1px),
        calc(33.34% + 1px) calc(50% + 1px);
    background-position:
        left top,
        center top,
        right top,
        left bottom,
        center bottom,
        right bottom;
    opacity: 0.64;
    filter: saturate(1.08) contrast(1.01) brightness(1.03);
    transform: none;
    pointer-events: none;
    z-index: 0;
}

body.home-monuments-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 6%, rgba(255, 212, 148, 0.16), transparent 38%),
        radial-gradient(circle at 50% 130%, rgba(18, 36, 62, 0.06), rgba(18, 36, 62, 0.14) 54%, rgba(18, 36, 62, 0.18) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(18, 36, 62, 0.1));
    pointer-events: none;
    z-index: 0;
}

body.home-monuments-bg > * {
    position: relative;
    z-index: 2;
}

body.home-monuments-bg main {
    position: relative;
    z-index: 1;
}

body.home-monuments-bg .brand-block h1,
body.home-monuments-bg .brand-copy .eyebrow {
    color: #152746;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.35);
}

body.home-monuments-bg .card {
    background: linear-gradient(145deg, rgba(255, 251, 244, 0.92), rgba(248, 240, 227, 0.84));
    border: 1px solid rgba(227, 189, 126, 0.32);
    box-shadow: 0 14px 30px rgba(24, 40, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body.home-monuments-bg .hero {
    background: linear-gradient(145deg, rgba(255, 248, 235, 0.9), rgba(234, 242, 255, 0.82));
    border: 1px solid rgba(214, 176, 108, 0.4);
    position: relative;
    overflow: hidden;
}

body.home-monuments-bg .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 24%, rgba(237, 198, 128, 0.24), transparent 34%),
        radial-gradient(circle at 20% 86%, rgba(120, 168, 218, 0.16), transparent 40%);
    pointer-events: none;
}

body.home-monuments-bg .hero h2,
body.home-monuments-bg .hero p {
    color: #152746;
}

body.home-monuments-bg .hero h2,
body.home-monuments-bg .hero p,
body.home-monuments-bg .hero .hero-actions,
body.home-monuments-bg .hero .eyebrow {
    position: relative;
    z-index: 1;
}

body.home-monuments-bg .hero .eyebrow {
    color: #9d6c2c;
}

body.home-monuments-bg .button {
    background: linear-gradient(140deg, #d7a55b, #b17a2f);
    box-shadow: 0 8px 16px rgba(27, 43, 71, 0.2);
}

body.home-monuments-bg .button:hover {
    background: linear-gradient(140deg, #e2b872, #c48a36);
}

body.home-monuments-bg .button-ghost {
    background: rgba(255, 252, 245, 0.72);
    color: #233553;
    border-color: rgba(186, 145, 75, 0.42);
}

body.home-monuments-bg .button-ghost:hover {
    background: rgba(255, 252, 245, 0.9);
}

body.home-monuments-bg .paris-signature {
    background:
        linear-gradient(120deg, rgba(246, 234, 210, 0.92), rgba(232, 240, 253, 0.84)),
        repeating-linear-gradient(
            90deg,
            rgba(193, 151, 78, 0.07) 0,
            rgba(193, 151, 78, 0.07) 1px,
            transparent 1px,
            transparent 22px
        );
    border-color: rgba(213, 173, 105, 0.46);
}

body.home-monuments-bg .paris-signature h3,
body.home-monuments-bg .paris-signature .eyebrow {
    color: #142643;
}

body.home-monuments-bg .paris-signature .signature-subtitle {
    color: #435675;
}

.signature-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.signature-item {
    background: linear-gradient(155deg, rgba(253, 246, 231, 0.94), rgba(243, 226, 194, 0.82));
    border: 1px solid rgba(205, 163, 89, 0.36);
    border-radius: 16px;
    padding: 0.85rem 0.88rem 0.92rem;
    box-shadow: 0 10px 24px rgba(8, 16, 31, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(8, 16, 31, 0.24);
}

.signature-item h4 {
    margin: 0 0 0.38rem;
}

.signature-item p {
    margin: 0;
    color: #3d4d66;
}

.signature-glyph {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff8eb;
    background: linear-gradient(145deg, #b98842, #8d6023);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.home-monuments-bg main > section {
    animation: paris-section-rise 0.74s ease both;
}

body.home-monuments-bg main > section:nth-of-type(2) {
    animation-delay: 0.06s;
}

body.home-monuments-bg main > section:nth-of-type(3) {
    animation-delay: 0.12s;
}

body.home-monuments-bg main > section:nth-of-type(4) {
    animation-delay: 0.18s;
}

body.home-monuments-bg main > section:nth-of-type(5) {
    animation-delay: 0.24s;
}

body.home-monuments-bg main > section:nth-of-type(6) {
    animation-delay: 0.3s;
}

@keyframes paris-section-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fraunces', serif;
    margin-top: 0;
    color: #0f203c;
}

p,
li,
label,
button,
input,
textarea,
select {
    font-size: 0.98rem;
}

main {
    max-width: 1180px;
    margin: 0 auto 2rem;
    display: grid;
    gap: 1rem;
}

.site-header {
    max-width: 1180px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 5000;
    isolation: isolate;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-home-link {
    text-decoration: none;
    color: inherit;
}

.brand-home-link:focus-visible {
    outline: 2px solid rgba(193, 68, 14, 0.5);
    outline-offset: 6px;
    border-radius: 14px;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(12, 30, 56, 0.2);
    flex: 0 0 auto;
}

.brand-block h1 {
    margin: 0;
    line-height: 1.05;
}

.header-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lang-picker {
    position: relative;
    min-width: 230px;
    z-index: 7000;
}

.lang-toggle {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(16, 36, 69, 0.24);
    background: rgba(255, 255, 255, 0.95);
    color: #0f203c;
    padding: 0.56rem 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 700;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 1);
}

#language-current {
    font-weight: 700;
}

.lang-caret {
    margin-left: auto;
    font-size: 0.92rem;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: 100%;
    min-width: 230px;
    max-height: min(52vh, 360px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(16, 36, 69, 0.2);
    border-radius: 12px;
    box-shadow: 0 16px 28px rgba(12, 30, 56, 0.22);
    padding: 0.35rem;
    margin: 0;
    display: none;
    list-style: none;
    z-index: 8000;
}

.lang-menu.open {
    display: block;
}

.lang-menu button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    color: #0f203c;
    font-weight: 600;
}

.lang-menu button:hover {
    background: #f5f8fc;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.soft-card {
    margin-top: 1rem;
    background: #f8fcff;
}

.hero {
    padding: 1.5rem;
}

.hero h2 {
    max-width: 760px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 0.5rem;
}

.hero p {
    max-width: 780px;
    color: var(--ink-soft);
}

.hero-actions,
.stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.status-block {
    margin-top: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 36, 69, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

.status-block p {
    margin: 0.2rem 0;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card strong {
    font-size: 2rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin: 0 0 0.35rem;
}

.steps {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.price {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    font-weight: 700;
    color: var(--accent-dark);
}

.feature-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.inline-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guide-list,
.tour-list,
.request-list,
.notification-list,
.admin-table {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.guide-card,
.tour-card,
.request-card,
.notification-card,
.review-card,
.admin-row {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 36, 69, 0.12);
    border-radius: 14px;
    padding: 0.85rem;
}

.guide-card h4,
.tour-card h4,
.request-card h4,
.notification-card h4,
.review-card h4,
.admin-row h4 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.guide-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.tour-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.guide-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(16, 36, 69, 0.18);
    background: #f3f6fb;
}

.guide-avatar-large {
    width: 108px;
    height: 108px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(16, 36, 69, 0.2);
    background: #f3f6fb;
}

.guide-profile-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.65rem;
}

.guide-profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.guide-profile-main h2 {
    margin-bottom: 0.8rem;
}

.guide-profile-main p {
    margin: 0.45rem 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.form-grid label {
    display: grid;
    gap: 0.35rem;
    color: var(--ink-soft);
}

.full-width {
    grid-column: 1 / -1;
}

.profile-photo-panel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.photo-upload-form {
    display: grid;
    gap: 0.5rem;
    flex: 1;
}

.review-list {
    display: grid;
    gap: 0.65rem;
}

.home-review-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.review-guide-link {
    color: #1d365c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.review-guide-link:hover {
    border-bottom-color: rgba(29, 54, 92, 0.45);
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
}

.rating-stars {
    color: #aa5a00;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 36, 69, 0.25);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.button {
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    padding: 0.66rem 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(1px);
}

.button-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(16, 36, 69, 0.25);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.8);
}

.status-pill {
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.82rem;
    display: inline-block;
}

.status-pill.pending {
    background: #fff2d8;
    color: var(--warning);
}

.status-pill.accepted,
.status-pill.active,
.status-pill.open,
.status-pill.visible {
    background: #ddf6ea;
    color: var(--success);
}

.status-pill.declined,
.status-pill.canceled,
.status-pill.full,
.status-pill.suspended {
    background: #fee7e7;
    color: var(--danger);
}

.status-pill.inactive,
.status-pill.past_due,
.status-pill.hidden {
    background: #e9edf5;
    color: #50617f;
}

.switch-row {
    align-items: center;
    grid-template-columns: auto 1fr;
    display: grid;
    gap: 0.45rem;
}

.switch-row input {
    width: auto;
}

.hint {
    color: #5a6780;
    margin-bottom: 0;
}

.advisory {
    border-left: 6px solid #f28d54;
}

.legal-doc h2 {
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
}

.legal-doc p {
    margin-top: 0.25rem;
}

.site-footer {
    max-width: 1180px;
    margin: 0 auto 1.4rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 36, 69, 0.14);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
}

.site-footer-brand {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: #102445;
}

.site-footer-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.site-footer-links a {
    color: #1d365c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-footer-links a:hover {
    border-bottom-color: rgba(29, 54, 92, 0.5);
}

.auth-guard {
    max-width: 620px;
    margin: 2rem auto;
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #0f203c;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

hr {
    border: 0;
    border-top: 1px solid rgba(16, 36, 69, 0.14);
    margin: 1rem 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.table-scroll {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid rgba(16, 36, 69, 0.14);
    padding: 0.55rem;
    vertical-align: top;
}

td .button {
    padding: 0.4rem 0.55rem;
    font-size: 0.86rem;
}

@media (max-width: 960px) {
    .grid-two,
    .grid-three,
    .form-grid,
    .signature-grid {
        grid-template-columns: 1fr;
    }

    body.home-monuments-bg::before {
        background-size:
            calc(50% + 1px) calc(33.34% + 1px),
            calc(50% + 1px) calc(33.34% + 1px),
            calc(50% + 1px) calc(33.34% + 1px),
            calc(50% + 1px) calc(33.34% + 1px),
            calc(50% + 1px) calc(33.34% + 1px),
            calc(50% + 1px) calc(33.34% + 1px);
        background-position:
            left top,
            right top,
            left center,
            right center,
            left bottom,
            right bottom;
        opacity: 0.58;
    }

    body.home-monuments-bg::after {
        background:
            radial-gradient(circle at 50% 2%, rgba(255, 210, 145, 0.14), transparent 40%),
            radial-gradient(circle at 50% 128%, rgba(18, 36, 62, 0.04), rgba(18, 36, 62, 0.12) 56%, rgba(18, 36, 62, 0.16) 100%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(18, 36, 62, 0.08));
    }

    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .lang-picker {
        width: 100%;
        max-width: 320px;
    }

    .lang-menu {
        width: 100%;
        min-width: 0;
        right: auto;
        left: 0;
    }

    .hero {
        padding: 1.05rem;
    }

    .price {
        font-size: 2rem;
    }

    .guide-profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-photo-panel {
        flex-direction: column;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-monuments-bg::before {
        animation: none;
    }

    body.home-monuments-bg main > section {
        animation: none;
    }
}
