@font-face {
  font-family: 'Reckless';
  src: url('/assets/fonts/Reckless-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Reckless';
  src: url('/assets/fonts/Reckless-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Rmneue';
  src: url('/assets/fonts/RMNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rmneue';
  src: url('/assets/fonts/RMNeue-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===== HEADER ===== */
#header-wrap {
  background: #6c604e;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  z-index: 1010;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header-logo img {
  height: 44px;
  display: block;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Rmneue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 10px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 1;
}

/* Botão Orar */
.header-btn-orar {
  background: #b5986d;
  color: #fff !important;
  font-family: 'Rmneue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 1 !important;
  transition: background 0.2s;
}

.header-btn-orar:hover {
  background: #a08560;
}

/* Botão busca */
.header-search-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.header-search-btn:hover {
  opacity: 1;
}

/* Ações */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile menu button */
.header-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header-mobile-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.header-mobile-menu.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-mobile-menu.is-open span:nth-child(2) {
  opacity: 0;
}
.header-mobile-menu.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav mobile */
.header-mobile-nav {
  display: none;
  flex-direction: column;
  background: #6c604e;
  padding: 8px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.header-mobile-nav.is-open {
  display: flex;
}

.header-mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Rmneue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 24px;
  opacity: 0.85;
}

.header-mobile-nav a:hover {
  opacity: 1;
}

.header-btn-orar.mobile {
  margin: 8px 24px 0;
  text-align: center;
  border-radius: 20px;
}

/* ===== MODAL DE BUSCA ===== */
#searchModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

#searchModal.is-open {
  display: flex;
}

.search-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  padding: 16px;
  position: relative;
  margin: 0 16px;
}

.search-modal-box input {
  width: 100%;
  border: none;
  outline: none;
  font-family: 'Rmneue', sans-serif;
  font-size: 18px;
  padding: 8px 40px 8px 4px;
  border-bottom: 2px solid #6c604e;
  color: #333;
}

#searchClose {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

#searchResults {
  margin-top: 12px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Rmneue', sans-serif;
  font-size: 15px;
  transition: background 0.15s;
  border-radius: 6px;
}

.search-result-item:hover {
  background: #f9f6f2;
}

.search-result-item img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
}

.search-empty {
  color: #999;
  font-family: 'Rmneue', sans-serif;
  font-size: 14px;
  padding: 8px 4px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-mobile-menu {
    display: flex;
  }

  #header-wrap {
    height: auto;
    min-height: 68px;
  }
}

/* ===== Modal Search Country ===== */

/* Backdrop */
.country-search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-in-out;
}

/* Caixa (duas colunas) */
.country-search-content {
  display: flex;
  flex-direction: row;
  background: #fff;
  width: 90%;
  max-width: 700px;
  margin: 5% auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  animation: scaleIn 0.25s ease-in-out;
}

/* Coluna imagem */
.country-search-image {
  flex: 1;
  background: url(https://i.imgur.com/HXMHPKM.jpeg) center/cover no-repeat;
  min-height: 320px;
}

/* Coluna texto */
.country-search-body {
  flex: 2;
  padding: 30px 25px;
  position: relative;
  text-align: left;
}

.country-search-body h2 {
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 100;
}

.country-search-body p {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

/* Fechar */
.country-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}
.country-close-btn:hover { color: #000; }

/* Input */
.country-input-wrapper { position: relative; width: 100%; }
#country-input {
  width: 90%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
#country-input:focus {
  border: 1px solid #0077ff;
  box-shadow: 0 0 6px rgba(0,119,255,0.3);
}

/* Sugestões */
#country-suggestions {
  list-style: none !important;
  padding: 0 !important;
  margin: 5px 0 0 0 !important;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 115px;
  max-width: 422px;
  overflow-y: auto;
  text-align: left;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 10000;
  display: none;
}
#country-suggestions li {
  list-style: none !important;
  padding: 10px 15px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #eee;
}
#country-suggestions li:last-child { border-bottom: none; }
#country-suggestions li:hover { background: #f0f7ff; }
#country-suggestions li img { width: 24px; height: 16px; object-fit: cover; }

/* Remove pseudo-elemento do Blogger */
#country-suggestions li:before { content: none !important; }

/* Mensagem de erro */
#country-not-found {
  display: none;
  margin-top: 12px;
  color: #d9534f;
  font-size: 14px;
}

/* Animações */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== Responsividade ===== */
@media (max-width: 768px) {
  .country-search-content {
    flex-direction: row; /* stack */
    max-width: 95%;
    margin: 15% auto;
	overflow: inherit;
  }

  .country-search-image {
    min-height: 200px; /* menor no mobile */
    background-position: top center;
    border-radius: 16px 0 0 16px;
  }

  .country-search-body {
    padding: 20px 18px;
	flex: 3;
    text-align: left;
  }

  .country-search-body h2 {
    font-size: 20px;
  }

  #country-input {
    font-size: 13px;
    padding: 14px 12px;
  }
}