/* [v2] Updated: Full styles for Frontend, Modal, and Admin Panel */
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --light: #ecf0f1;
    --dark: #34495e;
    --success: #27ae60;
    --danger: #c0392b;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* Header & Nav */
header { background: var(--primary); color: white; padding: 1rem 0; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: bold; }
.nav-links { display: flex; gap: 20px; }
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/1600x900/?luxury-villa');
    background-size: cover; background-position: center;
    height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.btn { background: var(--accent); color: white; padding: 10px 20px; border: none; cursor: pointer; font-size: 1.1rem; border-radius: 4px; transition: 0.3s; }
.btn:hover { background: #d35400; }

/* Content Container */
.container { max-width: 1100px; margin: 2rem auto; padding: 0 20px; }

/* Grid Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }

/* Amenities */
.amenities-list { display: flex; flex-wrap: wrap; gap: 15px; }
.amenities-list li { background: var(--light); padding: 5px 15px; border-radius: 20px; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: white; margin: 10% auto; padding: 2rem; width: 90%; max-width: 500px; border-radius: 8px; position: relative; }
.close { position: absolute; right: 20px; top: 10px; font-size: 2rem; cursor: pointer; }
input, select { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }

/* Admin Dashboard Styles */
.admin-header { background: var(--dark); padding: 1rem; color: white; margin-bottom: 2rem; }
.admin-nav { display: flex; gap: 15px; }
.admin-nav a { padding: 5px 10px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.admin-nav a:hover { background: rgba(255,255,255,0.2); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 2rem; }
.stat-card { background: var(--light); padding: 20px; border-radius: 8px; text-align: center; border-left: 5px solid var(--accent); }
.stat-card h3 { margin: 0 0 10px 0; color: var(--dark); }
.stat-card .value { font-size: 2rem; font-weight: bold; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: var(--primary); color: white; }
tr:hover { background-color: #f1f1f1; }

.status-confirmed { color: var(--success); font-weight: bold; }
.status-pending { color: var(--accent); font-weight: bold; }
.status-cancelled { color: var(--danger); font-weight: bold; }

.action-btn { padding: 5px 10px; border: none; border-radius: 3px; cursor: pointer; font-size: 0.9rem; margin-right: 5px; color: white; }
.btn-confirm { background: var(--success); }
.btn-cancel { background: var(--accent); }
.btn-delete { background: var(--danger); }

/* Footer */
footer { text-align: center; padding: 2rem 0; background: #222; color: #aaa; margin-top: auto; }