/* Estilos para o plugin Events & Hotels Manager */

.ehm-hoteis-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
  padding: 0 10px;
}

.ehm-hotel-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: white;
}

.ehm-hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ehm-hotel-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ehm-hotel-content {
  padding: 15px;
}

.ehm-hotel-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  line-height: 1.3;
}

.ehm-hotel-title a {
  text-decoration: none;
  color: #333;
  cursor: pointer;
}

.ehm-hotel-title a:hover {
  color: #0073aa;
}

.ehm-hotel-excerpt {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95em;
}

.ehm-hotel-endereco,
.ehm-hotel-preco {
  margin: 5px 0;
  font-size: 0.9em;
}

/* Added modern events section styles */
.ehm-eventos-section {
  margin: 30px 0;
  padding: 0 10px;
}

.ehm-eventos-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
  font-weight: 600;
}

.ehm-eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.ehm-evento-card-modern {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ehm-evento-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ehm-evento-image-modern {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.ehm-evento-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ehm-evento-card-modern:hover .ehm-evento-image-modern img {
  transform: scale(1.05);
}

.ehm-evento-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.ehm-evento-content-modern {
  padding: 20px;
}

.ehm-evento-title-modern {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

/* Added styles for date text positioned above location */
.ehm-evento-date-text {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.25);
}

.ehm-evento-location {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 12px;
}

.ehm-evento-location .location-icon {
  margin-right: 6px;
  font-size: 0.8em;
}

.ehm-evento-excerpt-modern {
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
  font-size: 0.95em;
}

.ehm-evento-btn-modern {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.ehm-evento-btn-modern:hover {
  background: linear-gradient(135deg, #5a6fd8, #6a4190);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
}

/* Enhanced hotel gallery styles for better mobile experience */
.ehm-hotel-gallery {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.ehm-hotel-gallery h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2em;
}

.ehm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.ehm-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.ehm-gallery-item:hover {
  transform: scale(1.05);
}

.ehm-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.ehm-gallery-image:hover {
  opacity: 0.8;
}

/* Improved modal styles for better mobile experience */
.ehm-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ehm-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ehm-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #dc3232;
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-weight: bold;
}

.ehm-modal-close:hover {
  background: #a00;
}

#ehm-modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* Enhanced hotel details section for mobile */
.ehm-hotel-details {
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.ehm-hotel-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2em;
}

.ehm-hotel-details p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 0.95em;
}

.ehm-hotel-details a {
  color: #0073aa;
  text-decoration: none;
  word-break: break-word;
}

.ehm-hotel-details a:hover {
  text-decoration: underline;
}

/* Improved events display for mobile */
.ehm-eventos-recentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
  padding: 0 10px;
}

.ehm-evento-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: white;
}

.ehm-evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ehm-evento-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ehm-evento-content {
  padding: 15px;
}

.ehm-evento-title {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  line-height: 1.3;
}

.ehm-evento-title a {
  text-decoration: none;
  color: #333;
}

.ehm-evento-title a:hover {
  color: #0073aa;
}

.ehm-evento-excerpt {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.9em;
}

.ehm-evento-data {
  margin: 10px 0;
  font-size: 0.85em;
  color: #555;
}

.ehm-evento-link {
  display: inline-block;
  background: #0073aa;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.ehm-evento-link:hover {
  background: #005a87;
  color: white;
}

/* Enhanced contact form for better mobile experience */
.ehm-contact-form {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ehm-contact-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.2em;
}

.ehm-form-group {
  margin-bottom: 20px;
}

.ehm-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
  font-size: 0.95em;
}

.ehm-form-group input[type="text"],
.ehm-form-group input[type="email"],
.ehm-form-group input[type="tel"],
.ehm-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.ehm-form-group input:focus,
.ehm-form-group textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.ehm-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Improved styles for checkbox and radio button fields for better visibility and interaction */
.ehm-checkbox-group,
.ehm-radio-group {
  padding: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.ehm-checkbox-label,
.ehm-radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 15px;
  transition: background-color 0.2s ease;
  margin: 0;
  font-weight: normal;
  border-radius: 4px;
  border: 1px solid transparent;
  flex: 1;
  justify-content: center;
}

.ehm-checkbox-label:hover,
.ehm-radio-label:hover {
  background-color: #f5f5f5;
  border-color: #0073aa;
}

.ehm-checkbox-group input[type="checkbox"],
.ehm-radio-group input[type="radio"] {
  margin: 0;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #0073aa;
}

.ehm-radio-group input[type="radio"]:checked + .radio-text,
.ehm-checkbox-group input[type="checkbox"]:checked + .radio-text {
  font-weight: 600;
  color: #0073aa;
}

