/* ==========================================================================
   Torres RS – SEO & Layout
   ========================================================================== */
:root {
	--trs-text: #1f2933;
	--trs-muted: #5b6776;
	--trs-border: #e2e8f0;
	--trs-bg-alt: #f3f7f9;
	--trs-primary: #0b6e99;
	--trs-primary-dark: #08587a;
	--trs-booking: #0071c2;
	--trs-booking-dark: #00487a;
	--trs-radius: 12px;
	--trs-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
	--trs-shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
}

/* ---------- Buttons & utilities ---------- */
.trs-btn,
a.trs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.4em;
	border: 0;
	border-radius: 10px;
	background: var(--trs-primary);
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
.trs-btn:hover { background: var(--trs-primary-dark); }
.trs-btn--ghost,
a.trs-btn--ghost { background: transparent; color: var(--trs-primary) !important; box-shadow: inset 0 0 0 2px var(--trs-primary); }
.trs-btn--ghost:hover { background: var(--trs-primary); color: #fff !important; }
.trs-center { text-align: center; margin-top: 2rem; }

/* ---------- Breadcrumbs ---------- */
.trs-breadcrumbs { font-size: .85rem; color: var(--trs-muted); margin: 0 0 .9rem; line-height: 1.5; }
.trs-breadcrumbs a { color: var(--trs-muted); text-decoration: none; }
.trs-breadcrumbs a:hover { color: var(--trs-primary); text-decoration: underline; }
.trs-breadcrumbs .aioseo-breadcrumb-separator { margin: 0 .35em; opacity: .7; }

/* ---------- Cards ---------- */
.trs-grid { display: grid; gap: 1.25rem; }
.trs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .trs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trs-grid--3 { grid-template-columns: 1fr; } }
.trs-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trs-border); border-radius: var(--trs-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.trs-card:hover { box-shadow: var(--trs-shadow-lg); transform: translateY(-2px); }
.trs-card__media { display: block; aspect-ratio: 16 / 10; background: var(--trs-bg-alt); overflow: hidden; }
.trs-card__img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }
.trs-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0b6e99 0%, #38bdf8 100%); opacity: .25; }
.trs-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.trs-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--trs-primary); text-decoration: none; }
.trs-card__title { font-size: 1.02rem !important; line-height: 1.35 !important; margin: 0 !important; }
.trs-card__title a { color: var(--trs-text); text-decoration: none; }
.trs-card__title a:hover { color: var(--trs-primary); }
.trs-card__excerpt { font-size: .9rem; line-height: 1.55; color: var(--trs-muted); margin: 0 !important; }

/* ---------- Chips ---------- */
.trs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.25rem 0 0; }
.trs-chips__label { font-weight: 700; font-size: .9rem; margin-right: .25rem; }
.trs-chip,
a.trs-chip { display: inline-flex; align-items: center; gap: .4em; padding: .38em .9em; border: 1px solid var(--trs-border); border-radius: 999px; background: #fff; font-size: .88rem; color: var(--trs-text); text-decoration: none; transition: border-color .2s, color .2s; }
.trs-chip:hover { border-color: var(--trs-primary); color: var(--trs-primary); }
.trs-chip.is-current { background: var(--trs-primary); border-color: var(--trs-primary); color: #fff; }

/* ==========================================================================
   Single post
   ========================================================================== */
.single-post .entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--trs-text); }
.single-post .entry-content h2 { line-height: 1.3; margin: 2em 0 .7em; scroll-margin-top: 80px; }
.single-post .entry-content h3 { line-height: 1.35; margin: 1.6em 0 .6em; }
.single-post .entry-content p,
.single-post .entry-content li { overflow-wrap: anywhere; }
.single-post .entry-content img { height: auto; max-width: 100%; border-radius: 8px; }
.single-post .default-header .meta { color: var(--trs-muted); font-size: .92rem; margin-top: .6rem; }
.single-post .default-header .meta a { color: var(--trs-primary); }
.trs-autolink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Reading time + disclosure */
.trs-infobar { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; padding: .75rem 1rem; margin: 0 0 1.5rem; background: var(--trs-bg-alt); border-radius: 10px; font-size: .84rem; line-height: 1.5; color: var(--trs-muted); }
.trs-infobar__time { font-weight: 700; color: var(--trs-text); white-space: nowrap; }
.trs-infobar a { color: var(--trs-primary); }

