.shp-form-row {
    margin-bottom: 20px;
}

.shp-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.shp-form-row input[type="text"],
.shp-form-row input[type="email"],
.shp-form-row input[type="tel"],
.shp-form-row input[type="date"],
.shp-form-row input[type="number"],
.shp-form-row textarea,
.shp-form-row select {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.shp-form-row input[type="file"] {
    margin-bottom: 10px;
}

.shp-submit-button,
.shp-sign-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 500px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shp-submit-button:hover,
.shp-sign-button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.shp-submit-button:active,
.shp-sign-button:active {
    transform: translateY(0);
}

.shp-submit-button:disabled,
.shp-sign-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.shp-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.shp-message.show {
    display: block;
}

.shp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.shp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.shp-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shp-dashboard-sections {
    display: grid;
    gap: 30px;
}

.shp-section {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shp-section h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    color:#898989;
    font-size: 32px!important;
    font-weight: 400!important;
}

.shp-dashboard-header {
    max-width: 1100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shp-dashboard-wrapper a{
    color: #fff;
    align-items: end!important;
}

.shp-dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.shp-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
}

.shp-refresh-icon {
    width: 20px;
    height: 30px;
}

.shp-dashboard-wrapper .button-primary {
    align-items: end!important;
}

.shp-dashboard-wrapper a{
align-items: end;
}

.shp-applications-list {
    display: grid;
    gap: 20px;
}

.shp-application-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.shp-application-card h3 {
    margin-top: 0;
}

.shp-application-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.shp-application-actions h4 {
    margin-bottom: 15px;
}

.shp-document-upload-form {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shp-contract-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.shp-contract-acceptance {
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.shp-contract-acceptance label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.shp-contract-acceptance input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.shp-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.shp-status-pending {
    background: #f0b849;
    color: #fff;
}

.shp-status-approved {
    background: #46b450;
    color: #fff;
}

.shp-status-declined {
    background: #dc3232;
    color: #fff;
}

.shp-status-rejected {
    background: #dc3232;
    color: #fff;
}

.shp-status-completed {
    background: #46b450;
    color: #fff;
}

.shp-status-failed {
    background: #dc3232;
    color: #fff;
}

.shp-payments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.shp-payments-table th,
.shp-payments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.shp-payments-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.shp-contract-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.shp-contract-details {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shp-contract-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.shp-contract-table th,
.shp-contract-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.shp-contract-table th {
    width: 200px;
    font-weight: 600;
}

.shp-contract-terms {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.shp-contract-terms h3 {
    margin-top: 0;
}

.shp-contract-signature {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.shp-contract-signed {
    margin-top: 30px;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

.shp-signed-notice {
    font-size: 18px;
    color: #155724;
    margin: 0;
}

.shp-help-form {
    margin-top: 20px;
}

.shp-help-form textarea {
    width: 100%;
    max-width: 100%;
}

.shp-reservation-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.shp-reservation-notice p {
    margin: 0;
    color: #856404;
}

.shp-reservation-notice .shp-countdown {
    font-weight: 700;
    color: #d9534f;
}

.shp-reservation-expired {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.shp-reservation-expired p {
    margin: 0;
    color: #721c24;
}

.shp-upload-instructions {
    color: #495057;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #4c6fff;
    border-radius: 4px;
}

.shp-documents-approved {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.shp-documents-approved p {
    margin: 0;
    color: #155724;
}

.shp-uploaded-indicator {
    color: #28a745;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.shp-upload-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.shp-upload-message.show {
    display: block;
}

.shp-upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.shp-upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.shp-contract-pending {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.shp-contract-pending h4 {
    margin-top: 0;
    color: #856404;
}

.shp-contract-pending p {
    margin: 0;
    color: #856404;
}

.shp-housing-list-wrapper {
    position: relative;
    margin: 40px auto 80px;
    max-width: 1200px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 111, 255, 0.08), rgba(255, 255, 255, 0.65));
    border-radius: 24px;
}

.shp-housing-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 45, 75, 0.08);
}

.shp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shp-filter-group label {
    font-weight: 600;
    color: #2b2e3a;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.shp-filter-group input,
.shp-filter-group select {
    border: 1px solid #dfe3eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    background: #f8f9fc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shp-filter-group input:focus,
.shp-filter-group select:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.15);
    outline: none;
    background: #fff;
}

.shp-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.shp-housing-grid {
    display: grid;
    gap: 30px;
}

.shp-housing-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shp-housing-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shp-housing-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .shp-housing-grid.columns-3,
    .shp-housing-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shp-housing-grid,
    .shp-housing-grid.columns-2,
    .shp-housing-grid.columns-3,
    .shp-housing-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .shp-housing-filters {
        grid-template-columns: 1fr;
    }
}

.shp-housing-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 45, 75, 0.14);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.shp-housing-card:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 111, 255, 0.08), rgba(249, 250, 255, 0.82));
    opacity: 0;
    transition: opacity 0.32s ease;
    z-index: 0;
}

.shp-housing-card > * {
    position: relative;
    z-index: 1;
}

.shp-housing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 36px 70px rgba(15, 45, 75, 0.22);
}

