/* =========================================================
   Basis
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f7f8fa;
    color: #1f2937;

    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: min(1200px, 100%);

    margin: 0 auto;

    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   Logo
   ========================================================= */

.site-logo {
    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 1.25rem;
    font-weight: 800;

    color: #1f2937;
}

.site-logo-icon {
    font-size: 1.6rem;
}


/* =========================================================
   Navigatie
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    gap: 22px;

    font-weight: 600;
}

.main-nav > a {
    color: #4b5563;

    transition: color 0.2s ease;
}

.main-nav > a:hover {
    color: #111827;
}


/* =========================================================
   Languages
   ========================================================= */

.language-switcher {
    display: flex;

    gap: 6px;

    padding-left: 10px;

    border-left: 1px solid #e5e7eb;
}

.language-switcher a {
    padding: 5px 7px;

    border-radius: 6px;

    font-size: 0.8rem;

    color: #6b7280;
}

.language-switcher a:hover {
    background: #f3f4f6;
}

.language-switcher a.active {
    background: #1f2937;
    color: #ffffff;
}


/* =========================================================
   Mobile menu
   ========================================================= */

.menu-toggle {
    display: none;

    border: 0;
    background: none;

    font-size: 1.6rem;

    cursor: pointer;

    color: #1f2937;
}


/* =========================================================
   Main
   ========================================================= */

.site-main {
    min-height: calc(100vh - 150px);
}


/* =========================================================
   Algemene container
   ========================================================= */

.container {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;
}


/* =========================================================
   Tijdelijke homepage
   ========================================================= */

.home-intro {
    min-height: 60vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;
}

.home-intro-content {
    max-width: 700px;
}

.home-intro-icon {
    font-size: 4rem;

    margin-bottom: 20px;
}

.home-intro h1 {
    margin: 0 0 15px;

    font-size: clamp(
        2rem,
        6vw,
        3.8rem
    );

    line-height: 1.05;
}

.home-intro p {
    margin: 0;

    font-size: 1.15rem;

    color: #6b7280;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: #ffffff;

    border-top: 1px solid #e5e7eb;

    color: #6b7280;
}

.footer-container {
    width: min(1200px, 100%);

    margin: 0 auto;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 0.9rem;
}


/* =========================================================
   Smartphone
   ========================================================= */

@media (max-width: 700px) {

    .header-container {
        padding: 12px 16px;
    }


    .menu-toggle {
        display: block;
    }


    .main-nav {
        display: none;

        position: absolute;

        left: 0;
        right: 0;
        top: 100%;

        padding: 20px;

        background: #ffffff;

        border-bottom: 1px solid #e5e7eb;

        flex-direction: column;
        align-items: stretch;

        gap: 5px;
    }


    .main-nav.open {
        display: flex;
    }


    .main-nav > a {
        padding: 12px;

        border-radius: 8px;
    }


    .main-nav > a:hover {
        background: #f3f4f6;
    }


    .language-switcher {
        border-left: 0;

        border-top: 1px solid #e5e7eb;

        padding-left: 0;
        padding-top: 15px;
        margin-top: 8px;

        justify-content: center;
    }


    .footer-container {
        flex-direction: column;

        text-align: center;

        gap: 5px;
    }

}

/* =========================================================
   Homepage hero
   ========================================================= */

.home-hero {
    position: relative;

    overflow: hidden;

    padding: 90px 20px 100px;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, 0.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #0f766e,
            #14b8a6
        );

    color: #ffffff;

    text-align: center;
}


.home-hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -150px;
    bottom: -200px;

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.08
    );
}


.home-hero-inner {
    position: relative;

    z-index: 1;

    width: min(720px, 100%);

    margin: 0 auto;
}


.hero-stone {
    font-size: 4.5rem;

    margin-bottom: 15px;

    filter:
        drop-shadow(
            0 10px 10px rgba(0, 0, 0, 0.15)
        );
}


.home-hero h1 {
    margin: 0;

    font-size: clamp(
        2.2rem,
        7vw,
        4rem
    );

    line-height: 1.05;

    letter-spacing: -0.04em;
}


.home-hero-subtitle {
    max-width: 600px;

    margin: 20px auto 35px;

    font-size: 1.15rem;

    color: rgba(
        255,
        255,
        255,
        0.9
    );
}



