/**
 * Airport NOC Zone Finder CSS
 * Orange Theme (#ff6725)
 * Purple for Airport NOC Zones (#8B008B)
 * Elegant design with full-screen interactive map
 */

:root {
    --airport-primary: #ff6725;
    --airport-primary-dark: #e55a1f;
    --airport-primary-light: #ff8c5c;
    --airport-noc-purple: #8B008B;
    --airport-noc-light: #9932CC;
    --airport-secondary: #4a90e2;
    --airport-info: #17a2b8;
    --airport-success: #28a745;
    --airport-warning: #ffc107;
    --airport-danger: #dc3545;
}

/* Container and Layout */
.airport-container {
    background: #fff;
    min-height: calc(100vh - 120px);
}

.airport-content {
    padding: 20px 0;
}

/* Map Container - Full Screen Interactive Map */
#map {
    height: 600px !important;
    width: 100% !important;
    border-radius: 10px;
    border: 1px solid #ddd;
    position: relative;
    z-index: 1;
}

.map-container {
    position: relative;
    margin: 20px 0;
    width: 100%;
    height: 600px;
}

.map-wrapper {
    position: relative;
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Move zoom controls to bottom right */
.map-wrapper .leaflet-top.leaflet-right {
    top: auto !important;
    bottom: 20px !important;
}

.map-wrapper .leaflet-control-zoom {
    margin-bottom: 0 !important;
}

/* Map Instruction Overlay */
.map-instruction {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 103, 37, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.map-instruction.visible {
    opacity: 1;
}

#mapInstruction {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#mapInstruction.visible {
    opacity: 1;
}

/* Search Box with Autocomplete */
.survey-map-search-container,
.map-controls-container {
    position: absolute !important;
    z-index: 500 !important;
}

.survey-map-search-container {
    top: 15px;
    left: 15px;
    width: 350px;
}

.map-controls-container {
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

#airportNocSearchBox,
.survey-map-search-box {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #ff6725;
    background: white;
    box-shadow: 0 3px 10px rgba(255, 103, 37, 0.15);
    font-size: 14px;
    transition: all 0.3s;
}

#airportNocSearchBox:focus,
.survey-map-search-box:focus {
    outline: none;
    border-color: #ff8c5c;
    box-shadow: 0 3px 15px rgba(255, 103, 37, 0.25);
}

/* Search Results Dropdown */
#airportNocSearchResults,
.survey-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ff6725;
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(255, 103, 37, 0.15);
    z-index: 600;
    display: none;
    margin-top: -2px;
}

.survey-search-results div {
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: all 0.2s;
    font-size: 14px;
}

.survey-search-results div:hover {
    background: #fff5f0;
    padding-left: 25px;
    color: #ff6725;
}

/* Location Button */
#currentLocationBtn,
.location-button {
    background: white;
    border: 2px solid #ff6725;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    box-shadow: 0 3px 10px rgba(255, 103, 37, 0.15);
    transition: all 0.3s;
    color: #ff6725;
    font-size: 18px;
}

#currentLocationBtn:hover,
.location-button:hover {
    background: linear-gradient(135deg, #ff6725, #ff8c5c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 103, 37, 0.3);
}

#currentLocationBtn:active,
.location-button:active {
    transform: translateY(0);
}

/* Map Legend - Positioned Left, z-index 1000 */
.map-legend,
#mapLegend {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 1000 !important;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #ff672520;
    width: 180px;
}

.map-legend h6 {
    margin: 0 0 12px 0;
    color: #ff6725;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #2d3748;
}

.legend-item:last-child {
    margin-bottom: 0;
}

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

.legend-color.airport-noc-zone {
    background: #8B008B;
}

.legend-color.selected-location {
    background: #ff6725;
}

/* Loader - Centered on Map */
#loader {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center;
    z-index: 9999;
    display: none;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#loader .loader-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 40px;
    min-width: 280px;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.loader-content {
    position: relative;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--airport-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.loader-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.loader-dots {
    display: inline-block;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6725, #ff8c5c);
    animation: progress 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Result Cards - Elegant Design */
.result-card {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 420px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000 !important;
    animation: slideInUp 0.4s ease;
    display: none;
    overflow: hidden;
    max-height: calc(100vh - 140px);
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.result-card .card-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, #FF6725 0%, #FF8A56 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card .card-header .btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.result-card .card-header .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.result-card .card-body {
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 240px);
    background: white;
}

/* Property Header - Gradient Background */
.property-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.property-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF6725 0%, #FF8A56 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.25);
    flex-shrink: 0;
}

.property-icon.airport-icon {
    background: linear-gradient(135deg, #8B008B 0%, #9932CC 100%);
}

.property-title h5 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.property-title p {
    margin: 0;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* Info Grid - Modern Card Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: #ff672540;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.08);
    transform: translateY(-2px);
}

.info-item-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff672510 0%, #ff672508 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ff6725;
    flex-shrink: 0;
}

.info-item-content {
    flex: 1;
    min-width: 0;
}

.info-item-label {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
}

/* Information Sections */
.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.section-header {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.section-header i {
    color: #ff6725;
    margin-right: 8px;
}

.section-content {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 8px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Regulation Sections */
.regulation-section {
    margin-top: 16px;
}

.regulation-header {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.regulation-header.prohibited {
    background: linear-gradient(135deg, #dc3545 0%, #e55353 100%);
    color: white;
}

.regulation-header.regulated {
    background: linear-gradient(135deg, #ffc107 0%, #ffcd39 100%);
    color: #212529;
}

.regulation-header.height-restricted {
    background: linear-gradient(135deg, #8B008B 0%, #9932CC 100%);
    color: white;
}

.regulation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.regulation-list li {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    position: relative;
    padding-left: 36px;
}

.regulation-list li:last-child {
    margin-bottom: 0;
}

.regulation-list li:before {
    content: '•';
    position: absolute;
    left: 16px;
    color: #ff6725;
    font-weight: bold;
    font-size: 16px;
}

/* Legal Framework Section */
.legal-section {
    margin-top: 16px;
}

.legal-section h6 {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.legal-section h6 i {
    color: #ff6725;
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.3s;
}

.legal-item:hover {
    border-color: #ff672540;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.08);
}

.legal-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.legal-item-description {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 6px;
}

.legal-item-applicability {
    font-size: 12px;
    color: #718096;
    font-style: italic;
    margin-bottom: 6px;
}

.legal-item-penalties {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
}

/* Height Restrictions Content */
#heightRestrictionsContent {
    background: white;
    border-radius: 10px;
    padding: 14px;
}

#heightRestrictionsContent p {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
}

#heightRestrictionsContent ul {
    margin: 10px 0;
    padding-left: 20px;
}

#heightRestrictionsContent ul li {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Approval Content */
#approvalContent {
    font-size: 13px;
    color: #4a5568;
}

#approvalContent p,
#approvalContent ul {
    margin-bottom: 12px;
}

#approvalContent ul {
    padding-left: 20px;
}

#approvalContent li {
    margin-bottom: 6px;
}

/* Prohibited Content */
#prohibitedContent {
    background: white;
    border-radius: 10px;
    padding: 14px;
}