.radio-text {
  cursor: pointer;
  user-select: none;
}
/* End of improved checkbox and radio button styles */

#ehm-hoteis-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.ehm-hotel-checkbox {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.ehm-hotel-checkbox:hover {
  background: #f5f5f5;
}

.ehm-hotel-checkbox input {
  margin-right: 12px;
  width: auto;
  transform: scale(1.2);
}

.ehm-hotel-checkbox label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  flex: 1;
  font-size: 0.95em;
}

.ehm-contact-form button {
  background: #0073aa;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.ehm-contact-form button:hover {
  background: #005a87;
}

.ehm-contact-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#ehm-form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  display: none;
  font-size: 0.95em;
}

#ehm-form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#ehm-form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.gallery-image {
  display: inline-block;
  position: relative;
  margin: 5px;
}

.gallery-image .remove-image {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3232;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image .remove-image:hover {
  background: #a00;
}

/* Enhanced responsive design with better mobile breakpoints for modern events */
@media (max-width: 768px) {
  .ehm-hoteis-container,
  .ehm-eventos-recentes {
    grid-template-columns: 1fr;
    padding: 0 5px;
    gap: 15px;
  }

  .ehm-eventos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 5px;
  }

  .ehm-eventos-title {
    font-size: 1.6em;
    margin-bottom: 25px;
  }

  .ehm-evento-card-modern {
    margin: 0 5px;
  }

  .ehm-evento-image-modern {
    height: 180px;
  }

  .ehm-evento-content-modern {
    padding: 16px;
  }

  .ehm-evento-title-modern {
    font-size: 1.2em;
  }

  .ehm-evento-btn-modern {
    padding: 10px 20px;
    font-size: 0.85em;
  }

  .ehm-evento-date-text {
    font-size: 0.75em;
    padding: 5px 10px;
    margin-bottom: 10px;
  }

  .ehm-hotel-image img,
  .ehm-evento-image img {
    height: 160px;
  }

  .ehm-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }

  .ehm-hotel-gallery,
  .ehm-hotel-details,
  .ehm-contact-form {
    margin: 15px 0;
    padding: 15px;
  }

  .ehm-modal {
    padding: 10px;
  }

  .ehm-modal-content {
    max-width: 95%;
    max-height: 95%;
    padding: 5px;
  }

  .ehm-modal-close {
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  #ehm-modal-image {
    max-height: 75vh;
  }

  .ehm-hotel-title,
  .ehm-evento-title {
    font-size: 1.1em;
  }

  .ehm-contact-form h3 {
    font-size: 1.1em;
  }

  /* Stack radio/checkbox options vertically on mobile */
  .ehm-checkbox-group,
  .ehm-radio-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* Added extra small screen optimizations for modern events */
@media (max-width: 480px) {
  .ehm-hoteis-container,
  .ehm-eventos-recentes {
    margin: 10px 0;
    padding: 0;
  }

  .ehm-eventos-section {
    padding: 0 5px;
  }

  .ehm-eventos-grid {
    padding: 0;
  }

  .ehm-eventos-title {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  .ehm-evento-card-modern {
    margin: 0;
  }

  .ehm-evento-image-modern {
    height: 160px;
  }

  .ehm-evento-content-modern {
    padding: 14px;
  }

  .ehm-evento-title-modern {
    font-size: 1.1em;
  }

  .ehm-evento-date-text {
    font-size: 0.7em;
    padding: 4px 8px;
    margin-bottom: 8px;
  }

  .ehm-evento-location {
    font-size: 0.8em;
  }

  .ehm-hotel-card,
  .ehm-evento-card {
    margin: 0 5px;
  }

  .ehm-hotel-content,
  .ehm-evento-content {
    padding: 12px;
  }

  .ehm-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .ehm-hotel-gallery,
  .ehm-hotel-details,
  .ehm-contact-form {
    padding: 12px;
    margin: 10px 5px;
  }

  .ehm-contact-form button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .ehm-form-group input,
  .ehm-form-group textarea {
    padding: 10px;
    font-size: 15px;
  }

  .ehm-hotel-checkbox {
    padding: 10px;
  }

  .ehm-modal {
    padding: 5px;
  }

  #ehm-modal-image {
    max-height: 70vh;
  }
}

/* Added landscape mobile optimizations for modern events */
@media (max-width: 768px) and (orientation: landscape) {
  .ehm-hotel-image img,
  .ehm-evento-image img {
    height: 140px;
  }

  .ehm-evento-image-modern {
    height: 150px;
  }

  .ehm-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  #ehm-modal-image {
    max-height: 60vh;
  }
}
