/* Roamland Holidays — Itinerary Maker & Proposal pages */

:root {
    --brand: #1f4d7a;
    --brand-dark: #163d5f;
    --brand-light: #eef6fb;
    --ink: #26313f;
    --muted: #6b7a90;
    --border: #dbe3ee;
    --bg: #f4f7fb;
    --danger: #d52941;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 28px 20px;
    color: var(--ink);
    background: var(--bg);
}

.container { max-width: 960px; margin: 0 auto; }

h1 { color: var(--brand); font-size: 1.6rem; }
h2 { color: var(--brand); font-size: 1.15rem; }
h3 { color: var(--ink); }

a { color: var(--brand); }

.top-link {
    text-align: right;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.hero-banner {
    background: linear-gradient(135deg, #12293f 0%, #1f4d7a 55%, #2f6fa8 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 14px 34px rgba(20,50,80,0.22);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.hero-banner-text { position: relative; z-index: 1; }
.hero-banner-text h1 { margin: 0 0 6px; color: #fff; font-size: 1.5rem; letter-spacing: -0.01em; }
.hero-banner-text p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.hero-banner-link {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    white-space: nowrap;
    transition: background 0.12s ease, transform 0.12s ease;
}

.hero-banner-link:hover { background: var(--brand-light); transform: translateY(-1px); }

form {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(20,30,50,0.05);
}

label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: 0.88rem; }

input[type=text], input[type=date], input[type=number], input[type=email], input[type=password], input[type=tel], textarea, select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #fbfcfe;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31,77,122,0.12);
}

textarea { min-height: 140px; }

button {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease;
}

button:hover { background: var(--brand-dark); }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.btn-muted { background: #4c5c73; }
.btn-muted:hover { background: #38455a; }

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

.form-section { margin-bottom: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-section:first-of-type { padding-top: 0; border-top: none; }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 16px;
}

.form-section-title-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-title-icon svg { width: 15px; height: 15px; }

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(20,30,50,0.05);
}

.panel h3 { margin-top: 0; }
.panel + .panel { margin-top: 20px; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.detail-item .detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 4px;
}

.detail-item .detail-value { font-size: 0.98rem; color: var(--ink); }
.detail-item .detail-value.highlight { font-weight: 700; color: var(--brand); font-size: 1.1rem; }

table.data-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
table.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: #f7f9fc;
    border-bottom: 1px solid var(--border);
}
table.data-table td { padding: 10px 12px; border-bottom: 1px solid #eef1f6; font-size: 0.92rem; vertical-align: top; }
table.data-table tbody tr:nth-child(even) td { background: #fbfcfe; }
table.data-table tbody tr:last-child td { border-bottom: none; }

.item { margin-bottom: 12px; }
.item strong { display: block; margin-bottom: 4px; }

.drag-panel {
    background: #fbfcfe;
    border: 1px dashed #b7c6de;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-light);
    border: 1px solid #cfe1f4;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
}

.location-item label { display: flex; align-items: center; width: 100%; cursor: pointer; }
.location-checkbox { margin-right: 12px; width: 18px; height: 18px; }
.location-text { flex: 1; }
.drag-handle { margin-left: 12px; cursor: grab; color: var(--brand); font-size: 1.1rem; }
.location-item.dragging { opacity: 0.5; }
.location-summary { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }

.quick-add {
    background: #fbfcfe;
    border: 1px dashed #b7c6de;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.quick-add-title { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.hint { font-size: 0.82rem; color: var(--muted); font-weight: normal; margin-top: 2px; }
.quick-add label { display: flex; align-items: center; font-weight: normal; margin: 4px 0; cursor: pointer; }
.quick-add input[type=checkbox] { width: auto; margin-right: 8px; }

/* Saved proposal page */
.meta { margin-bottom: 18px; }
.meta p { margin: 6px 0; }

.section-title { color: var(--brand); margin-bottom: 10px; }

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    background: #f6f8fb;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

a.button {
    display: inline-block;
    margin-top: 10px;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.12s ease, transform 0.12s ease;
}

a.button:hover { background: var(--brand-dark); }

.proposal-body p { margin: 0 0 12px; }
.proposal-body h3 { color: var(--brand); margin: 22px 0 8px; }
.proposal-body h3:first-child { margin-top: 0; }
.proposal-body ul { margin: 0 0 14px; padding-left: 22px; }
.proposal-body li { margin: 4px 0; }
.proposal-body hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.day-description-item { margin-top: 4px; margin-bottom: 4px; }
.day-description-item label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-dark);
}

.premium-textarea {
    min-height: 150px;
    background: linear-gradient(180deg, #fffdf8 0%, #fbf8f0 100%);
    border: 1px solid #e6d9b8;
    border-left: 3px solid #c9a227;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: inset 0 1px 2px rgba(20,30,50,0.03), 0 1px 3px rgba(20,30,50,0.05);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.premium-textarea:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15), 0 1px 3px rgba(20,30,50,0.08);
    background: #fffefb;
}

.premium-textarea::placeholder { color: #b9ad8f; font-style: italic; }

@media (max-width: 700px) {
    .grid, .detail-grid { grid-template-columns: 1fr; }
    body { padding: 16px 12px; }

    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .hero-banner-link { width: 100%; text-align: center; }

    form, .panel { padding: 16px; }

    .form-actions { flex-direction: column; }
    .form-actions button { width: 100%; }

    table.data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}
