/* Make the grid 2 or 3 columns max */
.alm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* Style each post card */
.alm-grid .post-card {
  border: 1px solid #ddd;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Resize featured images */
.alm-grid .post-card img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.2rem; /* tighter space below image */
}

/* Resize post titles */
.alm-grid .post-card h2,
.alm-grid .post-card h3,
.alm-grid .post-card h4 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

/* Date below title */
.alm-grid .post-card .post-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* Optional: Style excerpts */
.alm-grid .post-card p {
  font-size: 0.95rem;
  color: #333;
  margin-top: 0.5rem;
}

/* Container margins */
.alm-container {
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

/* Optional: On small screens */
@media (min-width: 768px) {
  .alm-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Dark theme for post cards */
.alm-grid .post-card {
  border: 1px solid #444;
  padding: 1rem;
  background: #1e1e1e; /* dark gray background */
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  color: #eee; /* light text color */
}

/* Make links inside the post card light colored */
.alm-grid .post-card a {
  color: #f0f0f0;
  text-decoration: none;
}

.alm-grid .post-card a:hover {
  text-decoration: underline;
}

/* Tweak title styles for dark background */
.alm-grid .post-card h2,
.alm-grid .post-card h3,
.alm-grid .post-card h4 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: #fff;
}

/* Date styling */
.alm-grid .post-card .post-date {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* Optional: Excerpt styling */
.alm-grid .post-card p {
  font-size: 0.95rem;
  color: #ddd;
  margin-top: 0.5rem;
}

/* Force dark styling on the Load More button */
.alm-load-more-btn,
.alm-load-more-btn:visited {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.alm-load-more-btn:hover {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #666 !important;
}

/* Ensure menu structure is relative for positioning */
.menu-item-has-children {
  position: relative;
}

/* First-level dropdowns (open downward) */
.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
}

/* Second-level and deeper dropdowns (open RIGHT) */
.sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100% !important;      /* open to the right */
  right: auto !important;     /* disable opening to the left */
  margin-left: 0;
  margin-right: 0;
  white-space: nowrap;
}

.search-filter label {
  display: block;
  color: #ddd;
  margin-bottom: 0.5rem;
}

.search-filter input[type="submit"] {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  margin-top: 1rem;
  cursor: pointer;
}

.search-filter input[type="submit"]:hover {
  background-color: #444;
}

.total-post-count {
  text-align: center;
  font-size: 1rem;
  margin-top: 2rem;
  font-weight: bold;
  color: #ccc;
}

/* Make sidebar sticky on single post pages */
@media (min-width: 768px) {
  .sticky-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.wpgmza_infowindow {
    background-color: #fff !important;
    opacity: 1 !important;
    color: #000 !important;
}

.gm-style-iw {
    background-color: #ffffff !important;
    opacity: 1 !important;
    color: #000 !important;
    filter: none !important;
}
.wpgmza_infowindow_link {
    background-color: #ffffff !important;
    opacity: 1 !important;
    color: #000 !important;
    filter: none !important;
}

.wpgmza-marker-listing-categories {
  margin-bottom: 10px;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.wpgmza-marker-listing-categories label {
  margin-right: 15px;
}

#wpgmza-custom-checkboxes label {
  display: inline !important;
  color: #000 !important;        /* black text */
  font-weight: 600 !important;   /* semi-bold for clarity */
  font-size: 14px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#wpgmza-custom-checkboxes {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  max-height: 400px;         /* max height with scroll */
  overflow-y: auto;
  z-index: 1000;             /* above map controls */
  min-width: 150px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#wpgmza-custom-checkboxes div {
  margin-bottom: 6px;
}

#wpgmza-custom-checkboxes label {
  display: inline !important;
  color: #000 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#wpgmza-custom-checkboxes {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.95);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  max-height: 750px;
  overflow-y: auto;
  z-index: 1000;
  min-width: 170px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #000 !important;              /* text color black */
}

#wpgmza-custom-checkboxes > div {
  margin-bottom: 6px;
}

#wpgmza-custom-checkboxes label {
  display: inline !important;
  color: #000 !important;              /* label text black */
  font-weight: 600 !important;
  font-size: 14px !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;  /* reset any background */
  filter: none !important;             /* reset any CSS filter */
  text-shadow: none !important;        /* remove text shadow */
}

/* Entire table background and text */
#wpgmza_table_1 {
  background-color: #1e1e1e !important; /* Dark gray */
  color: #ffffff !important;           /* White text */
  border-collapse: collapse;
  width: 100%;
}

/* Table cell styling */
#wpgmza_table_1 td,
#wpgmza_table_1 th {
  color: #ffffff !important;
  padding: 10px;
  border: 1px solid #444444; /* Subtle borders */
}

/* Alternate row coloring */
#wpgmza_table_1 tr:nth-child(even) {
  background-color: #2a2a2a; /* Slightly lighter dark gray */
}

/* Link styling inside the table */
#wpgmza_table_1 a {
  color: #ffffff !important;
  text-decoration: underline;
}

#wpgmza_table_1 a:hover {
  color: #cccccc !important;
}
/* Force dark background and white text on the entire table */
#wpgmza_table_1,
#wpgmza_table_1 tbody,
#wpgmza_table_1 tr,
#wpgmza_table_1 td,
#wpgmza_table_1 th {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}

/* Alternate row coloring for readability */
#wpgmza_table_1 tr:nth-child(even) {
  background-color: #2a2a2a !important;
}

/* Link styling inside table */
#wpgmza_table_1 a {
  color: #ffffff !important;
  text-decoration: underline;
}

#wpgmza_table_1 a:hover {
  color: #cccccc !important;
}
/* Style the DataTables label text */
.dataTables_wrapper label {
  color: #ffffff !important;
}

/* Style the dropdown (select) text */
.dataTables_wrapper select {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}

/* Style the search input field */
.dataTables_wrapper input[type="search"] {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}
