body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1d2433;
    background: #ffffff;
}

a {
    text-decoration: none;
}

.site-logo {
    max-height: 56px;
    width: auto;
}

.site-header .nav-link {
    color: #273043;
    font-weight: 600;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #f2654a;
}

.btn-primary-orange {
    background: #f2654a;
    border: 1px solid #f2654a;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 22px;
}

.btn-primary-orange:hover {
    background: #df583f;
    border-color: #df583f;
    color: #fff;
}

.hero-section {
    position: relative;
    min-height: 720px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 30, 60, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content p {
    max-width: 760px;
    margin: 0 auto 36px auto;
    font-size: 1.5rem;
    line-height: 1.5;
}

.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 1120px;
    margin: 0 auto;
    text-align: left;
}

.search-box .form-label {
    font-weight: 600;
    color: #444;
}

.search-box .form-control,
.search-box .form-select {
    height: 54px;
    border-radius: 8px;
}

.search-btn {
    height: 54px;
    font-size: 1.1rem;
}

.states-section {
    background: #fff;
}

.states-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: center;
}

.states-left {
    max-width: 420px;
}

.states-right {
    position: relative;
    min-width: 0;
}

.intro-text h2 {
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
    color: #25324a;
}

.intro-text p {
    font-size: 1.35rem;
    line-height: 1.8;
    color: #4d596d;
    margin-bottom: 24px;
}

.state-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    min-height: 420px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.state-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.state-card:hover img {
    transform: scale(1.05);
}

.state-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 22, 50, 0.88), rgba(8, 22, 50, 0.18));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
}

.state-overlay h3 {
    margin: 0 0 6px 0;
    font-size: 2rem;
    font-weight: 700;
}

.state-overlay span {
    font-size: 1rem;
    opacity: 0.95;
}

.states-slider-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.states-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.states-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.states-slider::-webkit-scrollbar {
    display: none;
}

.states-slider .state-card {
    min-width: 280px;
    width: 280px;
    height: 420px;
    flex: 0 0 auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: #25324a;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-arrow:hover {
    background: #f2654a;
    color: #fff;
}

.slider-arrow-left {
    left: 14px;
}

.slider-arrow-right {
    right: 14px;
}

.owner-cta {
    background: #f7f9fc;
}

.owner-box {
    background: linear-gradient(135deg, #0d2d5c, #123f7a);
    color: #fff;
    border-radius: 16px;
    padding: 40px;
}

.owner-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.owner-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.95;
}

.owner-dashboard-section {
    background: #f7f9fc;
}

.owner-sidebar-card {
    background: linear-gradient(180deg, #123f7a 0%, #0d2d5c 100%);
    color: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 16px 34px rgba(13, 45, 92, 0.20);
    height: 100%;
}

.owner-sidebar-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.owner-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    overflow: hidden;
    padding: 8px;
    text-align: center;
    line-height: 1.1;
}

.owner-sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.owner-sidebar-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
}

.owner-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.owner-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    transition: all 0.2s ease;
    font-weight: 600;
}

.owner-nav-link i {
    width: 18px;
    text-align: center;
}

.owner-nav-link:hover,
.owner-nav-link.active {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.owner-nav-link-logout {
    margin-top: 8px;
    background: rgba(242, 101, 74, 0.16);
}

.owner-dashboard-main {
    display: block;
}

.owner-welcome-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.07);
    border: 1px solid #edf2f8;
}

.owner-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(242, 101, 74, 0.12);
    color: #f2654a;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.owner-welcome-card h1 {
    font-size: 2.35rem;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 14px;
}

.owner-welcome-card p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #5a667b;
    margin-bottom: 0;
    max-width: 820px;
}

.owner-stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f8;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}

.owner-stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 16px;
    background: rgba(18, 63, 122, 0.08);
    color: #123f7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.owner-stat-text span {
    display: block;
    font-size: 0.95rem;
    color: #6a7487;
    margin-bottom: 6px;
}

.owner-stat-text strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: #22304a;
    font-weight: 700;
}

.owner-panel-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f8;
    height: 100%;
}

.owner-panel-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 10px;
}

.owner-panel-card p {
    color: #5a667b;
    margin-bottom: 20px;
    line-height: 1.7;
}

.owner-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.owner-action-box {
    background: #f7f9fc;
    border: 1px solid #ebf0f6;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #22304a;
    transition: all 0.2s ease;
    min-height: 110px;
}

