@font-face {
    font-family: 'Staatliches';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/staatliches.woff2') format('woff2');
}

@font-face {
    font-family: 'Literata';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/literata-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Literata';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/literata-400i.woff2') format('woff2');
}

:root {
    --pr-ink: #17161a;
    --pr-paper: #ece7dc;
    --pr-paper-soft: #f6f3ea;
    --pr-amber: #d9922e;
    --pr-amber-strong: #c57f1f;
    --pr-steel: #41606d;
    --pr-chalk: #9b958a;
}

/* ---------- Forside ---------- */

.entry-content.is-layout-constrained > .pr-home {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.pr-home {
    font-family: 'Literata', Georgia, serif;
    color: var(--pr-ink);
}

.pr-hero {
    background: var(--pr-paper);
    padding: 72px 24px 64px;
}

.pr-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.pr-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
}

.pr-hero-icon svg {
    width: 100%;
    height: 100%;
}

.pr-hero-title {
    font-family: 'Staatliches', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 28px;
    text-wrap: balance;
    color: var(--pr-ink);
}

.pr-hero-copy {
    font-size: 1.1rem;
    line-height: 1.65;
    text-align: left;
}

.pr-hero-copy p {
    margin: 0 0 18px;
}

.pr-hero-copy a {
    color: var(--pr-steel);
    text-decoration-color: var(--pr-amber);
}

.pr-cta {
    display: inline-block;
    font-family: 'Staatliches', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 3px;
    margin-top: 12px;
}

.pr-cta-amber {
    background: var(--pr-amber);
    color: var(--pr-ink);
}

.pr-cta-amber:hover {
    background: var(--pr-amber-strong);
}

.pr-driver-section {
    background: var(--pr-ink);
    color: var(--pr-paper);
    padding: 64px 24px 72px;
}

.pr-driver-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.pr-driver-title {
    font-family: 'Staatliches', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin: 0 0 22px;
    color: var(--pr-paper);
}

.pr-driver-copy {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--pr-chalk);
    text-align: left;
}

.pr-driver-copy p {
    margin: 0;
}

.pr-cta-outline {
    background: transparent;
    color: var(--pr-paper);
    border: 2px solid var(--pr-amber);
}

.pr-cta-outline:hover {
    background: var(--pr-amber);
    color: var(--pr-ink);
}

/* ---------- Registreringsformular ---------- */

.pr-form-wrapper {
    max-width: 640px;
    font-family: 'Literata', Georgia, serif;
}

.pr-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.pr-notice-ok {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7dfc3;
}

.pr-notice-error {
    background: #fdecea;
    color: #a12a1b;
    border: 1px solid #f3c2bd;
}

.pr-field {
    margin-bottom: 18px;
}

.pr-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.pr-role-select {
    border: none;
    padding: 0;
}

.pr-role-select legend {
    font-weight: 600;
    margin-bottom: 6px;
    padding: 0;
}

.pr-role-select label {
    display: inline-block;
    font-weight: normal;
    margin-right: 20px;
}

.pr-field input[type="text"],
.pr-field input[type="email"],
.pr-field input[type="number"],
.pr-field select,
.pr-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pr-chalk);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: Georgia, serif;
    background: #fff;
}

.pr-field input[type="file"] {
    width: 100%;
    font-size: 14px;
}

.pr-field input[type="range"] {
    width: 100%;
    accent-color: var(--pr-amber);
}

.pr-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pr-row .pr-field {
    flex: 1;
    min-width: 200px;
}