#prohibitedContent .prohibited-subsection {
    margin-bottom: 16px;
}

#prohibitedContent .prohibited-subsection:last-child {
    margin-bottom: 0;
}

#prohibitedContent h6 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

#prohibitedContent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#prohibitedContent ul li {
    padding: 8px 0 8px 20px;
    font-size: 13px;
    color: #4a5568;
    position: relative;
}

#prohibitedContent ul li:before {
    content: '×';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}

/* Property Buyer Content */
#propertyBuyerContent {
    font-size: 13px;
    color: #4a5568;
}

#propertyBuyerContent .buyer-subsection {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

#propertyBuyerContent .buyer-subsection:last-child {
    margin-bottom: 0;
}

#propertyBuyerContent .buyer-subsection h6 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

#propertyBuyerContent ul {
    margin: 0;
    padding-left: 20px;
}

#propertyBuyerContent li {
    margin-bottom: 8px;
}

/* Layer Toggle Controls */
.map-layer-toggles {
    position: absolute !important;
    top: 15px;
    right: 70px;
    z-index: 500 !important;
    background: white;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 12px;
    border: 1px solid #e2e8f0;
}

.layer-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    white-space: nowrap;
    margin: 0;
}

.layer-toggle input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ff6725;
    border-radius: 3px;
    background: white;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    position: relative;
    flex-shrink: 0;
}

.layer-toggle input[type="checkbox"]:checked {
    background: #ff6725;
}

.layer-toggle input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.layer-toggle i {
    color: #ff6725;
    font-size: 11px;
}

/* Legend separator and subtitle */
.legend-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.legend-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

