/* Global CSS */

.agenda_hidden {
  display: none;
}
.agenda-required-symbol {
  color: red;
}

.ajenda-venue-underline-hover {
  display: inline-block;

  text-decoration: none;

  background-image: linear-gradient(currentColor, currentColor);

  background-size: 0% 1px; /* Width 0% initially, height 2px */

  background-repeat: no-repeat;

  background-position: left bottom;

  transition: background-size 0.3s ease;
}
.venue-note {
  font-size: 12px;
  font-weight: 400;
}

/* My account css */

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout {
  border-bottom: 0;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout
  a {
  opacity: 1;

  margin-left: 25px;
}

.woocommerce-MyAccount-navigation
  ul
  li.woocommerce-MyAccount-navigation-link--customer-logout
  a::before {
  content: "" !important;
}

.woocommerce-MyAccount-content > .woocommerce-notices-wrapper ~ p {
  display: none;
}

/* Post create form CSS start */

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout
  a,
.add_venue_btn {
  padding: 10px 22px;

  font-weight: 500;

  background-color: #b79337;

  color: #fff !important;

  text-decoration: none !important;

  border-radius: 8px;

  -webkit-border-radius: 8px;

  box-shadow: none;

  transition: all 0.45s cubic-bezier(0.25, 1, 0.33, 1);

  -webkit-transition: all 0.45s cubic-bezier(0.25, 1, 0.33, 1);

  border: none;

  cursor: pointer;

  width: auto;

  font-size: 14px;

  display: inline-block; /* Important for transforms to work on inline elements */

  text-align: center !important;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout
  a:hover,
.add_venue_btn:hover {
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);

  transform: translateY(-3px);

  -webkit-transform: translateY(-3px);

  -ms-transform: translateY(-3px);

  opacity: 0.85;
}

#venueFormSection label[for="post-description"],
#venueFormSection label[for="agenda-edit-post-content"] {
  position: absolute;
  margin-top: 10px;
}
#venueFormSection .venue-description {
  margin-top: 20px;
}
form#agenda-post-edit-form,
div#agendaPostForm {
  padding: 20px;
  background: #fff;
}

#agendaPostForm .form-container {
  margin: auto;
}
#agendaPostForm .form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}
#venueFormSection .form-group span.select2-selection {
  float: left;
  width: 100%;
}

#agendaPostImages {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates 3 equal-width columns */
  gap: 16px;
}
div#venueLocationFields {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal-width columns */
  gap: 16px;
}
div#agendaPostSocial {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates 3 equal-width columns */
  gap: 16px;
}
#agendaPostImages .feature-image,
form#agenda-post-edit-form .agenda-form-group #post_image_wrap,
#ägendaPostImages .feature-image,
.agenda-image-gallery-upload-container .image-upload-field {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 5px;
  position: relative;
}
#ägendaPostImages #post-image,
.agenda-image-gallery-upload-container .image-input {
  margin-bottom: 8px;
  display: block;
}

.agenda-image-gallery-upload-container .remove-image {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.agenda-image-gallery-upload-container .remove-image:hover {
  background-color: #cc0000;
}
.agenda-add-more-container .agenda-add-row-btn,
.agenda-image-gallery-upload-container .add-image {
  background-color: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Poppins";
  text-decoration: underline;
  color: #b79337;
  transition: color 0.3s;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  cursor: pointer;
}
.agenda-add-more-container .agenda-add-row-btn:hover,
.agenda-image-gallery-upload-container .add-image:hover {
  color: #0a0a0a;
}

#ägendaPostImages .gallery-btn-wrap {
  display: flex;
  justify-content: end;
}

/* Post opening hours CSS */
.agenda-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal-width columns */
  gap: 16px;
  margin-bottom: 10px;
  align-items: center;
}

.agenda-grid-header {
  border: 1px solid #ddd;
  padding: 0 10px;
}
.agenda-grid-container.agenda-grid-header > div:nth-child(2) {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding-left: 10px;
}

.agenda-add-more-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.agenda-remove-row-btn {
  padding: 6px 12px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  justify-self: end;
}

.agenda-input,
.agenda-select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.agenda-time-row > div {
  display: flex;
  align-items: center;
}

#venueFormSection {
  padding: 20px 0px;
}

