.immomakler .panel-default > .panel-heading {
    background: #E5E5E5;
}

.gmig-title-section {
    display: flex;
    justify-content: center;
    margin: 0;
}

.gmig-title-container {
    width: 100%;
    max-width: 560px;
}

.gmig-title-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.gmig-title-line-1 {
    background: #006B86;
    padding: 8px 14px;
    margin-bottom: 12px;
    transform: rotate(-2deg);
    font-size: 18px;
}

.gmig-title-line-2 {
    background: #56A7BC;
    padding: 10px 14px;
    transform: rotate(-1.5deg);
    font-size: 16px;
    margin-left: 14px;
}

@media (min-width: 768px) {
    .gmig-title-section {
        display: flex !important;
        justify-content: center !important;
        margin: 0 62px;
        align-items: center !important;
        flex-direction: column !important;
    }

    .gmig-title-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gmig-title-line-1,
    .gmig-title-line-2 {
        text-align: center;
    }

    .gmig-title-line-2 {
        margin-left: 20px;
    }
}

/*-------------*/
/* content.php */
/*-------------*/

.gmig-property-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
}

.gmig-property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: start;
}

.gmig-property-content {
    min-width: 0;
}

.gmig-property-sidebar {
    position: sticky;
    top: 32px;
    align-self: start;
}

.gmig-property-sidebar .custom-contact-box {
    width: 100%;
}

@media (max-width: 992px) {
    .gmig-property-layout {
        grid-template-columns: 1fr;
    }

    .gmig-property-sidebar {
        position: static;
    }
}

.gmig-property-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

.gmig-property-hero {
    padding: 20px 0 40px;
    background: linear-gradient(
            180deg,
            #6FA9B8 0%,
            #7EB4C2 20%,
            #95C2CC 40%,
            #AFCFD6 60%,
            #C7DEE3 75%,
            #DDEBED 88%,
            #E6EFF1 95%,
            #EFEFEF 100%
    );
}

