/**
 * Location Display CSS
 * Styles for single location display template matching mockup design
 *
 * @package WP_Company_Manager
 * @category Styles
 * @author WebFX
 * @license GPL-2.0+
 * @link https://www.webfx.com
 */

/* Single Location Container */
.wpcm-single-location-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 20px;
}

/* 50/50 Split Layout */
.wpcm-location-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Left Side - Map Section */
.wpcm-location-map-section {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.wpcm-single-map {
    width: 100%;
    height: 450px;
    border: none;
}

.wpcm-map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

/* Right Side - Details Section */
.wpcm-location-details-section {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Business Information */
.wpcm-business-info {
    padding-bottom: 20px;
    display: flex;
    justify-content: space-around;
    margin-top: 110px;
    width: 100%;
}

.wpcm-business-name {
    font-size: 32px;
    font-weight: 600 !important;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.wpcm-business-address {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcm-business-address i {
    color: #bb242c;
    font-size: 18px;
}

.wpcm-directions-link {
    margin-top: 15px;
}

/* Service Areas */
.wpcm-service-areas h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #bb242c;
    padding-bottom: 8px;
}

.wpcm-areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wpcm-areas-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpcm-area-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #495057;
    padding: 5px 0;
}

.wpcm-area-item i {
    color: #bb242c;
    font-size: 15px;
    flex-shrink: 0;
}

/* Business Hours */
.wpcm-business-hours h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    border-bottom: none;
    padding-bottom: 8px;
}

.wpcm-hours-table {
    background: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.wpcm-hours-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.wpcm-hours-row:last-child {
    border-bottom: none;
}

.wpcm-hours-row:nth-child(odd) {
    background: #ffffff;
}

.wpcm-hours-row:nth-child(even) {
    background: #f8f9fa;
}

.wpcm-day {
    font-weight: 400;
    color: #495057;
    font-size: 14px;
    padding-inline: 16px;
    padding-block: 12px;
    border-right: 1px solid #dee2e6;
}

.wpcm-hours {
    color: #6c757d;
    font-size: 14px;
    padding-inline: 16px;
    padding-block: 12px;
}

/* ACF Hours Content Styling */
.wpcm-hours-content {
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 16px;
    line-height: 1.6;
}

.wpcm-hours-content p {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.wpcm-hours-content p:last-child {
    margin-bottom: 0;
}

/* Map Info Window Styling */
.wpcm-map-info-window {
    padding: 10px;
    min-width: 200px;
}

.wpcm-map-info-window h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.wpcm-map-info-window p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #6c757d;
}

.wpcm-map-info-window a {
    color: #007bff;
    text-decoration: none;
}

.wpcm-map-info-window a:hover {
    text-decoration: underline;
}

.wpcm-business-info__item--contact {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 32px;
}

.wpcm-business-info__item-item {
    width: 292px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    flex-grow: 1;
    flex-shrink: 0;
    position: relative;
}

.wpcm-business-info__item-item-icon {
    border-radius: 10px;
    background: #bb242c;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.03);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
}

.wpcm-business-info__item-item-text {
    background-color: #fff;
    padding: 60px 30px 20px;
    text-align: center;
    width: 292px;
    min-height: 122px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .wpcm-location-split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wpcm-single-map {
        height: 400px;
    }

    .wpcm-areas-grid {
        grid-template-columns: 1fr;
    }

    .wpcm-single-location-container {
        margin: 0 10px;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .wpcm-business-name {
        font-size: 24px;
    }

    .wpcm-location-details-section {
        padding: 10px;
        gap: 20px;
    }

    .wpcm-hours-row {
        padding: 10px 12px;
    }
}

/* Avada Theme Compatibility */
.fusion-body .wpcm-single-location-container {
    font-family: inherit;
}

.fusion-body .wpcm-business-name {
    font-family: inherit;
}

.fusion-body .wpcm-service-areas h3,
.fusion-body .wpcm-business-hours h3 {
    font-family: inherit;
}

/* Override Avada default styles if needed */
.fusion-body .wpcm-location-split-layout * {
    box-sizing: border-box;
}

.wpcm-action-btn {
    padding: 2px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 185.714% */
    text-transform: uppercase;
}

.wpcm-details-btn {
    background: #22366f;
    color: white !important;
}

.wpcm-details-btn:hover {
    background: #a01e25;
    color: white !important;
    text-decoration: none !important;
}