/* Table of contents */
.trs-toc { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--trs-border); border-radius: var(--trs-radius); background: #fff; box-shadow: var(--trs-shadow); }
.trs-toc__title { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.trs-toc__title::-webkit-details-marker { display: none; }
.trs-toc__title::after { content: "▾"; font-size: .9em; color: var(--trs-muted); transition: transform .2s; }
.trs-toc:not([open]) .trs-toc__title::after { transform: rotate(-90deg); }
.trs-toc__list { margin: .75rem 0 0 !important; padding-left: 1.25rem !important; font-size: .95rem; line-height: 1.5; }
.trs-toc__list li { margin: .3rem 0 !important; }
.trs-toc__list a { color: var(--trs-text); text-decoration: none; }
.trs-toc__list a:hover { color: var(--trs-primary); text-decoration: underline; }

/* Sections after the content */
.trs-section { margin: 2.5rem 0 0; }
.trs-section--booking { margin: 2rem 0; }
.trs-section__title { font-size: 1.4rem !important; margin: 0 0 1.1rem !important; }
.trs-related .trs-card__title { font-size: .95rem !important; }
.entry-content .trs-section .bhs__title { margin: 0 0 12px !important; }
.entry-content .bhs__form,
.entry-content .bhs__form p { margin: 0 !important; }
.entry-content .bhs__field label { line-height: 1.3; }
/* The theme column is ~740px: destination on its own row, dates/guests/button below. */
.bhs--compact .bhs__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(64px, .6fr) minmax(64px, .6fr) auto; }
.bhs--compact .bhs__field--dest { grid-column: 1 / -1; }
@media (max-width: 900px) {
	.bhs--compact .bhs__form { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) { .trs-toc__list { columns: 2; column-gap: 2rem; } .trs-toc__list li { break-inside: avoid; } }

/* Author box */
.trs-author { display: flex; gap: 1.1rem; align-items: flex-start; margin: 2.5rem 0 1rem; padding: 1.4rem; border-radius: var(--trs-radius); background: var(--trs-bg-alt); }
.trs-author__photo { flex: 0 0 auto; }
.trs-author__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.trs-author__initials { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--trs-primary), #38bdf8); color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.trs-author__text p { margin: 0 !important; }
.trs-author__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--trs-muted); font-weight: 700; }
.trs-author__name { font-size: 1.15rem; font-weight: 800; margin: .1rem 0 .4rem !important; }
.trs-author__name a { color: var(--trs-text); text-decoration: none; }
.trs-author__bio { font-size: .95rem; line-height: 1.6; color: var(--trs-muted); }
.trs-author__text p + p { margin-top: .5rem !important; }

/* Generic CTA fallback */
.trs-cta { padding: 1.4rem; border-radius: var(--trs-radius); background: var(--trs-bg-alt); text-align: center; }
.trs-cta__title { font-weight: 800; font-size: 1.15rem; margin: 0 0 .8rem; }

/* Tables written in the posts */
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th,
.entry-content td { padding: .6em .75em; border: 1px solid var(--trs-border); vertical-align: top; }
.entry-content thead th { background: var(--trs-bg-alt); }

/* ==========================================================================
   Category (section hub) pages
   ========================================================================== */
.category .default-header .title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.2; }
.category .entry-content > p { font-size: 1.05rem; line-height: 1.7; color: var(--trs-text); max-width: 760px; }
.trs-archive-tools { margin: 1rem 0 2rem; }
.trs-chips--archive { margin: 0 0 1.25rem; }
.trs-archive-search { margin-top: 1rem; }
.archive-description { margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--trs-border); line-height: 1.75; }
.archive-description h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
.archive-description h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }

