/* ============================================================
   TripMalta.com — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a5276;
  --blue-light: #2980b9;
  --blue-pale:  #eaf2ff;
  --gold:       #d4a017;
  --gold-light: #f6d365;
  --coral:      #e74c3c;
  --text:       #2c3e50;
  --muted:      #6c757d;
  --light:      #f8f9fa;
  --white:      #ffffff;
  --border:     #e9ecef;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.13);
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); line-height: 1.7; font-size: 16px; background: var(--white); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* === HEADER === */
.site-header {
  background: var(--blue);
  padding: 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.logo {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--gold-light); }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 6px 12px;
  border-radius: 6px; transition: all .2s;
}
nav a:hover { color: var(--white); background: rgba(255,255,255,.15); }
.nav-toggle {
  display: none; background: none; border: none; color: white;
  font-size: 22px; cursor: pointer; margin-left: auto;
}
@media(max-width:768px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--blue); flex-direction: column; padding: 12px 20px 20px; gap: 2px; }
  nav.open { display: flex; }
  nav a { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #0d3b6e 0%, #1a5276 40%, #1a7a6e 80%, #0e5f5f 100%);
  padding: 100px 0 80px;
  text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); opacity: .9;
  max-width: 600px; margin: 0 auto 32px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--gold-light); }
.hero-stat span { font-size: 13px; opacity: .8; }

/* === BOOKING SEARCH BAR === */
.booking-bar {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 24px; display: flex; gap: 12px; flex-wrap: wrap;
  align-items: flex-end; box-shadow: var(--shadow-lg);
  max-width: 800px; margin: 0 auto;
}
.booking-bar label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.booking-bar input, .booking-bar select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 15px; color: var(--text);
  background: var(--light); width: 100%;
}
.booking-bar .field { flex: 1; min-width: 130px; }
.btn-search {
  background: var(--gold); color: var(--white); border: none;
  padding: 12px 28px; border-radius: 8px; font-size: 15px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s; align-self: flex-end;
}
.btn-search:hover { background: #b8860b; }

/* === SECTION HEADINGS === */
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--blue); margin-bottom: 8px;
}
.section-subtitle { color: var(--muted); font-size: 1rem; margin-bottom: 36px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.view-all { color: var(--blue-light); text-decoration: none; font-weight: 500; font-size: 14px; }
.view-all:hover { color: var(--blue); }

/* === ARTICLE CARDS === */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, var(--blue) 0%, #1a7a6e 100%); display: block; }
.card-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #1a5276 0%, #1a7a6e 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-light); margin-bottom: 8px; }
.card h3 { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.card-footer a { color: var(--blue-light); text-decoration: none; font-weight: 500; font-size: 13px; }

/* === FEATURED CARD (first article, big) === */
.card-featured { grid-column: 1 / -1; flex-direction: row; max-height: 320px; }
.card-featured .card-img { width: 45%; height: 320px; flex-shrink: 0; }
.card-featured .card-body { padding: 28px 32px; }
.card-featured h3 { font-size: 1.5rem; }
@media(max-width:640px) {
  .card-featured { flex-direction: column; max-height: none; }
  .card-featured .card-img { width: 100%; height: 220px; }
}

/* === CATEGORIES ROW === */
.categories-grid {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
}
.categories-grid::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-pale); color: var(--blue);
  padding: 8px 14px; border-radius: 50px;
  flex-shrink: 0;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all .2s; border: 1.5px solid transparent;
}
.cat-pill:hover { background: var(--blue); color: var(--white); }
.cat-pill .icon { font-size: 18px; }

