/* GRIGLIA E CARD BARCHE */
.bfs-boat-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  padding: 0 10px;
}

@media (min-width: 600px) {
  .bfs-boat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .bfs-boat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bfs-boat-card-modern {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  border: 1.5px solid #e7e7e7;
}

.bfs-boat-card-modern:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(0,123,170,0.15);
  border-color: #b3e3fc;
}

/* Immagine grande sopra */
.bfs-boat-image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f9fc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfs-boat-card-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}

.bfs-boat-card-modern:hover img {
  transform: scale(1.05) rotate(-1deg);
}

.bfs-boat-content {
  flex: 1 1 auto;
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bfs-boat-content h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #0e4661;
  line-height: 1.32;
}

.bfs-boat-year, .bfs-boat-length {
  font-size: 1.05rem;
  color: #0073aa;
  font-weight: 500;
  margin-bottom: 0;
}

.bfs-boat-price {
  font-size: 1.16rem;
  font-weight: black;
  color: #253238;
  margin-bottom: 0;
}

.bfs-boat-button {
  margin-top: 16px;
  padding: 10px 0;
  background: #009edd;
  color: #fff;
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 1.06rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,115,170,0.07);
  transition: background .2s;
  letter-spacing: 0.5px;
}

.bfs-boat-button:hover {
  background: #009edd;;
  color: #fff;
  text-decoration: none;
}

/* FILTRI  
.bfs-filters {
  background: #f7fbfd;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(0,123,170,0.06);
  padding: 24px 18px 14px 18px;
  margin-bottom: 35px;
  flex: flex;
  flex-wrap: nowrap;
  gap: 14px 28px;
  align-items: end;
  justify-content: flex-start;
}


.bfs-filters label {
  font-weight: 600;
  color: #0073aa;
  margin-bottom: 5px;
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.bfs-filters select,
.bfs-filters input[type="text"] {
  font-size: 1.04rem;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1.5px solid #b3e3fc;
  margin-bottom: 10px;
  margin-right: 2px;
  width: 175px;
  background: #fff;
  transition: border-color 0.2s;
}

.bfs-filters select:focus,
.bfs-filters input[type="text"]:focus {
  border-color: #0073aa;
  outline: none;
}

.bfs-filters button[type="submit"] {
  background: #0073aa;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,123,170,0.08);
  margin-top: 2px;
}

.bfs-filters button[type="submit"]:hover {
  background: #1fa383;
}*/



.bfs-filters {
  background: #f7fbfd;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(0, 123, 170, 0.06);
  padding: 24px 18px 14px 18px;
  margin-bottom: 35px;

  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: flex-end;
  justify-content: flex-start;
  font-family: inherit;
}

.bfs-filter-item {
  display: flex;
  flex-direction: column;
  flex: 0 1 180px;
}

@media screen and (max-width: 768px){
	.bfs-filter-item {
		 flex: 0 1 10px;
	}
}

.bfs-filter-item label {
  margin-bottom: 4px;
  font-weight: 600;
  color: #003b55;
  font-size: 14px;
  white-space: nowrap;
}

.bfs-filter-item input,
.bfs-filter-item select {
  width: 100%;
  padding: 10px;
  border: 1px solid #949494;
  font-size: 14px;
  color: #003b55;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.bfs-filter-item input:focus,
.bfs-filter-item select:focus {
  border-color: #007baa;
  box-shadow: 0 0 5px rgba(0, 123, 170, 0.4);
  outline: none;
}

.bfs-filters button[type="submit"]{
  padding: 10px 40px;
  background: #009edd;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  align-self: flex-start;
	border-radius:0;
}







/* Risultati/Paginazione */
.bfs-results-info {
  margin: 1em 0 1.7em 0;
  font-weight: bold;
  color: #006183;
  font-size: 1.14rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.bfs-pagination {
  text-align: center;
  margin: 30px 0 10px 0;
}

.bfs-pagination a {
  margin: 0 8px;
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
  padding: 6px 13px;
  border-radius: 5px;
  transition: background .2s, color .2s;
  border: 1.5px solid transparent;
}

.bfs-pagination a:hover,
.bfs-pagination a:focus {
  background: #e6f6fb;
  color: #1fa383;
  border-color: #b3e3fc;
}

.bfs-pagination strong {
  background: #0073aa;
  color: #fff;
  border-radius: 5px;
  padding: 6px 13px;
  margin: 0 8px;
  font-weight: bold;
  font-size: 1.07em;
}

/* Responsive migliorato */
@media (max-width: 800px) {
  .bfs-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 5px 0;
  }
  .bfs-boat-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}



/* SINGOLA BARCA */
.bfs-single-boat {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  color: #333;
}

.bfs-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.bfs-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #0073aa;
  text-decoration: none;
}

.bfs-back-link:hover {
  text-decoration: underline;
}

.bfs-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bfs-gallery-main img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bfs-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
}

.bfs-gallery-thumbs img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border 0.2s, transform 0.2s;
}

.bfs-gallery-thumbs img:hover {
  border: 2px solid #0073aa;
  transform: scale(1.05);
}

.bfs-details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bfs-boat-specs {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 2rem;
}

.bfs-boat-specs li {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.bfs-boat-specs strong {
  color: #0073aa;
}

.bfs-description,
.bfs-additional-details {
  padding: 1rem;
  background: #f1f1f1;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.bfs-description h2,
.bfs-additional-details h2 {
  color: #0073aa;
  margin-top: 0;
}


/* Allinea i pulsanti blu in basso in tutte le card */
.bfs-boat-grid {
  align-items: stretch; /* forza le colonne ad avere la stessa altezza */
}

.bfs-boat-card-modern {
  display: flex;
  flex-direction: column;
}

.bfs-boat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bfs-boat-button {
  margin-top: auto;
  display: block; /* assicura che occupi tutta la larghezza */
}

.bfs-loadmore-btn{
	    margin-top: 16px;
    padding: 10px 20px;
    background: #009edd;
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.06rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.07);
    transition: background .2s;
    letter-spacing: 0.5px;
}