.owner-action-box i {
    font-size: 1.25rem;
    color: #f2654a;
}

.owner-action-box span {
    font-weight: 600;
    line-height: 1.4;
}

.owner-action-box:hover {
    transform: translateY(-2px);
    border-color: #f2654a;
    background: #fff;
    color: #22304a;
}

.owner-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.owner-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4f5c72;
    line-height: 1.6;
}

.owner-check-list i {
    color: #f2654a;
    margin-top: 4px;
}

.owner-info-card {
    background: linear-gradient(135deg, #123f7a 0%, #0d2d5c 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(13,45,92,0.18);
}

.owner-info-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.owner-info-card p {
    opacity: 0.95;
    line-height: 1.7;
}

.owner-info-card .btn {
    min-width: 150px;
}


.site-footer {
    background: #f8f8f8;
    color: #22304a;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.site-footer h5 {
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #22304a;
}

.footer-links a:hover {
    color: #f2654a;
}

.footer-divider {
    margin: 30px 0 20px;
    opacity: 0.15;
}

/* LISTENANSICHT APPARTEMENTS */
.page-hero-small {
    background: linear-gradient(135deg, #0d2d5c, #123f7a);
    color: #fff;
    padding: 70px 0 50px;
}

.page-hero-small-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero-small-content p {
    font-size: 1.15rem;
    margin-bottom: 0;
    opacity: 0.95;
}

.list-search-box {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.apartment-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.apartment-list-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f6;
}

.apartment-list-content {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apartment-list-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 12px;
}

.apartment-list-title a {
    color: #25324a;
}

.apartment-list-title a:hover {
    color: #f2654a;
}

.apartment-list-location {
    font-size: 1rem;
    color: #5b667a;
    margin-bottom: 16px;
}

.apartment-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.apartment-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #1f3557;
    font-size: 0.95rem;
    font-weight: 600;
}

.apartment-list-text {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #4d596d;
    margin-bottom: 24px;
}

.apartment-list-actions {
    margin-top: auto;
}

.apartment-list-image-link {
    display: block;
    height: 100%;
}

.apartment-list-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.contact-section {
    background: #ffffff;
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f6;
    height: 100%;
}

.contact-info-card h2,
.contact-form-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #25324a;
}

.contact-info-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4d596d;
    margin-bottom: 24px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-item strong {
    color: #25324a;
    font-size: 1rem;
}

.contact-info-item span,
.contact-info-item a {
    color: #4d596d;
    font-size: 1rem;
}

.contact-info-item a:hover {
    color: #f2654a;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: #273043;
}

.contact-form-card .form-control {
    border-radius: 10px;
    min-height: 52px;
}

.contact-form-card textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.g-recaptcha {
    overflow: hidden;
}

.legal-section {
    background: #ffffff;
}

.legal-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f6;
}

.legal-card h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #25324a;
    margin-top: 32px;
    margin-bottom: 14px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4d596d;
    margin-bottom: 14px;
}

.legal-card a {
    color: #f2654a;
}

.legal-card a:hover {
    color: #df583f;
}

.legal-note {
    margin-top: 32px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f8f4ef;
    color: #5b667a;
    font-size: 0.98rem;
    border-left: 4px solid #f2654a;
}

.search-input-icon {
    position: relative;
}

.search-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6b7a;
    font-size: 16px;
    z-index: 5;
    width: 18px;
    text-align: center;
    pointer-events: none;
}

.search-input-icon .form-control.with-icon {
    padding-left: 42px;
}

.search-input-icon input[type="number"].with-icon {
    padding-left: 42px;
}

#dateRange {
    cursor: pointer;
    background-color: #fff;
}

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    border: 0;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: #f2654a;
    border-color: #f2654a;
}

.flatpickr-day.inRange {
    background: rgba(242, 101, 74, 0.15);
    border-color: rgba(242, 101, 74, 0.15);
    box-shadow: -5px 0 0 rgba(242, 101, 74, 0.15), 5px 0 0 rgba(242, 101, 74, 0.15);
}

.flatpickr-day:hover {
    background: rgba(242, 101, 74, 0.08);
    border-color: rgba(242, 101, 74, 0.08);
}

/* ================= LOGIN ================= */

.login-section {
    background: #f7f9fc;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #edf2f8;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 10px;
}

.login-header p {
    color: #6b778c;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9aa4b2;
}

