/* =========================================================
   1. CORE APP SETUP & RESET
   ========================================================= */
:root {
  --bg-app: #f3f4f6;         /* Light mobile background */
  --surface: #ffffff;        /* Pure white for cards */
  --text-main: #111827;      /* High contrast dark text */
  --text-muted: #6b7280;     /* Secondary text */
  --primary: #0066cc;        /* Clickable blue accent */
  --primary-tap: #0052a3;    /* Darker active state */
  --radius-lg: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 2rem;
  max-width: 600px; /* Forces mobile-app width on desktop */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Hide spacer br tags - we use clean CSS margins now */
br { display: none; }

/* =========================================================
   2. HOMEPAGE CATEGORIES & INTRO HEADERS
   ========================================================= */
/* Targets the wrapper around text/buttons on the main page */
.header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* =========================================================
   3. NATIVE-STYLE BUTTONS
   ========================================================= */
.btn {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: auto;
}

.btn:active {
  background-color: var(--primary-tap);
  transform: scale(0.98);
}

/* =========================================================
   4. ACCOMMODATION APP GRID (2 Columns)
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background-color: #e5e7eb; /* Placeholder if image breaks */
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.75rem 0.75rem 0.25rem;
}

.card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0.75rem 0.75rem;
  line-height: 1.4;
  flex-grow: 1;
  /* Truncate text so cards are exactly the same height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .btn {
  margin: 0.75rem;
  font-size: 0.85rem;
  padding: 0.6rem;
}

/* =========================================================
   5. NATIVE APP LIST MENUS (Links & Tips)
   ========================================================= */
/* Titles for lists */
section > h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem 0.5rem;
}

/* Unordered Lists (Transport & Booking Links) */
section ul {
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

section ul li {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

section ul li:last-child {
  border-bottom: none;
}

section ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

section ul li a:active {
  background-color: #f9fafb;
}

/* App Chevron Arrow ">" indicating a tap target */
section ul li a::after {
  content: "›";
  font-size: 1.5rem;
  color: #9ca3af;
  line-height: 1;
}

/* Ordered Lists (Tips Section) */
section ol {
  list-style: none;
  counter-reset: tip-counter;
}

section ol li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

section ol li strong {
  display: block;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* =========================================================
   6. SEO TEXT BLOCKS
   ========================================================= */
#websites {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#websites h1, #websites h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

#websites p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

#websites p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
footer {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.footer p {
  margin-bottom: 1rem;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer p a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 2.5; /* Touch friendly spacing */
  display: inline-block;
  margin: 0 0.25rem;
}

.footer p a:hover, .footer p a:active {
  color: var(--primary);
}