/* Kavaja Tourist Site - Albania & Bashkia Kavaja theme */
:root {
  /* Albania flag: red & black */
  --color-albania-red: #DA291C;
  --color-albania-black: #000000;
  /* Kavaja emblem: sea blue, golden yellow (clock tower, wheat) */
  --color-kavaje-blue: #1a4d7a;
  --color-kavaje-gold: #c9a227;
  --color-primary: var(--color-albania-red);
  --color-primary-dark: #b32218;
  --color-gold: var(--color-kavaje-gold);
  --color-bg: #f8f7f4;
  --color-bg-dark: var(--color-albania-black);
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-emergency: var(--color-albania-red);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Albanian motifs – homepage only (light accents only) */
.page-home {
  /* No carpet; keep default body background */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header & Nav – Albania red top stripe, black bar */
.site-header {
  background: var(--color-bg-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-albania-red);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-gold);
}

.site-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}
.site-logo:hover .site-logo-img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(201, 162, 39, 0.35));
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--color-gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem;
  }
}

/* Main content wrapper */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Homepage: full width; Albanian motif – vertical stripe accent on main content */
.page-home .main-content {
  position: relative;
  max-width: none;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  padding: 2rem 2.5rem 4rem;
  padding-left: 2.5rem;
  --scroll-line-top: 4.5rem;
}
.page-home .main-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--scroll-line-top);
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--color-albania-red) 0%,
    var(--color-albania-red) 50%,
    var(--color-albania-black) 50%,
    var(--color-albania-black) 100%
  );
  border-radius: 2px;
}

/* Homepage: eagle pointer that moves along the scroll line */
.scroll-line-plis {
  position: absolute;
  left: 0;
  top: var(--scroll-line-top);
  width: 20px;
  height: 24px;
  margin-left: -8px;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.scroll-line-plis .eagle-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.page-home .hero-inner {
  max-width: none;
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
}

/* Homepage: soft fade from hero into page content */
.page-home .hero {
  position: relative;
}
.page-home .hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248, 247, 244, 0.3) 40%,
    rgba(248, 247, 244, 0.85) 96%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

/* Section headings */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
  border-bottom: 3px solid var(--color-albania-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* Homepage: full-width section figures (image + caption) */
.home-section-figure {
  margin: 2rem 0;
  padding: 0;
}

.home-section-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-section-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.home-section-figure--small {
  max-width: 520px;
}

.home-section-figure-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  margin: 2rem 0;
}

.home-section-figure-row .home-section-figure {
  margin: 0;
  min-width: 0;
}

.home-section-figure-row .home-section-figure--equal {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.home-section-figure-row .home-section-figure-img-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.home-section-figure-row .home-section-figure--equal img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-section-figure-row .home-section-figure--equal:hover img {
  transform: scale(1.08);
}

.home-section-figure-row .home-section-figure--small {
  max-width: 280px;
}

@media (max-width: 640px) {
  .home-section-figure-row {
    flex-wrap: wrap;
  }
  .home-section-figure-row .home-section-figure--equal {
    flex: 1 1 100%;
  }
  .home-section-figure-row .home-section-figure--equal img {
    height: 180px;
  }
}

/* Homepage: Albanian diamond accent before section titles */
.page-home .section-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-albania-red);
  transform: rotate(45deg);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* Cards grid (attractions, etc.) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card--modal {
  cursor: pointer;
}

.card--modal:focus {
  outline: 2px solid var(--color-kavaje-blue);
  outline-offset: 2px;
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.25rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* History / text sections */
.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.timeline li {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.25rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Emergency page */
.emergency-strip {
  background: var(--color-emergency);
  color: #fff;
  padding: 1rem 1.25rem;
  margin: -2rem -1.25rem 2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
}

.emergency-strip .number {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.emergency-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.emergency-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.emergency-item-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 5rem;
}

.emergency-item-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  stroke: var(--color-primary);
}

.emergency-item .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.emergency-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.emergency-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Info box */
.info-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-gold);
}

.info-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.info-box p {
  margin: 0;
  font-size: 0.95rem;
}

.info-box p + p {
  margin-top: 0.75rem;
}

