/* Add these styles to your existing CSS */
.owner-controls {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.owner-notice {
    color: #666;
    margin-bottom: 10px;
}

.application-status {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.application-status p {
    margin: 0;
    color: #666;
}

.application-status strong {
    color: #333;
    text-transform: capitalize;
}

.login-prompt {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.login-prompt a {
    color: #007bff;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

#applyRentBtn {
    width: 100%;
    margin-bottom: 20px;
}

.secondary-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-button:hover {
    background-color: #5a6268;
}
/* View Room Styles */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #ff2d95;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.room-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.room-location {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.location-icon {
    margin-right: 5px;
}
.location-container {
    margin: 20px 0;
    text-align: center;
}

#findLocationBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#findLocationBtn:hover {
    background-color: #357ABD;
}

#findLocationBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.location-icon {
    font-size: 18px;
}

/* Gallery Styles */
.room-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 10px;
    margin-bottom: 30px;
}

.main-photo {
    grid-row: span 2;
    height: 100%;
}

.gallery-photo {
    height: 100%;
    overflow: hidden;
}

.room-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.room-gallery img:hover {
    transform: scale(1.05);
}

/* Room Details Layout */
.room-details {
    display: flex;
    gap: 30px;
}

.room-info {
    flex: 2;
}

.room-sidebar {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

/* Room Info Sections */
.room-description, 
.room-features, 
.room-amenities, 
.house-rules, 
.room-location {
    margin-bottom: 40px;
}

.room-description h2,
.room-features h2,
.room-amenities h2,
.house-rules h2,
.room-location h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.room-description h2:after,
.room-features h2:after,
.room-amenities h2:after,
.house-rules h2:after,
.room-location h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    border-radius: 3px;
}

.room-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.feature-value {
    font-size: 16px;
    color: #333;
}

/* Amenities List */
.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amenity-icon {
    color: #ff2d95;
    font-weight: bold;
}

.amenity-name {
    font-size: 15px;
    color: #444;
}

.additional-amenities {
    margin-top: 20px;
}

.additional-amenities h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

/* House Rules */
.house-rules p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Location Section */
.map-container {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.location-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-details {
    margin-top: 15px;
}

.location-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

.location-details p {
    font-size: 16px;
    color: #555;
}

/* Sidebar Styles */
.room-price {
    margin-bottom: 20px;
}

.room-price h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ff2d95;
    margin-bottom: 5px;
}

.room-price p {
    font-size: 16px;
    color: #666;
}

.security-deposit, .availability {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.security-deposit p, .availability p {
    font-size: 16px;
    color: #555;
}

/* Owner Info */
.owner-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.owner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.owner-info p {
    font-size: 14px;
    color: #666;
}

/* Contact Form */
.contact-owner-form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #ff2d95;
    outline: none;
}

.primary-button {
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: block;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(91, 36, 255, 0.3);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff2d95;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff2d95;
}

.error-message p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .room-details {
        flex-direction: column;
    }
    
    .room-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .features-grid,
    .amenities-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .room-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .main-photo {
        grid-row: auto;
    }
    
    .gallery-photo {
        display: none;
    }
}