/* ==========================================================================
   City Guide Stylesheet — Roammate.eu
   Stand-alone CSS for all /cities/*.html pages.
   Does NOT depend on style.css (marketing pages have their own file).
   ========================================================================== */

/* ---------- 1. CSS Custom Properties ---------- */
:root {
    --cg-primary: var(--color-primary, #2563EB);
    --cg-primary-dark: var(--color-primary-dark, #1D4ED8);
    --cg-primary-hover: var(--color-primary-dark, #1D4ED8);
    --cg-text: var(--text-main, #333);
    --cg-text-dark: var(--text-main, #1a1a1a);
    --cg-text-light: var(--text-muted, #666);
    --cg-text-muted: var(--text-muted, #555);
    --cg-bg: var(--bg-surface, #f5f5f5);
    --cg-white: var(--bg-main, #fff);
    --cg-border: var(--border-subtle, #e0e0e0);
    --cg-border-light: var(--border-subtle, #eee);
}

/* ---------- 2. Base / Reset / Layout ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--cg-text);
    background: var(--cg-bg);
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--cg-white);
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.2em;
    color: var(--cg-text-dark);
    margin-bottom: 10px;
    border-bottom: 3px solid var(--cg-primary);
    padding-bottom: 15px;
}

h2 {
    font-size: 1.6em;
    color: var(--cg-text-dark);
    margin-top: 35px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.2em;
    color: var(--cg-text);
    margin-top: 25px;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.05em;
    color: var(--cg-text-muted);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.meta {
    color: var(--cg-text-light);
    font-size: 0.9em;
    margin-bottom: 30px;
}

a {
    color: var(--cg-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul,
ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
}

small {
    color: var(--cg-text-light);
    font-size: 0.85em;
}

/* ---------- 3. Collapsible Sections ---------- */
.collapsible {
    background: var(--cg-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.collapsible-header {
    background: var(--cg-bg);
    color: #444;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-radius: 8px;
    border: 1px solid var(--cg-border-light);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background 0.2s;
    /* Button reset */
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.collapsible-header:focus-visible {
    outline: 3px solid var(--cg-primary);
    outline-offset: 2px;
}

.collapsible.active .collapsible-header {
    border-radius: 8px 8px 0 0;
    background: #eee;
}

.collapsible-header:hover {
    background: #f0f0f0;
}

.collapsible-header h2 {
    margin: 0;
    color: #444;
    border: none;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.collapsible-toggle {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.collapsible.active .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.collapsible.active .collapsible-content {
    max-height: 5000px;
    padding: 20px;
    transition: max-height 0.6s ease-in;
    border-radius: 0 0 8px 8px;
}

/* ---------- 4. Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--cg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, var(--cg-primary) 0%, var(--cg-primary-dark) 100%);
    color: white;
}

th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--cg-primary-dark);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--cg-border);
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

td:first-child {
    font-weight: 500;
    color: var(--cg-primary);
}

/* ---------- 5. Content Blocks ---------- */
.intro {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--cg-primary);
    margin-bottom: 30px;
}

.app-download {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.app-download a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.app-download a:hover {
    text-decoration: underline;
}

.info-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px 20px;
    margin: 20px 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid var(--cg-border);
}

.info-grid strong {
    color: var(--cg-text);
    font-weight: 600;
}

/* Warning Box (Yellow) */
.warning-box {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ff9800;
    margin: 20px 0;
}

.warning-box strong:first-child {
    display: block;
    color: #f57c00;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.warning-box p {
    margin: 10px 0;
}

/* Critical Box (Red) */
.critical-box {
    background: #ffebee;
    padding: 20px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

.critical-box strong:first-child {
    display: block;
    color: #c62828;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.critical-box p {
    margin: 10px 0;
}

/* Checklist (Green) */
.checklist {
    background: #e8f5e9;
    padding: 20px;
    border-left: 4px solid #4caf50;
    margin: 20px 0;
}

.checklist h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 15px;
}

.checklist ul {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.checklist li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
}

/* Tip Highlight (Blue) */
.tip-highlight {
    background: #e3f2fd;
    padding: 15px 20px;
    border-left: 4px solid #2196f3;
    margin: 20px 0;
}

.tip-highlight strong:first-child {
    color: #1976d2;
}

/* Rating */
.rating {
    font-size: 1.2em;
    color: var(--cg-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ---------- 6. Partner / Affiliate Cards ---------- */
.commercial-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.partner-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 18px;
    background: var(--cg-white);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.partner-card.preferred {
    border: 2px solid #FFD700;
    background: #fffdf5;
}

.partner-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #FFD700;
    color: #444;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.partner-name {
    font-size: 1.15em;
    font-weight: bold;
    color: var(--cg-text);
}

.partner-price {
    font-size: 0.9em;
    color: var(--cg-primary);
    font-weight: 600;
}

.partner-description {
    font-size: 0.9em;
    color: var(--cg-text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

.partner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.feature-tag {
    background: #f0f0f0;
    color: var(--cg-text-muted);
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
}

.cta-button {
    background: transparent;
    color: var(--cg-primary) !important;
    border: 2px solid var(--cg-primary);
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    max-width: 280px;
    align-self: flex-start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: var(--cg-primary);
    color: white !important;
    text-decoration: none !important;
}

/* Primary CTA: Preferred partner */
.preferred .cta-button {
    background: var(--cg-primary);
    color: white !important;
    border: 2px solid var(--cg-primary);
}

.preferred .cta-button:hover {
    background: var(--cg-primary-hover);
    border-color: var(--cg-primary-hover);
}

/* Price badge (used on some city pages) */
.price-badge {
    display: inline-block;
    background: var(--cg-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ---------- 7. Travel Reminder ---------- */
.travel-reminder {
    background: #fffbf0;
    border: 1px solid #e8dfc4;
    border-radius: 4px;
    padding: 18px 20px;
    margin: 25px 0;
    font-size: 0.9em;
    overflow: hidden;
}

.travel-reminder-title {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--cg-text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.reminder-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 160px;
}

.form-field label {
    display: block;
    font-size: 0.8em;
    color: var(--cg-text-light);
    margin-bottom: 4px;
}

.form-field input {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1em;
    background-color: #fff;
}

.form-field input:focus {
    outline: none;
    border-color: var(--cg-primary);
    box-shadow: 0 0 0 2px rgba(0, 137, 202, 0.15);
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    box-shadow: 0 0 0px 1000px #fff inset;
    -webkit-text-fill-color: inherit;
}

.reminder-submit {
    background: var(--cg-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9em;
    min-height: 44px;
}

.reminder-submit:hover {
    background: var(--cg-primary-hover);
}

.reminder-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

.reminder-success {
    display: none;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.reminder-success.show {
    display: block;
}

/* Footer-reminder (scroll-to-form link) */
.footer-reminder {
    background: #f8f9fa;
    border: 1px solid var(--cg-border);
    border-radius: 4px;
    padding: 16px 20px;
    margin: 25px 0;
    text-align: center;
    font-size: 0.95em;
}

.footer-reminder-text {
    color: var(--cg-text-muted);
    margin-bottom: 8px;
}

.footer-reminder-link {
    color: var(--cg-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--cg-primary);
    cursor: pointer;
}

.footer-reminder-link:hover {
    color: var(--cg-primary-hover);
    border-bottom-color: var(--cg-primary-hover);
}

/* Inline reminder link inside collapsibles */
.reminder-link {
    color: var(--cg-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--cg-primary);
}

.reminder-link:hover {
    color: var(--cg-primary-hover);
    border-bottom-style: solid;
}

/* ---------- 8. Jump Links ---------- */
.jump-links {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.jump-links h3 {
    margin-top: 0;
    color: #1976d2;
}

.jump-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.jump-links a {
    display: block;
    padding: 10px;
    background: var(--cg-white);
    border-radius: 5px;
    text-decoration: none;
    color: #1976d2;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #bbdefb;
}

.jump-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- 9. Content Footer ---------- */
.footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--cg-border);
    color: var(--cg-text-light);
    font-size: 0.9em;
}

.footer h3 {
    margin-top: 0;
}

.footer a {
    color: var(--cg-primary);
}

.footer a:hover {
    color: var(--cg-primary-hover);
}

/* ---------- 10. Site Footer ---------- */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--cg-border);
    background: var(--cg-white);
    text-align: center;
}

.site-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.site-footer .footer-links a {
    color: var(--cg-text-light);
    font-size: 0.9rem;
}

.site-footer .footer-links a:hover {
    color: var(--cg-text-dark);
}

.site-footer .footer-links span {
    color: #ccc;
    font-size: 0.9rem;
    cursor: default;
}

.site-footer .copyright {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    /* Mobile table: horizontal scroll */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border: 0;
    }

    th,
    td {
        padding: 12px 10px;
        min-width: 120px;
        white-space: normal;
        vertical-align: top;
        font-size: 0.9em;
        line-height: 1.4;
        border-bottom: 1px solid var(--cg-border-light);
    }

    tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    /* Form adjustments */
    .reminder-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-field {
        min-width: 100%;
    }

    .reminder-submit {
        width: 100%;
    }

    /* Sticky nav compensation */
    .sticky-nav {
        margin: -20px -20px 20px -20px;
    }

    .footer-reminder {
        margin: 30px -20px 20px -20px;
        flex-direction: column;
        text-align: center;
    }

    .footer {
        margin: 0 -20px -20px -20px;
    }
}

/* Lucide Icons */
.lucide {
    display: inline-block;
    vertical-align: -0.2em;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}
.travel-alarm-icon .lucide {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    margin: 0 auto;
}