/* =========================================================
   Stone search
   ========================================================= */

.stone-search-box {
    background: #ffffff;

    padding: 25px;

    border-radius: 20px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18);

    color: #1f2937;

    text-align: left;
}


.stone-search-label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.9rem;
    font-weight: 700;

    color: #374151;
}


.stone-tag-input-wrapper {
    display: flex;
    align-items: center;

    height: 58px;

    padding: 0 18px;

    background: #f8fafc;

    border: 2px solid #e5e7eb;

    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.stone-tag-input-wrapper:focus-within {
    border-color: #14b8a6;

    box-shadow:
        0 0 0 4px rgba(
            20,
            184,
            166,
            0.12
        );
}


.stone-tag-hash {
    margin-right: 5px;

    color: #9ca3af;

    font-size: 1.2rem;
    font-weight: 700;
}


.stone-tag-input {
    flex: 1;

    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 1.2rem;
    font-weight: 600;

    text-transform: uppercase;

    color: #111827;
}


.stone-tag-input::placeholder {
    text-transform: none;

    font-weight: 400;

    color: #9ca3af;
}



/* =========================================================
   Actions
   ========================================================= */

.stone-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 15px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 52px;

    padding: 12px 20px;

    border: 0;
    border-radius: 11px;

    cursor: pointer;

    font-weight: 700;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.btn:hover {
    transform: translateY(-1px);
}


.btn:active {
    transform: translateY(0);
}


.btn-primary {
    background: #0f766e;
    color: #ffffff;

    box-shadow:
        0 7px 15px rgba(
            15,
            118,
            110,
            0.18
        );
}


.btn-primary:hover {
    background: #115e59;
}


.btn-secondary {
    background: #ecfdf5;
    color: #047857;
}


.btn-secondary:hover {
    background: #d1fae5;
}


.btn-icon {
    font-size: 1.15rem;
}


.stone-search-error {
    margin-top: 12px;

    padding: 10px 12px;

    border-radius: 8px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 0.9rem;
    font-weight: 600;
}



/* =========================================================
   Algemene home section
   ========================================================= */

.home-section {
    padding: 80px 0;
}


.section-heading {
    max-width: 650px;

    margin: 0 auto 40px;

    text-align: center;
}


.section-heading h2 {
    margin: 0 0 10px;

    font-size: clamp(
        1.8rem,
        5vw,
        2.6rem
    );

    color: #111827;
}


.section-heading p {
    margin: 0;

    color: #6b7280;

    font-size: 1.05rem;
}



/* =========================================================
   Steps
   ========================================================= */

.steps-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


.step-card {
    position: relative;

    padding: 30px 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(
            0,
            0,
            0,
            0.04
        );
}


.step-icon {
    font-size: 2.8rem;

    margin-bottom: 15px;
}


.step-number {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ccfbf1;

    color: #0f766e;

    font-size: 0.8rem;
    font-weight: 800;
}


.step-card h3 {
    margin: 0 0 10px;

    color: #111827;
}


.step-card p {
    margin: 0;

    color: #6b7280;

    line-height: 1.6;
}



/* =========================================================
   Map CTA
   ========================================================= */

.home-map-section {
    padding:
        0 0 80px;
}


.home-map-card {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 25px;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #f0fdfa,
            #ecfeff
        );

    border: 1px solid #ccfbf1;
}


.home-map-icon {
    font-size: 3.5rem;
}


.home-map-content h2 {
    margin: 0 0 5px;

    color: #134e4a;
}


.home-map-content p {
    margin: 0;

    color: #52706d;
}


.btn-map {
    background: #ffffff;

    color: #0f766e;

    border: 1px solid #99f6e4;

    white-space: nowrap;
}


.btn-map:hover {
    background: #f0fdfa;
}



/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 850px) {

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


    .home-map-card {
        grid-template-columns:
            auto 1fr;
    }


    .home-map-card .btn-map {
        grid-column: 1 / -1;
    }

}



/* =========================================================
   Smartphone
   ========================================================= */

