/**
 * Bornholm Sommerhus - Availability Calendar Styles
 * Airbnb-inspired clean design with collapsible sections
 * @package     Bornholm.Component.Property
 * @since       0.2.9
 */

/* ==========================================================================
   Property Header (minimal)
   ========================================================================== */

.property-header-minimal {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.property-header-minimal h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.property-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-item svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Layout: 3-column (image | calendar | booking panel)
   ========================================================================== */

.property-booking-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .property-booking-layout {
        grid-template-columns: 1fr;
    }
}

/* Property Image Column */
.property-image-col {
    text-align: center;
}

.property-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: #111827;
}

.property-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Calendar Column */
.calendar-col {
    min-width: 0;
}

/* Booking Summary Column */
.summary-col {
    position: sticky;
    top: 1rem;
}

@media (max-width: 1200px) {
    .summary-col {
        position: static;
    }
}

/* ==========================================================================
   Calendar Container
   ========================================================================== */

.property-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* ==========================================================================
   Calendar Navigation
   ========================================================================== */

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-navigation h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.calendar-nav-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #f9fafb;
    border-color: #111827;
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.calendar-nav-btn:disabled:hover {
    background: #fff;
    border-color: #e5e7eb;
}

/* ==========================================================================
   Calendar Grid
   ========================================================================== */

.calendar-months {
    padding: 1.5rem;
}

.calendar-month {
    width: 100%;
}

.calendar-month-header {
    display: none; /* Hide since we have navigation header */
}

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

.calendar-weekday {
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #111827;
    background: #fff;
}

