/**
 * WordPress Google Maps Locations - CSS
 * Styles pour les marqueurs et les fenêtres d'info style Airbnb
 */

/* Conteneur de carte */
#wp-maps-locations-map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Message lorsqu'aucune propriété n'est trouvée */
.wp-maps-locations-no-properties {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    color: #666;
}

/* Marqueur style Airbnb */
.wp-maps-locations-marker {
    position: relative;
    width: auto;
    height: auto;
    cursor: pointer;
    z-index: 1;
}

.wp-maps-locations-marker-content {
    position: relative;
    min-width: 60px;
    height: 34px;
    padding: 0 12px;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: transform 0.2s ease;
}

.wp-maps-locations-marker-content:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Fenêtre d'information */
.wp-maps-locations-info-window {
    padding: 5px;
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wp-maps-locations-info-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.wp-maps-locations-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-maps-locations-info-content {
    padding: 5px;
}

.wp-maps-locations-info-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.wp-maps-locations-info-location {
    margin-bottom: 8px;
    font-size: 14px;
    color: #717171;
}

.wp-maps-locations-info-price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.wp-maps-locations-info-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #a17d44;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.wp-maps-locations-info-link:hover {
    background-color: #a17d44;
    color: white;
}

/* Style pour la fenêtre d'info Google Maps */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-t::after {
    background: #a17d44 !important;
    box-shadow: -2px 2px 2px 0 rgba(178, 178, 178, 0.4) !important;
}

/* Styles pour l'admin */
#wp-maps-locations-map {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.wp-maps-locations-shortcode-info {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #a17d44;
}

.wp-maps-locations-shortcode-info h2 {
    margin-top: 0;
    color: #333;
}

.wp-maps-locations-shortcode-info code {
    display: block;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 3px;
    margin: 10px 0;
}

.wp-maps-locations-shortcode-info ul {
    margin-left: 20px;
}

/* Styles responsive */
@media (max-width: 768px) {
    .wp-maps-locations-marker-content {
        min-width: 50px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .wp-maps-locations-info-window {
        max-width: 250px;
    }
    
    .wp-maps-locations-info-image {
        height: 120px;
    }
    
    .wp-maps-locations-info-content h3 {
        font-size: 14px;
    }
    
    .wp-maps-locations-info-location,
    .wp-maps-locations-info-price {
        font-size: 13px;
    }
    
    .wp-maps-locations-info-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================
   FILTRES DE RECHERCHE STYLE AIRBNB - CSS COMPLET
   ============================================ */

/* === CONTENEUR PRINCIPAL === */
.wp-maps-search-container {
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #222;
}

/* === FORMULAIRE PRINCIPAL === */
.airbnb-style-search {
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  margin-bottom: 16px;
}

.search-field {
  flex: 1;
  min-width: 180px;
  border-right: 1px solid #DDDDDD;
  padding: 14px 20px;
  position: relative;
  background: white;
  transition: background-color 0.2s ease;
}

.search-field:hover {
  background: #f8f8f8;
}

.search-field:last-child {
  border-right: none;
  flex: 0 0 auto;
}

.search-field label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #222222;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === CHAMPS DE LOCALISATION === */
.location-inputs {
  display: flex;
  gap: 8px;
}

.search-select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #717171;
  outline: none;
  cursor: pointer;
  padding: 4px 0;
}

.search-select:focus {
  color: #222;
}

/* === CHAMPS DE DATES === */
.date-input-group {
  display: flex;
  gap: 12px;
}

.date-input {
  flex: 1;
}

.search-date {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #717171;
  outline: none;
  padding: 4px 0;
}

.search-date:focus {
  color: #222;
}

/* === SÉLECTEUR DE VOYAGEURS === */
.guests-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guest-input span {
  font-size: 14px;
  color: #717171;
  font-weight: 500;
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  right: 20px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #B0B0B0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #717171;
  transition: all 0.2s ease;
  font-weight: 600;
}
.counter-btn.plus {
  position: absolute;
  right: -25px;
  top: 0;
}

.counter-btn:hover {
  border-color: #222222;
  color: #222222;
  transform: scale(1.05);
}

.counter-btn:active {
  transform: scale(0.95);
}

.counter input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 14px;
  color: #222222;
  background: transparent;
  font-weight: 600;
}

/* === SÉLECTEUR DE PRIX === */
.price-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-range {
  position: relative;
  height: 24px;
  margin: 8px 0;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #a17d44;
  outline: none;
  pointer-events: none;
  border-radius: 2px;
}

