# Services & Valuation

## Services & Valuation

**Files:** `src/content/services/<language>/`, `src/content/pages/<language>/valuation.md`, `src/content/sections/<language>/valuation-section.md` · **Skill level:** Beginner

The **services** are what your agency does for clients. The demo has six: buying, selling, renting, property management, valuations and relocation. Each one is a file with what it includes, how it works, what it costs and common questions, and gets its own page.

The **valuation page** (`/valuation/`) is where owners ask an agent to visit and price their home. It's a request form, not a calculator: the visitor books a visit, and your agent sends a figure afterwards.

### A Service File
<div class="border border-dark">
  ![A Lotline service page with the photo band and the lead](/images/lotline/service.jpg)
</div>

```yaml
# src/content/services/english/selling.md
---
title: "Selling"
description: "We value your home, then handle the viewings and offers until the sale closes."
summary: "A price based on real sales nearby, then we handle the viewings and offers." # card line
feeNote: "From 1.25% of the sale price" # fee line as written
image: "/images/lotline/services/selling.jpg" # 4:3
imageAlt: "An agent photographing a living room"
includes:
  - "Free valuation visit"
  - "Professional photos and a floor plan"
steps: # how it works, in order
  - title: "Valuation"
    text: "An agent visits and sends a written asking price within two business days."
faq:
  - question: "When do I pay your fee?"
    answer: "Only when the sale closes. If the home doesn't sell, you don't pay."
button: # under the fee box; enable: false hides it
  enable: true
  label: "Book a valuation"
  url: "/valuation/"
  variant: "brand"
order: 2 # lowest first
draft: false
---

It starts with a visit. An agent looks around your home...
```

| Field | Type | What it does |
| --- | --- | --- |
| `title` (required) | text | The service name on cards, rows and the page |
| `description` | text | The lead line at the top of the page |
| `summary` | text | One line under the title on the service cards and rows |
| `feeNote` | text | Your fee as written, such as `"From 8% of the monthly rent"` or `"Free, no obligation"`. Shown on the cards and in the fee box on the page |
| `image`, `imageAlt` | image path, text | A 4:3 photo for the cards and the page band |
| `includes` | list of text | "What's included", one short item per line |
| `steps` | list of `title`, `text` | "How it works", three or four steps in order |
| `faq` | list of `question`, `answer` | The questions on the page. Empty hides the FAQ there |
| `button` | button | The button under the fee box. `enable: false` hides it |
| `order` | number | Position everywhere (lowest first) |
| Named blocks | | `faqSection`, `enquirySection` and `ctaSection` for this page only |

The text under the frontmatter is the body of the page. The fees in the samples are made up and marked `# sample`: write your real fees, or a line like `"Fee agreed after the visit"`.

### The Service Page
`/services/<file name>/` shows, top to bottom:

1. **A tall photo band** with the title.
2. **The body column**: the lead, the Markdown copy and Ask AI links, the text, "What's included", the fee box, and the button.
3. **How it works**: the `steps`, numbered.
4. **The "why us" panel**: a photo with a card of short check rows, shared by every service page.
5. **The questions** from `faq`.
6. **The inquiry form.**
7. The call to action band.

The parts every service page shares are in the `detail` block of `src/content/services/english/-index.md`:

```yaml
detail:
  why: # photo panel with a card of check rows, after "How it works"
    enable: true
    title: "Why people pick *us*"
    image: "/images/lotline/properties/hillcrest-courtyard-house/gallery-2.jpg"
    imageAlt: "" # decorative: leave empty
    list:
      - "Agents who live in the neighborhoods they cover"
      - "One person handles your home from start to finish"
  faqSection: # the questions come from each service's `faq` list
    title: "Common questions"
  enquirySection:
    enable: true
```

A service file's own `faqSection` or `enquirySection` block wins over the shared one for that page. Each service page also carries `Service` structured data, with your neighborhoods as the areas served.

### The Services Page And Section
`/services/` shows every service as a wide photo card, two to a row, then the inquiry form and the reviews. Its blocks are in `src/content/services/english/-index.md`.