.calendar-day:hover:not(.day-empty):not(.day-past):not(.day-booked):not(.day-blocked) {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* Empty days */
.calendar-day.day-empty {
    cursor: default;
    background: transparent;
}

/* Past dates */
.calendar-day.day-past {
    color: #d1d5db;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Available - Arrival possible (GREEN) - Saturdays always split */
/* Saturdays are ALWAYS diagonal split (45deg - bottom-left to top-right) */
.calendar-day.day-available,
.calendar-day.day-arrival-allowed {
    background: linear-gradient(45deg, #10b981 50%, #10b981 50%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.calendar-day.day-available:hover,
.calendar-day.day-arrival-allowed:hover {
    background: linear-gradient(45deg, #059669 50%, #059669 50%);
    transform: scale(1.1);
}

/* Available - No arrival (LIGHT GREEN) */
.calendar-day.day-available-no-arrival {
    background: #d1fae5;
    color: #065f46;
    cursor: not-allowed;
}

.calendar-day.day-available-no-arrival:hover {
    background: #d1fae5;
    transform: none;
}

/* Booked (RED) - Saturdays also split when booked (45deg) */
.calendar-day.day-booked,
.calendar-day.day-blocked {
    background: linear-gradient(45deg, #ef4444 50%, #ef4444 50%);
    color: #fff;
    cursor: not-allowed;
    font-weight: 600;
}

/* Selected range with diagonal split - DIFFERENT for start vs end */
/* Range START (arrival Saturday): Gold on RIGHT side (period starts on right) */
.calendar-day.day-range-start {
    background: linear-gradient(225deg, #f0ad4e 50%, #d1fae5 50%) !important;
    color: #fff;
    font-weight: 700;
    border: 2px solid #ec971f;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Range END (departure Saturday): Gold on LEFT side (period ends on left) */
.calendar-day.day-range-end {
    background: linear-gradient(225deg, #d1fae5 50%, #f0ad4e 50%) !important;
    color: #fff;
    font-weight: 700;
    border: 2px solid #ec971f;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Single selected day (if only start is selected) */
.calendar-day.day-selected {
    background: linear-gradient(225deg, #f0ad4e 50%, #d1fae5 50%) !important;
    color: #fff;
    font-weight: 700;
    border: 2px solid #ec971f;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Days in between (full orange/gold for booked period) */
.calendar-day.day-in-range {
    background: #f0ad4e;
    color: #fff;
    font-weight: 600;
}

/* Hover preview (lighter orange) */
.calendar-day.day-preview {
    background: #ffedd5;
    color: #9a3412;
}

/* Today marker */
.calendar-day.day-today {
    box-shadow: inset 0 0 0 2px #3b82f6;
}

/* ==========================================================================
   Calendar Legend
   ========================================================================== */

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.available {
    background: linear-gradient(45deg, #10b981 50%, #10b981 50%);
}

.legend-color.available-no-arrival {
    background: #d1fae5;
}

.legend-color.booked {
    background: linear-gradient(45deg, #ef4444 50%, #ef4444 50%);
}

.legend-color.selected {
    background: linear-gradient(225deg, #d1fae5 50%, #f0ad4e 50%);
}

/* ==========================================================================
   Price Display
   ========================================================================== */

.calendar-day .day-price {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    color: #718096;
    white-space: nowrap;
}

.calendar-day.day-available .day-price {
    color: #22543d;
}

/* ==========================================================================
   Booking Summary Box (Airbnb-style)
   ========================================================================== */

.booking-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.booking-summary h4 {
    margin: 0 0 1rem 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
}

.booking-summary-content {
    display: block;
}

.booking-summary-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.booking-summary-date {
    flex: 1;
    text-align: center;
}

.booking-summary-date .label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
    display: block;
}

.booking-summary-date .date {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.booking-summary-arrow {
    color: #d1d5db;
    font-size: 1.25rem;
    font-weight: 300;
}

.booking-summary-details {
    margin-bottom: 1rem;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.booking-summary-row .label {
    font-weight: 400;
}

.booking-summary-row .value {
    font-weight: 600;
    color: #111827;
}

.booking-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 2px solid #e5e7eb;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.booking-summary-action {
    margin-top: 1rem;
}

.booking-summary-action .book-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.booking-summary-action .book-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

/* ==========================================================================
   Calendar Message/Alerts
   ========================================================================== */

.calendar-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.calendar-message.alert-info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #7dd3fc;
}

.calendar-message.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.calendar-message.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* ==========================================================================
   Collapsible Info Sections (Airbnb-style)
   ========================================================================== */

.property-info-sections {
    max-width: 900px;
    margin: 3rem auto;
}

.info-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
}

.info-section[open] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    list-style: none;
    transition: background 0.2s ease;
    user-select: none;
}

.section-header:hover {
    background: #f9fafb;
}

.section-header svg:not(.chevron) {
    color: #6b7280;
    flex-shrink: 0;
}

.section-header span {
    flex: 1;
}

.section-header .chevron {
    color: #9ca3af;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.info-section[open] .section-header .chevron {
    transform: rotate(180deg);
}

.section-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table thead {
    background: #f9fafb;
}

.price-table th {
    text-align: left;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.price-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* Contact (minimal footer) */
.property-contact-minimal {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
}

.property-contact-minimal h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.contact-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.1);
}

.contact-link svg {
    flex-shrink: 0;
    color: #6b7280;
}

/* ==========================================================================
   Tabs Navigation (Airbnb-style)
   ========================================================================== */

.property-info-tabs {
    max-width: 900px;
    margin: 3rem auto;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn svg {
    flex-shrink: 0;
}

.tab-btn:hover {
    color: #111827;
    border-bottom-color: #d1d5db;
}

.tab-btn.active {
    color: #111827;
    font-weight: 600;
    border-bottom-color: #f97316;
}

.tabs-content {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-content-wrapper {
    padding: 2rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Detail Cards (for Details tab) */
.detail-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.detail-card:hover {
    border-color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.detail-icon svg {
    color: #f97316;
}

.detail-info {
    flex: 1;
}

.detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Price Cards (for Prices tab) */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.price-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.price-card:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.price-season {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.price-weeks {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f97316;
}

.price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.booking-summary-total .value {
    color: #2b6cb0;
}

.booking-summary-action {
    margin-top: 1.5rem;
}

.booking-summary-action .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-summary-action .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.4);
}

/* ==========================================================================
   Property Details
   ========================================================================== */

.property-details {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.property-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.property-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: #2d3748;
}

.property-header .location {
    color: #718096;
    font-size: 1rem;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
}

.property-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.property-gallery .main-image {
    grid-row: span 2;
}

/* ==========================================================================
   Price Table
   ========================================================================== */

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.price-table th,
.price-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.price-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.price-table tr:hover td {
    background: #f7fafc;
}

.price-table .price {
    font-weight: 600;
    color: #2b6cb0;
}

.price-table .season-name {
    font-weight: 500;
}

.price-table .season-dates {
    font-size: 0.875rem;
    color: #718096;
}

/* ==========================================================================
   Extras List
   ========================================================================== */

.extras-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.extra-item:hover {
    border-color: #3182ce;
}

.extra-info {
    flex: 1;
}

.extra-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.extra-description {
    font-size: 0.875rem;
    color: #718096;
}

.extra-price {
    font-weight: 600;
    color: #2b6cb0;
    margin-left: 1rem;
}

.extra-checkbox {
    margin-right: 1rem;
}

.extra-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ==========================================================================
   Booking Form
   ========================================================================== */

.booking-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.booking-form h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.form-group label.required::after {
    content: ' *';
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* GDPR Checkbox */
.form-group.gdpr-consent {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.form-group.gdpr-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-group.gdpr-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-group.gdpr-consent .consent-text {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
}

.form-group.gdpr-consent a {
    color: #3182ce;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.4);
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background: #f7fafc;
}

/* ==========================================================================
   Messages / Alerts
   ========================================================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.alert-warning {
    background: #fefcbf;
    color: #744210;
    border: 1px solid #faf089;
}

.alert-info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .calendar-months {
        grid-template-columns: 1fr;
    }
    
    .calendar-navigation {
        padding: 0.75rem 1rem;
    }
    
    .calendar-navigation h3 {
        font-size: 1rem;
    }
    
    .booking-summary-dates {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .booking-summary-arrow {
        transform: rotate(90deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .property-gallery {
        grid-template-columns: 1fr;
    }
    
    .property-gallery .main-image {
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .property-calendar {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
    
    .calendar-weekday {
        font-size: 0.625rem;
        padding: 0.375rem 0.125rem;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .calendar-nav-btn,
    .booking-summary-action,
    .form-actions {
        display: none;
    }
    
    .property-calendar,
    .booking-summary,
    .booking-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
