.det-page {
    width: 100%;
    background: #ffffff;
    font-family: "Raleway", sans-serif;
    color: #111111;
}

.det-hero.naslovsivi {
    background: #efefef;
    padding-top: 92px !important;
    padding-bottom: 70px !important;
    border-top: 1px solid #e5e5e5;
}

.det-hero__label {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #111111;
    text-transform: uppercase;
}

.det-content {
    padding: 54px 0 90px;
}

.det-media-card {
    background: #ffffff;
}

.det-hero-image-wrap {
    width: 100%;
    overflow: visible;
    background: #f2f2f2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.det-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
}

.det-plans {
    margin-top: 10px;
}

.det-plan-card {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.det-plan-card img {
    display: block;
    width: 100%;
    height: auto;
}

.det-plan-caption {
    margin: 12px 0 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    opacity: 0.75;
}

.det-info-block {
    margin-bottom: 24px;
}

.det-house-title {
    margin: 0 0 14px 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
}

.det-house-text {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    color: #111111;
}

.det-card {
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.det-card__head {
    padding: 16px 20px;
    background: #efefef;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
    border-bottom: 1px solid #e5e5e5;
}

.det-card__body {
    padding: 18px 20px;
}

.det-card__body--no-pad {
    padding: 0;
}

.det-card__footer {
    padding: 18px 20px;
    border-top: 1px solid #e5e5e5;
}

.det-table {
    width: 100%;
    border-collapse: collapse;
}

.det-table td {
    padding: 14px 20px;
    font-size: 16px;
    line-height: 1.35;
    border-bottom: 1px solid #ececec;
}

.det-table tr:last-child td {
    border-bottom: 0;
}

.det-table--specs td:first-child {
    width: 62%;
    color: #111111;
    opacity: 0.75;
}

.det-table--specs td:last-child {
    text-align: right;
    font-weight: 700;
    color: #111111;
}

.det-table--costs {
    table-layout: fixed;
}

.det-table--costs td:first-child {
    width: 70%;
}

.det-table--costs td:last-child {
    width: 30%;
    text-align: right;
    white-space: nowrap;
}

.det-table-total td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.det-table-grand td {
    background: #eef5ff;
    border-top: 2px solid #d9e7ff;
    font-weight: 700;
}

.det-price-row {
    padding: 16px 20px !important;
    text-align: left !important;
}

.price-per-m2 {
    display: inline-block;
    background: #eaf3ff;
    border: 1px solid #cfe0ff;
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 10px;
    color: #111111;
}

.det-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.det-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 56px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.10);
}

.det-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.det-btn--light {
    background: #f3f4f6;
    color: #111111;
    border-color: #f3f4f6;
}

.det-btn--light:hover {
    background: #e5e7eb;
    color: #111111;
}

.det-btn--outline {
    background: #ffffff;
    color: #111111;
    border-color: #d9d9d9;
}

.det-btn--outline:hover {
    background: #f5f5f5;
    color: #111111;
}

.det-btn--dark {
    min-width: 56px;
    width: 56px;
    padding: 0;
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.det-btn--dark:hover {
    background: #000000;
    color: #ffffff;
}

.det-alert {
    padding: 18px 20px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 1399px) {
    .det-hero.naslovsivi {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .det-house-title {
        font-size: 27px;
    }

    .det-house-text {
        font-size: 17px;
    }
}

@media (max-width: 1199px) {
    .det-content {
        padding: 44px 0 70px;
    }

    .det-table td {
        padding: 12px 16px;
    }

    .det-card__head,
    .det-card__footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 991px) {
    .det-hero.naslovsivi {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .det-hero__label {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .det-content {
        padding: 36px 0 54px;
    }

    .det-house-title {
        font-size: 24px;
    }

    .det-house-text {
        font-size: 16px;
    }

    .det-card__head {
        font-size: 17px;
    }

    .det-table td {
        font-size: 15px;
    }

    .det-btn {
        min-width: 140px;
        height: 52px;
        font-size: 14px;
    }

    .det-btn--dark {
        min-width: 52px;
        width: 52px;
    }
}

@media (max-width: 767px) {
    .det-table--specs td:first-child,
    .det-table--costs td:first-child {
        width: auto;
    }

    .det-table--specs td:last-child,
    .det-table--costs td:last-child {
        width: auto;
    }

    .det-table td {
        padding: 11px 12px;
        font-size: 14px;
    }

    .det-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .det-btn,
    .det-btn--dark {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 575px) {
    .det-hero.naslovsivi {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .det-content {
        padding: 28px 0 42px;
    }

    .det-house-title {
        font-size: 22px;
    }

    .det-plan-card {
        padding: 10px;
    }
}
/* Napomene 14-07-26: naslov i projektne slike bez rezanja */
.det-hero__label,
.det-hero .title-text-main { overflow: visible; white-space: normal; }
.det-hero-image { height: auto; aspect-ratio: auto; object-fit: contain; }