/* Homepage testimonials (tourist feedback) */
.page-home .testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.page-home .testimonial {
  margin: 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(145deg, rgba(26, 77, 122, 0.04) 0%, rgba(248, 247, 244, 1) 40%);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-kavaje-gold);
  box-shadow: var(--shadow);
  position: relative;
}

.page-home .testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-kavaje-blue);
  opacity: 0.25;
  font-style: italic;
}

.page-home .testimonial-quote {
  margin: 0;
  padding-left: 0.5rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
}

.page-home .testimonial-author {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 77, 122, 0.15);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.page-home .testimonial-author cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-kavaje-blue);
}

/* Homepage extra sections */
.highlights-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.highlights-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.highlights-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--color-albania-red);
  border-radius: 50%;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

/* Homepage: quick facts in a single row (7 items) */
.page-home .facts-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1000px) {
  .page-home .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page-home .facts-grid {
    grid-template-columns: 1fr;
  }
}

.fact-item {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-kavaje-blue);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-left-color 0.2s ease;
}

.fact-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-left-color: var(--color-albania-red);
}

.fact-item strong {
  display: block;
  color: var(--color-albania-red);
  font-size: 1.1rem;
}

/* Homepage – Sahatit (clock tower) spotlight */
.sahatit-spotlight {
  margin: 2.5rem 0;
  padding: 0;
}

.page-home .sahatit-spotlight {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(26, 77, 122, 0.04) 0%, rgba(201, 162, 39, 0.02) 100%);
  border-radius: var(--radius);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.page-home .sahatit-spotlight:focus-within,
.page-home .sahatit-spotlight:hover {
  background: linear-gradient(135deg, rgba(26, 77, 122, 0.06) 0%, rgba(201, 162, 39, 0.04) 100%);
  box-shadow: 0 2px 12px rgba(26, 77, 122, 0.06);
}

.sahatit-spotlight-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.page-home .sahatit-spotlight-inner {
  max-width: none;
  gap: 2rem;
  align-items: flex-start;
}

.page-home .sahatit-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.page-home .sahatit-content {
  flex: 1;
  min-width: 0;
}

.sahatit-spotlight .sahatit-badge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-kavaje-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  box-shadow: 0 4px 12px rgba(26, 77, 122, 0.3);
  overflow: hidden;
}

.sahatit-spotlight .sahatit-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .sahatit-spotlight .sahatit-badge {
  width: 80px;
  height: 80px;
  font-size: 2.25rem;
  border: 3px solid var(--color-kavaje-gold);
  box-shadow: 0 4px 16px rgba(26, 77, 122, 0.25), 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.page-home .sahatit-spotlight .sahatit-badge img {
  border-radius: 50%;
}

.sahatit-spotlight h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.page-home .sahatit-spotlight h2 {
  font-size: 1.75rem;
  margin-top: 0;
  color: var(--color-kavaje-blue);
}

.sahatit-spotlight .sahatit-subtitle {
  font-size: 0.9rem;
  color: var(--color-kavaje-blue);
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-home .sahatit-spotlight .sahatit-subtitle {
  margin-bottom: 0.35rem;
  letter-spacing: 0.08em;
}

.sahatit-spotlight p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
}

.page-home .sahatit-spotlight p {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 0.5rem;
}

.sahatit-spotlight a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-kavaje-blue);
}

.sahatit-spotlight a:hover {
  color: var(--color-albania-red);
}

.page-home .sahatit-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--color-kavaje-blue);
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.page-home .sahatit-cta:hover {
  background: var(--color-albania-red);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .page-home .sahatit-spotlight-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-home .sahatit-visual {
    flex-direction: row;
    gap: 1.25rem;
  }
}

/* Attraction modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal[aria-hidden="false"] .modal-box {
  transform: scale(1);
}

.modal-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-kavaje-gold);
  padding-bottom: 0.5rem;
}

.modal-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--color-albania-red);
}

/* Footer – Albania-style stripe */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 4px solid var(--color-albania-red);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.footer-copyright {
  display: block;
}

.footer-emergency {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.footer-emergency .footer-emergency-icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

.footer-credits {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.site-footer a {
  color: var(--color-gold);
}

.site-footer a:hover {
  color: #fff;
}

.emergency-footer .num {
  color: #ff6b6b;
}

/* Page intro */
.page-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 65ch;
}

.page-home .page-intro {
  max-width: none;
}

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