/* =========================================================
   MS Firma Rehberi
   ========================================================= */


/* =========================================================
   Firma Ekleme Formu
   ========================================================= */

.ms-fr-form-wrapper {
    max-width: 860px;
    margin: 0 auto 30px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.ms-fr-form h3 {
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 20px;
}

.ms-fr-field {
    margin-bottom: 16px;
}

.ms-fr-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.ms-fr-field label span {
    color: #dc2626;
}

.ms-fr-field input[type="text"],
.ms-fr-field input[type="url"],
.ms-fr-field input[type="email"],
.ms-fr-field select,
.ms-fr-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.ms-fr-field small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.ms-fr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ms-fr-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ms-fr-checkbox-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f9fafb;
    font-weight: 500;
    cursor: pointer;
}

.ms-fr-submit {
    margin-top: 24px;
}

.ms-fr-submit button {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ms-fr-alert {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
}

.ms-fr-alert p {
    margin: 0 0 6px;
}

.ms-fr-alert p:last-child {
    margin-bottom: 0;
}

.ms-fr-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.ms-fr-alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}


/* =========================================================
   Firma Listeleme Kartları
   ========================================================= */

.ms-fr-list-wrapper {
    width: 100%;
    margin: 20px 0 30px;
}

.ms-fr-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ms-fr-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ms-fr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ms-fr-card-image {
    display: block;
    height: 205px;
    overflow: hidden;
    background: #f3f4f6;
    text-decoration: none;
}

.ms-fr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.ms-fr-card:hover .ms-fr-card-image img {
    transform: scale(1.04);
}

.ms-fr-no-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
    color: #111827;
    font-size: 58px;
    font-weight: 800;
    text-transform: uppercase;
}

.ms-fr-card-body {
    padding: 18px;
}

.ms-fr-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.ms-fr-card-title a {
    color: #111827;
    text-decoration: none;
}

.ms-fr-card-title a:hover {
    color: #2563eb;
}

.ms-fr-card-info {
    margin: 0 0 16px;
}

.ms-fr-info-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.ms-fr-info-row strong {
    color: #111827;
    font-weight: 700;
    flex: 0 0 auto;
}

.ms-fr-info-row span {
    font-weight: 400;
}

.ms-fr-location-row {
    color: #4b5563;
}

.ms-fr-location-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.4;
}

.ms-fr-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 7px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ms-fr-detail-button:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.ms-fr-empty {
    padding: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
}

.ms-fr-load-more-wrap {
    margin-top: 26px;
    text-align: center;
}

.ms-fr-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-weight: 800;
    cursor: pointer;
}

.ms-fr-load-more-button:hover {
    background: #f3f4f6;
}

.ms-fr-load-more-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ms-fr-load-more-status {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   Firma Detay Sayfası
   ========================================================= */

.ms-fr-single {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 50px;
}

.ms-fr-gallery-section {
    margin: 0 0 24px;
}

.ms-fr-gallery-main {
    overflow: hidden;
    height: 430px;
    background: #f3f4f6;
    border-radius: 16px;
}

.ms-fr-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-fr-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ms-fr-gallery-thumb {
    overflow: hidden;
    height: 95px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f3f4f6;
    cursor: pointer;
}

.ms-fr-gallery-thumb.active {
    border-color: #16a34a;
}

.ms-fr-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-fr-header-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.ms-fr-logo-wrap {
    flex: 0 0 auto;
}

.ms-fr-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
}

.ms-fr-logo-placeholder {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    font-size: 36px;
    font-weight: 800;
}

.ms-fr-title-area h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.ms-fr-view-count {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.ms-fr-sector-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: #374151;
    font-size: 15px;
}

.ms-fr-sector-links strong {
    color: #111827;
}

.ms-fr-sector-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.ms-fr-sector-links a:hover {
    text-decoration: underline;
}

.ms-fr-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.ms-fr-section-card {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.ms-fr-section-card h2 {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 21px;
    font-weight: 800;
}

.ms-fr-description {
    padding: 22px;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.ms-fr-description p:first-child {
    margin-top: 0;
}

.ms-fr-description p:last-child {
    margin-bottom: 0;
}

.ms-fr-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    padding: 22px;
}

.ms-fr-feature-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #374151;
    font-size: 15px;
}

.ms-fr-feature-item span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 14px;
    font-weight: 800;
}

.ms-fr-side-column {
    position: sticky;
    top: 20px;
}

.ms-fr-contact-row {
    padding: 15px 22px;
    border-bottom: 1px solid #eef2f7;
}

.ms-fr-contact-row strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 14px;
}

.ms-fr-contact-row span,
.ms-fr-contact-row a {
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-word;
}

.ms-fr-contact-row a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.ms-fr-action-buttons {
    display: grid;
    gap: 10px;
    padding: 18px 22px 22px;
}

.ms-fr-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 9px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.ms-fr-action-btn:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.ms-fr-whatsapp-btn {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ms-fr-whatsapp-btn:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 992px) {
    .ms-fr-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-fr-content-grid {
        grid-template-columns: 1fr;
    }

    .ms-fr-side-column {
        position: static;
    }

    .ms-fr-gallery-main {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .ms-fr-form-wrapper {
        padding: 16px;
    }

    .ms-fr-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ms-fr-single {
        padding: 16px 12px 40px;
    }

    .ms-fr-gallery-main {
        height: 260px;
        border-radius: 12px;
    }

    .ms-fr-gallery-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
    }

    .ms-fr-gallery-thumb {
        min-width: 92px;
        height: 72px;
    }

    .ms-fr-header-card {
        align-items: flex-start;
        padding: 16px;
        border-radius: 12px;
    }

    .ms-fr-logo,
    .ms-fr-logo-placeholder {
        width: 66px;
        height: 66px;
    }

    .ms-fr-title-area h1 {
        font-size: 25px;
    }

    .ms-fr-section-card {
        border-radius: 12px;
    }

    .ms-fr-section-card h2 {
        padding: 15px 16px;
        font-size: 19px;
    }

    .ms-fr-description {
        padding: 16px;
        font-size: 15px;
    }

    .ms-fr-features-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ms-fr-contact-row {
        padding: 14px 16px;
    }

    .ms-fr-action-buttons {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .ms-fr-list-grid {
        grid-template-columns: 1fr;
    }

    .ms-fr-card-image {
        height: 220px;
    }
}