/* Activity Widget Styles */
/* Extends booking.css for activity-specific widget functionality */

/* Activity Provider Selection Grid */
.activity-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.activity-provider-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: white;
}

.activity-provider-card:hover {
  border-color: var(--primary, #537b71);
  background-color: rgba(var(--primary-rgb, 83, 123, 113), 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb, 83, 123, 113), 0.15);
}

.provider-logo-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-provider-card .provider-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
}

.provider-details {
  flex: 1;
  min-width: 0;
}

.provider-details h5 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.provider-description {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.activity-provider-card .provider-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary, #537b71);
  font-size: 16px;
}

.activity-provider-card .provider-arrow {
  transition: transform 0.2s ease;
}

.activity-provider-card:hover .provider-arrow {
  transform: translateX(4px);
}

/* HTMX Loading Indicator */
.activity-provider-card .htmx-indicator {
  display: none;
  color: var(--primary, #537b71);
}

.activity-provider-card.htmx-request .htmx-indicator {
  display: inline-block;
}

.activity-provider-card.htmx-request .provider-arrow {
  display: none;
}

/* Activity Widget Container */
.activity-widget-wrapper {
  padding: 0;
}

.back-to-providers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.back-to-providers:hover {
  color: var(--primary, #537b71);
}

.activity-widget-header {
  margin-bottom: 16px;
}

.activity-widget-header h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.activity-widget-location {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.activity-widget-location .fas {
  margin-right: 4px;
  color: var(--primary, #537b71);
}

/* Widget Content Area */
.activity-widget-content {
  min-height: 300px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
}

/* Widget Loading State */
.activity-widget-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  color: #6b7280;
  font-size: 14px;
}

.activity-widget-loading .fas {
  font-size: 24px;
  color: var(--primary, #537b71);
}

/* Individual Widget Styles */
.klook-widget,
.getyourguide-widget,
.wegotrip-widget {
  min-height: 280px;
}

/* WeGoTrip Fallback */
.wegotrip-fallback {
  text-align: center;
  padding: 32px;
}

.wegotrip-fallback p {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .activity-providers-grid {
    grid-template-columns: 1fr;
  }

  .activity-provider-card {
    padding: 12px;
  }

  .provider-logo-wrapper {
    width: 48px;
    height: 48px;
  }

  .activity-provider-card .provider-logo {
    width: 48px;
    height: 48px;
  }

  .activity-widget-content {
    padding: 12px;
  }
}

/* Modal specific overrides for activity widgets */
#activity-booking-container {
  min-height: 200px;
}
