/* Mobile-first, minimal CSS */
:root {
  --bg: #0f172a; /* slate-900 */
  --panel: #111827; /* gray-900 */
  --text: #e5e7eb; /* gray-200 */
  --muted: #94a3b8; /* slate-400 */
  --brand: #22d3ee; /* cyan-400 */
  --brand-2: #38bdf8; /* sky-400 */
  --card: #0b1220; /* dark card */
  --border: #1f2937;
  --link: #7dd3fc; /* sky-300 */
  --link-hover: #e0f2fe; /* sky-100 */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #0b2338, transparent),
              radial-gradient(1000px 600px at 110% -20%, #111b3a, transparent),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Global link styles with higher contrast and better accessibility */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--link) 55%, transparent);
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px dashed var(--brand-2);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header { border-bottom: 1px solid var(--border); background: rgba(9, 12, 22, 0.6); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.site-header h1 { font-size: 1.5rem; margin: 0.25rem 0; }
.site-header .tag { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Brand/logo */
.brand-row { display: flex; align-items: center; justify-content: space-between; padding-top: .25rem; }
.brand-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; }
.brand-link:hover .brand-name { color: var(--link-hover); text-decoration: underline; text-decoration-color: currentColor; }
.site-logo { height: 28px; width: auto; display: block; }
.brand-name { font-weight: 600; letter-spacing: .2px; font-size: .95rem; }

.top-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.top-nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
}
.top-nav a:hover { background: #0a1224; border-color: #263246; }
.top-nav a.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #0b1220; font-weight: 600; }

.search input {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.search input::placeholder { color: #8091a7; }

.card-list { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-list { grid-template-columns: repeat(3, 1fr); }
}

.card { background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(56, 189, 248, 0.06)); border: 1px solid var(--border); border-radius: .9rem; overflow: hidden; }
.card .block { display: block; padding: 1rem; color: inherit; text-decoration: none; }
.card h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0 0 .3rem; }
.card .meta { color: var(--muted); font-size: .88rem; }
.card:hover { border-color: #2b3a52; box-shadow: 0 0 0 1px #233045 inset; }
.card-actions { display: flex; gap: .5rem; align-items: center; padding: .5rem 1rem 1rem; }
.pill-link { border-color: #2a3a52; color: #9db2cc; text-decoration: none; }
.pill-link:hover { color: #cfe3ff; border-color: #3a4f6b; }

/* External link indicator: add icon for off-site links */
/* Avoid adding to internal absolute links pointing to our domain and to special classes */
a[href^="http"]:not([href*="hotelcostaadeje.com"]):not([href*="www.hotelcostaadeje.com"]):not(.pill-link):not(.no-ext-icon)::after {
  content: "↗";
  font-size: .85em;
  margin-left: .35em;
  opacity: .85;
}

.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; }
.site-footer p { color: var(--muted); font-size: .9rem; }

/* Simple content styles */
.prose h2 { margin: 1.2rem 0 .5rem; }
.prose p { margin: .5rem 0; }
.pill { display: inline-block; margin: .2rem .3rem .2rem 0; padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.pill input { margin-right: .35rem; }
ul.link-list { padding-left: 1rem; }
ul.link-list li { margin: .4rem 0; }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Filters */
.filters { margin: .75rem 0 .5rem; }
.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filter-label { color: var(--muted); font-size: .9rem; margin-right: .25rem; }
