/* AllegroVacation.com - Bootstrap Enhanced Scarlet Red Theme */

/* Custom CSS Variables for Scarlet Red Theme */
:root {
    --primary-red: #dc143c;
    --secondary-red: #ff6b6b;
    --dark-red: #b22222;
    --light-red: #ffe4e1;
    --success-red: #dc143c;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #dee2e6;
}

/* Base Typography - Sans-serif fonts */
body {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

/* Custom Button Styles */
.btn-success {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-outline-success {
    color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 500;
}

.btn-outline-success:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Register Button Fix */
.navbar-nav .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* Navigation Enhancements */
.navbar {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.nav-link.active {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.2;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Page Hero (smaller version) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23dc143c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Additional Select Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23dc143c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: var(--light-red);
    color: var(--dark-red);
    border-left: 4px solid var(--primary-red);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    color: var(--text-dark);
    font-weight: 600;
}

.modal-footer {
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
}

/* Booking Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: var(--light-red);
    color: var(--dark-red);
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-new {
    background-color: #cce5ff;
    color: #004085;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-tabs .btn {
    flex: 1;
    border-radius: 6px;
    font-weight: 500;
    margin: 0 0.25rem;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: var(--background-light);
}

.search-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-card h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.input-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23dc143c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .search-card {
        margin-top: -60px;
        padding: 1.5rem;
    }
}

/* Success Messages */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Destination Cards */
.destination-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.8), rgba(255, 107, 107, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.destination-overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Contact Method Cards */
.contact-method {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.method-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-info p {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.method-info a {
    color: var(--primary-red);
    text-decoration: none;
}

.method-info a:hover {
    text-decoration: underline;
}

/* Emergency Contact */
.emergency-contact {
    background: #dc3545;
    color: white;
    padding: 2rem 0;
}

.emergency-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-number:hover {
    color: #f8f9fa;
    transform: translateY(-2px);
}

/* Hotel/Cruise Cards */
.hotel-card, .cruise-card {
    transition: all 0.3s ease;
}

.hotel-card:hover, .cruise-card:hover {
    transform: translateY(-5px);
}

/* Cruises/Hotels Sections */
.cruises-section, .hotels-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.cruises-grid, .hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cruise-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cruise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cruise-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.cruise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cruise-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cruise-content {
    padding: 1.5rem;
}

.cruise-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cruise-line {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cruise-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cruise-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cruise-detail {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cruise-detail i {
    margin-right: 0.5rem;
    color: var(--primary-red);
    width: 16px;
}

.cruise-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.cruise-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.book-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.no-results h3 {
    margin-bottom: 1rem;
}

.no-results p {
    margin-bottom: 2rem;
}

.price-display {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    margin-top: 1rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-success {
    color: var(--primary-red) !important;
}

.bg-success {
    background-color: var(--primary-red) !important;
}

.border-success {
    border-color: var(--primary-red) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .search-form {
        margin-top: -60px;
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-form {
        margin-top: -40px;
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}