.input-icon .form-control {
    height: 54px;
    padding-left: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.input-icon .form-control:focus {
    border-color: #f2654a;
    box-shadow: 0 0 0 3px rgba(242, 101, 74, 0.12);
}

.login-btn {
    height: 54px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.login-footer {
    margin-top: 20px;
    font-size: 0.95rem;
}

.login-footer a {
    color: #f2654a;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ================= ROOM ================= */

.owner-form-note {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    padding: 14px 16px;
    color: #586577;
    line-height: 1.6;
    font-size: 0.95rem;
}

.room-types-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.room-row-card {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 16px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.amenity-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    transition: all 0.2s ease;
}

.amenity-check:hover {
    background: #fff;
    border-color: #f2654a;
}

.owner-panel-card .form-label {
    font-weight: 600;
    color: #2f3a4d;
}

.owner-panel-card .form-control,
.owner-panel-card .form-select {
    min-height: 52px;
    border-radius: 10px;
    border: 1px solid #d9e2ec;
}

.owner-panel-card textarea.form-control {
    min-height: 120px;
}

.owner-panel-card .form-control:focus,
.owner-panel-card .form-select:focus {
    border-color: #f2654a;
    box-shadow: 0 0 0 3px rgba(242, 101, 74, 0.12);
}

.apartment-editor {
    min-height: 190px !important;
}

.apartment-gallery-field {
    min-height: 150px !important;
}

/* ===== Apartment Form Fix ===== */

.apartment-form-page .row {
    align-items: flex-start;
}

.apartment-form-page .owner-panel-card {
    height: auto !important;
}

.apartment-form-page .owner-sidebar-card {
    position: sticky;
    top: 24px;
}

.apartment-form-card {
    overflow: hidden;
}

.apartment-form-card .form-control,
.apartment-form-card .form-select {
    width: 100%;
}

.apartment-editor {
    min-height: 160px !important;
}

.apartment-gallery-field {
    min-height: 150px !important;
}

.apartment-map-field {
    min-height: 110px !important;
}

.room-types-wrap .row,
.room-row-card .row {
    align-items: end;
}

.room-row-card {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 16px;
    overflow-x: auto;
}

.room-row-card .form-control,
.room-row-card .form-select {
    min-width: 0;
}

/* ================= ROOM ================= */



/* ================= PROFILE ================= */

.owner-panel-card .form-label {
    font-weight: 600;
    color: #2f3a4d;
}

.owner-panel-card .form-control,
.owner-panel-card .form-select {
    min-height: 52px;
    border-radius: 10px;
    border: 1px solid #d9e2ec;
}

.owner-panel-card .form-control:focus,
.owner-panel-card .form-select:focus {
    border-color: #f2654a;
    box-shadow: 0 0 0 3px rgba(242, 101, 74, 0.12);
}

/* ================= PROFILE ================= */

.owner-properties-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.owner-property-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf2f8;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 280px 1fr;
}

.owner-property-image-wrap {
    position: relative;
    min-height: 220px;
    background: #eef3f8;
}

.owner-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owner-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.status-badge-draft {
    background: #fff4e8;
    color: #d97706;
}

.status-badge-pending {
    background: #fff7d6;
    color: #a16207;
}

.status-badge-published {
    background: #e8f8ee;
    color: #15803d;
}

.status-badge-archived {
    background: #edf1f5;
    color: #475569;
}

.owner-property-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.owner-property-top h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 8px;
}

.owner-property-top p {
    margin-bottom: 0;
    color: #657287;
    font-size: 1rem;
}

.owner-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.owner-property-meta-item {
    background: #f8fafc;
    border: 1px solid #ebf0f6;
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 150px;
}

.owner-property-meta-item span {
    display: block;
    font-size: 0.9rem;
    color: #6b778c;
    margin-bottom: 4px;
}

.owner-property-meta-item strong {
    font-size: 1.15rem;
    color: #22304a;
    font-weight: 700;
}

.owner-property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.owner-empty-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f8;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    padding: 46px 28px;
    text-align: center;
}

.owner-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(242, 101, 74, 0.12);
    color: #f2654a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.owner-empty-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 10px;
}

.owner-empty-card p {
    color: #657287;
    max-width: 560px;
    margin: 0 auto 22px;
    line-height: 1.7;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.gallery-thumb-card {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    overflow: hidden;
    height: 100px;
}

.gallery-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.gallery-item-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    cursor: grab;
}

.gallery-item-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef3f8;
}