.shp-housing-card:hover:before {
    opacity: 1;
}

.shp-housing-media {
    position: relative;
    overflow: hidden;
}

.shp-housing-thumbnail {
    display: block;
    padding-top: 66%;
    position: relative;
}

.shp-housing-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shp-housing-card:hover .shp-housing-thumbnail img {
    transform: scale(1.05);
}

.shp-housing-thumbnail.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dee4f1, #f3f6fb);
    min-height: 220px;
    font-weight: 600;
    color: #4c5464;
    letter-spacing: 0.5px;
}

.shp-housing-price {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 10px 18px;
    background: rgba(43, 46, 58, 0.85);
    color: #fff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shp-housing-price small {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shp-housing-content {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 18px;
}

.shp-housing-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shp-housing-type {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(76, 111, 255, 0.1);
    color: #4c6fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.shp-housing-title {
    margin: 0;
    font-size: 20px;
    color: #1b1e2a;
    line-height: 1.3;
}

.shp-housing-meta {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #434a5b;
}

.shp-housing-description {
    font-size: 14px;
    color: #61697c;
    line-height: 1.6;
}

.shp-housing-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shp-amenity {
    padding: 6px 12px;
    background: #f1f3f8;
    border-radius: 8px;
    font-size: 13px;
    color: #495066;
    letter-spacing: 0.3px;
}

