/* Brook Mays Rental Site — Crescendo Design System */

/* ===========================================
   CSS Variables (Crescendo Tokens)
   Tenant-specific values set via .tenant-brookmays / .tenant-fishburn in crescendo.css
   These are fallback defaults for pages outside the tenant wrapper.
   =========================================== */
:root {
    --cr-primary: #A31E23;
    --cr-primary-dark: #8A191D;
    --cr-primary-light: rgba(163, 30, 35, 0.08);
    --cr-accent: #C4C7C8;
    --cr-bg-off: #FAFAFA;
    --cr-charcoal: #1A1A1A;
    --cr-text-grey: #6B6B6B;
    --cr-white: #FFFFFF;
    --cr-border-radius: 2px;
    --cr-info-bg: #f5f5f5;
}

/* Internal page header styles are inline on the <header> element in RentalLayout.razor */

.tenant-brookmays {
    --cr-primary-light: rgba(163, 30, 35, 0.08);
    --cr-info-bg: #f5f5f5;
}

.tenant-fishburn {
    --cr-primary-light: rgba(139, 105, 20, 0.08);
    --cr-info-bg: #FBF8F3;
}

/* ===========================================
   Base Styles
   =========================================== */
html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--cr-bg-off);
    color: var(--cr-charcoal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-weight: 600;
}

/* ===========================================
   Link Styles
   =========================================== */
a {
    color: var(--cr-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================================
   Button Overrides
   =========================================== */
.mud-button-filled.mud-button-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.mud-button-filled.mud-button-primary:hover {
    filter: brightness(1.1);
}

/* ===========================================
   Card Styles — inherit from theme
   =========================================== */
.mud-card-content {
    padding: 16px;
}

/* ===========================================
   Form Styles — inherit border-radius from theme
   =========================================== */
.mud-input-label {
    font-family: 'Inter', sans-serif;
}

/* ===========================================
   Crescendo Utility Classes
   =========================================== */

/* Accent border (left) using primary color */
.cr-accent-border {
    border-left: 4px solid var(--cr-primary) !important;
}

/* Light primary tint background */
.cr-light-bg {
    background-color: var(--cr-primary-light) !important;
}

/* Info panel (neutral off-white) */
.cr-info-panel {
    background-color: var(--cr-info-bg) !important;
}

/* Selected state for option cards */
.cr-selected {
    border: 2px solid var(--cr-primary) !important;
    background-color: var(--cr-primary-light) !important;
}

/* Text color utilities */
.text-primary {
    color: var(--cr-primary) !important;
}

.text-secondary {
    color: var(--cr-text-grey) !important;
}

.bg-primary {
    background-color: var(--cr-primary) !important;
}

.bg-secondary {
    background-color: var(--cr-accent) !important;
}

/* ===========================================
   General Utility Classes
   =========================================== */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cursor-pointer {
    cursor: pointer;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* ===========================================
   Animations
   =========================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   Responsive Utilities
   =========================================== */
@media (max-width: 599px) {
    .hide-on-mobile {
        display: none !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .full-width-mobile {
        width: 100% !important;
    }
}

@media (min-width: 600px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* ===========================================
   Page-Specific Styles
   =========================================== */

/* Progress Stepper */
.mud-stepper .mud-step-label {
    font-size: 0.75rem;
}

/* Checkout Cards */
.checkout-section {
    margin-bottom: 24px;
}

/* Sticky Summary */
.sticky-summary {
    position: sticky;
    top: 80px;
}

@media (max-width: 959px) {
    .sticky-summary {
        position: relative;
        top: 0;
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .no-print {
        display: none !important;
    }

    .mud-appbar,
    .rental-footer {
        display: none !important;
    }

    body {
        background: white;
    }
}

/* ===========================================
   Google Places Autocomplete Styles
   =========================================== */

/* Container for the autocomplete dropdown */
.google-autocomplete-dropdown {
    background-color: #fff;
    position: absolute;
    z-index: 1000;
    border-radius: 2px;
    border-top: 1px solid #d9d9d9;
    font-family: 'Inter', Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    overflow: hidden;
    display: none;
}

.google-autocomplete-dropdown::after {
    content: "";
    padding: 1px 1px 1px 0;
    height: 18px;
    box-sizing: border-box;
    text-align: right;
    display: block;
    background-image: url('https://rental.brookmays.com/images/template/powered_by_google_on_white.png');
    background-position: right;
    background-repeat: no-repeat;
    background-size: 120px 14px;
}

/* Individual prediction item */
.google-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-top: 1px solid #e6e6e6;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    text-align: left;
    font-size: 13px;
    color: #515151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-autocomplete-item:first-child {
    border-top: none;
}

.google-autocomplete-item:hover,
.google-autocomplete-item-active {
    background-color: #f1f1f1;
}

/* Location pin icon */
.google-pac-icon {
    width: 15px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    background-image: url('https://maps.gstatic.com/mapfiles/api-3/images/autocomplete-icons.png');
    background-position: -1px -161px;
    background-size: 34px 280px;
    flex-shrink: 0;
}

.google-pac-item-query {
    font-size: 13px;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-pac-item-query span {
    margin-right: 3px;
}

.google-pac-matched {
    font-weight: 600;
}

/* SSN masked input — hides digits with dots when hidden */
.ssn-masked input {
    -webkit-text-security: disc;
    text-security: disc;
}

/* Powered by Google badge (shown at bottom of form) */
.powered-by-google {
    margin: 0.5em 0;
    height: 18px;
}

/* Address input wrapper for relative positioning */
.address-input-wrapper {
    position: relative;
}
