/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background-color: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: var(--transition-fast);
    box-shadow: 0 2px 15px rgba(10, 43, 86, 0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    mix-blend-mode: multiply;
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-item-link:hover,
.nav-item-link.active {
    color: var(--primary-color);
}

.nav-item-link.active::after,
.nav-item-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .nav-item-link {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3870 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(10, 43, 86, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 150, 214, 0.28);
}

.btn-cta {
    background: linear-gradient(135deg, var(--cta-color) 0%, #ff9500 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 127, 0, 0.35);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--cta-hover) 0%, var(--cta-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 127, 0, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background-color: var(--primary-soft);
    transform: translateY(-1px);
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-whatsapp:disabled {
    background-color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-google {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    width: 100%;
    margin-top: 10px;
}

.btn-google:hover {
    background-color: #f9fafb;
    border-color: var(--secondary-color);
}

.btn-google img {
    width: 18px;
    height: 18px;
}

/* Property Cards */
.property-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 150, 214, 0.35);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 43, 86, 0.28) 0%, transparent 40%, rgba(10, 43, 86, 0.15) 100%);
    pointer-events: none;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.property-card:hover .card-img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(10, 43, 86, 0.92), rgba(0, 150, 214, 0.92));
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(10, 43, 86, 0.25);
}

.card-fav-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.card-fav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cta-color);
    transform: scale(1.1);
}

.card-fav-btn.favorited {
    background: #ffffff;
    color: #ef4444;
    border-color: #ffffff;
}

.card-fav-btn.favorited svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
}

.card-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.card-location svg {
    color: var(--secondary-color);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--primary-soft);
    color: var(--secondary-dark);
    border: 1px solid rgba(0, 150, 214, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

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

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 750px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.18);
}

/* Custom Calendar Datepicker */
.calendar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.calendar-nav-btn:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    position: relative;
}

.calendar-day.empty {
    cursor: default;
    background: none !important;
}

.calendar-day.available:hover {
    background-color: var(--available-hover);
}

.calendar-day.reserved {
    background-color: var(--reserved-bg);
    color: var(--reserved-text);
    text-decoration: line-through;
    cursor: not-allowed;
    font-weight: 400;
}

.calendar-day.selected {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: bold;
    border-radius: var(--radius-sm);
}

.calendar-day.in-range {
    background-color: var(--primary-soft) !important;
    color: var(--primary-color) !important;
    border-radius: 0;
}

.calendar-day.range-start {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}

.calendar-day.range-end {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.calendar-day.selected.today::after {
    background-color: white;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--accent-color);
}

.toast-error {
    border-left: 4px solid var(--reserved-text);
}

/* Modal Tabs Navigation */
.modal-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.modal-tabs::-webkit-scrollbar {
    height: 4px;
}

.modal-tabs::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: var(--radius-full);
}

.modal-tab-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.modal-tab-btn:hover {
    color: var(--primary-color);
}

.modal-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Sub-checkbox indentation */
.sub-checkbox-group {
    margin-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
}