.shp-housing-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.shp-housing-actions .button {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.shp-housing-actions .button-primary {
    background: linear-gradient(135deg, #4c6fff, #748bff);
    border: none;
}

.shp-housing-actions .button-primary:hover {
    background: linear-gradient(135deg, #425de6, #667dff);
}

.shp-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.shp-page-link a,
.shp-page-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #dfe3eb;
    color: #434a5b;
    font-weight: 600;
    transition: all 0.2s ease;
}

.shp-page-link a:hover {
    border-color: #4c6fff;
    color: #4c6fff;
}

.shp-page-link .current {
    background: #4c6fff;
    border-color: #4c6fff;
    color: #fff;
}

.shp-no-results {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e8f0;
    color: #61697c;
    font-size: 16px;
}

body.shp-lock-scroll {
    overflow: hidden;
}

.shp-application-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.shp-application-modal.is-visible {
    display: flex;
}

.shp-application-modal .shp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shp-application-modal.is-active .shp-modal-backdrop {
    opacity: 1;
}

.shp-modal-dialog {
    position: relative;
    width: min(700px, 95%);
    max-width: 700px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shp-application-modal.is-active .shp-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.shp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shp-modal-close:hover {
    background: #fff;
    color: #1e293b;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shp-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 24px 24px 0 0;
}

.shp-modal-subtitle {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px;
    font-weight: 600;
}

.shp-modal-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.shp-modal-body {
    position: relative;
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.shp-modal-body.is-loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shp-modal-loading {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}

.shp-loading-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    animation: shp-spin 0.8s linear infinite;
}

.shp-modal-error {
    padding: 20px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.2);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    margin: 20px 0;
}

.shp-application-form-wrapper {
    margin-top: 0;
}

.shp-application-form-wrapper h2 {
    display: none; /* Hide since we have modal header */
}

.shp-availability-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.shp-availability-notice strong {
    color: #667eea;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shp-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

@keyframes shp-spin {
    to {
        transform: rotate(360deg);
    }
}

.shp-application-form-wrapper {
    margin-top: 0;
}

.shp-application-form-wrapper h2 {
    display: none; /* Hide since we have modal header */
}

.shp-availability-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.shp-availability-notice strong {
    color: #667eea;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shp-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.shp-contract-info-form-wrapper {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.shp-contract-info-form-wrapper h4 {
    margin-top: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.shp-form-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.shp-contract-info-form .shp-form-row {
    margin-bottom: 18px;
}

.shp-contract-info-form .shp-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.shp-contract-info-form .shp-form-row input[type="text"],
.shp-contract-info-form .shp-form-row select,
.shp-contract-info-form .shp-form-row textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #1e293b;
}

.shp-contract-info-form .shp-form-row input[type="text"]:focus,
.shp-contract-info-form .shp-form-row select:focus,
.shp-contract-info-form .shp-form-row textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.shp-contract-info-form .shp-form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.shp-contract-info-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.shp-contract-info-message.show {
    display: block;
}

.shp-contract-info-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.shp-contract-info-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 600px) {
    .shp-modal-dialog {
        width: 94%;
        padding: 0;
        border-radius: 20px;
    }
    
    .shp-modal-header {
        padding: 24px 20px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .shp-modal-body {
        padding: 24px 20px;
    }

    .shp-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .shp-modal-header h3 {
        font-size: 22px;
    }
}

/* Interactive Housing Map Styles */
.shp-housing-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.shp-building-map-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.shp-building-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 800px;
    object-fit: contain;
}

.shp-building-placeholder {
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    min-height: 600px;
}

.shp-building-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.shp-apartment-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.shp-apartment-area:hover {
    fill: #2a5a8a;
    stroke-width: 3;
}

.shp-apartment-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shp-apartment-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: pointer;
    z-index: 100;
}

.shp-marker-dot {
    display: block;
    width: 24px;
    height: 24px;
    background: #4a90e2;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.shp-marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.shp-apartment-marker:hover .shp-marker-dot,
.shp-apartment-marker.active .shp-marker-dot {
    width: 32px;
    height: 32px;
    background: #2a5a8a;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
}

.shp-marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.shp-apartment-marker:hover .shp-marker-label,
.shp-apartment-marker.active .shp-marker-label {
    opacity: 1;
}

.shp-apartment-sidebar {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 400px;
    max-height: calc(100vh - 40px);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: auto;
}

.shp-apartment-sidebar.active {
    right: 0;
    visibility: visible;
}

.shp-sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.shp-sidebar-close:hover {
    background: #e0e0e0;
    color: #333;
}

.shp-sidebar-content {
    padding: 60px 30px 30px;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.shp-apartment-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.shp-apartment-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

.shp-apartment-amenities,
.shp-apartment-description,
.shp-apartment-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.shp-apartment-amenities strong,
.shp-apartment-description strong,
.shp-apartment-notes strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
}

.shp-amenities-list {
    color: #666;
    line-height: 1.6;
}

.shp-description-text,
.shp-notes-text {
    color: #666;
    line-height: 1.7;
    margin-top: 8px;
}

.shp-apartment-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.shp-apartment-actions .button {
    width: 100%;
    text-align: center;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100 !important;
    position: relative !important;
}

.shp-see-more-btn,
.shp-apply-from-map-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100 !important;
    position: relative !important;
    user-select: none;
    -webkit-user-select: none;
}

.shp-apply-from-map-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.shp-back-to-summary-btn {
    background: #f5f5f5;
    color: #333;
}

.shp-back-to-summary-btn:hover {
    background: #e0e0e0;
}

.shp-sidebar-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

.shp-apartment-info {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shp-apartment-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
    line-height: 1.3;
}

.shp-apartment-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.shp-apartment-details {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.shp-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.shp-detail-item:last-child {
    border-bottom: none;
}

.shp-detail-item strong {
    color: #666;
    font-weight: 600;
    font-size: 14px;
    min-width: 140px;
}

.shp-detail-item span {
    color: #333;
    font-size: 15px;
    text-align: right;
    flex: 1;
}

.shp-apartment-actions {
    margin-top: 30px;
    padding-top: 20px;
}

.shp-see-more-btn {
    width: 100%;
    padding: 14px 24px;
    background: #4a90e2;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.shp-see-more-btn:hover {
    background: #2a5a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Mini Landing Page Styles */
.shp-apartment-landing {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.shp-back-to-map-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 38%);
    color: #fff !important;
    background-color: #d6ad6e !important;
    text-decoration: none !important;
    border: 1px solid #d6ad6e !important;
    border-radius: 27px !important;
    border-color: white;
}

.shp-back-to-map-btn:hover {
    color: black!important;
    background-color: white !important;
    transform: translateX(-2px);
}

.shp-landing-content {
    position: relative;
}

.shp-landing-header {
    position: relative;
    background-color: #D7B06E;
    color: #fff;
    padding: 60px 40px 40px;
    height: 170px;
}

/* Photo Gallery Styles */
.shp-landing-gallery-wrapper {
    margin: 0;
}

.shp-landing-gallery {
    margin: 0;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.shp-gallery-main {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
    position: relative;
}

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

.shp-gallery-thumbnails,
.shp-gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.shp-gallery-thumbnails::-webkit-scrollbar,
.shp-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.shp-gallery-thumbnails::-webkit-scrollbar-track,
.shp-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.shp-gallery-thumbnails::-webkit-scrollbar-thumb,
.shp-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.shp-gallery-thumb {
    flex: 0 0 120px;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.shp-gallery-thumb:hover,
.shp-gallery-thumb.active {
    opacity: 1;
    border-color: #667eea;
    transform: scale(1.05);
}

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

.shp-landing-header-content {
    flex: 1;
}

.shp-landing-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
    line-height: 1.2;
}

.shp-landing-subtitle {
    display:none;
    font-size: 18px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.shp-landing-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 20px;
}

.shp-price-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.shp-price-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.shp-landing-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px;
}

.shp-landing-main {
    min-width: 0;
}

.shp-landing-section {
    margin-bottom: 40px;
}

.shp-landing-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.shp-landing-description,
.shp-landing-amenities,
.shp-landing-notes {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.shp-landing-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.shp-landing-details-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.shp-landing-details-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}

.shp-landing-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shp-landing-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.shp-landing-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shp-landing-detail-item strong {
    color: #666;
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
}

.shp-landing-detail-item span {
    color: #333;
    font-size: 15px;
    text-align: right;
    flex: 1;
}

.shp-landing-actions {
    position: sticky;
    bottom: 20px;
}

.shp-landing-actions .button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive landing page */
@media (max-width: 1024px) {
    .shp-landing-body {
        grid-template-columns: 1fr;
    }
    
    .shp-landing-sidebar {
        position: static;
    }
    
    .shp-landing-header {
        flex-direction: column;
    }
    
    .shp-landing-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .shp-landing-header {
        padding: 40px 20px 30px;
    }
    
    .shp-landing-title {
        font-size: 28px;
    }
    
    .shp-landing-body {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .shp-back-to-map-btn {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .shp-apartment-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .shp-housing-map-wrapper {
        padding: 10px;
    }
    
    .shp-building-map-container {
        min-height: 400px;
    }
    
    .shp-marker-label {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .shp-sidebar-content {
        padding: 50px 20px 20px;
    }
    
    .shp-apartment-title {
        font-size: 20px;
    }
    
    .shp-detail-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .shp-detail-item strong {
        min-width: auto;
    }
    
    .shp-detail-item span {
        text-align: left;
    }
}


/* Signature Pad Styles */
.shp-signature-pad-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.shp-signature-pad-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 15px 0;
}

.shp-signature-canvas {
    width: 100%;
    height: 200px;
    border: 2px solid #333;
    border-radius: 4px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.shp-signature-actions {
    margin-top: 10px;
}

.shp-clear-signature {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.shp-clear-signature:hover {
    background: #c82333;
}

.shp-contract-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shp-contract-actions .button {
    margin: 0;
}

/* Floor Plans Gallery Styles */
.shp-housing-floor-plans {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
}

.shp-floor-plans-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.shp-floor-plans-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.shp-floor-plans-gallery::-webkit-scrollbar {
    height: 6px;
}

.shp-floor-plans-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shp-floor-plans-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.shp-floor-plans-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.shp-floor-plan-thumb {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    height: 112px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.shp-floor-plan-thumb.active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shp-floor-plan-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shp-floor-plan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.shp-floor-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shp-floor-plan-thumb:hover .shp-floor-plan-overlay {
    opacity: 1;
}

.shp-view-icon {
    font-size: 24px;
    color: #fff;
}

.shp-floor-plans-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.shp-floor-plan-prev,
.shp-floor-plan-next {
    background: #667eea;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.shp-floor-plan-prev:hover,
.shp-floor-plan-next:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.shp-floor-plan-prev:disabled,
.shp-floor-plan-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.shp-floor-plan-counter {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.shp-floor-plan-counter .shp-current {
    color: #667eea;
    font-weight: 600;
}

/* Landing Page Floor Plans */
.shp-landing-floor-plans {
    padding: 30px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.shp-floor-plans-section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.shp-floor-plans-gallery-landing {
    max-width: 100%;
}

.shp-floor-plans-main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shp-floor-plans-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shp-floor-plans-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.shp-floor-plan-thumb-landing {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.shp-floor-plan-thumb-landing.active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shp-floor-plan-thumb-landing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shp-floor-plan-thumb-landing img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shp-floor-plans-nav-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.shp-floor-plan-prev-landing,
.shp-floor-plan-next-landing {
    background: #667eea;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.shp-floor-plan-prev-landing:hover,
.shp-floor-plan-next-landing:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.shp-floor-plan-prev-landing:disabled,
.shp-floor-plan-next-landing:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.shp-floor-plan-counter-landing {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.shp-floor-plan-counter-landing .shp-current {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Floor Plans */
@media (max-width: 768px) {
    .shp-floor-plan-thumb {
        width: 120px;
        height: 90px;
    }
    
    .shp-floor-plans-main {
        aspect-ratio: 3/2;
    }
    
    .shp-floor-plan-thumb-landing {
        width: 100px;
        height: 75px;
    }
}

/* Interactive Floor Plans Display */
.shp-floor-plans-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.shp-section-title {
    font-size: 28px;
    margin: 0 0 25px 0;
    color: #333;
}

.shp-floor-plans-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
}

.shp-floor-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.shp-floor-tab:hover {
    background: #e9e9e9;
    color: #333;
}

.shp-floor-tab.active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
}

.shp-floor-plan-display {
    display: none;
}

.shp-floor-plan-display.active {
    display: block;
}

.shp-floor-plan-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: visible;
    background: #f9f9f9;
}

.shp-floor-plan-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.shp-floor-plan-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none;
    z-index: 100 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.shp-floor-plan-overlay.active {
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.shp-floor-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.shp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.shp-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #333;
}

.shp-legend-item.available .shp-legend-color {
    background: #46b450;
    border-color: #46b450;
}

.shp-legend-item.rented .shp-legend-color {
    background: #dc3232;
    border-color: #dc3232;
}

/* Apartment tooltip on hover */
.shp-apartment-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.shp-apartment-tooltip.show {
    display: block;
}

.shp-apartment-tooltip .apt-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.shp-apartment-tooltip .apt-status {
    font-size: 12px;
    opacity: 0.9;
}
