* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Phone Frame */
.phone-frame {
    width: 375px;
    height: 812px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    border: 12px solid #1a1a1a;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
}

/* Screens */
.screen {
    width: 100%;
    height: 100%;
    background: white;
    overflow-y: auto;
    padding-top: 30px;
}

/* Header */
.app-header {
    background: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 30px;
    z-index: 100;
}

.logo-small {
    width: 32px;
    height: 32px;
}

.app-header h1 {
    font-size: 20px;
    color: #1a365d;
    font-weight: 700;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1a365d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1a365d;
    cursor: pointer;
    margin-left: auto;
}

/* Content */
.content {
    padding: 20px;
    padding-bottom: 90px;
}

.content-no-padding {
    padding-bottom: 90px;
}

.section-title {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ed8936;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.property-image {
    width: 100%;
    height: 180px;
    position: relative;
}

.property-info {
    padding: 16px;
}

.property-match {
    display: inline-block;
    background: #e6fffa;
    color: #047857;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.property-price {
    font-size: 22px;
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 4px;
}

.property-address {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.property-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #475569;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Detail Screen */
.detail-header {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    z-index: 101;
}

.detail-header .back-btn,
.detail-header .share-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.detail-image {
    width: 100%;
    height: 300px;
}

.detail-content {
    padding: 20px;
}

.detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-price {
    font-size: 28px;
    color: #1a365d;
    font-weight: 700;
}

.detail-match {
    background: #e6fffa;
    color: #047857;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.detail-address {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.feature-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 4px;
}

.feature-label {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 12px;
    font-weight: 700;
}

.detail-section p {
    color: #475569;
    line-height: 1.6;
}

.map-placeholder {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder svg {
    width: 100%;
    height: auto;
}

.agent-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.agent-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.agent-logo svg {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.agent-info h4 {
    font-size: 14px;
    color: #1a365d;
    margin-bottom: 4px;
    font-weight: 600;
}

.agent-info p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

/* Buttons */
.btn-primary {
    background: #ed8936;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #dd6b20;
}

.btn-secondary {
    background: white;
    color: #1a365d;
    border: 2px solid #e2e8f0;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #1a365d;
}

.btn-full {
    width: 100%;
}

/* Filters */
.filter-section {
    margin-bottom: 32px;
}

.filter-label {
    display: block;
    font-size: 16px;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 12px;
}

.price-range {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.price-range input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ed8936;
    cursor: pointer;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #475569;
    cursor: pointer;
}

.checkbox-group input,
.radio-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Booking */
.booking-property {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.booking-address {
    font-size: 16px;
    color: #1a365d;
    font-weight: 600;
}

.form-section {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 12px;
}

.date-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-option {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-option:hover {
    border-color: #ed8936;
}

.date-option.selected {
    border-color: #ed8936;
    background: #fff5f0;
}

.date-option strong {
    color: #1a365d;
    font-size: 15px;
}

.date-option span {
    color: #64748b;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ed8936;
}

.success-message {
    text-align: center;
    padding-top: 80px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
}

.success-message h2 {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 12px;
}

.success-message p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Notifications */
.notification-preview {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notification-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content h3 {
    font-size: 15px;
    color: #1a365d;
    margin-bottom: 4px;
    font-weight: 600;
}

.notification-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Profile */
.profile-section {
    margin-bottom: 32px;
}

.profile-section h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 16px;
    font-weight: 700;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.profile-label {
    color: #64748b;
    font-size: 14px;
}

.profile-value {
    color: #1a365d;
    font-size: 14px;
    font-weight: 600;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

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

.toggle-item span {
    color: #1a365d;
    font-size: 15px;
}

.toggle-item input[type="checkbox"] {
    width: 48px;
    height: 28px;
    cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 12px;
    right: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
    border-radius: 20px 20px 28px 28px;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    flex: 1;
    transition: all 0.2s ease;
}

.nav-icon {
    font-size: 22px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.2s ease;
}

.nav-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-btn.active .nav-icon {
    filter: grayscale(0%);
    opacity: 1;
}

.nav-btn.active .nav-label {
    color: #1a365d;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 420px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    body {
        padding: 0;
    }
}