.pr-location-results {
    border: 1px solid var(--pr-chalk);
    border-radius: 4px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.pr-location-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.pr-location-result-item:hover {
    background: var(--pr-paper-soft);
}

.pr-location-confirmed {
    margin-top: 6px;
    font-size: 13px;
    color: var(--pr-steel);
}

.pr-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.pr-submit {
    font-family: 'Staatliches', sans-serif;
    background: var(--pr-amber);
    color: var(--pr-ink);
    border: none;
    padding: 12px 28px;
    border-radius: 3px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.pr-submit:hover {
    background: var(--pr-amber-strong);
}

/* ---------- Kart ---------- */

.entry-content.is-layout-constrained > .pr-map-wrapper {
    max-width: 1280px !important;
}

.pr-map-wrapper {
    width: 100%;
    font-family: 'Literata', Georgia, serif;
}

.pr-map-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pr-map-col {
    flex: 1 1 auto;
    min-width: 0;
}

#pillionrides-map {
    width: 100%;
    border-radius: 6px;
    z-index: 0;
}

.pr-map-legend {
    display: flex;
    gap: 24px;
    margin-top: 10px;
    font-size: 14px;
}

.pr-map-list-col {
    width: 300px;
    flex-shrink: 0;
}

.pr-map-list-heading {
    font-family: 'Staatliches', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.pr-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: var(--pr-map-height, 600px);
    overflow-y: auto;
    border: 1px solid var(--pr-chalk);
    border-radius: 6px;
}

.pr-map-list-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.pr-map-list-item:last-child {
    border-bottom: none;
}

.pr-map-list-item:hover {
    background: var(--pr-paper-soft);
}

.pr-map-list-photo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.pr-map-list-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.pr-map-list-dot.pr-is-driver {
    background: var(--pr-amber-strong);
}

.pr-map-list-dot.pr-is-passenger {
    background: var(--pr-steel);
}

.pr-map-list-info {
    flex: 1;
    min-width: 0;
}

.pr-map-list-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pr-ink);
}

.pr-map-list-meta {
    font-size: 0.78rem;
    color: var(--pr-chalk);
}

.pr-map-list-empty {
    font-size: 0.85rem;
    color: var(--pr-chalk);
    margin: 10px 0 0;
}

@media (max-width: 780px) {
    .pr-map-layout {
        flex-direction: column;
    }

    .pr-map-list-col {
        width: 100%;
    }

    .pr-map-list {
        max-height: 320px;
    }

    #pillionrides-map {
        height: 420px !important;
    }
}

.pr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pr-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.pr-legend-driver {
    background: rgba(217, 146, 46, 0.25);
    border: 2px solid var(--pr-amber-strong);
}

.pr-legend-passenger {
    background: var(--pr-steel);
    border: 2px solid var(--pr-steel);
}

/* ---------- Site footer ---------- */

.pr-site-footer {
    background: var(--pr-ink);
    color: var(--pr-chalk);
    font-family: 'Literata', Georgia, serif;
}

.pr-site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.pr-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    align-items: center;
    font-size: 0.95rem;
}

.pr-footer-brand {
    font-family: 'Staatliches', sans-serif;
    letter-spacing: 0.02em;
    color: var(--pr-paper);
    margin-right: 6px;
}

.pr-footer-links a {
    color: var(--pr-chalk);
    text-decoration: none;
}

.pr-footer-links a:hover {
    color: var(--pr-amber);
    text-decoration: underline;
}

.pr-footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--pr-chalk);
    opacity: 0.8;
}

/* ---------- Legal / static content pages ---------- */

.entry-content {
    font-family: 'Literata', Georgia, serif;
    line-height: 1.7;
}

.entry-content h2 {
    font-family: 'Staatliches', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: 1.5rem;
}

.entry-content a {
    color: var(--pr-steel);
}

.pr-popup-photo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ---------- Manage listing ---------- */

.pr-manage-signed-in {
    font-size: 0.9rem;
    color: var(--pr-chalk);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pr-manage-signed-in a {
    color: var(--pr-steel);
}

.pr-manage-listing {
    border: 1px solid var(--pr-chalk);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    max-width: 640px;
}

.pr-manage-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pr-manage-listing-header h3 {
    font-family: 'Staatliches', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
    font-size: 1.2rem;
}

.pr-manage-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pr-steel);
    background: var(--pr-paper-soft);
    padding: 3px 8px;
    border-radius: 3px;
}

.pr-manage-actions {
    margin-top: 6px;
}

.pr-manage-remove-form {
    margin-top: 10px;
}

.pr-manage-remove-button {
    background: none;
    border: 1px solid #c1432f;
    color: #c1432f;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
}

.pr-manage-remove-button:hover {
    background: #c1432f;
    color: #fff;
}