#agenda-post-edit-form .checkbox-group,
#agendaPostForm .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}
#agenda-post-edit-form .checkbox-option,
#agendaPostForm .checkbox-option {
  display: flex;
  align-items: center;
}
#agenda-post-edit-form .checkbox-option input,
#agendaPostForm .checkbox-option input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}
#agenda-post-edit-form .button-group,
#agendaPostForm .button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

div#categoryTagsWrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal-width columns */
  gap: 16px;
}
#agenda-post-edit-form button.agenda_cat_btn,
#agendaPostForm button.agenda_cat_btn {
  color: white;

  border: none;

  padding: 12px 20px;

  border-radius: 5px;

  cursor: pointer;

  font-size: 16px;

  transition: background 0.3s;
}
#agenda-post-edit-form button.agenda_cat_btn,
#agendaPostForm button.agenda_cat_btn,
#agendaPostForm .draft-btn {
  background: #6c757d;
}
#agenda-post-edit-form button.agenda_cat_btn,
#agendaPostForm button.agenda_cat_btn,
#agendaPostForm .draft-btn:hover {
  background: #5a6268;
}

#agenda-post-edit-form
  .form-group
  #categoryOptions
  #agendaPostForm
  .form-group
  #categoryOptions {
  display: none;
}

.ajenda_alert {
  padding: 10px 20px;

  background-color: #3498db;

  color: white;

  display: none;

  border-radius: 5px;

  margin-top: 20px;
}

.ajenda_closebtn {
  margin-left: 15px;

  color: white;

  font-weight: bold;

  float: right;

  font-size: 22px;

  cursor: pointer;

  transition: 0.3s;
}

.ajenda_closebtn:hover {
  color: black;
}

.agenda_required {
  color: red;

  display: none;
}
.agenda-form-group #post_image_wrap {
  display: flex;

  gap: 10px;

  align-items: center;
}

.agenda-form-group #post_image_wrap img {
  max-width: 100px;

  max-height: 100px;

  border-radius: 5px;
  margin-bottom: 0;
}

#agendaPostForm .selected-categories {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;

  margin-bottom: 10px;
}

#agendaPostForm .selected-category-tag {
  background: #f0f0f0;

  padding: 3px 8px;

  border-radius: 3px;

  display: inline-flex;

  align-items: center;
}

#agendaPostForm .remove-category {
  margin-left: 5px;

  cursor: pointer;

  font-size: 14px;
}

#agendaPostForm .category-search {
  width: 100%;

  padding: 8px;

  margin-bottom: 10px;

  box-sizing: border-box;
}

#agendaPostForm .show-more-btn {
  background: none;

  border: none;

  color: #0073aa;

  cursor: pointer;

  padding: 5px 0;

  margin-top: 5px;
}

#agendaPostForm .show-more-btn:hover {
  text-decoration: underline;
}

/* Venue card CSS */
.agenda-tab-container {
  padding: 20px 0px 0px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
}

#agenda-venue-container {
  display: grid;

  gap: 20px;

  grid-template-columns: 1fr;

  padding: 20px 0;
}

div.ajenda-venue-card .link_text {
  display: flex;
  align-items: center;
}
div.ajenda-venue-card .venue-btns .link_text svg {
  margin-left: 7px;
}

.ajenda-venue-card {
  overflow: hidden;

  border-radius: 8px;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  position: relative;
}

.venue-img {
  width: 100%;

  height: 200px;

  object-fit: cover;

  transition: transform 0.5s ease;

  /* Smooth zoom effect */
}

.ajenda-venue-card:hover h3.ajenda-venue-underline-hover {
  background-size: 100% 1px; /* Expands to 100% width on hover */
}

.ajenda-venue-card:hover .venue-img {
  transform: scale(1.1);

  /* Zoom level - 1.1 = 10% larger */
}
.ajenda-venue-card .link_text:hover.hover svg {
  animation: nectar_curved_arrow_animation__svg 0.9s
    cubic-bezier(0.15, 0.75, 0.5, 1) forwards;
}
.venue-btns .link_text.hover svg {
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.7s,
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.7s;
}

/* New styles for the top-right badge */

.venue-badge {
  position: absolute;

  top: 10px;

  right: 10px;

  background-color: white;

  width: 40px;

  height: 35px;

  box-shadow: 0 1px 5px -2px rgba(0, 0, 0, 0.4);

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 6px;

  color: #dc062e;

  border-radius: 8px;

  font-weight: 700;
}

.venue-badge i.fa-solid.fa-bookmark {
  margin-top: 5px;
}

