/* Taranaki Dog Care — Homecare frontend
 *
 * Earthy greens + warm neutrals palette per spec §9. One accent for CTAs.
 * Mobile-first; min-width breakpoints widen the grid.
 */

:root {
    --dthc-bg: #fafaf7;
    --dthc-fg: #2a2a26;
    --dthc-muted: #6b6b65;
    --dthc-line: #e3e1d8;
    --dthc-accent: #2f6b3a;          /* mountain green */
    --dthc-accent-hover: #245329;
    --dthc-cta: #c8782e;             /* warm clay CTA */
    --dthc-cta-hover: #a8631f;
    --dthc-included: #0a7d32;
    --dthc-radius: 10px;
}

/* ------------------------------- directory ------------------------------- */

.dthc-directory { font-family: inherit; color: var(--dthc-fg); }

.dthc-finder {
    background: linear-gradient(180deg, #ecf3ee, var(--dthc-bg));
    border: 1px solid var(--dthc-line);
    border-radius: var(--dthc-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.dthc-finder-title { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: var(--dthc-accent); }
.dthc-finder-sub { margin: 0 0 18px; color: var(--dthc-muted); font-size: 15px; }
.dthc-step {
    display: inline-block; width: 22px; height: 22px;
    border-radius: 50%; background: var(--dthc-accent); color: #fff;
    text-align: center; line-height: 22px; font-size: 12px; font-weight: 700;
    margin-right: 6px;
}
.dthc-services-hint { margin: 8px 0 0; font-size: 12px; color: var(--dthc-muted); font-style: italic; }
.dthc-results-summary {
    background: var(--dthc-bg); border-left: 3px solid var(--dthc-accent);
    padding: 10px 14px; margin: 0 0 18px; font-size: 14px; color: var(--dthc-fg);
}

.dthc-filter-bar {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
    display: grid;
    gap: 16px;
}
.dthc-filter-row { display: flex; flex-direction: column; gap: 6px; }
.dthc-filter-row label,
.dthc-filter-label { font-weight: 600; font-size: 14px; }
.dthc-filter-row select,
.dthc-filter-row input { padding: 8px 10px; border: 1px solid var(--dthc-line); border-radius: 6px; font-size: 14px; }
.dthc-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 640px) { .dthc-services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .dthc-services-grid { grid-template-columns: repeat(5, 1fr); } }
.dthc-service-check {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 8px; border: 1px solid var(--dthc-line); border-radius: 6px;
    font-size: 13px; cursor: pointer; background: #fff;
}
.dthc-service-check input { margin: 0; }
.dthc-service-check:has(input:checked) { border-color: var(--dthc-accent); background: #ecf3ee; }
.dthc-filter-actions { align-items: flex-start; }

.dthc-carer-grid {
    display: grid; gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .dthc-carer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .dthc-carer-grid { grid-template-columns: repeat(3, 1fr); } }

.dthc-carer-card {
    border: 1px solid var(--dthc-line);
    border-radius: var(--dthc-radius);
    background: #fff;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
}
.dthc-carer-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.dthc-carer-card-link { display: block; color: inherit; text-decoration: none; }
.dthc-carer-card-photo { aspect-ratio: 4 / 3; background: var(--dthc-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dthc-carer-card-photo img,
.dthc-carer-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.dthc-carer-photo-fallback { font-size: 48px; opacity: 0.4; }
.dthc-carer-card-photo { position: relative; }
.dthc-match-badge-overlay { position: absolute; top: 10px; left: 10px; }
.dthc-match {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.dthc-match-full    { background: var(--dthc-included); color: #fff; }
.dthc-match-partial { background: #d97706; color: #fff; }
.dthc-match-none    { background: rgba(255,255,255,.95); color: var(--dthc-muted); border: 1px solid var(--dthc-line); }
.dthc-carer-card-body { padding: 14px 16px 6px; }
.dthc-carer-name { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.dthc-carer-towns { color: var(--dthc-muted); font-size: 13px; margin-bottom: 6px; }
.dthc-carer-headline-rate { color: var(--dthc-accent); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.dthc-carer-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.dthc-service-badge {
    display: inline-block; padding: 2px 8px;
    background: var(--dthc-bg); border: 1px solid var(--dthc-line);
    border-radius: 12px; font-size: 12px; color: var(--dthc-fg);
}
.dthc-service-badge.dthc-overflow { color: var(--dthc-muted); }
.dthc-carer-card-cta { padding: 0 16px 14px; color: var(--dthc-accent); font-weight: 600; font-size: 14px; }

.dthc-empty { padding: 32px; text-align: center; color: var(--dthc-muted); border: 1px dashed var(--dthc-line); border-radius: var(--dthc-radius); }

/* ----------------------------- booking picker ----------------------------- */

.dthc-booking-picker { font-family: inherit; color: var(--dthc-fg); }
.dthc-picker-card { display: flex; flex-direction: column; }
.dthc-picker-card-actions {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--dthc-line);
    display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.dthc-picker-card-actions .dthc-btn { text-align: center; }
.dthc-picker-card-profile-link {
    color: var(--dthc-muted); font-size: 13px; text-align: center;
    text-decoration: none;
}
.dthc-picker-card-profile-link:hover { color: var(--dthc-accent); text-decoration: underline; }

/* ----------------------------- booking form ------------------------------ */

.dthc-booking-form { max-width: 720px; }
.dthc-bf-header h2 { margin: 0 0 4px; }
.dthc-bf-header p { color: var(--dthc-muted); margin-bottom: 24px; }
.dthc-bf-change-carer {
    display: inline-block; margin-left: 8px;
    color: var(--dthc-accent); font-size: 13px; font-weight: 600;
    text-decoration: none;
}
.dthc-bf-change-carer:hover { text-decoration: underline; }

.dthc-bf-section {
    border: 1px solid var(--dthc-line);
    border-radius: var(--dthc-radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    background: #fff;
}
.dthc-bf-section legend { font-weight: 700; padding: 0 8px; }
.dthc-bf-section label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.dthc-bf-section input[type=text],
.dthc-bf-section input[type=email],
.dthc-bf-section input[type=tel],
.dthc-bf-section input[type=date],
.dthc-bf-section input[type=number],
.dthc-bf-section select,
.dthc-bf-section textarea {
    width: 100%; padding: 8px 10px; margin-top: 4px;
    border: 1px solid var(--dthc-line); border-radius: 6px;
    font-size: 14px; font-family: inherit;
    font-weight: 400;
}

.dthc-dog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.dthc-add-dog { background: none; border: 1px dashed var(--dthc-line); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; }

.dthc-conditional[hidden] { display: none !important; }

/* availability pane (booking form, step 3) */
.dthc-availability-pane {
    background: var(--dthc-bg);
    border: 1px solid var(--dthc-line);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}
.dthc-availability-loading { margin: 0; color: var(--dthc-muted); font-style: italic; }
.dthc-availability-ok { margin: 0; color: var(--dthc-included); font-weight: 600; }
.dthc-availability-error { margin: 0; color: #b91c1c; }
.dthc-availability-label { margin: 0 0 8px; }
.dthc-availability-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dthc-availability-list li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 4px 8px; background: #fff; border-radius: 4px;
    font-size: 13px;
}
.dthc-avail-range { font-weight: 600; }
.dthc-avail-reason { color: var(--dthc-muted); font-style: italic; }
.dthc-avail-more { background: transparent; color: var(--dthc-muted); font-style: italic; }
.dthc-date-error {
    margin-top: 8px; padding: 10px 12px;
    background: #fee; border: 1px solid #fcc; border-radius: 6px;
    color: #b91c1c; font-size: 13px; font-weight: 600;
}

.dthc-extras-list { display: flex; flex-direction: column; gap: 8px; }
.dthc-extra-row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: 10px; padding: 10px 12px;
    border: 1px solid var(--dthc-line); border-radius: 8px;
    font-weight: 400;
}
.dthc-extra-row:has(input[type=checkbox]:checked) { border-color: var(--dthc-accent); background: #ecf3ee; }
.dthc-extra-row.dthc-extra-included { background: #f0faf3; border-color: #c4e3cd; }
.dthc-extra-included-tick { color: var(--dthc-included); font-size: 18px; font-weight: 700; }
.dthc-extra-label { display: flex; flex-direction: column; gap: 2px; }
.dthc-extra-label strong { font-weight: 600; }
.dthc-extra-label em { font-style: normal; color: var(--dthc-muted); font-size: 13px; }
.dthc-extra-note { font-size: 12px; color: var(--dthc-muted); font-style: italic; }
.dthc-extra-qty { width: 70px; }

.dthc-bf-quote .dthc-quote-pane {
    background: var(--dthc-bg); padding: 14px; border-radius: 8px;
    font-size: 14px;
}
.dthc-quote-placeholder { color: var(--dthc-muted); margin: 0; }
.dthc-quote-line { display: flex; justify-content: space-between; padding: 4px 0; }
.dthc-quote-line.dthc-quote-included { color: var(--dthc-included); }
.dthc-quote-line.dthc-quote-grand { border-top: 1px solid var(--dthc-line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.dthc-quote-line.dthc-quote-deposit { color: var(--dthc-cta); font-weight: 600; }

.dthc-consent { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-size: 14px; }

.dthc-btn {
    display: inline-block; padding: 10px 18px; border-radius: 6px;
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: 1px solid transparent; text-decoration: none;
}
.dthc-btn-primary { background: var(--dthc-cta); color: #fff; }
.dthc-btn-primary:hover { background: var(--dthc-cta-hover); }
.dthc-btn-large { padding: 14px 24px; font-size: 16px; }

.dthc-bf-fineprint { color: var(--dthc-muted); font-size: 13px; margin-top: 10px; }

.dthc-thanks { padding: 32px; text-align: center; background: var(--dthc-bg); border-radius: var(--dthc-radius); }
.dthc-error { padding: 12px; background: #fee; border: 1px solid #fcc; border-radius: 6px; color: #900; }
.dthc-pick-first { padding: 24px; text-align: center; }

/* ----------------------- trainer_profile additions ----------------------- */

.dthc-profile-extensions { margin-top: 32px; }
.dthc-prof-section {
    border: 1px solid var(--dthc-line);
    border-radius: var(--dthc-radius);
    padding: 18px 22px;
    margin-bottom: 18px;
    background: #fff;
}
.dthc-prof-section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }

.dthc-rate-table { width: 100%; border-collapse: collapse; }
.dthc-rate-table th, .dthc-rate-table td { padding: 8px 0; text-align: left; vertical-align: top; }
.dthc-rate-table th { font-weight: 600; }
.dthc-rate-table td { text-align: right; font-weight: 700; font-size: 16px; }
.dthc-rate-unit { color: var(--dthc-muted); font-weight: 400; font-size: 13px; }
.dthc-rate-table tr + tr th,
.dthc-rate-table tr + tr td { border-top: 1px solid var(--dthc-line); }

.dthc-services-list { list-style: none; margin: 0; padding: 0; }
.dthc-service-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--dthc-line);
}
.dthc-service-item:last-child { border-bottom: 0; }
.dthc-svc-icon { font-size: 18px; }
.dthc-svc-body { display: flex; flex-direction: column; gap: 2px; }
.dthc-svc-body strong { font-weight: 600; }
.dthc-svc-note { color: var(--dthc-muted); font-size: 12px; font-style: italic; }
.dthc-svc-price { font-weight: 700; text-align: right; }
.dthc-svc-price small { display: block; color: var(--dthc-muted); font-weight: 400; font-size: 12px; }
.dthc-svc-included .dthc-svc-price { color: var(--dthc-included); }

.dthc-availability-note { color: var(--dthc-muted); margin: 0; line-height: 1.5; }

.dthc-testimonial-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dthc-testimonial {
    padding: 14px 16px;
    background: var(--dthc-bg);
    border-radius: 8px;
    border-left: 3px solid var(--dthc-accent);
}
.dthc-stars { color: #d4a017; letter-spacing: 1px; margin-bottom: 4px; }
.dthc-testimonial blockquote { margin: 0 0 6px; font-style: italic; }
.dthc-testimonial cite { color: var(--dthc-muted); font-size: 13px; font-style: normal; }

.dthc-prof-cta { text-align: center; background: linear-gradient(180deg, #fff, var(--dthc-bg)); }
.dthc-prof-cta p { color: var(--dthc-muted); max-width: 540px; margin: 0 auto 16px; line-height: 1.5; }

/* ------------------------------ carer inbox ------------------------------ */

.dthc-carer-inbox { max-width: 880px; }
.dthc-carer-inbox h2 { font-size: 22px; margin-bottom: 12px; }
.dthc-inbox-empty { color: var(--dthc-muted); padding: 14px; background: var(--dthc-bg); border-radius: 6px; }

.dthc-inbox-list { display: flex; flex-direction: column; gap: 14px; }
.dthc-inbox-card {
    border: 1px solid var(--dthc-line);
    border-radius: var(--dthc-radius);
    padding: 16px 20px;
    background: #fff;
}
.dthc-inbox-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dthc-inbox-card-head h3 { margin: 0; font-size: 18px; }
.dthc-inbox-dates { color: var(--dthc-muted); font-size: 14px; }

.dthc-inbox-meta { display: grid; grid-template-columns: 110px 1fr; gap: 4px 14px; margin: 8px 0 14px; font-size: 14px; }
.dthc-inbox-meta dt { color: var(--dthc-muted); }
.dthc-inbox-meta dd { margin: 0; }

.dthc-inbox-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--dthc-line); align-items: flex-end; }
.dthc-inbox-schedule { display: flex; gap: 8px; flex: 1 1 auto; align-items: flex-end; }
.dthc-inbox-schedule label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; flex: 1; }
.dthc-inbox-schedule input { padding: 8px 10px; border: 1px solid var(--dthc-line); border-radius: 6px; font-size: 14px; }
.dthc-inbox-decline { margin-left: auto; }

.dthc-inbox-hint { color: var(--dthc-muted); font-size: 13px; margin: 6px 0 0; }
.dthc-inbox-status-pill { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }

.dthc-btn-secondary { background: #fff; border: 1px solid var(--dthc-line); color: var(--dthc-fg); }
.dthc-btn-secondary:hover { background: var(--dthc-bg); border-color: #b91c1c; color: #b91c1c; }

.dthc-flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-weight: 600; }
.dthc-flash-ok    { background: #ecf3ee; border: 1px solid #c4e3cd; color: var(--dthc-included); }
.dthc-flash-error { background: #fee; border: 1px solid #fcc; color: #b91c1c; }