.price-slider::-webkit-slider-track {
  height: 4px;
  border-radius: 2px;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #a17d44;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #a17d44;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#search-price-max {
  z-index: 1;
}

.price-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #222;
  justify-content: center;
  font-weight: 600;
}

.price-separator {
  color: #717171;
  font-weight: 400;
}

.price-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.price-preset {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #717171;
}

.price-preset:hover {
  background: #a17d44;
  color: white;
  border-color: #a17d44;
  transform: translateY(-1px);
}

.price-preset.active {
  background: #a17d44;
  color: white;
  border-color: #a17d44;
}

/* === BOUTON DE RECHERCHE === */
.search-submit-btn {
  background: #a17d44;
  color: white;
  border: none;
  border-radius: 24px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.search-submit-btn:hover {
  background: #a17d44;
  transform: translateY(-2px);
}

.search-submit-btn:active {
  transform: translateY(0);
}

.search-icon {
  font-size: 16px;
}

/* === FILTRES AVANCÉS === */
.advanced-filters-container {
  margin-top: 16px;
}

.advanced-filters-toggle {
  background:#a17d44;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  color: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.advanced-filters-toggle:hover {
  background: linear-gradient(135deg, #eee 0%, #ddd 100%);
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advanced-filters-toggle.active {
  background: #a17d44;
  color: white;
  border-color: #a17d44;
}

.toggle-icon {
  font-size: 16px;
}

.toggle-arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.advanced-filters-toggle.active .toggle-arrow {
  transform: rotate(180deg);
}

.advanced-filters-panel {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 28px;
  margin-top: 12px;
  display: none;
  gap: 28px;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.advanced-filters-panel.active {
  display: flex;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === GROUPES DE FILTRES === */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-label {
  font-weight: 700;
  font-size: 18px;
  color: #222;
  margin-bottom: 4px;
}

.filter-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-option {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #717171;
}

.filter-option:hover {
  border-color: #222;
  color: #222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-option.active {
  background: #222;
  color: white;
  border-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === CHECKBOXES PERSONNALISÉES === */
.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  color: #717171;
  font-weight: 500;
  transition: color 0.2s ease;
}

.checkbox-option:hover {
  color: #222;
}

.checkbox-option input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

.checkbox-option:hover .checkmark {
  border-color: #a17d44;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
  background: #a17d44;
  border-color: #a17d44;
  color: white;
  transform: scale(1.05);
}

/* === ACTIONS DES FILTRES === */
.filter-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.clear-filters-btn {
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #717171;
  flex: 1;
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  background: #f7f7f7;
  border-color: #ccc;
  color: #555;
  transform: translateY(-1px);
}

.apply-filters-btn {
  background: #a17d44;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  flex: 1;
  transition: all 0.2s ease;
}

.apply-filters-btn:hover {
  background: #a17d44;
  transform: translateY(-2px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .search-field {
    min-width: 160px;
    padding: 12px 16px;
  }
  
  .price-presets {
    gap: 4px;
  }
  
  .filter-options {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .airbnb-style-search {
    flex-direction: column;
    border-radius: 16px;
  }
  
  .search-field {
    border-right: none;
    border-bottom: 1px solid #DDDDDD;
    min-width: auto;
    padding: 16px 20px;
  }
  
  .search-field:last-child {
    border-bottom: none;
  }

  .location-inputs {
    flex-direction: column;
    gap: 12px;
  }

  .date-input-group {
    flex-direction: column;
    gap: 16px;
  }

  .price-presets {
    justify-content: center;
    gap: 6px;
  }

  .filter-options {
    justify-content: center;
    gap: 8px;
  }

  .filter-actions {
    flex-direction: column;
    gap: 12px;
  }

  .advanced-filters-panel {
    padding: 20px;
    margin: 8px;
    border-radius: 12px;
  }

  .filter-label {
    font-size: 16px;
  }

  .checkbox-option {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .wp-maps-search-container {
    margin: 15px 0;
  }

  .airbnb-style-search {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .search-field {
    padding: 14px 16px;
  }

  .search-field label {
    font-size: 11px;
  }

  .search-select,
  .search-date {
    font-size: 13px;
  }

  .counter-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .price-preset {
    padding: 4px 8px;
    font-size: 11px;
  }

  .search-submit-btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  .advanced-filters-toggle {
    padding: 12px 20px;
    font-size: 13px;
  }

  .advanced-filters-panel {
    padding: 16px;
    gap: 20px;
  }

  .filter-option {
    padding: 8px 16px;
    font-size: 13px;
  }

  .clear-filters-btn,
  .apply-filters-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* === ANIMATIONS ET TRANSITIONS === */
.search-field,
.filter-option,
.price-preset,
.counter-btn,
.checkmark {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === FOCUS STATES POUR L'ACCESSIBILITÉ === */
.search-select:focus,
.search-date:focus,
.counter-btn:focus,
.price-slider:focus,
.filter-option:focus,
.checkbox-option:focus,
.advanced-filters-toggle:focus {
  outline: 2px solid #a17d44;
  outline-offset: 2px;
}

/* === ÉTATS DE CHARGEMENT === */
.wp-maps-search-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.wp-maps-search-container.loading .search-submit-btn::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Styles pour le formulaire de recherche de propriétés */
.wp-maps-property-search {
  box-sizing: border-box;
}

.wp-maps-property-search * {
  box-sizing: border-box;
}

/* Styles pour le formulaire de recherche de propriétés */
.wp-maps-property-search label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.wp-maps-property-search select,
.wp-maps-property-search input[type="text"],
.wp-maps-property-search input[type="number"] {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.wp-maps-property-search .search-group {
  margin-bottom: 15px;
}

.wp-maps-property-search .features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.wp-maps-property-search .property-search-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.wp-maps-property-search .property-search-button:hover {
  opacity: 0.9;
}

/* Styles pour Select2 */
.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}

/* Styles pour Flatpickr */
.flatpickr-input {
  background-color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .wp-maps-property-search .search-form-grid {
    grid-template-columns: 1fr !important;
  }
  
  .wp-maps-property-search .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wp-maps-property-search .features-container {
    grid-template-columns: 1fr;
  }
}

.wp-maps-property-search .property-search-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.wp-maps-property-search .features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Styles pour la version mobile */
@media (max-width: 768px) {
  .wp-maps-property-search .search-form-grid {
    grid-template-columns: 1fr !important;
  }
  
  .wp-maps-property-search .search-group {
    grid-column: 1 !important;
  }
  
  .wp-maps-property-search .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wp-maps-property-search .features-container {
    grid-template-columns: 1fr;
  }
}

/* Styles pour Select2 */
.wp-maps-property-search .select2-container {
  width: 100% !important;
}

.wp-maps-property-search .select2-selection {
  height: auto !important;
  min-height: 38px;
}

.wp-maps-property-search .select2-selection__rendered {
  line-height: 36px !important;
}

.wp-maps-property-search .select2-selection__arrow {
  height: 36px !important;
}

/* Styles pour les résultats AJAX */
.property-search-results {
  margin-top: 30px;
}

.property-search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.loading-spinner {
  text-align: center;
  padding: 30px;
  font-style: italic;
  color: #666;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="38" height="38" viewBox="0 0 38 38"><defs><linearGradient id="a" x1="8.042%" y1="0%" x2="65.682%" y2="23.865%"><stop stop-color="%23666" stop-opacity="0" offset="0%"/><stop stop-color="%23666" stop-opacity=".631" offset="63.146%"/><stop stop-color="%23666" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><g transform="translate(1 1)"><path d="M36 18c0-9.94-8.06-18-18-18" stroke="url(%23a)" stroke-width="2"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"/></path></g></g></svg>') center top no-repeat;
  padding-top: 50px;
  margin: 20px 0;
}

.error-message {
  background-color: #fff0f0;
  color: #d8000c;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  border-left: 4px solid #d8000c;
}

.no-results {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

/* Styles pour les cartes de propriété dans les résultats */
.property-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.property-link {
  text-decoration: none;
  color: inherit;
}

.property-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.property-details {
  padding: 15px;
}

.property-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.property-location {
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

.property-price {
  font-weight: bold;
  color: #4a89dc;
  margin-bottom: 10px;
  font-size: 16px;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 13px;
}

.property-search-pagination {
  margin-top: 30px;
  text-align: center;
}

.property-search-pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
}

.property-search-pagination .page-numbers.current {
  background-color: #4a89dc;
  color: #fff;
  border-color: #4a89dc;
}

/* Responsive pour les résultats AJAX */
@media (max-width: 768px) {
  .property-search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .property-search-results-grid {
    grid-template-columns: 1fr;
  }
}

.flatpickr-input[readonly] {
  padding: 10px;
  width: 100%;
}
.flatpickr-wrapper {
  width: 100%;
}