/* WP Store Locator - Single Store Page Styles */

/* Target only the single store page */
.single-wpsl_stores {
    /* Base styles for the single page */
}

.single-wpsl_stores article .wpsl-gmap-canvas {
   display: none !important;
}

/* Featured image styling */
.single-wpsl_stores .wpsl-store-featured-image {
    margin-bottom: 20px;
    text-align: center;
}

.single-wpsl_stores .wpsl-store-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Main article container */
.single-wpsl_stores article {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Store title header */
.single-wpsl_stores .entry-header {
    background-color: var(--ast-global-color-2);
    padding: 20px 25px;
    margin-bottom: 0;
}

.single-wpsl_stores .entry-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Content area */
.single-wpsl_stores .entry-content {
    padding: 25px;
}

/* Store details wrapper */
.single-wpsl_stores .wpsl-locations-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

/* Store name in details */
.single-wpsl_stores .wpsl-locations-details > span strong {
    display: none; /* Hide the duplicate title */
}

/* Address container */
.single-wpsl_stores .wpsl-location-address {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 20px 20px 60px;
    border-radius: 4px;
    background-color: #fff;
    border-left: 4px solid var(--ast-global-color-2);
}

/* Address icon */
.single-wpsl_stores .wpsl-location-address:before {
    content: "\f3c5"; /* Map marker icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--ast-global-color-2);
}

/* Address lines */
.single-wpsl_stores .wpsl-location-address span {
    display: inline-block;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
	padding-right: 5px;
}

/* Contact details section */
.single-wpsl_stores .wpsl-contact-details {
    position: relative;
    padding: 20px 20px 20px 60px;
    margin-top: 20px;
    border-radius: 4px;
    background-color: #fff;
    border-left: 4px solid var(--ast-global-color-2);
}

/* Phone icon */
.single-wpsl_stores .wpsl-contact-details:before {
    content: "\f2b9"; /* Phone icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--ast-global-color-2);
}

/* Contact labels - make both Téléphone and Lien bold */
.single-wpsl_stores .wpsl-contact-details {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Reset font weight for spans and links */
.single-wpsl_stores .wpsl-contact-details span,
.single-wpsl_stores .wpsl-contact-details a {
    font-weight: normal;
}

/* Phone number */
.single-wpsl_stores .wpsl-contact-details span {
    display: inline-block;
}

/* Style phone link */
.single-wpsl_stores .wpsl-contact-details a {
    color: var(--ast-global-color-2);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.single-wpsl_stores .wpsl-contact-details a:hover {
    color: var(--ast-global-color-0);
}

/* Phone link icon */
.single-wpsl_stores .wpsl-contact-details a:before {
    content: "\f095"; /* Phone icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 14px;
    vertical-align: middle;
    display: none; /* Hidden by default as we have a parent icon */
}

/* Gravity Form Container */
.single-wpsl_stores .wpsl-gravity-form-container {
    background-color: #f8f8f8;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid var(--ast-global-color-2);
}

/* Gravity Form Title */
.single-wpsl_stores .wpsl-gravity-form-container h3,
.single-wpsl_stores .wpsl-gravity-form-container h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ast-global-color-2);
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.single-wpsl_stores .gform-footer.gform_footer {
	margin: 0 !important;
	padding: 0 !important;
}

/* Add icon to form header */
.single-wpsl_stores .wpsl-gravity-form-container h3:before,
.single-wpsl_stores .wpsl-gravity-form-container h4:before {
    content: "\f0e0"; /* Envelope icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 20px;
}

/* Gravity Form Styling */
.single-wpsl_stores .gform_wrapper form {
    margin-top: 0;
}

/* Form Fields */
.single-wpsl_stores .gform_wrapper .gfield {
    margin-bottom: 20px;
}

/* Labels */
.single-wpsl_stores .gform_wrapper .gfield_label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Required indicator */
.single-wpsl_stores .gform_wrapper .gfield_required {
    color: var(--ast-global-color-2);
}

/* Text inputs */
.single-wpsl_stores .gform_wrapper input[type="text"],
.single-wpsl_stores .gform_wrapper input[type="email"],
.single-wpsl_stores .gform_wrapper input[type="tel"],
.single-wpsl_stores .gform_wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    background-color: #fff;
    transition: all 0.3s ease;
}

.single-wpsl_stores .gform_wrapper input[type="text"]:focus,
.single-wpsl_stores .gform_wrapper input[type="email"]:focus,
.single-wpsl_stores .gform_wrapper input[type="tel"]:focus,
.single-wpsl_stores .gform_wrapper textarea:focus {
    border-color: var(--ast-global-color-2);
    box-shadow: 0 0 0 3px rgba(var(--ast-global-color-2-rgb), 0.1);
    outline: none;
}

/* Textarea height */
.single-wpsl_stores .gform_wrapper textarea {
    height: 140px;
    resize: vertical;
}

/* Submit button */
.single-wpsl_stores .gform_wrapper .gform_footer {
    padding-top: 10px;
    margin-top: 0;
    text-align: right;
}

.single-wpsl_stores .gform_wrapper .gform_footer input[type="submit"] {
    background-color: var(--ast-global-color-2);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Add icon to submit button */
.single-wpsl_stores .gform_wrapper .gform_footer input[type="submit"]:before {
    content: "\f1d8"; /* Paper plane icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.single-wpsl_stores .gform_wrapper .gform_footer input[type="submit"]:hover {
    background-color: var(--ast-global-color-1);
    color: var(--ast-global-color-0);
    background: var(--ast-global-color-3);
}

/* Custom Category Styling */
.single-wpsl_stores .wpsl-street.category {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    font-style: italic;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
}


.wpsl-back-to-stores {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.wpsl-back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.wpsl-back-button:hover {
	color: var(--ast-global-color-2);
    text-decoration: none;
}

.wpsl-back-arrow {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-wpsl_stores .entry-header {
        padding: 15px 20px;
    }
    
    .single-wpsl_stores .entry-title {
        font-size: 22px;
    }
    
    .single-wpsl_stores .entry-content {
        padding: 20px 15px;
    }
    
    .single-wpsl_stores .wpsl-location-address,
    .single-wpsl_stores .wpsl-contact-details {
        padding: 15px 15px 15px 50px;
    }
    
    .single-wpsl_stores .wpsl-location-address:before,
    .single-wpsl_stores .wpsl-contact-details:before {
        left: 15px;
        font-size: 20px;
    }
    
    .single-wpsl_stores .wpsl-gravity-form-container {
        padding: 20px 15px;
    }
}