.gmig-property-hero-inner,
.gmig-property-main-inner {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

.gmig-property-main {
    background: #efefef;
    padding-bottom: 36px;
}

.gmig-property-main-inner {
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

/*----------------------*/
/* global panel styling */
/*----------------------*/

.gmig-property-main .panel.panel-default {
    border: 0;
    border-radius: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    margin: 0 22px 22px;
    background: #f7f7f7;
}

.gmig-property-main .panel.panel-default > .panel-heading {
    background: #E5E5E5;
    border: 0;
    min-height: 60px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
}

.gmig-property-main .panel.panel-default > .panel-heading h2,
.gmig-property-main .panel.panel-default > .panel-heading h3,
.gmig-property-main .panel.panel-default > .panel-heading h4 {
    margin: 0;
    color: #007491;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.gmig-property-main .panel.panel-default > .panel-body {
    background: #f7f7f7;
    padding: 14px 18px 14px;
    color: #007491;
}

.gmig-property-main .panel.panel-default .panel-body p,
.gmig-property-main .panel.panel-default .panel-body li,
.gmig-property-main .panel.panel-default .panel-body div,
.gmig-property-main .panel.panel-default .panel-body span,
.gmig-property-main .panel.panel-default .panel-body td,
.gmig-property-main .panel.panel-default .panel-body th {
    color: #007491;
}

/* links inside standard panels */
.gmig-property-main .panel.panel-default a,
.gmig-property-main .panel.panel-default a:visited {
    color: #007491;
    text-decoration: none;
}

.gmig-property-main .panel.panel-default a:hover,
.gmig-property-main .panel.panel-default a:focus {
    color: #00657e;
    text-decoration: underline;
}

/*-------------*/
/* data-property.php */
/*-------------*/

.property-details.panel.panel-default {
    background: #f7f7f7;
}

/* custom top header */
.gmig-property-meta-header {
    background: #E5E5E5;
    min-height: 60px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gmig-property-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.gmig-meta-location-icon {
    width: 26px;
    height: 26px;
    color: #007491;
    flex: 0 0 26px;
}

.gmig-meta-location-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gmig-meta-location-text {
    min-width: 0;
}

.gmig-meta-address,
.gmig-meta-type {
    color: #007491;
    line-height: 1.15;
    font-weight: 700;
    font-size: 13px;
}

.gmig-meta-type {
    margin-top: 2px;
}

.gmig-property-meta-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.gmig-object-id-box {
    border: 2px solid #007491;
    height: 28px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
}

.gmig-object-id-icon {
    width: 14px;
    height: 14px;
    color: #007491;
    flex: 0 0 14px;
}

.gmig-object-id-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gmig-object-id-value {
    color: #007491;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.gmig-object-id-label {
    color: #007491;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.property-details .panel-heading {
    display: none;
}

.property-details .list-group {
    margin: 0;
    padding: 18px 0 12px;
    background: #f7f7f7;
}

.property-details .list-group-item {
    border: 0;
    background: #f7f7f7;
    padding: 0;
}

.property-details .list-group-item:first-child {
    border-top: 0;
}

.property-details .list-group-item .row {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.property-details .dt,
.property-details .dd {
    float: none;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 16px;
    padding-right: 16px;
    color: #007491;
    font-size: 14px;
    line-height: 1.35;
}

.property-details .dt {
    width: 46%;
    font-weight: 400;
    opacity: 0.95;
}

.property-details .dd {
    width: 54%;
    font-weight: 400;
    text-align: left;
}

.property-details .dd a,
.property-details .dd a:visited {
    color: #007491;
    text-decoration: none;
}

.property-details .dd a:hover,
.property-details .dd a:focus {
    color: #00657e;
    text-decoration: underline;
}

.property-details .row.price .dt,
.property-details .row.price .dd {
    color: #007491;
    font-weight: 400;
}

.property-details .list-group-item:last-child {
    padding-bottom: 10px;
}

/*--------------------*/
/* feature-property.php */
/*--------------------*/

.property-features.panel.panel-default {
    background: #f7f7f7;
}

.property-features .panel-heading {
    background: #E5E5E5;
}

.property-features .panel-heading h2 {
    margin: 0;
    color: #007491;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.property-features .panel-body {
    padding: 14px 18px 14px;
    background: #f7f7f7;
}

.property-features .list-group {
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 4px;
}

.property-features .list-group-item {
    border: 0;
    background: transparent;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007491;
    font-size: 12px;
    line-height: 1.3;
    width: calc(50% - 10px);
    min-width: 120px;
}

.gmig-feature-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gmig-feature-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: #44b649;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gmig-feature-text {
    color: #007491;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
}

/*--------------------*/
/* other panel content */
/*--------------------*/

/* description text */
.property-description .panel-body,
.property-location .panel-body,
.property-epass .panel-body,
.property-attachments .panel-body {
    font-size: 12px;
    line-height: 1.7;
}

/* map image spacing */
.property-location .panel-body img,
.property-epass .panel-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
}

/* tables inside panels */
.gmig-property-main .panel table {
    width: 100%;
    border-collapse: collapse;
}

.gmig-property-main .panel table td,
.gmig-property-main .panel table th {
    color: #007491;
    font-size: 12px;
    line-height: 1.5;
    padding: 6px 8px;
    border: 0;
}

/*-------------*/
/* mobile */
/*-------------*/

@media (max-width: 767px) {
    .gmig-property-main .panel.panel-default {
        margin: 0 22px 22px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    }

    .gmig-property-main .panel.panel-default > .panel-heading {
        min-height: 60px;
        padding: 12px 14px;
    }

    .gmig-property-main .panel.panel-default > .panel-heading h2,
    .gmig-property-main .panel.panel-default > .panel-heading h3,
    .gmig-property-main .panel.panel-default > .panel-heading h4 {
        font-size: 13px;
    }

    .gmig-property-main .panel.panel-default > .panel-body {
        padding: 12px 14px 12px;
    }

    .gmig-property-meta-header {
        padding: 12px 14px;
        min-height: 60px;
        gap: 10px;
    }

    .gmig-meta-location-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .gmig-meta-address,
    .gmig-meta-type {
        font-size: 13px;
    }

    .gmig-object-id-box {
        height: 28px;
        padding: 0 5px;
    }

    .gmig-object-id-value {
        font-size: 10px;
    }

    .gmig-object-id-label {
        font-size: 9px;
    }

    .property-details .dt,
    .property-details .dd {
        padding-top: 6px;
        padding-bottom: 6px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 14px;
    }

    .property-details .dt {
        width: 46%;
    }

    .property-details .dd {
        width: 54%;
    }

    .property-features .panel-body {
        padding: 12px 14px 12px;
    }

    .property-features .list-group {
        column-gap: 20px;
        row-gap: 4px;
    }

    .property-features .list-group-item {
        width: calc(50% - 10px);
        min-width: 120px;
        font-size: 12px;
        gap: 8px;
    }

    .gmig-feature-text {
        font-size: 12px;
    }
}

/*--------------------*/
/* gallery-galleria.php */
/*--------------------*/

#immomakler-galleria .galleria-thumbnails-container,
#immomakler-galleria .galleria-carousel {
    display: none !important;
}

#immomakler-galleria .galleria-stage {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
}

#immomakler-galleria .galleria-images,
#immomakler-galleria .galleria-image,
#immomakler-galleria .galleria-stage .galleria-image img {
    height: 100% !important;
}

#immomakler-galleria .galleria-stage .galleria-image img {
    object-fit: cover;
}

/*--------------------*/
/* contact-property.php */
/*--------------------*/

.custom-contact-box {
    max-width: 455px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    font-family: inherit;
    overflow: hidden;
}

.custom-contact-box span,
.custom-contact-box a {
    font-size: 14px;
}

.custom-contact-title {
    background: #e5e5e5;
    color: #00657e;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    padding: 14px 52px;
}

.custom-contact-content {
    padding: 16px;
}

