/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #34495e;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
}

/* Header Styles */
.navbar {
    box-shadow: var(--box-shadow);
    background-color: var(--primary-color) !important;
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.7rem;
    color: white !important;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Home Page Styles */
.home-intro {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/v.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.home-intro h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-intro p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Villa Card Styles */
.villa-card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
    background-color: white;
}

.villa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.villa-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.villa-card:hover .card-img-top {
    transform: scale(1.05);
}

.villa-card .image-container {
    position: relative;
    overflow: hidden;
}

.villa-card .badge-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

.villa-card .card-body {
    padding: 1.5rem;
}

.villa-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.villa-card .features {
    margin-bottom: 1rem;
}

.villa-card .features i {
    color: var(--secondary-color);
    width: 25px;
    margin-right: 5px;
}

.villa-card .price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.villa-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.villa-card .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    padding: 0.6rem 0;
    width: 100%;
    transition: var(--transition);
}

.villa-card .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Villa Detail Page */
.detail-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.detail-subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel-inner img {
    height: 500px;
    object-fit: cover;
}

.carousel-thumbnails {
    margin-top: 15px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
}

.carousel-thumbnails button {
    flex: 0 0 80px;
    height: 60px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-thumbnails button.active,
.carousel-thumbnails button:hover {
    opacity: 1;
}

.card {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.list-group-item {
    padding: 1rem 1.5rem;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
}

.list-group-item i {
    color: var(--secondary-color);
    width: 25px;
    margin-right: 10px;
}

.review {
    background-color: rgba(236, 240, 241, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--secondary-color);
}

.review:last-child {
    margin-bottom: 0;
}

.review h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.review small {
    color: #7f8c8d;
}

.reservation-card {
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.reservation-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.reservation-card .card-header h3 {
    color: white;
}

.villa-price {
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    background-color: rgba(236, 240, 241, 0.3);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.villa-price .price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.check-times {
    background-color: rgba(236, 240, 241, 0.3);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.15);
    border-color: var(--secondary-color);
}

.btn {
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: white !important;
    transform: translateX(5px);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

footer .social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-intro h1 {
        font-size: 2.8rem;
    }
    
    .home-intro p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-inner img {
        height: 350px;
    }
    
    .home-intro {
        padding: 80px 0;
    }
    
    .home-intro h1 {
        font-size: 2.2rem;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .villa-card .card-img-top {
        height: 200px;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-content {
    padding: 20px;
}

.admin-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
}

/* Modal Styles */
.modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Custom Button Styles */
.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #157347;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/v.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Review Section */
.review {
    position: relative;
}

.review:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Utilities */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.bg-success {
    background-color: #198754 !important;
} 