/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background: #f5f5f5;
}

/* Header styles */
.header {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.brand-name span {
    color: #007bff;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.company-name {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .brand-name {
        font-size: 20px;
    }

    .company-name {
        font-size: 16px;
    }

    .logo {
        width: 24px;
        height: 24px;
    }
}
/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Amenity buttons */
/* Amenities container */
.amenities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Amenity buttons base styles */
.amenity-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Unselected hover state */
.amenity-btn:not(.selected):hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Selected state */
.amenity-btn.selected {
    background: #007bff;
    color: white;
    border-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

/* Selected hover state */
.amenity-btn.selected:hover {
    background: #0056b3;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Active/Click state */
.amenity-btn:active {
    transform: scale(0.95);
}

/* Optional: Add checkmark for selected items */
.amenity-btn.selected::before {
    content: '✓';
    margin-right: 5px;
    font-size: 14px;
}

/* Ripple effect for click feedback */
.amenity-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.amenity-btn:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .amenity-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Image preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.preview-item {
    position: relative;
    padding-top: 100%;
}

.preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Map container */
/* Map container styles */
.map-container {
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Search bar container */
.map-search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Search input styles */
.map-search-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.map-search-input:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Map control buttons */
.map-control-btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.map-control-btn:active {
    transform: scale(0.95);
}

.map-control-btn svg {
    width: 20px;
    height: 20px;
    stroke: #666;
}

/* Map element */
#map {
    height: 400px;
    width: 100%;
    background: #f8f9fa;
}

/* Loading state */
.map-control-btn.loading {
    pointer-events: none;
}

.map-control-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-search-container {
        padding: 0 5px;
    }

    .map-search-input {
        font-size: 14px;
        padding: 10px 14px;
    }

    .map-control-btn {
        width: 38px;
        height: 38px;
    }
}

/* Button styles */
.btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Image upload container */
.image-upload-container {
    margin: 20px 0;
}

/* Custom file input */
.file-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #007bff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-trigger:hover {
    background: #e8f0fe;
    border-color: #0056b3;
}

.file-input-trigger svg {
    width: 24px;
    height: 24px;
    stroke: #007bff;
}

/* Image preview grid */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    aspect-ratio: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.05);
}

/* Remove button */
.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: #ff4444;
    color: white;
}

/* Image count badge */
.image-count {
    display: inline-block;
    padding: 4px 8px;
    background: #007bff;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

/* Drag and drop states */
.file-input-trigger.drag-over {
    background: #e8f0fe;
    border-style: solid;
}

/* Loading state */
.preview-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error state */
.preview-item.error {
    border: 2px solid #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
}

/* Desktop styles */
@media (min-width: 768px) {
    body {
        background-image: url('/images/background.jpg');
        background-size: cover;
        background-attachment: fixed;
    }
}

/* Loading indicator */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Navigation button container */
.nav-button-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
    position: relative;
}

/* Button background effects */
.nav-button-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* Primary navigation button */
.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Click effect */
.nav-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

/* Button ripple effect */
.nav-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.nav-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Button icon */
.nav-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.nav-button:hover svg {
    transform: rotate(90deg);
}

/* Loading state */
.nav-button.loading {
    opacity: 0.8;
    cursor: not-allowed;
    background: linear-gradient(135deg, #0056b3, #007bff);
}

.nav-button.loading svg {
    animation: spin 1s linear infinite;
}

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

/* Pulse animation for attention */
.nav-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 123, 255, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-button {
        width: 80%;
        justify-content: center;
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .nav-button-container::before {
        width: 150px;
    }
}

/* Dropdown container */
.dropdown-menu {
    position: absolute;
    width: 100%;
    max-height: 150px; /* Ensures a limited height with scrollable options */
    overflow-y: auto; /* Enables vertical scrolling for overflow */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensures dropdown appears above other elements */
    list-style-type: none;
    padding: 0;
    margin: 5px 0 0;
    display: none; /* Initially hidden */
}

/* Dropdown items */
.dropdown-menu li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Hover effect for dropdown items */
.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

/* Selected state for dropdown item (optional) */
.dropdown-menu li.selected {
    background-color: #007BFF;
    color: #fff;
}

.required-asterisk {
    color: red;
    /*font-weight: bold;*/
}

input.invalid {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 0.875em;
    display: none;
    margin-top: 4px;
}