/* Section Explainer Text */
.section-explainer {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
    margin: -4px 0 10px 0;
    padding: 0;
}

/* Info Item Sublabel */
.info-item-sublabel {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 2px;
    line-height: 1.2;
}

/* PTE Breakdown Grid */
.pte-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pte-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.pte-item.pte-item-highlight {
    border-color: #ff672540;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
}

.pte-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.pte-sublabel {
    font-size: 9px;
    color: #a0aec0;
    margin-top: 3px;
    line-height: 1.2;
}

.pte-value {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
}

.pte-value.pte-highlight {
    color: #ff6725;
    font-size: 16px;
}

.pte-floor-equiv {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #718096;
    margin-top: 1px;
}

/* CCZM Explainer Box */
.cczm-explainer-box {
    background: #fffbf5;
    border: 1px solid #ff672520;
    border-radius: 8px;
    padding: 10px 12px;
}

.cczm-explainer-title {
    font-size: 12px;
    font-weight: 700;
    color: #ff6725;
    margin-bottom: 6px;
}

.cczm-explainer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cczm-explainer-list li {
    font-size: 11px;
    color: #4a5568;
    line-height: 1.5;
    padding: 2px 0 2px 14px;
    position: relative;
}

.cczm-explainer-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #ff6725;
    font-weight: bold;
}

.cczm-explainer-list li strong {
    color: #2d3748;
}

/* Nearest Airport Card */
.nearest-airport-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.nearest-airport-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.nearest-airport-item:last-child {
    margin-bottom: 0;
}

.nearest-airport-item.primary {
    border-color: #ff672540;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
}

.nearest-airport-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.nearest-airport-name i {
    color: #ff6725;
}

.nearest-airport-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #718096;
}

.nearest-airport-details span {
    display: flex;
    align-items: center;
}

.nearest-airport-details i {
    color: #ff6725;
    font-size: 10px;
}

/* Height Calculator */
.height-calc-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.height-calc-form {
    margin-top: 8px;
}

.height-calc-input-group {
    display: flex;
    gap: 8px;
}

.height-calc-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.height-calc-input:focus {
    outline: none;
    border-color: #ff6725;
}

.height-calc-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff6725, #ff8c5c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.height-calc-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.3);
}

.height-calc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.height-check-result {
    margin-top: 10px;
}

.height-result-pass {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
}

.height-result-fail {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px;
}

.height-result-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    color: #856404;
    font-size: 13px;
}

.height-result-status {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.height-result-pass .height-result-status {
    color: #155724;
}

.height-result-fail .height-result-status {
    color: #721c24;
}

.height-result-msg {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 4px;
}

.height-result-detail {
    font-size: 12px;
    color: #4a5568;
}

.height-result-noc {
    font-size: 12px;
    font-weight: 600;
    color: #dc3545;
    margin-top: 6px;
}

/* Airport Marker Icon */
.airport-marker-icon {
    background: transparent !important;
    border: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .survey-map-search-container {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
    }

    .result-card {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .map-legend {
        bottom: 10px !important;
        left: 10px !important;
        width: 160px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 500px !important;
    }

    .map-container {
        height: 500px;
    }

    .map-layer-toggles {
        right: 15px;
        top: 65px;
        flex-direction: column;
        gap: 6px;
    }

    .pte-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .property-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .property-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .property-title h5 {
        font-size: 18px;
    }

    #map {
        height: 400px !important;
    }

    .map-container {
        height: 400px;
    }

    .result-card .card-body {
        max-height: calc(100vh - 200px);
    }
}

/* Tool Article Styling */
#tool-article {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#tool-article h1 {
    color: #1a202c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ff6725;
}

#tool-article h5 {
    color: #2d3748;
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    padding-top: 20px;
}

#tool-article h6 {
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

#tool-article p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

#tool-article ul,
#tool-article ol {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
}

#tool-article li {
    margin-bottom: 10px;
}

#tool-article strong {
    color: #2d3748;
    font-weight: 600;
}

#tool-article .alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 4px solid;
}

#tool-article .alert-info {
    background: #e8f4f8;
    border-color: #17a2b8;
    color: #0c5460;
}

#tool-article .alert-warning {
    background: #fff8e1;
    border-color: #ffc107;
    color: #856404;
}

#tool-article .alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

#tool-article .alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

#tool-article section {
    margin-bottom: 40px;
}

#tool-article section:last-child {
    margin-bottom: 0;
}

#tool-article .bg-light {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