@media (max-width: 600px) {

    .home-hero {
        padding:
            55px 15px
            65px;
    }


    .hero-stone {
        font-size: 3.8rem;
    }


    .home-hero-subtitle {
        font-size: 1rem;

        margin-bottom: 25px;
    }


    .stone-search-box {
        padding: 18px;

        border-radius: 16px;
    }


    .stone-actions {
        grid-template-columns: 1fr;
    }


    .btn {
        width: 100%;

        min-height: 55px;
    }


    .home-section {
        padding: 55px 0;
    }


    .home-map-section {
        padding-bottom: 55px;
    }


    .home-map-card {
        display: flex;

        flex-direction: column;

        text-align: center;
    }


    .home-map-card .btn-map {
        width: 100%;
    }

}

/* =========================================================
   Stone detail
   ========================================================= */

.stone-hero {
    padding: 35px 0 60px;

    background:
        linear-gradient(
            180deg,
            #f0fdfa 0%,
            #f7f8fa 100%
        );
}


.stone-back-link {
    display: inline-flex;
    align-items: center;

    margin-bottom: 25px;

    color: #0f766e;

    font-weight: 700;
}


.stone-header-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 420px)
        1fr;

    gap: 50px;

    align-items: center;
}


/* =========================================================
   Stone photo
   ========================================================= */

.stone-photo-card {
    overflow: hidden;

    aspect-ratio: 1 / 1;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.1);
}


.stone-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.stone-photo-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 7rem;

    background:
        linear-gradient(
            135deg,
            #ccfbf1,
            #ecfeff
        );
}


/* =========================================================
   Stone info
   ========================================================= */

.stone-tag {
    display: inline-flex;

    padding: 7px 12px;

    margin-bottom: 12px;

    border-radius: 30px;

    background: #ccfbf1;

    color: #0f766e;

    font-weight: 800;

    letter-spacing: 0.04em;
}


.stone-main-info h1 {
    margin: 0 0 18px;

    font-size: clamp(
        2.2rem,
        6vw,
        4rem
    );

    line-height: 1.05;

    color: #111827;
}


.stone-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 20px;

    margin-bottom: 25px;

    color: #6b7280;
}


.stone-meta-item {
    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 0.95rem;
}


.stone-description {
    margin-bottom: 25px;

    font-size: 1.05rem;

    line-height: 1.75;

    color: #4b5563;
}


/* =========================================================
   Current location
   ========================================================= */

.current-location {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    margin-bottom: 20px;

    background: #ffffff;

    border: 1px solid #d1fae5;

    border-radius: 14px;
}


.current-location-icon {
    font-size: 1.5rem;
}


.current-location-label {
    display: block;

    margin-bottom: 2px;

    font-size: 0.78rem;
    font-weight: 700;

    color: #6b7280;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}


.current-location strong {
    color: #065f46;
}


.stone-found-button {
    min-width: 220px;
}


/* =========================================================
   Sections
   ========================================================= */

.stone-section {
    padding: 70px 0;
}


.stone-comments-section {
    background: #ffffff;
}


.stone-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}


.section-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #0f766e;

    font-size: 0.85rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.stone-section-heading h2 {
    margin: 0;

    font-size: clamp(
        1.6rem,
        4vw,
        2.4rem
    );

    color: #111827;
}

/* =========================================================
   Stone map
   ========================================================= */

.stone-map-wrapper {
    margin-bottom: 45px;

    overflow: hidden;

    border-radius: 20px;

    border: 1px solid #d1d5db;

    background: #ffffff;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.06);
}


.stone-map {
    width: 100%;

    height: 450px;
}


/* Popup */

.stone-map-popup {
    min-width: 160px;

    line-height: 1.4;
}


.stone-map-popup strong {
    color: #111827;
}


.stone-map-popup-date {
    margin-top: 3px;

    color: #9ca3af;

    font-size: 0.8rem;
}


.stone-map-popup p {
    margin:
        8px 0 0;

    color: #4b5563;
}


@media (max-width: 600px) {

    .stone-map {
        height: 330px;
    }

}


/* =========================================================
   Journey timeline
   ========================================================= */

.journey-timeline {
    max-width: 850px;

    margin: 0 auto;
}


.journey-location {
    position: relative;

    display: grid;

    grid-template-columns:
        50px 1fr;

    gap: 18px;
}