.custom-contact-main {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 22px;
    align-items: start;
}

.custom-contact-left {
    color: #00657e;
    font-size: 16px;
    padding-top: 16px;
}

.custom-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #00657e;
}

.custom-contact-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
}

.custom-contact-location-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.custom-contact-person-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.custom-contact-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.custom-contact-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.custom-contact-text p {
    margin: 0;
    line-height: 1.25;
    font-size: 14px;
}

.custom-contact-address-row {
    margin-bottom: 28px;
}

.custom-contact-phone {
    align-items: center;
    margin-bottom: 34px;
}

.custom-contact-person {
    align-items: center;
    margin-bottom: 34px;
}

.custom-contact-box a {
    color: #00657e;
    text-decoration: none;
}

.custom-contact-button {
    display: inline-block;
    width: fit-content;
    background: #428fa4 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 18px !important;
    line-height: 1;
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.custom-contact-right {
    display: flex;
    justify-content: flex-end;
}

.custom-contact-image-frame {
    width: 150px;
    height: 190px;
    background: #428fa4;
    border-radius: 4px;
    overflow: hidden;
    padding: 8px;
}

.custom-contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #fff;
}

.custom-contact-email {
    align-items: center;
    margin-top: 20px;
}

.custom-contact-email a {
    color: #00657e;
    font-size: 16px;
    line-height: 1.2;
}

.mobile-contact-toggle {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --contact-flyout-width: min(81vw, 360px);
        --contact-toggle-width: 96px;
        --contact-toggle-overlap: 0px;
    }

    .custom-contact-box {
        position: fixed;
        top: 180px;
        left: 0;
        z-index: 9999;
        width: var(--contact-flyout-width);
        max-width: var(--contact-flyout-width);
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .custom-contact-box.is-open {
        transform: translateX(0);
    }

    .mobile-contact-toggle {
        display: flex;
        position: fixed;
        top: 210px;
        left: 0;
        z-index: 10000;
        width: var(--contact-toggle-width);
        height: 96px;
        background: #00657e;
        border-radius: 0 48px 48px 0;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0,0,0,.25);
        cursor: pointer;
        transform: translateX(0);
        transition: transform .3s ease;
    }

    .mobile-contact-toggle.is-open {
        transform: translateX(calc(var(--contact-flyout-width) - var(--contact-toggle-overlap)));
    }

    .mobile-contact-toggle img {
        width: 72px;
        height: 72px;
        border-radius: 999px;
        object-fit: cover;
        border: 3px solid #fff;
    }

    .mobile-contact-toggle span {
        position: absolute;
        right: 20px;
        width: 18px;
        height: 18px;
        border-top: 4px solid #428fa4;
        border-right: 4px solid #428fa4;
        transform: rotate(45deg);
        transition: transform .3s ease;
    }

    .mobile-contact-toggle.is-open span {
        transform: rotate(225deg);
    }

    .custom-contact-title {
        padding: 12px 32px;
        font-size: 20px;
    }

    .custom-contact-content {
        padding: 16px;
    }

    .custom-contact-main {
        grid-template-columns: 1fr 120px;
        gap: 14px;
    }

    .custom-contact-left {
        padding-top: 8px;
    }

    .custom-contact-image-frame {
        width: 120px;
        height: 150px;
        padding: 7px;
    }

    .custom-contact-address-row {
        margin-bottom: 20px;
    }

    .custom-contact-phone {
        margin-bottom: 24px;
    }

    .custom-contact-person {
        margin-bottom: 24px;
    }

    .custom-contact-email {
        margin-top: 16px;
    }
}

@media (max-width: 420px) {
    :root {
        --contact-flyout-width: min(81vw, 335px);
    }

    .custom-contact-main {
        grid-template-columns: 1fr 105px;
    }

    .custom-contact-image-frame {
        width: 105px;
        height: 135px;
    }
}

/*--------------------*/
/* detail-card-property.php */
/*--------------------*/

.gmig-property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gmig-property-detail-card {
    background: #f3f3f3;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    color: #00657e;
    font-size: 14px;
}

.gmig-property-detail-image {
    display: block;
    width: calc(100% - 32px);
    height: 205px;
    object-fit: cover;
    margin: 16px auto 0;
}

.gmig-property-detail-body {
    padding: 8px 16px 24px;
}

.gmig-property-detail-title {
    margin: 0 0 8px;
    line-height: 1.2;
}

.gmig-property-detail-location {
    margin: 0 0 16px;
    color: #00657e;
    font-size: 15px;
    font-weight: 700;
}

.gmig-property-detail-facts {
    display: grid;
    gap: 2px;
}

.gmig-property-detail-facts div {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 4px;
}

.gmig-property-detail-facts span,
.gmig-property-detail-facts strong {
    font-size: 14px;
    line-height: 1.2;
}

.gmig-property-detail-facts strong {
    font-weight: 400;
}

@media (max-width: 480px) {
    .gmig-property-detail-card {
        display: none;
    }
}