/* Estilos para a página de PG's */

/* Hero Section */
.pg-hero-section {
  background: linear-gradient(rgba(2, 40, 67, 0.85), rgba(2, 40, 67, 0.85)), url("../img/pg-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pg-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.pg-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1.5rem;
  color: #f68e30;
  font-weight: 500;
}

/* Info Section */
.pg-info-section {
  padding: 2rem 0 4rem;
}

.pg-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pg-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.pg-card h2 {
  color: #022843;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  font-size: 1.8rem;
}

.pg-card h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #f68e30;
}

/* Benefits */
.pg-benefits {
  margin-top: 2.5rem;
}

.benefit-item {
  display: flex;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  background-color: #f0f4f8;
}

.benefit-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: #f68e30;
  border-radius: 5px 0 0 5px;
}

.benefit-icon {
  color: #f68e30;
  margin-right: 1.5rem;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.benefit-icon svg {
  width: 36px;
  height: 36px;
}

.benefit-content h3 {
  margin-bottom: 0.5rem;
  color: #022843;
  font-size: 1.2rem;
}

.benefit-content p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Steps */
.steps-container {
  margin-top: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  background-color: #f0f4f8;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #022843;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: #022843;
  font-size: 1.2rem;
}

.step-content p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pg-contact-info {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: #f0f4f8;
  border-radius: 12px;
  border-left: 5px solid #f68e30;
}

.contact-person {
  margin-top: 0.5rem;
}

.contact-person a {
  color: #f68e30;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-person a:hover {
  color: #e07a20;
  text-decoration: underline;
}

/* Map Section */
.pg-map-section {
  padding: 4rem 0;
  background-color: #f0f0f0;
}

.map-description {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.map-container {
  position: relative; 
  height: 500px;
  border-radius: 16px;
  overflow: hidden; 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  z-index: 1; 
}

#pg-map {
  width: 100%;
  height: 100%; 
}

.pg-details-container {
  max-width: 800px;
  margin: 0 auto;
}

.pg-details {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  min-height: 200px;
}

.pg-details-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  height: 100%;
  text-align: center;
}

.pg-details-placeholder svg {
  margin-bottom: 1rem;
  color: #ddd;
}

.pg-details-content {
  display: none;
}

.pg-details-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg-details-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.pg-details-icon {
  width: 60px;
  height: 60px;
  background-color: #022843;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.pg-details-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.pg-details-title h3 {
  margin-bottom: 0.25rem;
  color: #022843;
}

.pg-details-title p {
  margin-bottom: 0;
  color: #666;
  font-size: 0.95rem;
}

.pg-details-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pg-info-item {
  display: flex;
  align-items: flex-start;
}

.pg-info-item svg {
  width: 20px;
  height: 20px;
  color: #f68e30;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.pg-info-item-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #333;
}

.pg-info-item-content p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
}

.pg-details-description {
  margin-bottom: 1.5rem;
}

.pg-details-description h4 {
  margin-bottom: 0.75rem;
  color: #022843;
}

.pg-details-description p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pg-details-actions {
  display: flex;
  gap: 1rem;
}

.pg-details-actions .btn {
  flex: 1;
  align-items: center;
}

/* Estilos específicos para o mapa Leaflet */
.leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  z-index: 0; /* Garante que o mapa não sobreponha outros elementos */
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-family: "Montserrat", sans-serif;
}

.leaflet-popup-tip {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .pg-card {
    padding: 2rem;
  }
  
  .map-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .pg-info-grid {
    grid-template-columns: 1fr;
  }
  
  .pg-start-container {
    order: 2;
  }
  
  .pg-info-content {
    order: 1;
  }
  
  .pg-hero-section {
    padding: 3rem 0;
  }
  
  .map-container {
    height: 350px;
  }
  
  .pg-details-info {
    grid-template-columns: 1fr;
  }
  
  .pg-details-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pg-card {
    padding: 1.5rem;
  }
  
  .benefit-item,
  .step-item {
    flex-direction: column;
  }
  
  .benefit-icon,
  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .pg-details-header {
    flex-direction: column;
    text-align: center;
  }
  
  .pg-details-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

.btn-whatsapp {
    background-color: #022843; 
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    gap: 1rem;
}

/* Ajusta o tamanho dos ícones SVG do rodapé para igualar às demais páginas */
.footer-info svg {
    width: 1.5em;
    height: 1.5em;
    min-width: 24px;
    min-height: 24px;
    margin-right: 0.5rem;
    vertical-align: middle;
}