.egb-property,
.egb-listings-wrap,
.egb-calendar-wrap {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
    color: #0d1d3a;
    box-sizing: border-box;
}

.egb-property *,
.egb-listings-wrap *,
.egb-calendar-wrap * {
    box-sizing: border-box;
}

.egb-hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 36px;
}

.egb-main-photo {
    position: relative;
    min-height: 460px;
    border-radius: 22px;
    overflow: hidden;
    background: #f3f3f3;
}

.egb-main-photo img,
.egb-small-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.egb-hero-overlay {
    position: absolute;
    left: 28px;
    bottom: 28px;
    background: rgba(0,0,0,.45);
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    max-width: 78%;
}

.egb-hero-overlay h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 32px;
    line-height: 1.1;
}

.egb-hero-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: .95;
}

.egb-photo-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 18px;
}

.egb-small-photo {
    border-radius: 18px;
    overflow: hidden;
    background: #f3f3f3;
    min-height: 140px;
}

.egb-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: start;
}

.egb-breadcrumb {
    font-size: 13px;
    color: #8b98aa;
    margin-bottom: 18px;
}

.egb-property-main h2 {
    margin: 0 0 18px;
    font-size: 30px;
    color: #0d1d3a;
}

.egb-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 0 28px;
    border-bottom: 1px solid #e6e8ee;
    margin-bottom: 28px;
}

.egb-fact {
    min-width: 115px;
    padding: 14px;
    border: 1px solid #e6e8ee;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.egb-fact strong {
    display: block;
    font-size: 20px;
    color: #0d1d3a;
}

.egb-fact span {
    font-size: 12px;
    color: #6e7b90;
}

.egb-section {
    padding: 10px 0 28px;
    border-bottom: 1px solid #e6e8ee;
    margin-bottom: 24px;
}

.egb-section h3 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #0d1d3a;
}

.egb-section h4 {
    margin: 22px 0 8px;
    color: #0d1d3a;
}

.egb-section p,
.egb-description {
    line-height: 1.65;
    color: #33415c;
}

.egb-muted {
    color: #768296 !important;
    font-size: 13px;
}

.egb-price {
    font-size: 22px;
    font-weight: 700;
}

.egb-amenities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.egb-amenity {
    padding: 12px;
    background: #f8f9fb;
    border-radius: 12px;
    font-size: 14px;
    color: #465065;
}

.egb-detail-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.egb-detail-row div {
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.egb-detail-row strong,
.egb-detail-row span {
    display: block;
}

.egb-detail-row span {
    color: #6e7b90;
    margin-top: 5px;
}

.egb-property-sidebar {
    position: relative;
}

.egb-booking-box {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid #e3e5eb;
    box-shadow: 0 14px 38px rgba(20, 30, 50, .09);
    border-radius: 18px;
    padding: 22px;
}

.egb-booking-box h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #0d1d3a;
}

.egb-booking-box h4 {
    margin: 22px 0 14px;
    font-size: 16px;
    color: #0d1d3a;
}

.egb-booking-box label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #657084;
}

.egb-booking-box input,
.egb-booking-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.egb-booking-box button {
    width: 100%;
    border: none;
    background: #e60000;
    color: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.egb-booking-box button:hover {
    opacity: .9;
}

.egb-quote-result,
.egb-inquiry-result {
    margin-top: 16px;
    padding: 14px;
    background: #f8f9fb;
    border-radius: 10px;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 480px;
    overflow: auto;
}

.egb-admin-note {
    padding: 10px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #ffd48a;
    font-size: 12px;
}

.egb-map-placeholder {
    background: #f3f5f8;
    border: 1px solid #e0e5ee;
    border-radius: 16px;
    min-height: 180px;
    padding: 24px;
}

.egb-json {
    white-space: pre-wrap;
    font-size: 12px;
    background: #f6f7f9;
    padding: 16px;
    border-radius: 12px;
    overflow: auto;
    max-height: 600px;
}

.egb-error {
    max-width: 980px;
    margin: 30px auto;
    padding: 18px;
    background: #fff2f2;
    border: 1px solid #ffcccc;
    border-radius: 12px;
    color: #900;
}

.egb-warning {
    padding: 16px;
    background: #fff7e6;
    border: 1px solid #ffd48a;
    border-radius: 10px;
    color: #614300;
}

.egb-listings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.egb-listings-table th,
.egb-listings-table td {
    border-bottom: 1px solid #e8ebf2;
    padding: 12px;
    text-align: left;
}

.egb-listings-table th {
    background: #f7f8fb;
}

.egb-listings-table code {
    background: #f4f6fa;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
}

.egb-details {
    margin-top: 24px;
}

.egb-calendar-wrap {
    padding: 0;
    margin: 0;
}

.egb-calendar-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #657084;
}

.egb-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 99px;
    margin-right: 6px;
}

.egb-dot-available {
    background: #2fd88f;
}

.egb-dot-unavailable {
    background: #d7dce5;
}

.egb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.egb-month {
    border: 1px solid #e3e7ef;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.egb-month h4 {
    margin: 0 0 12px;
    text-align: center;
}

.egb-weekdays,
.egb-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.egb-weekdays span {
    font-size: 11px;
    color: #8b98aa;
    text-align: center;
}

.egb-day {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    font-size: 12px;
    display: grid;
    place-items: center;
    background: #f4f6fa;
    color: #657084;
}

.egb-day.egb-available {
    background: #2fd88f;
    color: #073b28;
}

.egb-day.egb-unavailable {
    background: #eef1f6;
    color: #b0bac9;
}

.egb-day.egb-empty {
    background: transparent;
}

@media (max-width: 900px) {
    .egb-hero-gallery,
    .egb-content-layout {
        grid-template-columns: 1fr;
    }

    .egb-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: none;
    }

    .egb-main-photo {
        min-height: 320px;
    }

    .egb-amenities {
        grid-template-columns: 1fr 1fr;
    }

    .egb-detail-row {
        grid-template-columns: 1fr 1fr;
    }

    .egb-calendar-grid {
        grid-template-columns: 1fr;
    }

    .egb-booking-box {
        position: static;
    }
}

@media (max-width: 600px) {
    .egb-amenities,
    .egb-detail-row {
        grid-template-columns: 1fr;
    }

    .egb-hero-overlay {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .egb-hero-overlay h1 {
        font-size: 24px;
    }
}