On the homepages, the services section shows the services you pick:

```yaml
# src/content/sections/english/services-section.md
title: "How we can help"
services: ["buying", "selling", "renting"] # file names in display order; empty = every service by `order`
options:
  layout: "photo-cards" # photo-cards | list | grid-2
```

The **Services** menu in the header lists each service page by hand. When you add, rename or remove a service, change its link in each `src/config/menu.<language>.json`. See [Menus](/lotline/customization/menus/).

### Add A Service
<Steps>

1. Copy a service file, for example `src/content/services/english/relocation.md`, and rename it. The file name is the URL: `/services/new-homes/`.
2. Put its 4:3 photo in `src/assets/images/lotline/services/` and point `image` at it.
3. Fill in the fields, set `order`, and write the body.
4. Copy the file into `french/` and `arabic/` with the same name and translate it.
5. Add its link to the Services menu in each `src/config/menu.<language>.json`.
6. Run `npm run astro-check`.

</Steps>

Reviews point at services by file name (`service: "selling"`), and the filter buttons on `/reviews/` come from them. If you rename or remove a service, change the reviews that name it.

### The Valuation Page
<div class="border border-dark">
  ![The Lotline valuation page with the steps on one side and the request form on the other](/images/lotline/valuation.jpg)
</div>

`/valuation/` shows, top to bottom: a photo band, the valuation section (what happens and the steps on one side, the form card on the other), reviews from sellers and landlords, questions about valuations, and the call to action. The header's main button, **Book a valuation**, links here and hides itself on this page.

The page's own file is `src/content/pages/english/valuation.md`. The copy, the steps and the form are in `src/content/sections/english/valuation-section.md`:

| Field | What it does |
| --- | --- |
| `anchor` | The id of the form card, `"request"`. Any button can link to `/valuation/#request` |
| `title`, `description` | The heading and the paragraph on the start side. One word of the title may be `*emphasis*` |
| `points` | Short blocks under the text, each a `title` and `text` ("What happens", "Who it's for") |
| `stepsTitle`, `steps` | "How it works" and its steps, each a `title` and `text` |
| `formTitle`, `formDescription` | The heading and line of the form card |
| `form` | The fields, the email subject, the submit button, and the success and error messages |

The form asks for the name, email, phone, address, property type, bedrooms, whether the owner is selling or renting out, when they plan to move, and a message. Change the fields in `form.inputs`, in every language. It sends through `contactFormAction` in `config.toml`, like every form on the site. See [Forms](/lotline/customization/forms/).

<Aside type="caution" title="Write the promises you keep">
  The sample text promises a free visit, a call within one business day, and a
  written figure within two business days. They're in the description, the
  steps and the success message. Change them to what your agency really does
  before you launch.
</Aside>

To show only some reviews on the valuation page, the `reviewsSection` block in `valuation.md` filters them by service:

```yaml
reviewsSection:
  enable: true
  title: "What sellers and landlords told us"
  filter:
    services: ["selling", "property-management", "valuations"]
  limit: 3
```

To move the header button somewhere else, change `url` in `[settings.navigationButton]` in `config.toml`, and its label in `navigation.buttonLabel` of each `src/i18n/<language>.json`. See [Header](/lotline/customization/header/).

### Do It With AI
```text
Rewrite the services on my Lotline site to match what my agency does: [LIST, with what each
includes and the fee]. For each service, edit or create its file in src/content/services/english/
(title, description, summary, feeNote, includes, steps, faq, order), keep the keys and comments,
and delete services I don't offer. Update the Services menu in each src/config/menu.<language>.json,
the services list in src/content/sections/*/services-section.md, and any review whose service no
longer exists. Do the same in french/ and arabic/, then run npm run astro-check.
```

```text
Change the valuation request form on my Lotline site: [CHANGES, e.g. add a field for the
number of bathrooms, change the promise to "a written figure within 3 business days"]. Edit
src/content/sections/<language>/valuation-section.md in every language folder, keep each
field's name a plain ASCII word, and keep the success and error notes.
```