/*
Theme Name: Bossanova travel Theme
Author: Collins Freitas
Author URI: https://collinsfreitas.com.br
Description: Custom theme for Bossanova Travel website.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bossanovatravel
Tags: bossanova, travel, luxury hotels, hotels
*/

a {
  text-decoration: none !important;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 14px !important;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
  overflow-x: auto;
}

.header {
  background-color: #f2ebe0;
  z-index: 1;
}

.is-homepage {
  background-color: transparent;
}

.link-home,
.link-home:active,
.link-home:visited,
.link-home:focus {
  color: white;
}

.link-home:hover {
  color: white;
}

.header .hr {
  height: 5px;
  background-color: #c8a45a;
  width: 100%;
}

/* HOME */

.home {
  background-image: url(images/hero-home.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  z-index: -1;
}

.home .overlay {
  background: #000000;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 33, 1) 10%,
    rgba(8, 12, 33, 0) 100%
  );
  height: 300px;
  width: 100%;
}

.header.is-homepage img {
  margin-top: 16px;
}

/* Página de busca */
.search-page {
  padding: 40px 0;
  background: #f5f5f5;
}

.search-header {
  text-align: center;
  margin-bottom: 40px;
}

.search-header h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.search-header h1 span {
  color: #0073aa;
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 4px;
}

.search-count {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
}

/* Resultados individuais */
.search-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: transform 0.2s;
}

.search-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-thumbnail {
  flex-shrink: 0;
  width: 200px;
}

.search-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.search-content {
  flex: 1;
}

.search-content h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.search-content h2 a {
  color: #333;
  text-decoration: none;
}

.search-content h2 a:hover {
  color: #0073aa;
}

.search-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.search-meta span {
  margin-right: 15px;
}

.search-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}

/* Sem resultados */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
}

.search-suggestions ul,
.recent-posts ul {
  text-align: left;
  display: inline-block;
  margin: 20px auto;
}

/* Responsivo */
@media (max-width: 768px) {
  .search-item {
    flex-direction: column;
  }

  .search-thumbnail {
    width: 100%;
  }
}

/* Estilos específicos para busca de hospedagem */
.search-meta .post-type {
  background: #2196f3;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.search-meta .location,
.search-meta .rating,
.search-meta .price {
  font-size: 13px;
  margin-right: 15px;
}

.amenities {
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 13px;
}

.search-highlight {
  background-color: #ffeb3b;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: bold;
}

.search-item {
  border-left: 4px solid #2196f3;
}

/* Responsivo */
@media (max-width: 768px) {
  .search-meta span {
    display: inline-block;
    margin-bottom: 5px;
  }
}

/* Página de filtro */
.filtro-page {
  padding: 40px 0;
  background: #f5f7fa;
}

.filtro-header {
  margin-bottom: 30px;
}

.filtro-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.filtros-ativos {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filtro-tag {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 5px 10px;
  margin: 0 5px;
  border-radius: 20px;
  font-size: 14px;
}

.filtro-tag .remover-filtro {
  color: white;
  text-decoration: none;
  margin-left: 8px;
  font-weight: bold;
}

.resultados-count {
  color: #7f8c8d;
  font-size: 14px;
}

/* Grid de resultados */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.filtro-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.filtro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.item-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item-content {
  padding: 20px;
}

.item-content h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.item-content h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.item-meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 15px;
}

.termos-encontrados {
  margin: 15px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 13px;
}

.termo-match {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 5px;
}

.termo-search {
  display: inline-block;
  background: #f39c12;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
}

.read-more {
  display: inline-block;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

/* Paginação */
.pagination {
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  background: white;
  border-radius: 4px;
  text-decoration: none;
  color: #3498db;
}

.pagination .current {
  background: #3498db;
  color: white;
}

/* Responsivo */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .filtro-tag {
    font-size: 12px;
    margin: 5px;
  }
}

.host {
  text-decoration: none;
  display: block;
}

.host .featured-image {
  margin-bottom: 12px;
}

.host .title {
  text-decoration: none;
  color: #1b2a5c;
}

.host .location {
  font-size: 12px;
}

.logout-link {
  display: block;
  text-decoration: underline !important;
  font-size: 12px;
}

.member-area-button {
  border-radius: 4px;
  background-color: #7a7a7a;
  color: white !important;
  font-size: 12px;
  padding: 10px 12px;
  text-align: right;
  display: inline-block;
}

.featured-image {
  position: relative;
  width: 100%;
  background-color: black;
}

.image {
  opacity: 1;
  display: block;
  transition: 0.5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: 0.5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.featured-image:hover .image {
  opacity: 0.5;
}

.featured-image:hover .middle {
  opacity: 1;
}

.text {
  color: white;
  font-size: 12px;
  padding: 4px 25px;
  border: 1px solid white;
}

.img-fluid {
  width: 100%;
  height: auto;
}

:root {
  --bs-primary: #1b2a5c; /* Azul profundo */
  --bs-secondary: #c8a45a; /* dourado */
  --bs-dark: #000000;
  --bs-light: #f2ebe0;
  --bs-pagination-color: #1b2a5c;
  --bs-pagination-disabled-bg: ##f2f2f2;
  --bs-pagination-disabled-color: #ebeded;
}

/* Hover dos botões */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background-color: #293e7e;
}

.active > .page-link,
.page-link.active {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  background-color: #1b2a5c;
  border-color: #1b2a5c;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  background: white;
  border-radius: 4px;
  text-decoration: none;
  color: #1b2a5c;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1b2a5c !important;
  font-family: "Lora", sans-serif;
}

.card-hotel {
  border: 1px solid #ebeded;
  border-radius: 11px;
  box-shadow: 3px 3px 12px #ebeded;
}

.single-icon {
  display: flex;
  align-items: center;
}

.single-icon span {
  margin-left: 10px;
}

.footer {
  border-top: 5px solid #c8a45a;
  background-color: #f2ebe0;
  margin-top: 20px;
}

.dropdown-item {
  font-size: 14px;
}