.venue-card-content {
  display: flex;

  justify-content: space-between;

  padding: 15px;
}

.venue-card-content .right {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.venue-btns {
  display: flex;
  gap: 50px;
}
.venue-btns a.link_text {
  text-decoration: none;
}

.agenda-status-badge {
  padding: 0px 28px;
  line-height: 35px;
  border-radius: 100px;

  font-size: 12px;

  font-weight: 500;

  color: #fff !important;

  text-transform: capitalize;

  transition: all 0.3s ease;

  text-align: center;
}
.agenda-status-badge.publish {
  background-color: #06ca94;
}

.agenda-status-badge.pending {
  background-color: #f39c12;
}

.agenda-status-badge.draft {
  background-color: #7f8c8d;
}

div#agenda-load-more-btn-wrap {
  display: flex;

  justify-content: center;
}

/* venue analytic card CSS */

#agendaPostAnalyticsCards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: #f9f9f9;
  gap: 10px; /* Adds space between elements */
  margin-top: 30px;
}

#agendaPostAnalyticsCards .stat-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid;
  min-height: 130px;
}
ul#agendaPostAnalyticsCards li {
  padding-top: 0px;
  width: calc(18% - 10px);
  min-height: 130px;
}
#agendaPostAnalyticsCards .listing-views {
  color: #071e28;
}
#agendaPostAnalyticsCards .favs {
  color: #b89039;
}
#agendaPostAnalyticsCards .bookmarks {
  color: #cc2a37;
}

#agendaPostAnalyticsCards .number {
  font-size: 24px;
  font-weight: bold;
}

#agendaPostAnalyticsCards .label {
  font-size: 16px;
}

#agendaPostAnalyticsCards .conversion {
  font-size: 12px;
  /* color: rgba(255, 255, 255, 0.8); */
}

/* Analytics Graph css */
#agendaPostAnalyticsGraph {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

/* Analytics filter form CSS */
#analyticsFilterForm input[type="submit"] {
  margin-top: 10px;
}

div#analyticsFilterFormInnerMid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  align-items: end;
}

.agenda-form-group input[type="text"]:focus,
.agenda-form-group textarea:focus,
.agenda-form-group select:focus {
  border-color: #3498db;

  outline: none;

  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.agenda-form-group textarea {
  min-height: 120px;

  resize: vertical;
}

.agenda-form-actions {
  margin-top: 25px;

  text-align: right;
}

.agenda-update-post-btn {
  background-color: #27ae60;

  color: white;

  border: none;

  padding: 10px 20px;

  border-radius: 4px;

  cursor: pointer;

  font-size: 1em;

  font-weight: 600;

  transition: all 0.3s ease;
}

.agenda-update-post-btn:hover {
  background-color: #219653;

  transform: translateY(-1px);

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agenda-update-post-btn:disabled {
  background-color: #95a5a6;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}

/* Analytic Alert Box CSS */
#analyticAlert {
  padding: 50px 30px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  align-items: center;
}
#analyticAlert h2,
#analyticAlert h6 {
  color: #b79337;
  text-align: center;
}
/* Preloader CSS */

.agenda_preloader {
  position: fixed;

  top: 0;

  width: 100%;

  height: 100%;

  background: #0000008c;

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 1000;

  visibility: hidden;
}

.agenda_loader {
  width: 50px;

  height: 50px;

  border: 5px solid #f3f3f3;

  border-top: 5px solid #3498db;

  border-radius: 50%;

  animation: agenda_spin 1s linear infinite;
}

@keyframes agenda_spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive CSS start */
@media (min-width: 992px) {
  ul#agendaPostAnalyticsCards li {
    max-height: 130px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  ul#agendaPostAnalyticsCards li {
    max-width: 185px;
    min-width: 185px;
  }
}

@media (min-width: 768px) {
  #agenda-venue-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #agenda-venue-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  #agendaPostForm .form-group input,
  #agendaPostForm .form-group textarea {
    font-size: 15px;
  }

  #agendaPostForm .button-group {
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  div#agendaPostSocial,
  div#venueLocationFields,
  div#agendaOpeningHoursWrap .agenda-grid-container,
  #ägendaPostImages,
  div#categoryTagsWrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  ul#agendaPostAnalyticsCards li {
    width: 100%;
  }
}

@media (max-width: 767px) {
  div#analyticsFilterFormInnerMid {
    grid-template-columns: auto;
  }
}