.journey-location:not(:last-child) {
    padding-bottom: 30px;
}


.journey-location:not(:last-child)::before {
    content: "";

    position: absolute;

    left: 24px;
    top: 42px;
    bottom: 0;

    width: 2px;

    background: #99f6e4;
}


.journey-marker {
    position: relative;

    z-index: 1;
}


.journey-number {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f766e;

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        0 6px 14px
        rgba(15, 118, 110, 0.2);
}


.journey-content {
    padding: 5px 0 20px;
}


.journey-location-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 15px;
}


.journey-location-header h3 {
    margin: 0;

    color: #111827;

    font-size: 1.1rem;
}


.journey-location-header time {
    color: #9ca3af;

    font-size: 0.85rem;

    white-space: nowrap;
}


.journey-content p {
    margin: 8px 0 0;

    color: #6b7280;

    line-height: 1.6;
}


/* =========================================================
   Comments
   ========================================================= */

.comment-count {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ccfbf1;

    color: #0f766e;

    font-weight: 800;
}


.comments-list {
    display: grid;

    gap: 15px;

    max-width: 850px;
}


.comment-card {
    display: grid;

    grid-template-columns:
        45px 1fr;

    gap: 15px;

    padding: 20px;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    background: #ffffff;
}


.comment-avatar {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ccfbf1;

    color: #0f766e;

    font-weight: 800;
}


.comment-header {
    display: flex;
    justify-content: space-between;

    gap: 15px;
}


.comment-header time {
    color: #9ca3af;

    font-size: 0.8rem;
}


.comment-content p {
    margin: 5px 0 0;

    color: #4b5563;

    line-height: 1.6;
}


/* =========================================================
   Empty state
   ========================================================= */

.empty-state {
    padding: 50px 20px;

    text-align: center;

    border: 1px dashed #d1d5db;

    border-radius: 16px;

    color: #6b7280;
}


.empty-state-icon {
    margin-bottom: 10px;

    font-size: 2.8rem;
}


.empty-state h3 {
    margin: 0 0 5px;

    color: #374151;
}


.empty-state p {
    margin: 0;
}


/* =========================================================
   Bottom CTA
   ========================================================= */

.stone-bottom-cta {
    padding: 60px 0;
}


.stone-bottom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #134e4a,
            #0f766e
        );

    color: #ffffff;

    border-radius: 20px;
}


.stone-bottom-icon {
    font-size: 2rem;
}


.stone-bottom-card h2 {
    margin: 5px 0;
}


.stone-bottom-card p {
    margin: 0;

    color: rgba(
        255,
        255,
        255,
        0.8
    );
}


.stone-bottom-card .btn {
    flex-shrink: 0;

    background: #ffffff;

    color: #0f766e;
}


/* =========================================================
   Not found
   ========================================================= */

.stone-not-found {
    padding: 100px 0;
}


.stone-not-found-card {
    max-width: 550px;

    margin: auto;

    padding: 45px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.08);
}


.stone-not-found-icon {
    font-size: 4rem;
}


.stone-not-found-tag {
    margin: 20px 0;

    font-weight: 800;

    color: #0f766e;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {

    .stone-header-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .stone-photo-card {
        width: min(
            100%,
            500px
        );

        margin: 0 auto;
    }


    .stone-bottom-card {
        flex-direction: column;

        align-items: stretch;

        text-align: center;
    }

}


@media (max-width: 600px) {

    .stone-hero {
        padding: 20px 0 45px;
    }


    .stone-main-info h1 {
        font-size: 2.2rem;
    }


    .stone-meta {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }


    .stone-found-button {
        width: 100%;
    }


    .stone-section {
        padding: 50px 0;
    }


    .stone-map-placeholder {
        min-height: 240px;
    }


    .journey-location {
        grid-template-columns:
            40px 1fr;

        gap: 12px;
    }


    .journey-number {
        width: 40px;
        height: 40px;
    }


    .journey-location:not(:last-child)::before {
        left: 19px;
        top: 38px;
    }


    .journey-location-header {
        flex-direction: column;

        gap: 2px;
    }


    .comment-card {
        grid-template-columns:
            38px 1fr;

        padding: 15px;
    }


    .comment-avatar {
        width: 38px;
        height: 38px;
    }

}
