/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
/* MAIN GRID - 3 COLUMNS (SCOPED TO CLASS) */
.download-page-grid .elementor-shortcode {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .download-page-grid .elementor-shortcode {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .download-page-grid .elementor-shortcode {
    grid-template-columns: 1fr;
  }
}

/* REMOVE OLD FLOAT + WIDTH SYSTEM */
.sdm_fancy_template_wrapper,
.sdm_fancy2_grid,
.sdm_fancy2_item {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* REMOVE BORDER FROM OUTER ITEM */
.sdm_fancy2_item {
  border: none !important;
}

/* CARD */
.sdm_fancy2_wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;

  background: #ffffff;
  border-radius: 16px;
  padding: 18px;

  margin: 0 !important;
  border: none !important;

  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.25s ease;

  font-family: "Poppins", sans-serif;
}

/* HOVER */
.sdm_fancy2_wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* IMAGE PLACEHOLDER */
.sdm_fancy2_download_thumbnail {
  width: 100%;
  height: 160px;
  background: #f3f4f6;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

/* IMAGE */
.sdm_fancy2_download_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TITLE (FIXED HEIGHT) */
.sdm_fancy2_download_title {
  font-family: "Poppins", sans-serif !important;
  font-weight: 100;
  font-size: 16px;
  color: #222;
  margin: 12px 0;
  line-height: 1.4;

  white-space: normal !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 2.8em;
}

/* BUTTON ALIGNMENT */
.sdm_fancy2_download_link {
  margin-top: auto;
}

/* MODERN BUTTON */
.sdm_fancy2_download_dl_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  background: #f68b2c;
  color: #ffffff !important;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;

  border-radius: 8px;
  text-decoration: none;
  border: none !important;

  box-shadow: 0 4px 10px rgba(246, 139, 44, 0.25);
  transition: all 0.2s ease;
}

/* BUTTON HOVER */
.sdm_fancy2_download_dl_link:hover {
  background: #e57a1a;
  box-shadow: 0 6px 14px rgba(246, 139, 44, 0.35);
  transform: translateY(-1px);
}

/* BUTTON ACTIVE */
.sdm_fancy2_download_dl_link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(246, 139, 44, 0.2);
}

/* REMOVE FLOAT CLEAR BREAKS */
.sdm_clear_float {
  display: none !important;
}

/* FORCE PAGINATION TO FULL ROW */
.download-page-grid .sdm_pagination {
  grid-column: 1 / -1; /* span all columns */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* RESET DEFAULT STYLES */
.download-page-grid .sdm_pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  min-width: 40px;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;

  border-radius: 8px;
  text-decoration: none;

  background: #f68b2c;
  color: #fff;

  border: none;
  box-shadow: 0 4px 10px rgba(246, 139, 44, 0.25);

  transition: all 0.2s ease;
}

/* HOVER */
.download-page-grid .sdm_pagination .page-numbers:hover {
  background: #e57a1a;
  box-shadow: 0 6px 14px rgba(246, 139, 44, 0.35);
  transform: translateY(-1px);
}

/* CURRENT PAGE (ACTIVE) */
.download-page-grid .sdm_pagination .current {
  background: #222;
  color: #fff;
  box-shadow: none;
}

/* NEXT BUTTON (OPTIONAL ICON STYLE) */
.download-page-grid .sdm_pagination .next {
  font-weight: 600;
}

/* ============================================================
   SINGLE LOCATION PAGE STYLING (.geomywp-stations-single)
============================================================ */

/* 1. Base Container */
.geomywp-stations-single .gmw-sl-wrapper {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
	text-align:center;
}


/* 2. Red Header Section */
.geomywp-stations-single .gmw-sl-title-wrapper {
    background: #b92c2c;
    padding: 45px 25px 25px;
    margin: 0;
}

.geomywp-stations-single .gmw-sl-title {
    margin: 0 !important;
}

.geomywp-stations-single .gmw-sl-title a {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    text-decoration: none;
    line-height: 1.3;
    text-wrap: balance;
    display: block;
    text-align: center;
}

/* 3. Address Styling (Under Title) */
.geomywp-stations-single .gmw-sl-address {
    padding: 20px 25px 10px;
    font-size: 15px;
}

.geomywp-stations-single .gmw-sl-address i {
    display: none; /* Hide default icon */
}

.geomywp-stations-single .gmw-sl-address a {
    color: #444;
    text-decoration: none;
}

/* 4. Map Wrapper */
.geomywp-stations-single .gmw-sl-map-wrapper {
    padding: 0 25px;
    margin: 15px 0;
}

.geomywp-stations-single .gmw-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* Hours of Operation - injected above distance */
.geomywp-stations-single .gmw-hours-injected {
    padding: 10px 25px 5px 45px !important;
    font-size: 13px;
    color: #444;
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

.geomywp-stations-single .gmw-hours-injected ul,
.geomywp-stations-single .gmw-hours-injected li {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 5. Distance Display */
.geomywp-stations-single .gmw-sl-distance {
    padding: 0 25px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.geomywp-stations-single .gmw-sl-distance i {
    color: #b92c2c;
    margin-right: 5px;
}

/* 6. Contact Information (Consistent with Cards) */
.geomywp-stations-single .gmw-sl-location-metas {
    padding: 15px 25px;
    background: #fdfdfd;
    margin: 0 25px 20px;
    border-radius: 8px;
}

.geomywp-stations-single .gmw-location-meta .label {
    display: none !important; /* Hide "phone:", "email:", etc */
}

.geomywp-stations-single .gmw-location-meta li {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 14px;
}


/* Website and Email smaller font */
.geomywp-stations-single .gmw-location-meta li.email,
.geomywp-stations-single .gmw-location-meta li.website {
    font-size: 12px;
}

.geomywp-stations-single .gmw-location-meta .info a {
    color: #b92c2c !important;
    text-decoration: none;
    font-weight: 500;
    overflow-wrap: break-word;
}

/* 7. Get Directions Button Styling */
.geomywp-stations-single .gmw-sl-directions-link-wrapper {
    padding: 0 25px 30px;
}

.geomywp-stations-single .trigger-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.geomywp-stations-single .trigger-wrapper i {
    display: none; /* Hide icon to match card button style */
}

.geomywp-stations-single a.form-trigger {
    display: block;
    width: 100%;
    text-align: center;
    background: #1f2328;
    color: #ffffff !important;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
}

.geomywp-stations-single a.form-trigger:hover {
    background: #b92c2c;
}

/* 8. Directions Form (Internal Styling) */
.geomywp-stations-single .directions-link-form-wrapper {
    margin-top: 15px;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 6px;
}

.geomywp-stations-single .address-field-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.geomywp-stations-single .origin-field {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.geomywp-stations-single .get-directions-link-submit {
    color: #b92c2c;
    font-size: 20px;
    text-decoration: none;
}

/* Fix "Distance:" label color to match mileage */
.geomywp-stations-single .gmw-sl-distance .label {
    color: #666;
}