.gallery-item-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f2654a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}

.gallery-item-actions {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item-actions form {
    margin: 0;
}

.sortable-property-gallery .gallery-item-card,
.sortable-room-gallery .gallery-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sortable-property-gallery .gallery-item-card:hover,
.sortable-room-gallery .gallery-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.owner-properties-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.owner-property-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf2f8;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 280px 1fr;
}

.owner-property-image-wrap {
    position: relative;
    min-height: 220px;
    background: #eef3f8;
}

.owner-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owner-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.status-badge-draft {
    background: #fff4e8;
    color: #d97706;
}

.status-badge-pending {
    background: #fff7d6;
    color: #a16207;
}

.status-badge-published {
    background: #e8f8ee;
    color: #15803d;
}

.status-badge-archived {
    background: #edf1f5;
    color: #475569;
}

.owner-property-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.owner-property-top h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 8px;
}

.owner-property-top p {
    margin-bottom: 0;
    color: #657287;
    font-size: 1rem;
}

.owner-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.owner-property-meta-item {
    background: #f8fafc;
    border: 1px solid #ebf0f6;
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 150px;
}

.owner-property-meta-item span {
    display: block;
    font-size: 0.9rem;
    color: #6b778c;
    margin-bottom: 4px;
}

.owner-property-meta-item strong {
    font-size: 1.15rem;
    color: #22304a;
    font-weight: 700;
}

.owner-property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.owner-empty-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f8;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    padding: 46px 28px;
    text-align: center;
}

.owner-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(242, 101, 74, 0.12);
    color: #f2654a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1;}

.owner-promo-card {
  background: linear-gradient(135deg, #fff7f3, #ffeae0);
  border: 1px solid #ffd3bf;
  border-radius: 16px;
  padding: 25px;
}

.owner-promo-card h3 {
  color: #e85c3a;
}

 /* Ergänzung für den Betreiberbereich: dezente, integrierte Service-Card */
  .owner-service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f4 100%);
    border: 1px solid rgba(255, 94, 68, 0.18);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(16, 34, 63, 0.08);
  }

  .owner-service-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 94, 68, 0.10);
  }

  .owner-service-content {
    position: relative;
    z-index: 1;
  }

  .owner-service-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 94, 68, 0.10);
    color: #f15b43;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }

  .owner-service-card h3 {
    margin-bottom: 10px;
    color: #14213d;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
  }

  .owner-service-card p {
    color: #40527a;
    font-size: 15px;
    line-height: 1.7;
  }

  .owner-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
  }

  .owner-service-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #1c2d55;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(16, 34, 63, 0.06);
  }

  .owner-service-list i {
    color: #f15b43;
  }

  .owner-service-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
  }

  .owner-service-actions .btn {
    white-space: nowrap;
  }

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .states-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .states-left {
        max-width: 100%;
    }

    .intro-text h2 {
        font-size: 2.2rem;
    }

    .intro-text p {
        font-size: 1.05rem;
    }

    .states-slider .state-card {
        min-width: 240px;
        width: 240px;
        height: 360px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .owner-box {
        padding: 28px;
    }

    .page-hero-small-content h1 {
        font-size: 2.2rem;
    }

    .apartment-list-title {
        font-size: 1.6rem;
    }

    .apartment-list-content {
        padding: 24px;
    }

    .apartment-list-image {
        min-height: 260px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }

     .legal-card {
        padding: 24px;
    }

    .legal-card h2 {
        font-size: 1.4rem;
    }

    .legal-card p,
    .legal-card li {
        font-size: 1rem;
    }

     .owner-welcome-card {
        padding: 26px;
    }

    .owner-welcome-card h1 {
        font-size: 1.9rem;
    }

    .owner-action-grid {
        grid-template-columns: 1fr;
    }

    .owner-sidebar-card {
        padding: 22px;
    }

      .owner-panel-card {
        padding: 22px;
    }

    .apartment-form-page .owner-sidebar-card {
        position: static;
    }

     .owner-property-card {
        grid-template-columns: 1fr;
    }

    .owner-property-image-wrap {
        min-height: 220px;
    }

    .owner-property-body {
        padding: 22px;
    }
}




@media (max-width: 768px) {
    .states-slider-area {
        gap: 10px;
    }

    .states-slider .state-card {
        min-width: 220px;
        width: 220px;
        height: 320px;
    }

    .slider-arrow {
        display: none;
    }
}