/**
 * Component Styles: Company Info - Profile
 *
 * Styles for the company profile section with Google Map and information table.
 *
 * @package RIKAI_Marketing
 * @since 1.0.0
 */

/* ==========================================================================
   Google Map
   ========================================================================== */

.company-profile--map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.company-profile--map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 500px;
    border: none !important;
    display: block;
}

/* Fallback for iframes without absolute positioning */
.company-profile--map > iframe:only-child {
    position: relative;
}

.company-profile--map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
}

/* ==========================================================================
   Profile Information Table
   ========================================================================== */

.company-profile--table {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.company-profile--row {
    display: flex;
}

.company-profile--row:last-child {
    border-bottom: none;
}

.company-profile--label {
    flex: 0 0 160px;
    padding: 8px 24px;
    font-weight: 700;
    color: var(--primary-color, #3390d6);
    border-bottom: 1px solid var(--primary-color);
}

.company-profile--content {
    flex: 1;
    padding: 8px 24px;
    color: var(--rikai-text-color, #333);
    line-height: 1.8;
    border-bottom: 1px solid var(--secondary-border-color);
}

/* ==========================================================================
   Business List
   ========================================================================== */

.company-profile--business-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-profile--business-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.company-profile--business-list li:last-child {
    margin-bottom: 0;
}

.company-profile--business-list li::before {
    content: "●";
    position: absolute;
    top: -1px;
    left: 0;
    color: var(--secondary-color, #3390d6);
    font-size: 18px;
    line-height: 1.8;
}

/* ==========================================================================
   Locations
   ========================================================================== */

.company-profile--location {
    margin-bottom: 16px;
}

.company-profile--location:last-child {
    margin-bottom: 0;
}

.company-profile--location-title {
    display: block;
    font-weight: 700;
    color: var(--rikai-heading-color, #333);
    margin-bottom: 4px;
}

.company-profile--location-address {
    color: var(--rikai-text-color, #666);
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .company-profile--map {
        min-height: 400px;
    }

    .company-profile--map iframe {
        min-height: 400px !important;
    }

    .company-profile--label {
        flex: 0 0 140px;
        font-size: 14px;
        padding: 16px 20px;
    }

    .company-profile--content {
        padding: 16px 20px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .company-profile--map {
        min-height: 300px;
        margin-bottom: 32px;
    }

    .company-profile--map iframe {
        min-height: 300px !important;
        position: relative !important;
    }

    .company-profile--label {
        flex: 0 0 90px;
        border-right: none;
        padding: 14px 16px;
        white-space: nowrap;
    }

    .company-profile--content {
        padding: 14px 16px;
    }

    .company-profile--business-list li {
        padding-left: 16px;
        margin-bottom: 6px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .company-profile--label {
        padding: 12px 14px;
    }

    .company-profile--content {
        padding: 12px 14px;
    }
}
