/* Custom styles for PropertyAV */

/* Form styling */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #f9fafb;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.3);
    border-color: #FF6B00;
}

/* Custom colors */
.bg-primary {
    background-color: #FF6B00;
}

.text-primary {
    color: #FF6B00;
}

.border-primary {
    border-color: #FF6B00;
}

.bg-secondary {
    background-color: #000000;
}

.text-secondary {
    color: #000000;
}

/* Flipbook styling - Enhanced for proper visibility */
.flipbook-container {
    width: 100%;
    height: 600px;
    background-color: #f8f9fa;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipbook {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: transparent;
    position: relative;
}

#flipbook .page {
    background-color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px;
    overflow: visible !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

#flipbook .page canvas {
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 4px;
}

/* Ensure Turn.js pages are visible */
.turn-page {
    display: block !important;
    visibility: visible !important;
}

.animated {
    transition: transform 0.5s;
}

#flipbook .shadow,
#flipbook .shadow-l,
#flipbook .shadow-r {
    -webkit-box-shadow: 0 4px 10px #666;
    -moz-box-shadow: 0 4px 10px #666;
    -ms-box-shadow: 0 4px 10px #666;
    -o-box-shadow: 0 4px 10px #666;
    box-shadow: 0 4px 10px #666;
}

#page-counter {
    min-width: 80px;
    text-align: center;
}

/* Ensure pages don't exceed container bounds */
.flipbook-container .page {
    box-sizing: border-box;
}

/* Loading indicator */
.flipbook-container .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Animation effects */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Flipbook styling */
.flipbook-container {
    background: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.flipbook .page {
    background: white;
}

/* Responsive image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Custom button hover */
.btn-primary {
    background-color: #FF6B00;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #e05e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Property card hover effect */
.property-card {
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6B00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e05e00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flipbook-container {
        height: 60vh !important;
        min-height: 400px !important;
    }
}