#tool-article .bg-light:hover {
    border-color: #ff6725;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.1);
}

#tool-article .text-muted {
    color: #6c757d !important;
    font-size: 14px;
    line-height: 1.7;
}

/* Airport NOC CTA Section */
.airport-noc-cta-section {
    background: linear-gradient(135deg, #ff6725 0%, #ff8850 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Animated flight path */
.airport-noc-cta-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.3) 10px,
        rgba(255, 255, 255, 0.3) 20px
    );
    animation: flight-path 15s linear infinite;
    z-index: 0;
}

/* Cloud 1 */
.airport-noc-cta-section::after {
    content: '☁';
    position: absolute;
    top: 15%;
    left: -10%;
    font-size: 40px;
    opacity: 0.2;
    animation: cloud-float-1 25s linear infinite;
    z-index: 0;
}

/* Clouds container */
.airport-noc-cta-section .wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Cloud 2 */
.airport-noc-cta-section .wave-overlay::before {
    content: '☁';
    position: absolute;
    top: 60%;
    left: -5%;
    font-size: 35px;
    opacity: 0.15;
    animation: cloud-float-2 30s linear infinite;
}

/* Airplane */
.airport-noc-cta-section .wave-overlay::after {
    content: '✈';
    position: absolute;
    top: 30%;
    left: -10%;
    font-size: 24px;
    opacity: 0.4;
    animation: airplane-fly 20s linear infinite;
}

@keyframes flight-path {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes cloud-float-1 {
    0% {
        left: -10%;
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        left: 110%;
        transform: translateY(0);
    }
}

@keyframes cloud-float-2 {
    0% {
        left: -5%;
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        left: 105%;
        transform: translateY(0);
    }
}

@keyframes airplane-fly {
    0% {
        left: -10%;
        top: 30%;
    }
    25% {
        top: 25%;
    }
    50% {
        top: 35%;
    }
    75% {
        top: 28%;
    }
    100% {
        left: 110%;
        top: 30%;
    }
}

@keyframes airplane-fly-2 {
    0% {
        left: -10%;
        top: 45%;
    }
    30% {
        top: 40%;
    }
    60% {
        top: 50%;
    }
    100% {
        left: 110%;
        top: 45%;
    }
}

@keyframes airplane-fly-3 {
    0% {
        left: -10%;
        top: 20%;
    }
    40% {
        top: 15%;
    }
    70% {
        top: 25%;
    }
    100% {
        left: 110%;
        top: 20%;
    }
}

@keyframes airplane-fly-4 {
    0% {
        left: -10%;
        top: 55%;
    }
    35% {
        top: 50%;
    }
    65% {
        top: 60%;
    }
    100% {
        left: 110%;
        top: 55%;
    }
}

@keyframes airplane-fly-5 {
    0% {
        left: -10%;
        top: 35%;
    }
    25% {
        top: 32%;
    }
    50% {
        top: 38%;
    }
    75% {
        top: 33%;
    }
    100% {
        left: 110%;
        top: 35%;
    }
}

/* Additional airplanes */
.airplane-2 {
    position: absolute;
    top: 45%;
    left: -10%;
    font-size: 20px;
    opacity: 0.35;
    animation: airplane-fly-2 25s linear infinite;
    animation-delay: 5s;
}

.airplane-3 {
    position: absolute;
    top: 20%;
    left: -10%;
    font-size: 22px;
    opacity: 0.3;
    animation: airplane-fly-3 18s linear infinite;
    animation-delay: 8s;
}

.airplane-4 {
    position: absolute;
    top: 55%;
    left: -10%;
    font-size: 19px;
    opacity: 0.32;
    animation: airplane-fly-4 22s linear infinite;
    animation-delay: 12s;
}

.airplane-5 {
    position: absolute;
    top: 35%;
    left: -10%;
    font-size: 21px;
    opacity: 0.37;
    animation: airplane-fly-5 24s linear infinite;
    animation-delay: 3s;
}

/* Ensure content stays above waves */
.airport-noc-cta-section h4,
.airport-noc-cta-section p,
.airport-noc-cta-section .airport-noc-cta-button {
    position: relative;
    z-index: 2;
}

.airport-noc-cta-section h4 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.airport-noc-cta-section p {
    margin-bottom: 20px;
    font-size: 16px;
    color: white;
}

.airport-noc-cta-button {
    display: inline-block;
    background-color: white;
    color: #ff6725;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.airport-noc-cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #cc4400;
}