/* === AFFILIATE BOXES (inside articles) === */
.affiliate-box {
  background: var(--blue-pale); border: 1.5px solid #aed6f1;
  border-radius: var(--radius); padding: 24px 28px; margin: 32px 0;
  text-align: center;
}
.affiliate-box.viator-box { background: #fff8e6; border-color: #f6d365; }
.affiliate-box h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--blue); }
.affiliate-box.viator-box h3 { color: #856404; }
.affiliate-box p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.btn-affiliate {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 12px 28px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: background .2s;
}
.btn-affiliate:hover { background: var(--blue-light); }
.btn-viator { background: var(--gold); }
.btn-viator:hover { background: #b8860b; }

/* === ARTICLE PAGE === */
.article-hero {
  height: 420px; background: linear-gradient(135deg, var(--blue) 0%, #1a7a6e 100%);
  background-size: cover; background-position: center; position: relative;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex; align-items: flex-end;
}
.article-hero-content { padding: 40px; color: var(--white); max-width: 900px; }
.article-hero-content .cat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); margin-bottom: 10px; }
.article-hero-content h1 { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 48px 20px; }
@media(max-width:900px) { .article-layout { grid-template-columns: 1fr; } }

.article-body { font-size: 17px; line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--blue); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.article-body h3 { font-size: 1.2rem; color: var(--text); margin: 28px 0 10px; }
.article-body p  { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--blue); }
.article-body a { color: var(--blue-light); }

.sidebar { }
.sidebar-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-box h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--blue); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-box .btn-affiliate { display: block; text-align: center; margin-top: 14px; }
.related-link { display: flex; gap: 12px; margin-bottom: 14px; text-decoration: none; color: var(--text); }
.related-link img { width: 70px; height: 55px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-link .rel-title { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--blue); }
.related-link .rel-cat { font-size: 11px; color: var(--muted); }

/* === HOTELS PAGE === */
.page-hero {
  background: linear-gradient(135deg, #0d3b6e 0%, #1a5276 60%, #1a7a6e 100%);
  padding: 80px 0 60px; text-align: center; color: var(--white);
}
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto; }

.hotel-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.hotel-badge { background: var(--gold); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 6px; }
.hotel-card h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 6px; }
.hotel-card p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.stars { color: var(--gold); font-size: 16px; }
.hotel-card .price { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.hotel-card .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.hotel-card-body { flex: 1; }
.hotel-card-action { text-align: right; min-width: 140px; }
.btn-book {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 10px 22px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 14px; transition: background .2s; white-space: nowrap;
}
.btn-book:hover { background: var(--blue-light); }

/* === ADVERT PLACEHOLDER === */
.ad-slot {
  background: var(--light); border: 1px dashed var(--border);
  border-radius: 8px; padding: 20px; text-align: center;
  color: var(--muted); font-size: 13px; margin: 24px 0;
}

/* === BREADCRUMB === */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--blue-light); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* === PAGINATION === */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1.5px solid var(--border); text-decoration: none;
  color: var(--text); font-size: 14px; font-weight: 500;
}
.pagination a:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* === FOOTER === */
.site-footer { background: #0d1f35; color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); margin-bottom: 14px; }
.site-footer p { font-size: 14px; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; opacity: .6; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.badge { background: var(--blue-pale); color: var(--blue); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* === RESPONSIVE === */
@media(max-width:640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 44px 0; }
  .booking-bar { flex-direction: column; }
  .booking-bar .btn-search { width: 100%; }
  .hotel-card { flex-direction: column; }
  .hotel-card-action { text-align: left; width: 100%; }
}

/* === ARTICLE CONTENT STYLES === */
.prose-lede { font-size: 1.15rem; color: var(--blue); font-weight: 300; line-height: 1.8; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border); }

/* === NO CONTENT STATE === */
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state p { font-size: 1.1rem; margin-top: 12px; }

/* === WEATHER WIDGET === */
.weather-bar { background: rgba(255,255,255,.12); border-radius: 30px; padding: 6px 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.2); margin-top: 12px; }
.weather-bar .temp { font-weight: 700; font-size: 15px; }

/* === FAQ ACCORDION === */
.faq-item button:hover { background: var(--blue-pale); }

/* === EVENTS PAGE === */
.event-date-box { min-width: 52px; text-align: center; background: var(--blue); color: #fff; border-radius: 8px; padding: 8px 6px; align-self: flex-start; }
.event-date-box .day { font-size: 18px; font-weight: 700; line-height: 1; }
.event-date-box .mon { font-size: 10px; font-weight: 600; text-transform: uppercase; }

/* === MORE PAGES FOOTER GRID === */
@media(max-width:900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr !important; } }
@media(max-width:600px) { .site-footer .footer-grid { grid-template-columns: 1fr !important; } }

/* === TWO-COL RESPONSIVE === */
@media(max-width:768px) { .two-col { grid-template-columns: 1fr !important; } .three-col { grid-template-columns: 1fr !important; } }