/* ---------- Forms (contact) ---------- */
.trs-form p { margin: 0 0 1rem; }
.trs-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.trs-form input[type="text"],
.trs-form input[type="email"],
.trs-form select,
.trs-form textarea { width: 100%; max-width: 640px; padding: .75em .9em; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box; }
.trs-form__hp { position: absolute !important; left: -9999px !important; }
.trs-form__privacy { font-size: .85rem; color: var(--trs-muted); }
.trs-notice { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.trs-notice--ok { background: #ecfdf5; color: #166534; }
.trs-notice--error { background: #fef2f2; color: #991b1b; }

/* ---------- Footer ---------- */
.trs-footer { display: flex; flex-direction: column; gap: .6rem; font-size: .88rem; letter-spacing: 0; padding: .5rem 0 1rem; }
.trs-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.trs-footer__links a { color: var(--trs-text); text-decoration: none; }
.trs-footer__links a:hover { color: var(--trs-primary); text-decoration: underline; }
.trs-footer__links--inst a { color: var(--trs-muted); }
.trs-footer__copy { margin: 0; color: var(--trs-muted); line-height: 1.5; }

/* ==========================================================================
   Home
   ========================================================================== */
.trs-home { overflow-x: clip; }
.trs-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.trs-container--narrow { max-width: 820px; }

.trs-hero { position: relative; display: flex; align-items: center; min-height: 560px; padding: 64px 0 48px; color: #fff; background: linear-gradient(135deg, #073b52 0%, #0b6e99 55%, #22a6c9 100%); isolation: isolate; }
.trs-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.trs-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 25, 40, .55) 0%, rgba(3, 25, 40, .3) 45%, rgba(3, 25, 40, .72) 100%); }
.trs-hero__inner { text-align: center; }
.trs-hero__title { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); line-height: 1.12; font-weight: 800; margin: 0 auto .7rem; max-width: 900px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.trs-hero__subtitle { font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem); line-height: 1.5; max-width: 720px; margin: 0 auto 2rem; color: #f1f5f9; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.trs-hero__search { max-width: 1000px; margin: 0 auto; text-align: left; color: var(--trs-text); }
.trs-hero__facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; padding: 0; margin: 1.6rem 0 0; font-size: .95rem; color: #e2e8f0; }

.trs-home-section { padding: 60px 0; }
.trs-home-section--alt { background: var(--trs-bg-alt); }
.trs-home-section__header { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.trs-home-section__header h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0 0 .5rem; color: var(--trs-text); }
.trs-home-section__header p { color: var(--trs-muted); font-size: 1.05rem; margin: 0; }

/* Section cards */
/* Flex instead of grid: with 7 sections the last row stays centered. */
.trs-section-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.trs-section-card { flex: 0 0 calc((100% - 3rem) / 4); position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--trs-radius); overflow: hidden; background: linear-gradient(135deg, #0b6e99, #38bdf8); color: #fff; text-decoration: none; isolation: isolate; }
.trs-section-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.trs-section-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .8) 100%); }
.trs-section-card:hover .trs-section-card__img { transform: scale(1.05); }
.trs-section-card__text { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.trs-section-card__name { font-size: 1.2rem !important; font-weight: 800; line-height: 1.2; color: #fff !important; margin: 0 !important; }
.trs-section-card__desc { font-size: .85rem; line-height: 1.4; color: #f1f5f9; }
.trs-section-card__meta { font-size: .78rem; color: #cbd5e1; }
@media (max-width: 900px) { .trs-section-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 420px) { .trs-section-card__desc { display: none; } }

/* Where to stay */
.trs-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; }
.trs-split__text h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0 0 1rem; }
.trs-split__text p { color: var(--trs-text); line-height: 1.7; margin: 0 0 1rem; }
.trs-split__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem !important; }
.trs-split__posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .trs-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .trs-split__posts { grid-template-columns: 1fr; } }

.trs-author--home { margin: 0 auto; background: #fff; border: 1px solid var(--trs-border); }

/* FAQ */
.trs-faq__item { background: #fff; border: 1px solid var(--trs-border); border-radius: var(--trs-radius); padding: 0 1.2rem; margin: 0 0 .75rem; }
.trs-faq__item summary { cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.trs-faq__item summary::-webkit-details-marker { display: none; }
.trs-faq__item summary h3 { font-size: 1.02rem; margin: 0; font-weight: 700; line-height: 1.4; }
.trs-faq__item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--trs-primary); }
.trs-faq__item[open] summary::after { content: "–"; }
.trs-faq__item p { margin: 0 0 1rem; color: var(--trs-muted); line-height: 1.65; }

/* Pages: shortcodes inside page content */
.page .entry-content .trs-grid { margin: 1.5rem 0 2rem; }
.entry-content .bhs { margin: 1.5rem 0 2rem; }

/* Posts page (/blog/) */
.trs-blog-header { flex-basis: 100%; margin: 0 0 1.5rem; }
.trs-blog-header__title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.2; margin: 0 0 .5rem; }
