/* The public Albufeira guide (index/guide.html): one reading column, a section per kind of place. */
.guide-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px var(--primary-margin-bottom);
}

.guide-page h1 {
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
}

/* Centred under the centred title (9 November 2026, per Thomas): a narrower block of left-aligned
   text sat off both the title's line and the column's. */
.guide-intro {
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
    line-height: 1.8;
    font-family: var(--primary-font);
    font-size: 1.05rem;
    color: rgb(80, 80, 80);
}

.guide-contents {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 48px;
}

.guide-contents a {
    padding: 6px 14px;
    border: 1px solid var(--secondary-color-soft-dark);
    border-radius: 999px;
    color: var(--secondary-color);
    font-family: var(--secondary-font);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.guide-contents a:hover {
    background: var(--secondary-color-soft);
}

.guide-section {
    margin: 0 0 56px;
    scroll-margin-top: 100px;
}

.guide-section h2 {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 103, 0, 0.25);
    text-align: left;
    font-size: 1.6rem;
}

.guide-entry {
    margin: 0 0 28px;
}

.guide-entry h3 {
    margin: 0 0 6px;
    text-align: left;
    font-family: var(--secondary-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(60, 60, 60);
}

.guide-entry-tag {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(42, 116, 178, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.guide-entry p,
.guide-stay p,
.guide-stay-list {
    margin: 0 0 8px;
    text-align: left;
    line-height: 1.75;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
}

.guide-entry-map-link,
.guide-page p a,
.guide-stay-list a {
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.guide-entry-map-link:hover,
.guide-page p a:hover,
.guide-stay-list a:hover {
    text-decoration: underline;
}

.guide-stay-list {
    padding-left: 20px;
}

/* The public FAQ (index/faq.html) shares the reading column: a question, its answer, and under
   some answers the facts kept elsewhere (each complex's parking, the transfer prices). */
.faq-entry {
    margin: 0 0 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid rgba(148, 103, 0, 0.18);
    scroll-margin-top: 100px;
}

.faq-entry h2 {
    margin: 0 0 10px;
    text-align: left;
    font-family: var(--secondary-font);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: rgb(60, 60, 60);
}

.faq-entry p,
.faq-places {
    margin: 0 0 10px;
    text-align: left;
    line-height: 1.75;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
}

.faq-entry p:last-child,
.faq-places:last-child {
    margin-bottom: 0;
}

.faq-places dt {
    margin: 14px 0 2px;
}

.faq-places dd {
    margin: 0;
}

.faq-places a {
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.faq-places a:hover {
    text-decoration: underline;
}

/* Article pages (index/airport.html, index/where_to_stay.html): paragraphs in the guide's type, and a comparison table that stacks on a phone. */
.article-page .guide-section p {
    margin: 0 0 10px;
    text-align: left;
    line-height: 1.75;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
}

.compare-table-wrap {
    margin-bottom: 36px;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
    line-height: 1.5;
}

.compare-table th,
.compare-table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid rgba(148, 103, 0, 0.18);
    text-align: left;
    vertical-align: top;
}

.compare-table thead th {
    font-family: var(--secondary-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(110, 110, 110);
}

.compare-table tbody th a {
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.compare-table tbody th a:hover {
    text-decoration: underline;
}

/* About us (index/about.html): the team photo, and the reasons to book direct. */
.about-photo {
    margin: 0 0 40px;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-photo figcaption {
    margin-top: 10px;
    text-align: center;
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    color: rgb(110, 110, 110);
}

.about-reasons {
    margin: 0 0 16px;
    padding-left: 20px;
    line-height: 1.75;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
}

.about-reasons li + li {
    margin-top: 8px;
}

.about-reasons a {
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.about-reasons a:hover {
    text-decoration: underline;
}

.about-reasons strong {
    color: rgb(60, 60, 60);
}

/* Winter and long stays (index/winter.html): a four-week search for each coming month. */
.winter-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 14px;
    padding: 0;
    list-style: none;
}

.winter-searches a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--secondary-color-soft-dark);
    border-radius: 999px;
    color: var(--secondary-color);
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.winter-searches a:hover {
    background: var(--secondary-color-soft);
}

/* The one thing to do next, at the end of an article page. */
.guide-section p a.article-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.guide-section p a.article-cta:hover {
    opacity: 0.9;
}

/* Old Town and Praia da Oura pages (index/old_town.html, index/oura.html): the apartment tiles of
   availability/search.css inside the reading column, with room before the line under them. Four
   classes, to beat search.css's own margin on .container.cards.results. */
.article-page .container.cards.area-apartments {
    margin: 20px 0 24px;
}

@media (max-width: 680px) {
    /* The table becomes one block per way there: its name, then cost and time beneath. */
    .compare-table thead {
        display: none;
    }

    .compare-table tr,
    .compare-table th,
    .compare-table td {
        display: block;
    }

    .compare-table tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(148, 103, 0, 0.18);
    }

    .compare-table th,
    .compare-table td {
        padding: 2px 0;
        border-bottom: 0;
    }

    .compare-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-family: var(--secondary-font);
        font-size: 0.85rem;
        font-weight: 600;
        color: rgb(110, 110, 110);
    }

    .guide-page {
        padding-left: 16px;
        padding-right: 16px;
    }
}
